Skip to content

tests: AriadneE2ee.BackupAndRestoreThroughTheVerbs waits 240 s, not 60 - #1507

Merged
transfix merged 1 commit into
masterfrom
fix/ariadne-e2ee-backup-deadline
Nov 24, 2026
Merged

transfix merged 1 commit into
masterfrom
fix/ariadne-e2ee-backup-deadline

Conversation

@transfix

@transfix transfix commented Nov 23, 2026 •

Copy link
Copy Markdown
Owner

AriadneE2ee.BackupAndRestoreThroughTheVerbs runs three Argon2id hashes at libsodium's MODERATE limits (256 MB each: the backup, the wrong passphrase, the restore) through run(), whose default deadline is 60 s. On macOS Release CI it takes 29-35 s, so the limit had under 2x headroom.

On a slow macos-latest runner (run 45150947475, #1498) all three ctest attempts hit the deadline at 78-85 s. On the same runner E2eeVectors.BackupsAreTxwtfs, which has no deadline, went from ~30 s to 78 s, so the runner was slow and nothing hung.

  • This one call now passes 240 s. The work and the assertions (argon2id, argon2id13, the wrong passphrase refused, the same identity restored) are unchanged.
  • 240 s is still under the 300 s ctest gives each test on a PR, so a real hang still fails with the test's own "timed out".
  • The store has no test-only way to pick lighter KDF limits (E2eeStore::backup always uses MODERATE), and I didn't add a production knob just for this test.
  • I checked for the same pattern elsewhere: the file's other run() calls do no Argon2id, and e2ee_test.cpp calls backup and restore synchronously with no deadline of its own.

Test-only change: one file, 4 lines.

Verified locally (Windows, MSVC Release, libsodium 1.0.22 from cvcpkg): ariadne_e2ee_test 3/3 passed, BackupAndRestoreThroughTheVerbs in 1.2 s on an idle 22-core box. e2ee_test 8 passed, 1 skipped (E2eeInterop.WithTxwtfsClientThroughFiles, which needs txwtfs's client). The 30 s on CI is runner contention, not the work itself.

The test runs three Argon2id hashes at libsodium's MODERATE limits (256 MB each: the backup, the
wrong passphrase, the restore) through run(), whose default deadline is 60 s. On macOS Release CI
it takes 29-35 s, so the limit had under 2x headroom. On a slow macos-latest runner (run
45150947475, PR #1498) all three ctest attempts hit the deadline at 78-85 s, while
E2eeVectors.BackupsAreTxwtfs, which has no deadline, went from ~30 s to 78 s on the same runner.

This one call now passes 240 s: the work is unchanged, and it still stays under the 300 s ctest
gives a PR's tests, so a real hang still fails as "timed out" from the test itself. The store has
no test-only way to choose lighter KDF limits (backup always uses MODERATE), and adding one only
for this test is not worth it. The file's other run() calls do no Argon2id, and e2ee_test.cpp
calls backup and restore synchronously with no deadline of its own.
@transfix
transfix enabled auto-merge (squash) November 24, 2026 03:56
@transfix
transfix merged commit 74a10b0 into master Nov 24, 2026
32 checks passed
@transfix
transfix deleted the fix/ariadne-e2ee-backup-deadline branch November 24, 2026 05:21
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.

1 participant