Skip to content
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

ci: move twister to be pull_request base, integrate compliance #82457

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

nashif
Copy link
Member

@nashif nashif commented Dec 3, 2024

  • ci: twister: convert to pull_request
  • ci: compliance: convert compliance to workflow_call

fabiobaltieri
fabiobaltieri previously approved these changes Dec 3, 2024
@pdgendt
Copy link
Collaborator

pdgendt commented Dec 3, 2024

Is this normal?

image

@fabiobaltieri
Copy link
Member

Is this normal?

image

it's not, give it a force push.

@nashif
Copy link
Member Author

nashif commented Dec 3, 2024

Is this normal?

yes, the compliance workflow is gone now, the status of the twister workflow (we probably need to rename this to something else now) will be used for PRs, so we need to remove this from GH settings.

@nashif
Copy link
Member Author

nashif commented Dec 3, 2024

@fabiobaltieri
Copy link
Member

yes, the compliance workflow is gone now, the status of the twister workflow (we probably need to rename this to something else now) will be used for PRs, so we need to remove this from GH settings.

Oh so it's not going to show as its own workflow anymore, but then it's not going to retrigger on PR message edits right?

@@ -1,15 +1,20 @@
name: Compliance Checks

on:
pull_request:
types:
- edited
Copy link
Member

Choose a reason for hiding this comment

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

I think this is going to break the "empty PR message" below, the check would fail and only rerun on push. It should probably be moved on a separate workflow.

Copy link
Member Author

Choose a reason for hiding this comment

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

yeah i know and I am aware of that. I am thinking of moving this type of checks to somewhere else.

Copy link
Member Author

Choose a reason for hiding this comment

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

@fabiobaltieri should be "fixed" now

@fabiobaltieri fabiobaltieri dismissed their stale review December 3, 2024 22:12

new comment about the empty message check

Convert twister workflow to use pull_request.

Signed-off-by: Anas Nashif <[email protected]>
Add compliance to twister workflow as a the first step. If compliance
fials, no twister will run.

Signed-off-by: Anas Nashif <[email protected]>
Move PR body check to a workflow that monitors editing of PRs.
Avoids rerunnin compliance check and other heavy weights workflows on
just an edit of the PR body.

Signed-off-by: Anas Nashif <[email protected]>
Add more functionality to the workflow, it is not only about not-merging
anymore.

Signed-off-by: Anas Nashif <[email protected]>
@nashif
Copy link
Member Author

nashif commented Dec 3, 2024

huh, it actually works here in the same PR, I did not expect that. Nice

https://github.com/zephyrproject-rtos/zephyr/actions/runs/12149516128/job/33880348191?pr=82457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants