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

fix: pass impl_type arg to TA tasks instead of new_impl #1122

Draft
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

joseph-sentry
Copy link
Contributor

impl_type is a literal that can be "old" | "new" | "both"

old: in the case of old it will keep running the it has been
both: it will run the timescale implementation of the TA proc
task but it won't be updating the upload state or deleting/rewriting
the raw upload
new: it will only run the new timescale implementation and it will
update the upload state and rewrite/delete the raw upload

relies on shared changes from:
codecov/shared#508

this implements the following TA functionality using data from
Timescale:
- PR comment summary
- PR comment failure details
- PR flake set
- Flake detection relevant testruns
- Flake detection relevant flakes
- All branches testrun summary
- Main branches testrun summary
- Feature branch testrun summary

Also moves the flag id calculation to a new file
impl_type is a literal that can be "old" | "new" | "both"

old: in the case of old it will keep running the it has been
both: it will run the timescale implementation of the TA proc
task but it won't be updating the upload state or deleting/rewriting
the raw upload
new: it will only run the new timescale implementation and it will
update the upload state and rewrite/delete the raw upload
@joseph-sentry joseph-sentry force-pushed the joseph/update-upload branch from 0d97342 to 8a2baab Compare March 3, 2025 21:44
Copy link

codecov bot commented Mar 3, 2025

Codecov Report

Attention: Patch coverage is 97.07317% with 6 lines in your changes missing coverage. Please review.

Project coverage is 97.77%. Comparing base (4abcb17) to head (8a2baab).

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
services/test_analytics/ta_timeseries.py 95.71% 3 Missing ⚠️
services/test_analytics/utils.py 76.92% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1122      +/-   ##
==========================================
- Coverage   97.78%   97.77%   -0.01%     
==========================================
  Files         443      446       +3     
  Lines       36565    36761     +196     
==========================================
+ Hits        35754    35944     +190     
- Misses        811      817       +6     
Flag Coverage Δ
integration 42.84% <77.07%> (+0.17%) ⬆️
unit 90.50% <61.95%> (-0.14%) ⬇️

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 Mar 3, 2025

Codecov Report

Attention: Patch coverage is 97.07317% with 6 lines in your changes missing coverage. Please review.

✅ All tests successful. No failed tests found.

Files with missing lines Patch % Lines
services/test_analytics/ta_timeseries.py 95.71% 3 Missing ⚠️
services/test_analytics/utils.py 76.92% 3 Missing ⚠️

📢 Thoughts on this report? Let us know!

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.

1 participant