Skip to content

CI: Fix Codecov #14

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

Merged
merged 8 commits into from
Feb 5, 2024
Merged

CI: Fix Codecov #14

merged 8 commits into from
Feb 5, 2024

Conversation

oscardssmith
Copy link
Member

No description provided.

Copy link
Member

@devmotion devmotion left a comment

Choose a reason for hiding this comment

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

The workflow config looks good. Based on the CI logs (https://github.com/JuliaMath/IntegerMathUtils.jl/actions/runs/7786813263/job/21232481397?pr=14#step:8:31) I assume you haven't added the token as a Github secret yet?

@oscardssmith
Copy link
Member Author

That is correct. Do I want to add them to actions/repository secrets?

@oscardssmith oscardssmith reopened this Feb 5, 2024
@devmotion
Copy link
Member

devmotion commented Feb 5, 2024

Yes, as a new repository secret: https://docs.codecov.com/docs/adding-the-codecov-token#github-actions (these instructions use the token as an environment variable in CI, but one can just directly add it as token: https://github.com/codecov/codecov-action?tab=readme-ov-file#usage)

@oscardssmith oscardssmith reopened this Feb 5, 2024
@DilumAluthge
Copy link
Member

I personally would recommend that you keep fail_ci_if_error: true.

That way, if there is a problem with Codecov, you get notified immediately.

@oscardssmith
Copy link
Member Author

yeah. I was trying to delete it to see if it would fix things. I'm very confused as to why this doesn't work but JuliaDSP/DSP.jl#525 does. I'd be interested if you know what the difference is.

@staticfloat staticfloat closed this Feb 5, 2024
@staticfloat staticfloat reopened this Feb 5, 2024
@DilumAluthge
Copy link
Member

In order to get coverage for Julia packages, we rely on Codecov's support for lcov.info files. Maybe v4 of their action broke support for lcov.info files?

For debugging, let's find all lcov.info files, and maybe head them to make sure they look correct.

@DilumAluthge
Copy link
Member

From the logs:

error - 2024-02-05 20:32:55,223 -- Commit creating failed: {"error": "Server Error (500)"}

Is this a 500 error from the Codecov server or from the GitHub server?

Either way, 500 implies the problem is on the server's side, not our side.

@staticfloat
Copy link

The macOS build is successfully uploading.

Copy link

codecov bot commented Feb 5, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

❗ No coverage uploaded for pull request base (main@c4c52ee). Click here to learn what that means.

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #14   +/-   ##
=======================================
  Coverage        ?   89.06%           
=======================================
  Files           ?        1           
  Lines           ?       64           
  Branches        ?        0           
=======================================
  Hits            ?       57           
  Misses          ?        7           
  Partials        ?        0           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@DilumAluthge DilumAluthge changed the title Hopefully fix codecov. CI: Fix Codecov Feb 5, 2024
@DilumAluthge
Copy link
Member

It was probably a transient server-side error on the Codecov servers?

@DilumAluthge
Copy link
Member

@devmotion Since we're already working on the CI config here, I wonder if this is a good opportunity to do the following:

  1. Add a finalize job.
  2. Set up GitHub Merge Queue on this repo.

@DilumAluthge
Copy link
Member

(I can enable merge queue in the GitHub repo settings, when we are ready.)

@oscardssmith
Copy link
Member Author

this is ready to merge, right?

@DilumAluthge DilumAluthge merged commit c212b55 into main Feb 5, 2024
@DilumAluthge DilumAluthge deleted the os/fix-codecov branch February 5, 2024 21:25
@oscardssmith
Copy link
Member Author

thanks for the help!

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.

4 participants