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

feat: handle file not found from CLI #1075

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

joseph-sentry
Copy link
Contributor

@joseph-sentry joseph-sentry commented Dec 27, 2024

depends on the migration from: codecov/shared#471 being run

we want to be able to notify the user with a comment when they get a file not found error from the CLI so this is our way of doing that

we create a "placeholder" upload which represents this attempt at an upload that was not able to find a file

this upload goes through the upload flow with a placeholder storage path (because we don't want the user to upload anything here) and when it gets to the TA processor, that step will create an upload error which will get notified like all other errors

Copy link

codecov bot commented Dec 27, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.14%. Comparing base (ddb4755) to head (2a1a03b).
Report is 5 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1075      +/-   ##
==========================================
+ Coverage   96.09%   96.14%   +0.05%     
==========================================
  Files         829      832       +3     
  Lines       19384    19817     +433     
==========================================
+ Hits        18627    19053     +426     
- Misses        757      764       +7     
Flag Coverage Δ
unit 96.01% <100.00%> (+<0.01%) ⬆️
unit-latest-uploader 96.01% <100.00%> (+<0.01%) ⬆️

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.

@codecov-notifications
Copy link

codecov-notifications bot commented Dec 27, 2024

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
Contributor

✅ All tests successful. No failed tests were found.

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

we want to be able to notify the user with a comment when they get a
file not found error from the CLI so this is our way of doing that

we create a "placeholder" upload which represents this attempt at an
upload that was not able to find a file

this upload goes through the upload flow with a placeholder storage path
(because we don't want the user to upload anything here) and when it
gets to the TA processor, that step will create an upload error which
will get notified like all other errors
@joseph-sentry joseph-sentry marked this pull request as ready for review January 17, 2025 19:43
@joseph-sentry joseph-sentry requested a review from a team as a code owner January 17, 2025 19:43
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