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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

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

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/)
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