Repository navigation
Speed up the Rust recovery test with test-profile optimization - #288
Merged
Merged
Conversation
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.
Compile datafog-core at optimization level 1 and zeroize at level 3 in the test profile. The exact-byte recovery test repeatedly wipes a 16 MiB buffer across 256 recoveries. Both the caller and concrete wipe implementations contribute to its runtime. The test inputs, assertions, overflow checks and release settings are unchanged.
In local profiling, the unchanged test passed in 14.04 seconds with both overrides. The unoptimized probe was still running at 247 seconds when stopped. On GitHub Actions, the full workspace test step including compilation took 10m 15s on the parent and 1m 19s here (87% less). All 398 named tests passed in both logs, including the recovery boundary test. Formatting and all-targets/all-features Clippy also passed. Parent Rust quality · PR Rust quality
The separate cross-SDK
cargo dfv checkstep went from 11m 16s to 2m 59s. These are single-run hosted comparisons. Parent verifier · PR verifierChangelog exemption: Rust test compilation settings only.