Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## develop #183 +/- ##
========================================
Coverage 64.91% 64.91%
========================================
Files 1107 1107
Lines 56489 56489
Branches 4247 4247
========================================
Hits 36669 36669
Misses 19820 19820 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Private downstream CI failed. |
|
Private downstream CI failed. |
pgeier
left a comment
There was a problem hiding this comment.
that's what we have in other downstreams as well.
Just started to wonder about the reason for having success() || failure() ... seems to always happen, or are there other states like skipped() ?
I think it's cancelled. all our repos have it outside the "${{" but not sure which form is correct. or maybe we need |
|
Private downstream CI succeeded. |
1 similar comment
|
Private downstream CI succeeded. |
Ozaq
left a comment
There was a problem hiding this comment.
The change is not correct as far as I can see:
inside the conditional you can either use literals or expressions not mixed.
|
@mcakircali Do you want to pick this up again or should I close it? |
can you attach a reference for that statement? also, have you looked at our other repos and compare? I believe there was an issue in the past that lead to fix (see our other repos), it's best to ask Jakub or Dusan to review it. |
|
@mcakircali If you look at: https://docs.github.com/en/actions/reference/workflow-syntax-for-github-actions#jobsjob_idif It is stated that See the respective discussion here: https://github.com/orgs/community/discussions/27152
|
recmanj
left a comment
There was a problem hiding this comment.
While this works I can understand it might be confusing. It is technically possible to omit ${{ }} syntax but mixing it would not be my recommendation - it is not explicitly mentioned in GitHub docs but it would make it consistent.
The mixed syntax is currently being used in multiple ECMWF repos so I suggest to update those too along with the documentation.
.github/workflows/ci.yml
Outdated
| name: private-downstream-ci | ||
| needs: [downstream-ci] | ||
| if: ${{ (success() || failure()) && !github.event.pull_request.head.repo.fork && (github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }} | ||
| if: (success() || failure()) && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} |
There was a problem hiding this comment.
| if: (success() || failure()) && ${{ !github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci' }} | |
| if: ${{ (success() || failure()) && (!github.event.pull_request.head.repo.fork && github.event.action != 'labeled' || github.event.label.name == 'approved-for-ci') }} |
There was a problem hiding this comment.
This is just undoing the change from the PR, isn't it?
There was a problem hiding this comment.
Not exactly. Previously, if PR was coming from a fork, the expression would be evaluated as false every time. The change allows PRs from fork to run the CI if it's labeled as approved-for-ci.
as I mentioned in previous comment, previously we did not have the mixed syntax in our repos. The mixed syntax came as a fix from Dusan (I believe), hence I created this PR in eckit because it was not same as other repos. I committed your suggestion to this PR (which also fixes the scope) and if it works, we can merge this and align other repos too, so that they are also not mixed syntax. |
de7b95f to
59a51fc
Compare
|
This does not yet address the issue fully. The private and non-private downstream jobs are not running for PRs from forks. Looking at the other conditions: |
Yes you are right, the fix should be applied to dowstream-ci too (as correctly presented in docs). eckit/.github/workflows/ci.yml Line 26 in 59a51fc eckit/.github/workflows/ci.yml Line 57 in 59a51fc ->
|
|
Private downstream CI failed. |
Incorrect conditional prevented downstream builds for PRs from forks even if the 'approved-for-ci' label was present. Co-authored-by: Jakub Recman <jakub@oxidian.com>
f619745 to
addcd8b
Compare

No description provided.