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

Failed check and status messaging in comment, part III #1030

Merged
merged 2 commits into from
Jan 28, 2025
Merged

Conversation

nora-codecov
Copy link
Contributor

This is the same as the last one (#1023) but for project rather than patch status and checks.

when user has:
project checks notifier OR project status notifier
AND
comment notifier
AND
has defined a target in their codecov yml
AND
the project check/status fails
THEN
add some helper text to the comment notifier to point out that the check/status failed and that they can change their target.

codecov/engineering-team#1605

@nora-codecov nora-codecov requested a review from a team January 24, 2025 01:42
Copy link

codecov bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 97.48%. Comparing base (e3229e5) to head (670e285).
Report is 7 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1030      +/-   ##
==========================================
- Coverage   97.71%   97.48%   -0.23%     
==========================================
  Files         458      459       +1     
  Lines       37138    37303     +165     
==========================================
+ Hits        36289    36365      +76     
- Misses        849      938      +89     
Flag Coverage Δ
integration 42.51% <43.66%> (-0.04%) ⬇️
unit 90.11% <100.00%> (-0.19%) ⬇️

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.

⚠️ Impact Analysis from Codecov is deprecated and will be sunset on Jan 31 2025. See more

@codecov-notifications
Copy link

codecov-notifications bot commented Jan 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

Copy link

✅ All tests successful. No failed tests were found.

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

Copy link
Contributor

@giovanni-guidini giovanni-guidini left a comment

Choose a reason for hiding this comment

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

LGTM, just asking wanted to make sure the helper text map is up to date before approving.

I didn't see it in the diff 😅

# included_helper_text[CUSTOM_TARGET_TEXT] = helper_text
return state, message
if state == StatusState.failure.value:
helper_text = HELPER_TEXT_MAP[CUSTOM_TARGET_TEXT_PROJECT_KEY].format(
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like this HELPER_TEXT_MAP (see here) points both the patch and project keys to the same helper text, and "patch" is hard coded in that text

Copy link
Contributor Author

Choose a reason for hiding this comment

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

ha! good catch - thank you. fixing.

@nora-codecov nora-codecov requested a review from a team January 25, 2025 00:28
@nora-codecov nora-codecov added this pull request to the merge queue Jan 28, 2025
Merged via the queue into main with commit 0ea9276 Jan 28, 2025
16 of 27 checks passed
@nora-codecov nora-codecov deleted the nora/1605 branch January 28, 2025 19:29
Copy link

sentry-io bot commented Jan 28, 2025

Suspect Issues

This pull request was deployed and Sentry observed the following issues:

  • ‼️ IndexError: list index out of range app.tasks.notify.Notify View Issue
  • ‼️ ValueError: Unsupported plan app.tasks.notify.Notify View Issue

Did you find this useful? React with a 👍 or 👎

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