Skip to content

Add ProVerif mirror failover/caching and retire repeated silent-claim macOS flake - #492

Merged
SRTPioneer merged 1 commit into
mainfrom
ci/proverif-mirrors-and-peerauth-flake
Dec 4, 2026
Merged

SRTPioneer merged 1 commit into
mainfrom
ci/proverif-mirrors-and-peerauth-flake

Conversation

@SRTPioneer

Copy link
Copy Markdown
Member

Summary

Fixes two CI reliability issues observed on main:

  1. Resilient, cached, checksum-pinned ProVerif 2.05 build (tools/build_proverif.py, .github/workflows/experimental-acp1.yml, .github/workflows/experimental-peerauth.yml):

    • Retains VERSION = "2.05" and mandatory SHA-256 verification (4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4) before archive extraction.
    • Fails over across verified mirrors carrying the byte-identical archive (https://proverif.inria.fr/proverif2.05.tar.gz and https://opam.ocaml.org/cache/sha256/48/4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4; Debian proverif_2.05.orig.tar.gz returned 404 and was omitted).
    • Skips recompilation when proverif-tool/bin/proverif is executable and proverif-tool/SOURCE_SHA256 matches the pinned checksum.
    • Caches proverif-tool in both formal jobs using SHA-pinned actions/cache/restore and actions/cache/save keyed by runner OS, pinned SHA-256, ocamlc -version, and tools/build_proverif.py hash.
    • Adds --self-test and interop/tests/test_build_proverif.py to verify HTTP 503 failover, tampered-payload rejection, and cached-binary detection with a local http.server stub.
  2. Retire hosted-macOS flake in peer_auth_public_listener_bounds_each_repeated_silent_claim_from_one_source (tests/test_peer_authentication_exchange.cpp:2958):

    • Accepts Outcome::rejected alongside Outcome::proof_withheld and Outcome::unanswered when 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

  • Live mirror check: both proverif.inria.fr and opam.ocaml.org serve exact SHA-256 4871f53c32ab4a04669a060c4886ba5d9080496963fb980a9a62d2c429ceabc4 (980,879 bytes).
  • python3 tools/build_proverif.py --self-test PASS.
  • python3 -m unittest interop/tests/test_build_proverif.py interop/tests/test_ci_build_scope.py PASS (14/14).
  • clang-format --dry-run --Werror tests/test_peer_authentication_exchange.cpp PASS.

… 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>
@SRTPioneer
SRTPioneer merged commit ed6faa4 into main Dec 4, 2026
86 checks passed
@SRTPioneer
SRTPioneer deleted the ci/proverif-mirrors-and-peerauth-flake branch December 4, 2026 22:24
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