Skip to content

[ci] Run build pipeline on candidate without publishing artifacts/packages#313

Merged
nileshnegi merged 3 commits into
candidatefrom
users/nileshnegi/no-package-candidate
May 26, 2026
Merged

[ci] Run build pipeline on candidate without publishing artifacts/packages#313
nileshnegi merged 3 commits into
candidatefrom
users/nileshnegi/no-package-candidate

Conversation

@nileshnegi
Copy link
Copy Markdown
Collaborator

@nileshnegi nileshnegi commented May 23, 2026

Motivation

Add candidate to PR triggers so pushes and PRs run the full build pipeline. Gate all artifact and S3 upload steps so no artifacts/packages are published until candidate is promoted to develop.

Technical Details

  • Add candidate to pull_request branch triggers so PRs against it run the full build pipeline
  • Gate all artifact and S3 upload steps. Builds still run for every push/PR to candidate; artifacts and packages are never published.
  • PRs from candidate to develop will trigger build + artifact/package upload.

Test Plan

Test Result

Submission Checklist

nileshnegi and others added 2 commits May 23, 2026 00:03
Add candidate to PR triggers so pushes and PRs against candidate run
the full build pipeline. Gate all S3 upload steps on ref_name and
base_ref not being 'candidate' so no packages are published until
candidate is promoted to develop/mainline.

Co-authored-by: Claude <claude@anthropic.com>
Candidate builds are validation-only; no artifacts should be retained.
The verify steps (dpkg-deb, rpm -qip) still confirm packages were built.

Co-authored-by: Claude <claude@anthropic.com>
Copilot AI review requested due to automatic review settings May 23, 2026 05:09
@nileshnegi nileshnegi requested a review from a team as a code owner May 23, 2026 05:09
@nileshnegi nileshnegi requested a review from thananon May 23, 2026 05:09
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates CI workflows so the candidate branch runs the full build/scan pipeline (push + PR), while attempting to prevent publishing (artifacts/S3 uploads) from candidate builds.

Changes:

  • Add candidate to CodeQL push + PR triggers.
  • Add candidate to build-relocatable-packages workflow PR triggers and reorder push triggers to include it.
  • Gate artifact upload and S3 upload steps to avoid publishing when the run is associated with candidate.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 4 comments.

File Description
.github/workflows/codeql.yml Adds candidate to branch triggers so CodeQL runs on pushes/PRs involving candidate.
.github/workflows/build-relocatable-packages.yml Runs packaging CI for candidate PRs and gates artifact/S3 publishing based on branch context.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread .github/workflows/build-relocatable-packages.yml Outdated
Comment thread .github/workflows/build-relocatable-packages.yml
Comment thread .github/workflows/build-relocatable-packages.yml Outdated
Comment thread .github/workflows/build-relocatable-packages.yml Outdated
Gate the release-summary build-report artifact upload behind the same
candidate condition as the package artifacts. Also drop "(always, for
inspection)" from the artifact upload step names — they are no longer
unconditional.

Co-authored-by: Claude <claude@anthropic.com>
@nileshnegi nileshnegi merged commit e21806e into candidate May 26, 2026
8 checks passed
@nileshnegi nileshnegi deleted the users/nileshnegi/no-package-candidate branch May 26, 2026 14:30
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.

4 participants