Repository navigation
The proof's repeat count is chosen in one place, and its routes report runs that never reached the page apart - #931
Merged
Merged
Conversation
…t runs that never reached the page apart proof_routes::repeat_count takes the count measured from the test's failure rate when the run has one, else the review's; Plan::tally gives the runs that passed or failed on the page and the routes that never reached it, which are never failures. This is the seam the evidence-led test fix wires into.
Contributor
|
💚 Post-merge health check passed: the deploy of
|
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.
Summary
Follow-up to #927 (merged): the repeat proof's count is chosen in one place, and its routes report their runs in a form the test-fix evidence can count. This is the seam #928 (the evidence-led test fix) connects to.
proof_routes::repeat_count(asked, measured): the count a proof's routes run.measuredis the count from the test's own measured failure rate (A failing test is fixed from its evidence, or not changed at all #928'sfix_evidence::repeats_for); without it, the count the review asked for. Capped at 300.Plan::tally(): the plan's runs as counts: runs that passed or failed on the page, and routes that never reached it (refused by the network, no address, no start script). Those are never failures, the same rule as A failing test is fixed from its evidence, or not changed at all #928'sRunResult::NotReached.repeat_count.Wiring with #928. #928 merges after this, so it rebases onto main and connects the two:
Measure::from(Tally),fix_evidence::measured_repeats(rate)passed asmeasuredin both callers, and the ready check judging the routes' tally withfix_evidence::proof(only runs that reached the page count, and enough of them for the measured rate). That change has been built and tested on main plus #928 plus this pull request.Changes
common::e2e::proof_routes:repeat_count,MAX_REPEAT,Tally,Plan::tally, with tests.pr_watch::prove_owedandtest_fix::ready_gatecallrepeat_count.Verification
cargo fmt --all --check,rustfmt --check --edition 2021 worker/src/passes/incidents/*.rscargo clippy -p common -p worker -p gateway --all-targets -- -D warningscargo test -p common -p worker -p gateway