Repository navigation
Add ProVerif mirror failover/caching and retire repeated silent-claim macOS flake - #492
Merged
Merged
Conversation
… on per-source cap
1. Make tools/build_proverif.py resilient to upstream HTTP 503 outages:
- Keep VERSION=2.05 and mandatory SHA-256 verification
(4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4)
before archive extraction.
- Fail over across verified mirrors carrying the byte-identical archive
(proverif.inria.fr and opam.ocaml.org content-addressed SHA-256 cache).
- Skip recompiling when proverif-tool/bin/proverif is executable and
proverif-tool/SOURCE_SHA256 matches the pinned checksum.
- Add --self-test and interop/tests/test_build_proverif.py covering
503 failover, tampered-payload rejection, and cached binary detection.
- Cache proverif-tool in experimental-acp1.yml and
experimental-peerauth.yml keyed by OS, pinned SHA-256, ocamlc version,
and tools/build_proverif.py hash.
2. Accept Outcome::rejected in
peer_auth_public_listener_bounds_each_repeated_silent_claim_from_one_source
when repeated silent claims from loopback hit the per-source pending-setup
cap of 2, while preserving the honest-caller admission bound check.
Signed-off-by: Marc Cymontkowski <srtpioneer@proton.me>
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
Fixes two CI reliability issues observed on
main:Resilient, cached, checksum-pinned ProVerif 2.05 build (
tools/build_proverif.py,.github/workflows/experimental-acp1.yml,.github/workflows/experimental-peerauth.yml):VERSION = "2.05"and mandatory SHA-256 verification (4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4) before archive extraction.https://proverif.inria.fr/proverif2.05.tar.gzandhttps://opam.ocaml.org/cache/sha256/48/4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4; Debianproverif_2.05.orig.tar.gzreturned 404 and was omitted).proverif-tool/bin/proverifis executable andproverif-tool/SOURCE_SHA256matches the pinned checksum.proverif-toolin bothformaljobs using SHA-pinnedactions/cache/restoreandactions/cache/savekeyed by runner OS, pinned SHA-256,ocamlc -version, andtools/build_proverif.pyhash.--self-testandinterop/tests/test_build_proverif.pyto verify HTTP 503 failover, tampered-payload rejection, and cached-binary detection with a localhttp.serverstub.Retire hosted-macOS flake in
peer_auth_public_listener_bounds_each_repeated_silent_claim_from_one_source(tests/test_peer_authentication_exchange.cpp:2958):Outcome::rejectedalongsideOutcome::proof_withheldandOutcome::unansweredwhen repeated silent claims from loopback hit the per-source pending-setup cap of 2, while keeping the honest-caller admission bound assertion unchanged.Local Verification
proverif.inria.frandopam.ocaml.orgserve exact SHA-2564871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4(980,879 bytes).python3 tools/build_proverif.py --self-testPASS.python3 -m unittest interop/tests/test_build_proverif.py interop/tests/test_ci_build_scope.pyPASS (14/14).clang-format --dry-run --Werror tests/test_peer_authentication_exchange.cppPASS.