Skip to content

fix: configurable rebranding#7

Merged
joseph-sentry merged 6 commits into
mainfrom
joseph/branding
Jun 25, 2025
Merged

fix: configurable rebranding#7
joseph-sentry merged 6 commits into
mainfrom
joseph/branding

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

  • accept unbranded --yml-path in the new cli
  • add configurable rebranding for options expecting env vars
    • make the branding configurable through the click context user data obj
    • add the BrandedOption and CodecovBrandedOption classes for having env vars for the options follow the branding passed in the context
  • also makes the codecov-cli source in the prevent-cli pyproject editable

@codecov
Copy link
Copy Markdown

codecov Bot commented May 2, 2025

❌ 10 Tests Failed:

Tests completed Failed Passed Skipped
6891 10 6881 9
View the top 3 failed test(s) by shortest run time
api.temp.calculator.test_calculator::test_divide
Stack Traces | 0.001s run time
def
                test_divide():
                > assert Calculator.divide(1, 2) == 0.5
                E assert 1.0 == 0.5
                E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
                E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
                .../temp/calculator/test_calculator.py:30: AssertionError
api.temp.calculator.test_calculator::test_divide
Stack Traces | 0.001s run time
def
                test_divide():
                > assert Calculator.divide(1, 2) == 0.5
                E assert 1.0 == 0.5
                E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
                E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
                .../temp/calculator/test_calculator.py:30: AssertionError
api.temp.calculator.test_calculator::test_divide
Stack Traces | 0.001s run time
def
                test_divide():
                > assert Calculator.divide(1, 2) == 0.5
                E assert 1.0 == 0.5
                E + where 1.0 = <function Calculator.divide at 0x104c9eb90>(1, 2)
                E + where <function Calculator.divide at 0x104c9eb90> = Calculator.divide
                .../temp/calculator/test_calculator.py:30: AssertionError

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Comment thread prevent-cli/pyproject.toml Outdated
authors = [
{ name = "joseph-sentry", email = "joseph.sawaya@sentry.io" }
]
authors = [{ name = "joseph-sentry", email = "joseph.sawaya@sentry.io" }]
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I'd probably add GitHub handle if it allows for that, but also, we may want to make this a team email too

Comment thread codecov-cli/codecov_cli/fallbacks.py
Comment thread prevent-cli/src/prevent_cli/main.py Outdated
ctx.obj["codecov_yaml"] = load_cli_config(codecov_yml_path)
ctx.obj["codecov_yaml"] = load_cli_config(yml_path)
if ctx.obj["codecov_yaml"] is None:
logger.debug("No codecov_yaml found")
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

branding on the log ling here

Comment thread prevent-cli/src/prevent_cli/main.py
- accept unbranded --yml-path in the new cli
- add configurable rebranding for options expecting env vars
    - make the branding configurable through the click context user
      data obj
    - add the BrandedOption and CodecovBrandedOption classes for
      having env vars for the options follow the branding passed in
      the context
- also makes the codecov-cli source in the prevent-cli pyproject
  editable
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

wait so is it yml-path for preventcli and codecov-yml-path for codecovcli?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

JW why the commands list for codecovcli didn't change

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

indeed it is

@joseph-sentry joseph-sentry merged commit 00e29e5 into main Jun 25, 2025
26 checks passed
@joseph-sentry joseph-sentry deleted the joseph/branding branch June 25, 2025 14:29
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