Skip to content

Re-add bakery-pr CI job using full repo path#451

Merged
bschwedler merged 4 commits into
mainfrom
ci/re-add-bakery-pr-job
Apr 13, 2026
Merged

Re-add bakery-pr CI job using full repo path#451
bschwedler merged 4 commits into
mainfrom
ci/re-add-bakery-pr-job

Conversation

@bschwedler
Copy link
Copy Markdown
Contributor

@bschwedler bschwedler commented Apr 10, 2026

Summary

Re-add the bakery-pr test job to ci.yml using the full repo path (posit-dev/images-shared/.github/workflows/bakery-build-pr.yml@main) instead of a relative path. The relative path caused startup_failure on PRs because GitHub couldn't resolve recently-added workflow files.

Depends on #449.

Test plan

  • CI passes (no startup_failure)
  • bakery-pr job runs on pull_request events
  • bakery-pr job skips on push/tag events (allowed-skips)

The relative path caused startup_failure because GitHub couldn't
resolve it during PR validation. The full repo path resolves from
the published main branch.
@bschwedler bschwedler requested a review from ianpittwood as a code owner April 10, 2026 21:14
bakery-build-pr.yml was added in #442 but missed the SHA-pinning
pass in #443. Pin all third-party actions to full-length commit
SHAs matching bakery-build-native.yml, and add timeout-minutes
to all three jobs (detect: 5m, matrix: 10m, build-test: 120m).

- Upgrade oras-project/setup-oras from v1 to v2.0.0 for
  consistency with the native build workflow
- First-party composite actions (setup-bakery, setup-goss)
  intentionally kept at @main per zizmor ref-pin policy
Now that bakery-build-pr.yml exists on main (merged in #442),
the relative ref resolves correctly. This matches the pattern
used by bakery-build.yml and bakery-build-native.yml, and lets
PRs that modify bakery-build-pr.yml test their own changes.
The job-level `if` referencing `matrix.img.platform` caused a
workflow validation error — the matrix context is not available
in job-level `if` expressions. Move the arm64 fork-skip logic
into the matrix job, which filters arm64 entries from the
platform matrix output when the PR is from a fork.
@github-actions
Copy link
Copy Markdown

Test Results

1 328 tests   1 328 ✅  7m 46s ⏱️
    1 suites      0 💤
    1 files        0 ❌

Results for commit e958576.

@bschwedler bschwedler merged commit d9ad0d6 into main Apr 13, 2026
22 checks passed
@bschwedler bschwedler deleted the ci/re-add-bakery-pr-job branch April 13, 2026 16:38
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