Skip to content

CI calibration ancestry check depends on deleted PR refs #8022

Description

@prekshivyas

Summary

The full-E2E cold-path calibration test requires every recorded testedSha to exist in a fresh local Git checkout. Some recorded revisions are PR-only commits, so the test starts failing after the source PR merges and its refs disappear even though actions/checkout uses fetch-depth: 0.

This blocks unrelated code PRs before the trusted E2E gate can dispatch.

Current failure

PR #8021 CI run 30653373482 failed in cli-test-shards (3):

Error: git merge-base could not verify calibration ancestry; ensure the checkout has full history (status 128): fatal: Not a valid commit name 915b25c522d982fc7d40d01e583bc8f15bcf975f

Evidence

Expected behavior

Deterministic repository tests must pass in a fresh full-history checkout after evidence-source PRs merge. Calibration provenance should remain bound to exact run and tested revision receipts without requiring deleted PR refs to remain advertised forever.

Acceptance criteria

  • A fresh checkout of current main passes test/onboard-performance-config-schema.test.ts without fetching PR refs or making network calls from the test.
  • Durable workflowHeadSha and runtime-input ancestry checks remain enforced.
  • Exact testedSha, run ID, job ID, and run URL receipt validation remains enforced without assuming each tested commit is locally reachable.
  • Coverage proves a PR-only tested revision cannot break unrelated CI after its source ref disappears.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: triageAwaiting maintainer classification

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions