Skip to content

Use Litmus public fallback for fork PR CI#1481

Open
alex-harvey-z3q wants to merge 1 commit into
puppetlabs:mainfrom
alex-harvey-z3q:codex/fix-pr-ci-nightly
Open

Use Litmus public fallback for fork PR CI#1481
alex-harvey-z3q wants to merge 1 commit into
puppetlabs:mainfrom
alex-harvey-z3q:codex/fix-pr-ci-nightly

Conversation

@alex-harvey-z3q

@alex-harvey-z3q alex-harvey-z3q commented Jul 20, 2026

Copy link
Copy Markdown

Summary

Use puppet_litmus ~> 2.5 for system tests.

The CI workflow keeps passing flags: "--nightly" to the shared acceptance workflow. This preserves the intended nightly Puppetcore coverage for trusted CI runs.

The failing fork PR path does not receive repository secrets, so PUPPET_FORGE_TOKEN is unavailable. With the previous Gemfile logic, that selected puppet_litmus ~> 1.0. That older matrix_from_metadata_v3 path either rejects --nightly or still generates nightly Puppet collections by default, which breaks unauthenticated fork PR acceptance setup/runs.

Litmus 2.5+ has the behavior this workflow needs:

  • it accepts --nightly
  • when PUPPET_FORGE_TOKEN is present, it can use nightly Puppetcore collections
  • when PUPPET_FORGE_TOKEN is absent, it falls back to the public Puppet collection instead of trying to use private nightly packages

Assumption / Tradeoff

This PR assumes the maintained path for unauthenticated fork PRs is to use current Litmus public fallback behavior rather than keeping fork PRs pinned to Litmus 1.x.

That preserves the existing workflow intent more closely than conditionally removing --nightly from fork PRs: trusted runs can still request nightly Puppetcore packages, while fork PRs can complete with public packages when secrets are unavailable.

Verification

  • ruby -c Gemfile
  • parsed .github/workflows/ci.yml with Ruby YAML
  • git diff --check

Closes #1480

@alex-harvey-z3q
alex-harvey-z3q force-pushed the codex/fix-pr-ci-nightly branch from 39eff3e to 743d5ff Compare July 20, 2026 10:26
@alex-harvey-z3q alex-harvey-z3q changed the title Fix PR acceptance matrix generation Handle fork PR acceptance matrix without nightly Jul 20, 2026
@alex-harvey-z3q
alex-harvey-z3q force-pushed the codex/fix-pr-ci-nightly branch 2 times, most recently from e150da2 to 0343ab3 Compare July 20, 2026 10:48
@alex-harvey-z3q alex-harvey-z3q changed the title Handle fork PR acceptance matrix without nightly Use Litmus public fallback for fork PR CI Jul 20, 2026
Require puppet_litmus ~> 2.5 for system tests so matrix_from_metadata_v3 accepts --nightly and falls back to public Puppet collections when PUPPET_FORGE_TOKEN is unavailable.

Keep CI workflow nightly flags unchanged so trusted runs still exercise nightly Puppetcore packages.

Closes puppetlabs#1480
@alex-harvey-z3q
alex-harvey-z3q force-pushed the codex/fix-pr-ci-nightly branch from 0343ab3 to a2d4719 Compare July 21, 2026 00:52
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.

CI acceptance matrix fails for fork PRs with --nightly

1 participant