Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: use ATUIN_TEST_SQLITE_STORE_TIMEOUT to specify test timeout of SQLite store #1703

Merged
merged 1 commit into from
Feb 12, 2024

Conversation

hack3ric
Copy link
Contributor

Low-end devices like RISC-V SBCs are sometimes too slow to initialize SQLite in 0.1s. Option to specify a higher value allows check to pass on such devices with relaxed restrictions.

Checks

  • I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle
  • I have checked that there are no existing pull requests for the same thing

…SQLite store

Low-end devices like RISC-V SBCs are sometimes too slow to initialize SQLite in 0.1s. Option to specify a higher value allows check to pass on such devices with relaxed restrictions.
hack3ric added a commit to hack3ric/archriscv-packages that referenced this pull request Feb 12, 2024
Remove ring patch and increase SQLite initialization timeout in tests. Upstreamed to atuinsh/atuin#1703.
Copy link
Member

@ellie ellie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, thank you!

What sort of systems require this? Just curious as to what Atuin is being ran on.

Seeing as this is your first time contributing, if you would like a holographic contributors-only Atuin sticker, then please fill out this form!

We do also have a Discord if you'd like to ask any questions, or just fancy hanging out!

@ellie ellie merged commit 5a805dc into atuinsh:main Feb 12, 2024
15 checks passed
@hack3ric
Copy link
Contributor Author

I am porting Atuin for Arch Linux RISC-V and the current RISC-V computers just don't have enough single-core performance to do things quickly, but I do hope this will change in the near future ;)

I am currently not a user of Atuin, but I will definitely try it inside my workflow. Thanks for the awesome project!

@hack3ric hack3ric deleted the test-timeout branch February 12, 2024 13:38
felixonmars pushed a commit to felixonmars/archriscv-packages that referenced this pull request Feb 13, 2024
Remove ring patch and increase SQLite initialization timeout in tests. Upstreamed to atuinsh/atuin#1703.
jaxvanyang added a commit to jaxvanyang/atuin that referenced this pull request Aug 2, 2024
This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from atuinsh#1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which atuinsh#1703 added only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.
jaxvanyang added a commit to jaxvanyang/atuin that referenced this pull request Aug 2, 2024
This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from atuinsh#1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which atuinsh#1703 added only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.
jaxvanyang added a commit to jaxvanyang/atuin that referenced this pull request Aug 2, 2024
This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from atuinsh#1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which added by atuinsh#1703 only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.
jaxvanyang added a commit to jaxvanyang/atuin that referenced this pull request Aug 2, 2024
…TIMEOUT

This deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT for simplicity as the new
env ATUIN_TEST_LOCAL_TIMEOUT can control both connection and store
timeout of SQLite in test. Details see 4d88611.

Revert: atuinsh#1703.
ellie pushed a commit that referenced this pull request Aug 5, 2024
…ite (#2337)

* test: add env ATUIN_TEST_LOCAL_TIMEOUT to control test timeout of SQLite

This make it possible to control the timeout of SQLite operations in
test. And ATUIN_TEST_LOCAL_TIMEOUT defaults to the default local_timeout,
which is actually used in the client. Instead of a small timeout (0.1),
this change makes the test less likely to fail and better imitate the
default behavior.

SQLite operation timeout was first introduced from #1590, including
connection and store timeout. The env ATUIN_TEST_SQLITE_STORE_TIMEOUT
which added by #1703 only specify the store timeout. This commit doesn't
deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT, but control it by setting its
default to the new env ATUIN_TEST_LOCAL_TIMEOUT.

* test!: replace ATUIN_TEST_SQLITE_STORE_TIMEOUT with ATUIN_TEST_LOCAL_TIMEOUT

This deprecate ATUIN_TEST_SQLITE_STORE_TIMEOUT for simplicity as the new
env ATUIN_TEST_LOCAL_TIMEOUT can control both connection and store
timeout of SQLite in test. Details see 4d88611.

Revert: #1703.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants