Repository navigation
tests: AriadneE2ee.BackupAndRestoreThroughTheVerbs waits 240 s, not 60 - #1507
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
AriadneE2ee.BackupAndRestoreThroughTheVerbsruns three Argon2id hashes at libsodium's MODERATE limits (256 MB each: the backup, the wrong passphrase, the restore) throughrun(), 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.argon2id,argon2id13, the wrong passphrase refused, the same identity restored) are unchanged.E2eeStore::backupalways uses MODERATE), and I didn't add a production knob just for this test.run()calls do no Argon2id, ande2ee_test.cppcalls 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_test3/3 passed, BackupAndRestoreThroughTheVerbs in 1.2 s on an idle 22-core box.e2ee_test8 passed, 1 skipped (E2eeInterop.WithTxwtfsClientThroughFiles, which needs txwtfs's client). The 30 s on CI is runner contention, not the work itself.