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

workflows: Skip jobs instead of workflows #16487

Merged
merged 1 commit into from Jun 10, 2021

Conversation

pchaigno
Copy link
Member

@pchaigno pchaigno commented Jun 9, 2021

In its initial version, commit 3ceb742 (".github: Skip unnecessary docs test") skipped the job instead of the whole workflow, based on changed code paths. After discussion on the pull request, we figured we could save some seconds by skipping the whole workflow instead of the job. Skipping the job requires adding a new job to check the code paths.

However, if we skip the whole workflow, the job status is never reported on GitHub. Since the documentation job is required to merge, that means maintainer's little helper will never mark the pull request as ready to merge.

Thus, this pull request reverts back to skipping the jobs instead of the whole workflows. To that end, we use paths-filter GitHub Action instead of the direct GitHub integration (since the GitHub path filters can only skip the whole workflow).

@pchaigno pchaigno added area/CI Continuous Integration testing issue or flake release-note/ci This PR makes changes to the CI. labels Jun 9, 2021
@pchaigno pchaigno closed this Jun 9, 2021
@pchaigno pchaigno reopened this Jun 9, 2021
@pchaigno pchaigno force-pushed the docs-skip-job-instead-of-workflow branch 2 times, most recently from 6cc6990 to 42c2247 Compare June 9, 2021 17:19
In its initial version, commit 3ceb742 (".github: Skip unnecessary docs
test") skipped the job instead of the whole workflow, based on changed
code paths. After discussion on the pull request [1], we figured we
could save some seconds by skipping the whole workflow instead of the
job. Skipping the job requires adding a new job to check the code paths.

However, if we skip the whole workflow, the job status is never reported
on GitHub. Since the documentation job is required to merge, that means
maintainer's little helper will never mark the pull request as ready to
merge.

Thus, this commit reverts back to skipping the jobs instead of the whole
workflows. To that end, we use paths-filter GitHub Action instead of the
direct GitHub integration (since the GitHub path filters can only skip
the whole workflow).

1 - cilium#16157 (comment)
Signed-off-by: Paul Chaignon <paul@cilium.io>
@pchaigno pchaigno force-pushed the docs-skip-job-instead-of-workflow branch from 42c2247 to d17a2b8 Compare June 9, 2021 21:35
@pchaigno pchaigno changed the title workflows/docs: Skip job instead of workflow workflows: Skip jobs instead of workflows Jun 9, 2021
@pchaigno pchaigno marked this pull request as ready for review June 9, 2021 21:37
@pchaigno pchaigno requested review from a team as code owners June 9, 2021 21:37
@pchaigno pchaigno requested a review from aanm June 9, 2021 21:37
Copy link
Member

@nbusseneau nbusseneau left a comment

Choose a reason for hiding this comment

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

Thanks!

@pchaigno pchaigno added the ready-to-merge This PR has passed all tests and received consensus from code owners to merge. label Jun 10, 2021
@aanm aanm merged commit b08f700 into cilium:master Jun 10, 2021
@pchaigno pchaigno deleted the docs-skip-job-instead-of-workflow branch June 11, 2021 08:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/CI Continuous Integration testing issue or flake ready-to-merge This PR has passed all tests and received consensus from code owners to merge. release-note/ci This PR makes changes to the CI.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants