Skip to content
This repository has been archived by the owner on Jan 10, 2023. It is now read-only.

fail if release fails. fixes #446 #447

Merged
merged 1 commit into from
Jul 15, 2021

Conversation

matthewberryman
Copy link
Contributor

Purpose

Your other packages e.g. https://github.com/codecov/codecov-circleci-orb rely on the assumption that published versions are versioned in github c.f. codecov/codecov-circleci-orb#92 . However if a new version of codecov is added without the version string bumped, then you will publish the bash script but not version in github because not all errors in the version.sh script (without this change) are caught and passed out to CircleCI.

Notable Changes

Because of the way this change then interacts with the existing .circleci/config.yml script, errors on versioning will now be caught and prevent publishing if there is a problem, preventing this mismatch in future.

This will rely on the version string in the codecov script being updated when you want to release (which is required for changes to the bash script), and noting I haven't done this as I wanted to keep this PR for just the issue at hand and didn't want to force a release on merge.

Tests and Risks?

It adds a test in your CI to ensure that all parts of version.sh run.

Update the SHA hash files

n/a - a change to your CI script

@codecov
Copy link

codecov bot commented Jul 10, 2021

Codecov Report

Merging #447 (3355447) into master (c3ccd59) will not change coverage.
The diff coverage is 0.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #447   +/-   ##
=======================================
  Coverage   45.82%   45.82%           
=======================================
  Files          20       20           
  Lines        2859     2859           
=======================================
  Hits         1310     1310           
  Misses       1549     1549           
Flag Coverage Δ
test 39.22% <0.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
scripts/version.sh 0.00% <0.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c3ccd59...3355447. Read the comment docs.

@thomasrockhu
Copy link
Contributor

Thanks @matthewberryman!

@thomasrockhu thomasrockhu merged commit 98fd3d7 into codecov:master Jul 15, 2021
thomasrockhu pushed a commit that referenced this pull request Jul 20, 2021
thomasrockhu added a commit that referenced this pull request Jul 21, 2021
* Pull in `1.0.4` into `master` (#448)

* Releasing new version of the uploader (#445)

* Fix go regex (#436)

* Send Upload Token via Header (#439)

* Send token via HTTP header vs. URL param

* Revert testing change

* Update script to use token in header

* update SHASUM

* maybe fix tests?

* Undo accidental deletion

* More test fixes

* fix build

Co-authored-by: Tom Hu <thomasrockhu@users.noreply.github.com>
Co-authored-by: Andrew Jaeger <mrjaeger00@gmail.com>

* Update to 1.0.4

Co-authored-by: Subhi Beidas <subhibeidas@gmail.com>
Co-authored-by: Andrew Jaeger <mrjaeger00@gmail.com>

* 1.0.5 - Fix token uploads for self-hosted (#454)

* fix: Prevent deploys if tag is not unique (#452)

* docs: Add deprecation warning (#451)

* fix: add query support for token (self-hosted) (#453)

* fix: add query support for token (self-hosted)

* fix: mask the token in output

Co-authored-by: Tom Hu <thomasrockhu@users.noreply.github.com>

* chore: bump version

* chore: trigger new deploy with tag 1.0.5

* fail if release fails (#447)

* fix: Do not set PR on closed GitHub PRs (#456)

* fix: Update GitHub Actions server URL (#457)

* fix: Update GitHub Actions server URL

* fix: Update tests

* patch: bump to 1.0.6 (#458)

Co-authored-by: Subhi Beidas <subhibeidas@gmail.com>
Co-authored-by: Andrew Jaeger <mrjaeger00@gmail.com>
Co-authored-by: Joe Becher <71270647+drazisil-codecov@users.noreply.github.com>
Co-authored-by: Joe Becher <joe@codecov.io>
Co-authored-by: Matthew Berryman <matthew@acrossthecloud.net>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants