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: fix coveralls workflow step #21

Merged
merged 1 commit into from
Jul 2, 2024
Merged

ci: fix coveralls workflow step #21

merged 1 commit into from
Jul 2, 2024

Conversation

sripwoud
Copy link
Member

@sripwoud sripwoud commented Jul 2, 2024

Closes #16
Culprit was running the coveralls action in a separate job. Indeed, job contexts being isolated, the coveralls context didn't have any coverage data. And the default behavior of the coveralls action is to report a failure in that case.
The fix consists in running coverallsapp/github-action in parallel in the tests job.

Note

I am aware of the stuck test ci checks:

image

This is due to a GH action limitation: ci required checks defined in rulesets/branch protection rules are always required, no matter if the corresponding job was skipped or not. And our workflow does conditionally skip jobs...
There seems to be some workarounds described here that I will try later.
In the meantime please ignore these stuck ci checks please.

@sripwoud sripwoud added bug 🐛 Something isn't working devops 🔧 Operations management and dev tools labels Jul 2, 2024
@sripwoud sripwoud self-assigned this Jul 2, 2024
Comment on lines +119 to +120
parallel: true
flag-name: run ${{ join(matrix.*, '-') }}
Copy link
Member Author

Choose a reason for hiding this comment

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

inputs usage described here

@sripwoud sripwoud force-pushed the fix/coveralls branch 4 times, most recently from 125f5fa to 44e9d2e Compare July 2, 2024 15:46
@sripwoud sripwoud marked this pull request as ready for review July 2, 2024 15:46
@sripwoud sripwoud requested a review from cedoor as a code owner July 2, 2024 15:46
Copy link
Member

@cedoor cedoor left a comment

Choose a reason for hiding this comment

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

LGTM!

@sripwoud sripwoud merged commit 2156bde into main Jul 2, 2024
14 checks passed
@sripwoud sripwoud deleted the fix/coveralls branch July 2, 2024 15:56
@sripwoud
Copy link
Member Author

sripwoud commented Jul 2, 2024

captured new issue #22

@sripwoud sripwoud mentioned this pull request Jul 2, 2024
0xjei pushed a commit that referenced this pull request Jul 3, 2024
Culprit was running the coveralls action in a separate job. Indeed, job
contexts being isolated, the [coveralls context didn't have any coverage
data](https://github.com/privacy-scaling-explorations/zk-kit.solidity/actions/runs/9762627031/job/26946626860#step:2:49).
And the default behavior of the coveralls action is to report a failure
in that case.
The fix consists in running `coverallsapp/github-action` in parallel in
the `tests` job.

## Note
I am aware of the stuck test ci checks:


![image](https://github.com/privacy-scaling-explorations/zk-kit.solidity/assets/38692952/9b441a2f-abd1-44ca-8219-f2db572f19d6)

This is due to a GH action limitation: ci required checks defined in
rulesets/branch protection rules are always required, no matter if the
corresponding job was skipped or not. And our workflow does
conditionally skip jobs...
There seems to be some workarounds described
[here](https://github.com/orgs/community/discussions/13690) that I will
try later.
In the meantime please ignore these stuck ci checks please.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working devops 🔧 Operations management and dev tools
Projects
None yet
Development

Successfully merging this pull request may close these issues.

fix coveralls ci bug
2 participants