Skip to content

[CI] Change trigger events for post commit task #9950

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 16, 2023

Conversation

aelovikov-intel
Copy link
Contributor

@aelovikov-intel aelovikov-intel commented Jun 16, 2023

  1. Don't run in pre-commit to enhance security
  2. Run automatically when on a push to a branch starting with
    "test-devops-pr" to enable testing for CI-related changes

1) Don't run in pre-commit to enhance security
2) Run automatically when on a push to a branch starting with
   "test-devops/pr" to enable testing for CI-related changes
@aelovikov-intel aelovikov-intel requested a review from a team as a code owner June 16, 2023 19:42
Copy link
Contributor

@cperkinsintel cperkinsintel left a comment

Choose a reason for hiding this comment

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

LGTM

@aelovikov-intel aelovikov-intel merged commit 6c1125f into intel:sycl Jun 16, 2023
@aelovikov-intel aelovikov-intel deleted the post-commit-trigger branch June 16, 2023 20:06
aelovikov-intel added a commit that referenced this pull request Jun 20, 2023
In #9950 I envisioned a setup when there will be a dedicated devops
pre-commit task that would create fake branch/PR in the repository to
verify changes affecting CI. I later realized that we can just push the
source branch for such a PR directly to origin and use that for testing.

As such, rename which branch is allowed to trigger post-commit and allow
the same for pre-commit.
aelovikov-intel added a commit that referenced this pull request Jun 21, 2023
In #9950 I envisioned a setup when there will be a dedicated devops
pre-commit task that would create fake branch/PR in the repository to
verify changes affecting CI. I later realized that we can just push the
source branch for such a PR directly to origin and use that for testing.

As such, rename which branch is allowed to trigger post-commit and allow
the same for pre-commit. Future changes are expected to be done like
this:
  - create branch `sycl-devops-pr/<name>` in *intel*/llvm repo, it will
    run post-commit testing.
  - create PR out of that branch
  - create an extra draft PR with a target branch set to the same
    `sycl-devops-pr/<name>`, that will run pre-commit testing.
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.

2 participants