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

Make dailytestrollup branch nullable #365

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

michelletran-codecov
Copy link
Contributor

@michelletran-codecov michelletran-codecov commented Sep 20, 2024

Admittedly, I'm not sure if this is the right solution, but we've been seeing a bunch of errors related to this field not being nullable (see error in Sentry). This is because it's taking the branch from the commit, which can be nullable.

This would also fix a bunch of errors seen in codecov/worker#729

Legal Boilerplate

Look, I get it. The entity doing business as "Sentry" was incorporated in the State of Delaware in 2015 as Functional Software, Inc. In 2022 this entity acquired Codecov and as result Sentry is going to need some rights from me in order to utilize my contributions in this PR. So here's the deal: I retain all rights, title and interest in and to my contributions, and by keeping this boilerplate intact I confirm that Sentry can use, modify, copy, and redistribute my contributions, under Sentry's choice of terms.

@michelletran-codecov michelletran-codecov requested a review from a team September 20, 2024 20:36
@@ -404,7 +404,7 @@ class PartitioningMeta:
)
date = models.DateField()
repoid = models.IntegerField()
branch = models.TextField()
branch = models.TextField(null=True)
Copy link
Contributor

Choose a reason for hiding this comment

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

@joseph-sentry I'll summon thee to see if it'd affect your work

Copy link
Contributor

@joseph-sentry joseph-sentry Sep 20, 2024

Choose a reason for hiding this comment

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

ah this is fine i think, it's probably crashing the test results processor at the moment, I find it weird that we have commits with no branch but i guess that's a separate issue

I'm not sure if it's better to just skip inserting into the rollups table if the branch is null though

joseph-sentry
joseph-sentry previously approved these changes Oct 23, 2024
We've been seeing a bunch of errors related to this field not being nullable.
This is because it's taking the branch from the commit, which _can_ be nullable.

See: [error](https://codecov.sentry.io/share/issue/478a3e60158547b69afa0b9959822237/)
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.81%. Comparing base (fccd479) to head (4d7c01d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #365      +/-   ##
==========================================
- Coverage   90.24%   89.81%   -0.44%     
==========================================
  Files         384      324      -60     
  Lines       11735     9472    -2263     
  Branches     2058     1688     -370     
==========================================
- Hits        10590     8507    -2083     
+ Misses       1046      901     -145     
+ Partials       99       64      -35     
Flag Coverage Δ
shared-docker-uploader ?

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.

@michelletran-codecov michelletran-codecov added this pull request to the merge queue Oct 30, 2024
Merged via the queue into main with commit 3721e80 Oct 30, 2024
6 checks passed
@michelletran-codecov michelletran-codecov deleted the fix_integrity_errors branch October 30, 2024 14:20
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.

3 participants