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

Fix CI for upload artifact breaking change #729

Merged
merged 4 commits into from
Sep 3, 2024

Conversation

amstilp
Copy link
Contributor

@amstilp amstilp commented Sep 3, 2024

  • pin all actions to their latest version, so updates can be handled by dependabot
  • fix coverage steps so that it works with the latest version of github actions' upload-artifact (which includes a breaking change to not upload hidden files)

The latest version of the upload-artifact action added a breaking
change where hidden files are not uploaded by default. Because
the coverage step was creating a hidden file (i.e., prefixed with a
dot), the file was not uploaded and the coverage job would fail
because it couldn't download the coverage file artifacts. Fix this
by:
1. making upload-artifact fail if no files were found, instead of warn
2. creating coverage files that are not hidden
That way, version updates can be made by dependabot in pull requests,
and we can fix whatever needs to be fixed in those pull requests
instead of in whatever branch we happen to be working in.
Copy link

codecov bot commented Sep 3, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.01%. Comparing base (2feaa88) to head (18a236f).
Report is 5 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #729   +/-   ##
=======================================
  Coverage   99.01%   99.01%           
=======================================
  Files         325      325           
  Lines       30708    30708           
=======================================
  Hits        30406    30406           
  Misses        302      302           

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

@amstilp amstilp marked this pull request as ready for review September 3, 2024 23:08
@amstilp amstilp merged commit 7935be7 into main Sep 3, 2024
10 checks passed
@amstilp amstilp deleted the maint/fix-ci-for-upload-artifact-breaking-change branch December 2, 2024 21:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant