Skip to content

Conversation

@zimeg
Copy link
Member

@zimeg zimeg commented Apr 4, 2025

Summary

This PR adds the set -e bash command to "exit immediately if a pipeline ... returns a non-zero status".

Fixes an issue where uploading missing files as an asset to a release was attempted, but nothing existed and blank bytes were uploaded instead! Erroring seems best in these cases.

Notes

The set -o option is included to for a bit more insight into the options being used 🤖 ✨

Requirements

@zimeg zimeg added bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented semver:patch Use on pull requests to describe the release version increment labels Apr 4, 2025
@zimeg zimeg added this to the Next Release milestone Apr 4, 2025
@zimeg zimeg self-assigned this Apr 4, 2025
@zimeg zimeg requested a review from a team as a code owner April 4, 2025 19:20
@codecov
Copy link

codecov bot commented Apr 4, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 62.78%. Comparing base (ae5aa34) to head (050f8c1).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #11      +/-   ##
==========================================
- Coverage   62.79%   62.78%   -0.02%     
==========================================
  Files         210      210              
  Lines       22053    22053              
==========================================
- Hits        13849    13845       -4     
+ Misses       7128     7127       -1     
- Partials     1076     1081       +5     

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Copy link
Member

@mwbrooks mwbrooks left a comment

Choose a reason for hiding this comment

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

✅ LGTM! This is a great check that will help prevent corrupt builds from passing 🔒

@mwbrooks mwbrooks added the code health M-T: Test improvements and anything that improves code health label Apr 4, 2025
@zimeg zimeg removed the bug M-T: confirmed bug report. Issues are confirmed when the reproduction steps are documented label Apr 4, 2025
@zimeg
Copy link
Member Author

zimeg commented Apr 4, 2025

@mwbrooks Thanks for confirming the suspicions and hopes of this PR 🙏 ✨

And also for using a more correct label! I think bug might be best for problems facing developers and since this is an internal fix - ci nonetheless - I think codehealth is a great choice for this 🏥 ✨

@mwbrooks
Copy link
Member

mwbrooks commented Apr 4, 2025

And also for using a more correct label! I think bug might be best for problems facing developers and since this is an internal fix - ci nonetheless - I think codehealth is a great choice for this 🏥 ✨

I was actually typing up a similar suggestion. bug is a correct label, but it makes us think about a user-facing bug. We may want to have a build or ci/cd or devops or something label!

@zimeg
Copy link
Member Author

zimeg commented Apr 4, 2025

@mwbrooks I'm so open to the build label! 🏷️

That's a nice distinction from "test" and "refactor" changes covered with codehealth and "build" covers all things related to turning code into compilation 🤖

@zimeg zimeg added build M-T: Changes to compilation and CI processes and removed code health M-T: Test improvements and anything that improves code health labels Apr 4, 2025
@zimeg
Copy link
Member Author

zimeg commented Apr 4, 2025

@mwbrooks I'm quite glad we caught some label strangeness in this PR!

I've made updates to use build where dependencies or CI is changed and I'm hoping we can now use the "code health" label for tests and refactors instead 🎉

Thanks for a great review as always. I'll merge this now for more sureness in these steps for our next release.

@zimeg zimeg merged commit 811c6a0 into main Apr 4, 2025
6 checks passed
@zimeg zimeg deleted the zimeg-ci-archive-exit branch April 4, 2025 19:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build M-T: Changes to compilation and CI processes semver:patch Use on pull requests to describe the release version increment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants