Skip to content

Conversation

joseph-sentry
Copy link
Contributor

No description provided.

exit_if_error "Could not install via pypi."
exit
fi
CODECOV_COMMAND="codecovcli"

CODECOV_COMMAND="${CODECOV_CLI_TYPE}cli"
Copy link
Collaborator

Choose a reason for hiding this comment

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

can we consider having these things be the same name (e.g. pip install codecov-cli and codecov-cli be the command?

probably out of scope, but wanted to bring this up

Choose a reason for hiding this comment

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

Also note that the executable name we settled on for prevent is sentry-prevent-cli

[[ $CODECOV_OS == "windows" ]] && CODECOV_FILENAME+=".exe"
CODECOV_COMMAND="./$CODECOV_FILENAME"
CODECOV_FILENAME="${CODECOV_CLI_TYPE}"
[[ $CODECOV_OS == "windows" ]] && codecov_filename+=".exe"
Copy link
Collaborator

Choose a reason for hiding this comment

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

please keep these capitalized or the orb will freak out

@@ -13,3 +13,10 @@ say " _____ _
\\_____\\___/ \\__,_|\\___|\\___\\___/ \\_/
$r Wrapper-$CODECOV_WRAPPER_VERSION$x
"

CODECOV_CLI_TYPE=${CODECOV_CLI_TYPE:-"codecov"}
Copy link
Collaborator

Choose a reason for hiding this comment

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

can move this higher up in the chain before the header is printed

dist/codecov.sh Outdated
@@ -49,6 +49,11 @@ say " _____ _
\\_____\\___/ \\__,_|\\___|\\___\\___/ \\_/
$r Wrapper-$CODECOV_WRAPPER_VERSION$x
"
CODECOV_CLI_TYPE=${CODECOV_CLI_TYPE:-"codecov"}
if [[ "$CODECOV_CLI_TYPE" != "codecov" && "$CODECOV_CLI_TYPE" != "prevent" ]]; then
echo "Invalid CODECOV_CLI_TYPE: '$CODECOV_CLI_TYPE'. Must be 'codecov' or 'prevent'"

Choose a reason for hiding this comment

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

see my response down below. prevent won't work I don't think?

Copy link

@spalmurray spalmurray left a comment

Choose a reason for hiding this comment

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

couple comments

@@ -4,6 +4,7 @@ CODECOV_WRAPPER_VERSION="0.2.6"
CODECOV_VERSION="${CODECOV_VERSION:-latest}"
CODECOV_FAIL_ON_ERROR="${CODECOV_FAIL_ON_ERROR:-false}"
CODECOV_RUN_CMD="${CODECOV_RUN_CMD:-upload-coverage}"
CODECOV_CLI_TYPE=${CODECOV_CLI_TYPE:-"codecov-cli"}

Choose a reason for hiding this comment

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

TIL about :- huge

Choose a reason for hiding this comment

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

:-P

Copy link

codecov bot commented May 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.14%. Comparing base (9fa0f80) to head (35faf6a).

Additional details and impacted files
@@           Coverage Diff           @@
##             main      #58   +/-   ##
=======================================
  Coverage   97.14%   97.14%           
=======================================
  Files           2        2           
  Lines          35       35           
=======================================
  Hits           34       34           
  Misses          1        1           
Flag Coverage Δ
flag1 97.14% <ø> (ø)
flag2 97.14% <ø> (ø)

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

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

@joseph-sentry joseph-sentry merged commit ddd9a51 into main May 15, 2025
6 checks passed
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.

3 participants