-
Notifications
You must be signed in to change notification settings - Fork 175
fix(ci): avoid create comment workflows failing when required worfklows did not run #2121
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
Conversation
…ting CI does not run. Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Signed-off-by: Federico Di Pierro <nierro92@gmail.com>
Wip while i test it. |
return artifact.name == "pr-kernel-testing" | ||
})[0]; | ||
}); | ||
if (matchArtifacts == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No matching artifacts will be found when required workflows did not actually run (ie: drivers_ci got skipped)
@@ -36,7 +40,10 @@ jobs: | |||
fs.writeFileSync('${{github.workspace}}/pr.zip', Buffer.from(download.data)); | |||
|
|||
- name: 'Unpack artifact' | |||
run: unzip pr.zip | |||
run: | |||
if [ -f pr.zip ]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Check if pr.zip
was downloaded by previous step.
@@ -45,6 +52,9 @@ jobs: | |||
# Taken from https://github.com/actions/github-script/blob/main/.github/workflows/pull-request-test.yml | |||
script: | | |||
var fs = require('fs'); | |||
if (!fs.existsSync('./NR')) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If there is no NR
file, then no artifact was downloaded. Leave.
CI failed because it is still using master workflow unfortunately: https://github.com/falcosecurity/libs/actions/runs/11385651715/job/31675996706 We will need to test this by merging :D |
/milestone 0.19.0 |
Perf diff from master - unit tests
Heap diff from master - unit tests
Heap diff from master - scap file
Benchmarks diff from master
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #2121 +/- ##
=======================================
Coverage 73.69% 73.69%
=======================================
Files 253 253
Lines 31915 31915
Branches 5620 5625 +5
=======================================
Hits 23521 23521
- Misses 8373 8386 +13
+ Partials 21 8 -13
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
/approve
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Andreagit97, FedeDP The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
What type of PR is this?
/kind cleanup
Any specific area of the project related to this PR?
/area CI
Does this PR require a change in the driver versions?
What this PR does / why we need it:
Avoids all the failings like: https://github.com/falcosecurity/libs/actions/workflows/create-comment-kernel-testing.yml
Which issue(s) this PR fixes:
Fixes #
Special notes for your reviewer:
Does this PR introduce a user-facing change?: