Skip to content

Conversation

glehmann
Copy link
Member

@glehmann glehmann commented Sep 5, 2025

Previously the checks were only run on branches pushed to the xcp-ng repo, or, when a branch is pushed to a forked repo, against that fork, if it has been configured to run GH actions.

This resulted in PRs for branches in a forked repo not to trigger the test actions, and we would miss any regression while the PR is open, and only get hit when the regression hits master.

Just activating those actions on pull_request in addition to push would OTOH have them run twice when we push a PR branch, so we restrict the runs on push to only happen when pushing to master. This has a side-effect of non-PR branches not getting the checks run, which we may want to fix in the future.

Previously the checks were only run on branches pushed to the xcp-ng
repo, or, when a branch is pushed to a forked repo, against that fork,
if it has been configured to run GH actions.

This resulted in PRs for branches in a forked repo not to trigger the
test actions, and we would miss any regression while the PR is open,
and only get hit when the regression hits master.

Just activating those actions on pull_request in addition to push
would OTOH have them run twice when we push a PR branch, so we
restrict the runs on push to only happen when pushing to master.  This
has a side-effect of non-PR branches not getting the checks run, which
we may want to fix in the future.

Co-authored-by: Yann Dirson <yann.dirson@vates.tech>
Signed-off-by: Gaëtan Lehmann <gaetan.lehmann@vates.tech>
Copy link
Contributor

@psafont psafont left a comment

Choose a reason for hiding this comment

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

It makes it a bit more complex to iterate on the CI, previously every push triggered it. Since it can be triggered by opening a PR on the fork, it should be fine?

@ydirson ydirson closed this Sep 8, 2025
@ydirson ydirson reopened this Sep 8, 2025
@ydirson
Copy link
Contributor

ydirson commented Sep 8, 2025

oops, mis-click and no confirmation 😱

@glehmann glehmann merged commit 535aa00 into master Sep 14, 2025
13 checks passed
@glehmann glehmann deleted the gln/ci-run-tests-on-prs-wzkz branch September 14, 2025 18:20
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.

3 participants