-
Notifications
You must be signed in to change notification settings - Fork 10
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: Add processing upload comment #140
Conversation
|
||
def _create_processing_upload_message(self): | ||
return [ | ||
"We're currently processing your upload. This comment will be updated when the results are available.", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Copy TBD here
Codecov Report
@@ Coverage Diff @@
## main #140 +/- ##
=======================================
Coverage 98.35% 98.35%
=======================================
Files 374 374
Lines 27947 27975 +28
=======================================
+ Hits 27486 27514 +28
Misses 461 461
Flags with carried forward coverage won't be shown. Click here to find out more.
This change has been scanned for critical changes. Learn more |
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #140 +/- ##
=======================================
Coverage 98.38% 98.39%
=======================================
Files 348 348
Lines 27451 27479 +28
=======================================
+ Hits 27009 27037 +28
Misses 442 442
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Codecov Report
@@ Coverage Diff @@
## main #140 +/- ##
=======================================
Coverage 98.38% 98.39%
=======================================
Files 348 348
Lines 27451 27479 +28
=======================================
+ Hits 27009 27037 +28
Misses 442 442
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Hmm, I was testing this a little more and I don't think this architecture will really work. Say the early notify task gets stuck behind a slow task and the actual report notify happens first. Then this "processing" notification could happen 2nd and leave the PR comment in a bad state. 🤔 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. One minor question, are we sure that this comment will get updated when the processing finishes? so we won't get 2 separate comments. It would be worth to check it with different behaviors of the comment, "default" and "new" for example
#140 (comment) maybe we can chain the notify task after the upload task just like we chain all 3 upload tasks together? |
Great idea - thank you! I suppose this could slightly delay the processing (since we wait for the notify to finish) but I think we typically delay a little bit anyway in order to wait for the coverage data to be uploaded. |
@dana-yaish I implemented the chaining in codecov/codecov-api#179 Seems to be working nicely now. Thanks. |
Codecov Report
@@ Coverage Diff @@
## main #140 +/- ##
=======================================
Coverage 98.38% 98.39%
=======================================
Files 348 348
Lines 27451 27479 +28
=======================================
+ Hits 27009 27037 +28
Misses 442 442
Flags with carried forward coverage won't be shown. Click here to find out more.
|
codecov/engineering-team#553
We'd like to be able to make an early PR comment (as soon as we receive an upload but before we've processed it) indicating that we've received the upload but it is still processing. I'm reusing some of the "empty upload" functionality for this since it's similar in nature. The API directly enqueues a notify task for empty uploads and I'm thinking we do the same for this - the API will enqueue both a notify task with
empty_upload="processing"
as well as a normal upload task (which later triggers another notify w/ report results).Here's the corresponding PR for
codecov-api
that enqueues this early notify task: codecov/codecov-api#179