Skip to content

atuin: disable more timing sensitive tests - #582602

Closed
gepbird wants to merge 1 commit into
NixOS:masterfrom
gepbird:fix/atuin/disable-more-tests
Closed

gepbird wants to merge 1 commit into
NixOS:masterfrom
gepbird:fix/atuin/disable-more-tests

Conversation

@gepbird

@gepbird gepbird commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Fixes https://hydra.nixos.org/build/351935953/step/1/log.

This is a follow up to #578792 and #582345.

At this point maybe we should disable all tests if like half of them are already this flaky.

I'm currently building this on an aarch64-linux RPi5, it may uncover additional failing tests due to its slower CPU.

Things done

@gepbird gepbird changed the title atuin: disable more timing tests atuin: disable more timing sensitive tests Nov 3, 2026
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux. 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". labels Nov 3, 2026
@flyingpeakock

Copy link
Copy Markdown

I'm currently rebuilding aarch64-linux atuin from an x86_64 host through QEMU emulation. I'll comment here if I have any more tests that are failing.

@gepbird

gepbird commented Nov 3, 2026

Copy link
Copy Markdown
Contributor Author

For me one more test is failing:

atuin> test a_huge_message_reads_back ... FAILED                                                                                                                                                                  
atuin>                                                                                                                                                                                                            
atuin> failures:                                                                                                                                                                                                  
atuin>                                                                                                                                                                                                            
atuin> ---- a_huge_message_reads_back stdout ----                                                                                                                                                                 
atuin>                                                                                                                                                                                                            
atuin> thread 'a_huge_message_reads_back' (21380) panicked at crates/atuin/tests/common/ai.rs:87:25:                                                                                                              
atuin> timed out waiting for session 01a1a13c-a46c-75c1-901b-c9ff56c6b4ac to say [                                                                                                                                
atuin>     "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx <many 'x'-es are truncated> xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx please look into w01a1a13ca467744a9d8cf50f4f2f4cba",
atuin>     "all done with w01a1a13ca467744a9d8cf513c0c69322",
atuin> ]: it says [
atuin>     "[not captured: took too long to redact]",
atuin>     "all done with w01a1a13ca467744a9d8cf513c0c69322",
atuin> ]
atuin> daemon log:
atuin> 2026-11-03T11:47:48.339712Z  INFO atuin_daemon::service::socket_holder: listening on /tmp/atuin-e2e-i8clrH/daemon.sock
atuin> 2026-11-03T11:47:48.388232Z  INFO atuin_daemon::daemon: starting component component="search"
atuin> 2026-11-03T11:47:48.388252Z  INFO atuin_daemon::components::search: search component started
atuin> 2026-11-03T11:47:48.389311Z  INFO atuin_client::settings::watcher: starting config file watcher: "/tmp/atuin-e2e-i8clrH/.atuin/config.toml"
atuin> 2026-11-03T11:47:48.389622Z  INFO atuin_client::settings::watcher: config file watcher initialized for: "/tmp/atuin-e2e-i8clrH/.atuin"
atuin> 2026-11-03T11:47:48.389735Z  INFO atuin_daemon::components::search: Loading history into search index; page size = 5000
atuin> 2026-11-03T11:47:48.389792Z  INFO atuin_daemon: config file watcher started
atuin> 2026-11-03T11:47:48.390246Z  INFO atuin_daemon::components::search: History load complete; 0 unique commands indexed
atuin> 2026-11-03T11:47:48.391103Z  INFO atuin_client::ai_session::store: ai-session watermarks were not made with this key: replaying all
atuin> 2026-11-03T11:47:48.392488Z  INFO atuin_daemon::session_capture::recovery: ai-session sidecar replayed replayed=0 restarted=0 elapsed=2.583529ms
atuin> 2026-11-03T11:47:48.392549Z  INFO atuin_daemon::session_capture: ai-session capture enabled=true
atuin>
atuin> note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
atuin>
atuin>
atuin> failures:
atuin>     a_huge_message_reads_back
atuin>
atuin> test result: FAILED. 41 passed; 1 failed; 0 ignored; 0 measured; 26 filtered out; finished in 33.78s
atuin>
atuin> error: test failed, to rerun pass `-p atuin --test e2e_ai_sessions`
error: builder for '/nix/store/ilp9rkxm6ichb67z1chxsfr1qz2nx77k-atuin-18.24.4.drv' failed with exit code 101

@gepbird
gepbird force-pushed the fix/atuin/disable-more-tests branch from c0f6774 to d15128a Compare November 3, 2026 12:03
@SuperSandro2000

Copy link
Copy Markdown
Member

Are those timing sensitive tests clustered in a few files or directories? Can we deactivate the entire file(s)/directories?

@flyingpeakock

Copy link
Copy Markdown

These tests are still failing for me

       > failures:
       >     command::client::scripts::tests::missing_editor_reports_the_command_and_preserves_the_io_error::case_1
       >     command::client::scripts::tests::missing_editor_reports_the_command_and_preserves_the_io_error::case_2
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_3_zsh
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_4_fish
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_5_nu
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_6_xonsh
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_7_powershell
       >
       > test result: FAILED. 699 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.38s

@gepbird
gepbird marked this pull request as draft November 3, 2026 23:14
@gepbird
gepbird force-pushed the fix/atuin/disable-more-tests branch from d15128a to 4284ad8 Compare November 3, 2026 23:15
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 3, 2026
@gepbird

gepbird commented Nov 4, 2026

Copy link
Copy Markdown
Contributor Author

Are those timing sensitive tests clustered in a few files or directories? Can we deactivate the entire file(s)/directories?

@SuperSandro2000 in the second commit I removed specifying the cases where we observed the flakiness and disabled the whole tests instead.

Most of the flaky tests were coming from e2e AI test files, disabling them should save us from a 4th PR with this topic.
Adding them as skip check flags didn't work, so I removed the test files instead.

These tests are still failing for me

       > failures:
       >     command::client::scripts::tests::missing_editor_reports_the_command_and_preserves_the_io_error::case_1
       >     command::client::scripts::tests::missing_editor_reports_the_command_and_preserves_the_io_error::case_2
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_3_zsh
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_4_fish
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_5_nu
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_6_xonsh
       >     command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_7_powershell
       >
       > test result: FAILED. 699 passed; 7 failed; 0 ignored; 0 measured; 0 filtered out; finished in 2.38s

@flyingpeakock interesting that those failed (for you multiple test cases of the same real shell test, for me none of that), did you get a timeout for those or it had a different reason? I also disabled them.

@gepbird
gepbird marked this pull request as ready for review November 4, 2026 01:06
@nixpkgs-ci nixpkgs-ci Bot added the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 4, 2026
@flyingpeakock

Copy link
Copy Markdown

@gepbird I'm not sure what is causing the tests to fail. These are the log lines directly preceding the failed tests:

---- command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_6_xonsh stdout ----

thread 'command::client::search::interactive::tests::cd_command_lands_in_directory_in_real_shell::case_6_xonsh' (29368) panicked at crates/atuin/src/command/client/search/interactive.rs:3082:>
xonsh failed:
cd @('/build/.tmpliOeUO/a b\'c"d\\e!$HOME')
print($PWD)
cd @('/build/.tmpliOeUO/q\'#x\'##y')
print($PWD)
cd @('/build/.tmpliOeUO/x\'# y')
print($PWD)
cd @('/build/.tmpliOeUO/ends\'#')
print($PWD)
cd @('/build/.tmpliOeUO/`x` $(y) @(z) {a,b} *? [1]')
print($PWD)
cd @('/build/.tmpliOeUO/s ‘x’ ‚y‛')
print($PWD)
cd @('/build/.tmpliOeUO/-lead')
print($PWD)
cd @('/build/.tmpliOeUO/trail ')
print($PWD)
cd @('/build/.tmpliOeUO/semi;amp&pipe|lt<gt>')
print($PWD)
cd @('/build/.tmpliOeUO/~ tilde')
print($PWD)
cd @('/build/.tmpliOeUO/back\\')
print($PWD)
cd @('/build/.tmpliOeUO/é 中')
print($PWD)

@nixpkgs-review-gha

Copy link
Copy Markdown

✅ nixpkgs-review result

Generated using nixpkgs-review-gha (8e518bc)

Command: nixpkgs-review pr 582602
Commit: 3ad9558376c0756721abf0df595b640eaf2286b1 (subsequent changes)
Merge: ece52ea0680377887d26f89a26091c45375bbe7b

Triggered by @flyingpeakock (21244519)
Logs: https://github.com/flyingpeakock/nixpkgs-review-gha/actions/runs/41782580046/attempts/1


x86_64-linux

✅ 1 package built:
  • atuin

aarch64-linux

✅ 1 package built:
  • atuin

@flyingpeakock

Copy link
Copy Markdown

When building for aarch64-linux through QEMU on x86_64-linux this test appears to hang:

atuin-aarch64-linux> test db::sqlite::observe::driver::tests::concurrent_writers_no_loss has been running for over 60 seconds

It has been stuck there for over 30 minutes.

@SuperSandro2000

Copy link
Copy Markdown
Member

Fine for me disabling those tests, but I would like to have less commits 😅

@gepbird
gepbird force-pushed the fix/atuin/disable-more-tests branch from 3ad9558 to 63135fe Compare November 4, 2026 20:03
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Nov 6, 2026
Flake lock file updates:

• Updated input 'flake-parts':
    'github:hercules-ci/flake-parts/024633cd702b10285db5cb19b40ad48d2399ba60' (2026-10-01)
  → 'github:hercules-ci/flake-parts/ea2630b7470978622c7689a1ff75d2b389175399' (2026-11-01)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=3fab84685caeb9a4a983c7c87a1b846862a1b079' (2026-10-25)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=b3f60aee4dca2a29af9b658939635c8317d0feac' (2026-11-05)
• Added input 'gep-dotfiles/nixpkgs-patch-discord-openasar-fix-launch':
    'NixOS/nixpkgs#582751'
• Updated input 'home-manager':
    'github:nix-community/home-manager/c216bf5a1f173b0481bd5c8c489ebe5595ecc68c' (2026-10-25)
  → 'github:nix-community/home-manager/b787c48e2ec57a9d098f5c2721882a3bc1e16f97' (2026-11-04)
• Updated input 'moe':
    'github:tchfoo/moe/78b62988bdba3852cf5946e0a3a418de7ef94df3' (2026-10-14)
  → 'github:tchfoo/moe/09da70ab3fb3e69d199db6f3ed421fa798363b37' (2026-10-27)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/93696586f3463024cceb089353539be95a38ae2b' (2026-10-25)
  → 'github:nix-community/nix-index-database/cee0f879d338cf08f814210fa6c2b280594ade0a' (2026-11-01)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/1b418b8f203e49a92f250f8babdd19af1b6f7a7f' (2026-10-22)
  → 'github:NixOS/nixos-hardware/d645c71a58dbae3eb17ff551a07aea13a541cb1a' (2026-11-05)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/1c89083e451e891152365b799595cf7790a43325' (2026-10-30)
  → 'github:NixOS/nixpkgs/1d060086d60cb76a40cf37109f979d88a5bd6396' (2026-11-03)
• Added input 'nixpkgs-patch-atuin-fix-build':
    'NixOS/nixpkgs#582602'
• Updated input 'nixpkgs-patcher':
    'github:gepbird/nixpkgs-patcher/da7c09e478f552c3a9ebb78b2f68426c1855fd81' (2026-09-11)
  → 'github:gepbird/nixpkgs-patcher/e5f4b45fb4f0fc81dae025c173648cccbefca569' (2026-11-01)
• Updated input 'nur':
    'github:nix-community/NUR/c315b811c2a7ffe36b33119231124bb7f816d358' (2026-10-26)
  → 'github:nix-community/NUR/4db3d74452f668cedca53e4ba69f1116f72d937f' (2026-11-05)
• Updated input 'sops-nix':
    'github:Mic92/sops-nix/442449fa7b1fe6c692d0103ac9fc8f9e82931cf3' (2026-10-24)
  → 'github:Mic92/sops-nix/b18e01ce148eb3efff5de2f2d3181ca53b2b2a54' (2026-11-02)
• Updated input 'tangled-core':
    'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=e81ebb68352971820d206211eaaa4ef6eed550b2' (2026-11-05)
  → 'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=2668fb5a1b596be13cc464f4771f261dd86f7b8e' (2026-11-05)
• Updated input 'ymstnt-dotfiles':
    'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=6485475879a9f96fe6d3bf1192ccbc3ec12aa9d3' (2026-10-30)
  → 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=12021ae2b9ac377b64c4a4e9e1923f6fca97b9f3' (2026-10-31)
@mdaniels5757 mdaniels5757 mentioned this pull request Nov 6, 2026
3 of 13 tasks
@SuperSandro2000

Copy link
Copy Markdown
Member

If mdaniels PR fixes the underlying problem I am happy to take that one, I do not really have a strong preference here, I just want to make the test suite more reliable and less often fail 😅

@gepbird
gepbird marked this pull request as draft November 6, 2026 14:52
@nixpkgs-ci nixpkgs-ci Bot removed the 2.status: merge-bot eligible This PR can be merged by commenting "@NixOS/nixpkgs-merge-bot merge". label Nov 6, 2026
gepbird added a commit to tchfoo/raspi-dotfiles that referenced this pull request Nov 9, 2026
Flake lock file updates:

• Updated input 'fenix':
    'github:nix-community/fenix/5161c3b5239da76a876135d51ff91281daffd78e' (2026-11-07)
  → 'github:nix-community/fenix/f8e0414b287d4a5c674ba9a7dd3fbe47d563246c' (2026-11-09)
• Updated input 'gep-dotfiles':
    'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=ce2ab12ebad7e24838c5e81fe73cc9f2d8d4cd3a' (2026-11-07)
  → 'git+https://git.tchfoo.com/gepbird/dotfiles?ref=refs/heads/main&rev=03729fc4444eb6dd1deb91f07959827c199d51af' (2026-11-08)
• Updated input 'home-manager':
    'github:nix-community/home-manager/2c0c1f01521469cf0271180c453c79782d53c2f6' (2026-11-06)
  → 'github:nix-community/home-manager/761b01ffedcc7fb5a2346ef00ea23b3621d66629' (2026-11-09)
• Updated input 'nix-index-database':
    'github:nix-community/nix-index-database/cee0f879d338cf08f814210fa6c2b280594ade0a' (2026-11-01)
  → 'github:nix-community/nix-index-database/af9249ca33bc2efaae5d071e4c67ddef19dcb681' (2026-11-08)
• Updated input 'nixos-hardware':
    'github:NixOS/nixos-hardware/1a8ff4f57ffe1f732beaa1db842247a381ea471d' (2026-11-07)
  → 'github:NixOS/nixos-hardware/919c16cf46a7acf9b44b2c2444bc39aa094eaa85' (2026-11-09)
• Updated input 'nixpkgs':
    'github:NixOS/nixpkgs/f9a75f41be3a74eab55d3a7679d34ad6cc0da977' (2026-11-05)
  → 'github:NixOS/nixpkgs/f4a03c008967841f2a0b3cb7c436fc6fc31671f6' (2026-11-07)
• Updated input 'nixpkgs-patch-atuin-fix-build':
    'NixOS/nixpkgs#582602'
  → 'NixOS/nixpkgs#583850'
• Added input 'nixpkgs-patch-intelli-shell-fix-build':
    'NixOS/nixpkgs#584630'
• Added input 'nixpkgs-patch-msedit-fix-build':
    'NixOS/nixpkgs#584906'
• Updated input 'nur':
    'github:nix-community/NUR/319e5026c432e3af6f32123edd5d33d78b3d06e3' (2026-11-07)
  → 'github:nix-community/NUR/03cd292c580a050ab2c31b2e54e2e5d5f8f4b863' (2026-11-09)
• Updated input 'tangled-core':
    'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=f70c71c7696a1cb0caaf472cca950bbbc74f174f' (2026-11-07)
  → 'git+https://tangled.org/tangled.org/core?ref=refs/heads/master&rev=89a2df39ca8fd54dba9018120464a52220ce868e' (2026-11-09)
• Updated input 'ymstnt-dotfiles':
    'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=e17055166f363d0b988c1a9dc0cac10a4bfc6e96' (2026-11-07)
  → 'git+https://git.tchfoo.com/ymstnt/dotfiles?ref=refs/heads/main&rev=82483cdbb45132be29dd762f4fff19c2b20eaf87' (2026-11-09)
@gepbird

gepbird commented Nov 11, 2026

Copy link
Copy Markdown
Contributor Author

Superseded by #583850

@gepbird gepbird closed this Nov 11, 2026
@gepbird
gepbird deleted the fix/atuin/disable-more-tests branch November 11, 2026 01:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 1-10 This PR causes between 1 and 10 packages to rebuild on Darwin. 10.rebuild-darwin: 1 This PR causes 1 package to rebuild on Darwin. 10.rebuild-linux: 1-10 This PR causes between 1 and 10 packages to rebuild on Linux. 10.rebuild-linux: 1 This PR causes 1 package to rebuild on Linux.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants