Skip to content

ci: add a build check for pull requests to main - #146

Open
Bjordis Collaku (bjordiscollaku) wants to merge 1 commit into
mainfrom
ci/premerge-main-build-check
Open

Bjordis Collaku (bjordiscollaku) wants to merge 1 commit into
mainfrom
ci/premerge-main-build-check

Conversation

@bjordiscollaku

@bjordiscollaku Bjordis Collaku (bjordiscollaku) commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Closes #143

Pull requests to main get no build validation today, although premerge-pr.yml and the nightly both run build-kernel.yml@main. This adds a build-only check for them.

  • premerge-main.yml builds resolute-qcom-devel with the PR's own build-kernel.yml, called by local path, and the PR's own scripts, through a new ci_scripts_ref input that defaults to main. It builds the qcom flavour without dbgsym and uploads nothing.
  • It runs only when a PR touches .github/workflows/ or scripts/.
  • It is deliberately not named "Pre-merge PR build". premerge-distro-validation.yml matches that name exactly and would otherwise dispatch a distro image build for every PR to main.

Existing callers are unchanged: the schedule, workflow_dispatch and premerge-pr.yml all still check scripts out from main.

Validation

Notes

  • The same-repository condition avoids accidental fork runs. On pull_request the PR supplies the workflow, so fork approval settings remain the boundary for the self-hosted runner.
  • The check is not required for now, since a path-skipped required check never reports.

Pull requests to resolute-qcom-devel are build-checked, but pull requests
to main, which hold the CI every devel build runs, are not. premerge-pr.yml
and the nightly both call build-kernel.yml@main, so a broken change there
breaks every devel PR check and the next nightly with nothing having
caught it first.

premerge-main.yml builds resolute-qcom-devel with the PR's own
build-kernel.yml, called by local path, and the PR's own scripts, through
a new ci_scripts_ref input. That input defaults to main, so the schedule,
workflow_dispatch and premerge-pr.yml runs resolve exactly as before. It
builds the qcom flavour without dbgsym and uploads nothing.

The workflow is deliberately not named "Pre-merge PR build":
premerge-distro-validation.yml triggers on workflow_run of that exact
name and would otherwise dispatch a distro image build for every pull
request to main.

It runs only when a PR touches .github/workflows/ or scripts/. The
same-repository condition avoids accidental fork runs but is not a
security boundary, since on pull_request the PR supplies the workflow;
fork approval settings remain what gates the self-hosted runner.

Closes #143

Signed-off-by: Bjordis Collaku <bcollaku@qti.qualcomm.com>
@bjordiscollaku
Bjordis Collaku (bjordiscollaku) marked this pull request as ready for review October 9, 2026 16:51
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.

Pull requests to main get no build validation

1 participant