8000 Update flaky fail count in the process flakes task by joseph-sentry · Pull Request #705 · codecov/worker · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Update flaky fail count in the process flakes task #705

Merged
merged 11 commits into from
8000 Sep 25, 2024
Merged
1 change: 1 addition & 0 deletions database/models/reports.py
Original file line number Diff line number Diff line change
Expand Up @@ -364,6 +364,7 @@ class DailyTestRollup(CodecovBaseModel, MixinBaseClassNoExternalID):
branch = Column(types.Text)

fail_count = Column(types.Integer)
flaky_fail_count = Column(types.Integer)
skip_count = Column(types.Integer)
pass_count = Column(types.Integer)
last_duration_seconds = Column(types.Float)
Expand Down
20 changes: 19 additions & 1 deletion database/tests/factories/reports.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
import datetime as dt

import factory

from database.models.reports import CompareFlag, RepositoryFlag, Test
from database.models.reports import CompareFlag, Flake, RepositoryFlag, Test
from database.tests.factories.core import CompareCommitFactory, RepositoryFactory


Expand Down Expand Up @@ -29,3 +31,19 @@ class Meta:
flags_hash = "flags_hash"
id_ = factory.Sequence(lambda n: f"id_{n}")
repository = factory.SubFactory(RepositoryFactory)


class FlakeFactory(factory.Factory):
class Meta:
model = Flake

test = factory.SubFactory(TestFactory)
repository = factory.SelfAttribute("test.repository")
reduced_error = None

count = 0
fail_count = 0
recent_passes_count = 0

start_date = dt.datetime.now()
end_date = None
2 changes: 1 addition & 1 deletion requirements.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
https://github.com/codecov/opentelem-python/archive/refs/tags/v0.0.4a1.tar.gz#egg=codecovopentelem
https://github.com/codecov/shared/archive/c9d8b871d335c29eb7470c564ef61f09c8353d2f.tar.gz#egg=shared
https://github.com/codecov/shared/archive/403d5a21cbeb7a32a5c16d6fc83ac290824a2abc.tar.gz#egg=shared
https://github.com/codecov/test-results-parser/archive/1507de2241601d678e514c08b38426e48bb6d47d.tar.gz#egg=test-results-parser
https://github.com/codecov/timestring/archive/d37ceacc5954dff3b5bd2f887936a98a668dda42.tar.gz#egg=timestring
asgiref>=3.7.2
Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -357,7 +357,7 @@ sentry-sdk[celery]==2.13.0
# via
# -r requirements.in
# shared
shared @ https://github.com/codecov/shared/archive/c9d8b871d335c29eb7470c564ef61f09c8353d2f.tar.gz
shared @ https://github.com/codecov/shared/archive/403d5a21cbeb7a32a5c16d6fc83ac290824a2abc.tar.gz
# via -r requirements.in
six==1.16.0
# via
Expand Down
261 changes: 0 additions & 261 deletions services/flake_detection.py

This file was deleted.

Loading
Loading
0