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

chore: improve label analysis log if failed to calculate #307

Merged
merged 2 commits into from
Oct 17, 2023

Conversation

giovanni-guidini
Copy link
Contributor

If Codecov fails to calculate label analysis (with an actual error),
the log line is borderline unusable, because it cointains too much text.

So these changes restrict the amount of info shown to include:
head_commit, base_commit and external_id. This info should allow
users to quickly check if the comparison is between the commits they expect,
and give them useful info to pass to the support team, so we can learn what happened.

Unfortunatelly at this points the errors are also useless. THey only state
"failed to calculate".

If Codecov fails to calculate label analysis (with an actual error),
the log line is borderline unusable, because it cointains too much text.

So these changes restrict the amount of info shown to include:
`head_commit`, `base_commit` and `external_id`. This info should allow
users to quickly check if the comparison is between the commits they expect,
and give them useful info to pass to the support team, so we can learn what happened.

Unfortunatelly at this points the errors are also useless. THey only state
"failed to calculate".
@giovanni-guidini giovanni-guidini force-pushed the gio/improve-ats-log-on-failure branch from 3073fb3 to 496d2e5 Compare October 17, 2023 13:48
@codecov
Copy link

codecov bot commented Oct 17, 2023

Codecov Report

Merging #307 (6e9c68e) into main (55ac9d7) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##             main     #307   +/-   ##
=======================================
  Coverage   95.52%   95.52%           
=======================================
  Files          79       79           
  Lines        2726     2726           
=======================================
  Hits         2604     2604           
  Misses        122      122           
Flag Coverage Δ
python3.10 95.64% <ø> (ø)
python3.11 95.63% <ø> (ø)
python3.8 95.64% <ø> (ø)
python3.9 95.64% <ø> (ø)
smart-labels 95.11% <ø> (-0.41%) ⬇️

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

Files Coverage Δ
codecov_cli/commands/labelanalysis.py 96.15% <ø> (ø)

@giovanni-guidini giovanni-guidini merged commit 584c4ba into main Oct 17, 2023
14 checks passed
@giovanni-guidini giovanni-guidini deleted the gio/improve-ats-log-on-failure branch October 17, 2023 15:13
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.

2 participants