Skip to content

ci(lifecycle): the dispatched-ref lifecycle workflow uses no shared cache - #4531

Merged
Daniel Meppiel (danielmeppiel) merged 1 commit into
train/0.37-final-2from
danielmeppiel-s29-journeys-no-shared-cache
Nov 20, 2026
Merged

Daniel Meppiel (danielmeppiel) merged 1 commit into
train/0.37-final-2from
danielmeppiel-s29-journeys-no-shared-cache

Conversation

@danielmeppiel

@danielmeppiel Daniel Meppiel (danielmeppiel) commented Nov 20, 2026 •

Copy link
Copy Markdown
Collaborator

Description

lifecycle-journeys.yml checks out the dispatched ref input in every job. This change stops those jobs from restoring or saving a shared cache (setup-uv enable-cache: false, and the npm cache step for the pinned Codex CLI is removed), so code from a dispatched ref never writes a cache that a default-branch run later restores. A CI topology contract (test_dispatched_ref_lifecycle_workflow_uses_no_shared_cache) pins it. The dispatch input, job names, the pinned Codex install and the signal job are unchanged.

Issue and approved scope

Issue: Refs #4092

Human scope-approval comment: approved by the 0.37 steward and program PM (release-train hardening item).

Does this PR complete the issue, or what remains? It adds one CI hardening item under the 0.37 trust and integrity umbrella; the umbrella stays open.

Type of change

  • Bug fix
  • New feature
  • Documentation
  • Maintenance / refactor

Testing

  • Tested locally
  • All existing tests pass
  • Added tests for new functionality (if applicable)

pytest -p no:xdist tests/quality/test_ci_topology.py -k "dispatched_ref or codex or cache_full_matrix" (through the host guard): 3 passed. ruff check / ruff format --check (ruff 0.15.12) on the changed test file: clean. Full suite runs in CI.

Changelog

  • One line in one section under ## [Unreleased] in CHANGELOG.md:
    user-visible effect first, 25 words or fewer, ending with (#PR);
    breaking changes only under upgrade notes; no Highlights; see
    .github/instructions/changelog.instructions.md.
  • N/A -- internal-only change (CI, tests, refactor).

Spec conformance (OpenAPM v0.1)

If this PR changes behaviour that an OpenAPM v0.1 req-XXX covers,
confirm the three-step ritual in the
development guide:

  • Spec edit: docs/src/content/docs/specs/openapm-v0.1.md updated
    (new/changed <a id="req-XXX"></a> anchor + prose + Appendix C
    row).
  • Manifest edit: docs/src/content/docs/specs/manifests/openapm-v0.1.requirements.yml
    updated.
  • Test edit: a @pytest.mark.req("req-XXX") test under
    tests/spec_conformance/ added or extended.
  • CONFORMANCE.{md,json} regenerated via
    uv run --extra dev python -m tests.spec_conformance.gen_statement
    and committed.
  • N/A -- this PR does not change OpenAPM-observable behaviour.

…ache

Every job checks out the dispatched ref, so no job restores or saves a
uv or npm cache that a default-branch run would later restore. A CI
topology contract pins it.

Co-authored-by: Copilot App <[email protected]>
@danielmeppiel
Daniel Meppiel (danielmeppiel) merged commit 4cf4a8e into train/0.37-final-2 Nov 20, 2026
3 checks passed
@danielmeppiel
Daniel Meppiel (danielmeppiel) deleted the danielmeppiel-s29-journeys-no-shared-cache branch November 20, 2026 23:08
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