Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.

Commit 9087c3f

Browse files
Merge branch 'main' into joseph/fix-args
2 parents dc584b1 + c4bc3bb commit 9087c3f

File tree

10 files changed

+13
-564
lines changed

10 files changed

+13
-564
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# PHASED OUT
2+
3+
This project has been moved to [the `apps/worker` folder in our `umbrella` repository](https://github.com/codecov/umbrella/tree/main/apps/worker). Please contribute there instead.
4+
15
# worker
26

37
![Actions](https://github.com/codecov/worker/actions/workflows/ci.yml/badge.svg)

database/models/reports.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,6 @@ class CommitReport(CodecovBaseModel, MixinBaseClass):
4545
uploads = relationship(
4646
"Upload", back_populates="report", cascade="all, delete", passive_deletes=True
4747
)
48-
patch_results = relationship(
49-
"ReportResults",
50-
uselist=False,
51-
back_populates="report",
52-
cascade="all, delete",
53-
passive_deletes=True,
54-
)
5548
test_result_totals = relationship(
5649
"TestResultReportTotals",
5750
back_populates="report",
@@ -69,15 +62,6 @@ class CommitReport(CodecovBaseModel, MixinBaseClass):
6962
)
7063

7164

72-
class ReportResults(MixinBaseClass, CodecovBaseModel):
73-
__tablename__ = "reports_reportresults"
74-
state = Column(types.Text)
75-
completed_at = Column(types.DateTime(timezone=True), nullable=True)
76-
result = Column(postgresql.JSON)
77-
report_id = Column(types.BigInteger, ForeignKey("reports_commitreport.id"))
78-
report = relationship("CommitReport", foreign_keys=[report_id])
79-
80-
8165
class Upload(CodecovBaseModel, MixinBaseClass):
8266
__tablename__ = "reports_upload"
8367
build_code = Column(types.Text)

database/tests/factories/core.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -212,15 +212,6 @@ class Meta:
212212
files = 0
213213

214214

215-
class ReportResultsFactory(Factory):
216-
class Meta:
217-
model = models.ReportResults
218-
219-
report = factory.SubFactory(ReportFactory)
220-
state = "success"
221-
result = {"state": "success", "message": "somemessage"}
222-
223-
224215
class UploadFactory(Factory):
225216
class Meta:
226217
model = models.Upload

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,4 +83,4 @@ dev-dependencies = [
8383
[tool.uv.sources]
8484
timestring = { git = "https://github.com/codecov/timestring", rev = "d37ceacc5954dff3b5bd2f887936a98a668dda42" }
8585
test-results-parser = { git = "https://github.com/codecov/test-results-parser", rev = "190bbc8a911099749928e13d5fe57f6027ca1e74" }
86-
shared = { git = "https://github.com/codecov/shared", rev = "d1eba3c39afbc652515fb0144788b408e5db777e" }
86+
shared = { git = "https://github.com/codecov/shared", rev = "a47acf6a3a914e57e31d39ffed8ad60cad731638" }

rollouts/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,5 @@
1212
PARALLEL_COMPONENT_COMPARISON = Feature("parallel_component_comparison")
1313

1414
TA_TIMESERIES = Feature("ta_timeseries")
15+
16+
DISABLE_CROSS_POLLINATION_MESSAGE = Feature("disable_cross_pollination_message")

services/notification/notifiers/mixins/message/__init__.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from database.models.core import Owner
1010
from helpers.environment import is_enterprise
11+
from rollouts import DISABLE_CROSS_POLLINATION_MESSAGE
1112
from services.comparison import ComparisonProxy, FilteredComparison
1213
from services.notification.notifiers.mixins.message.helpers import (
1314
should_message_be_compact,
@@ -217,7 +218,9 @@ def write_cross_pollination_message(self, write: Callable):
217218
).intersection(self.repository.languages or {}):
218219
extra_message.append(ba_message)
219220

220-
if extra_message:
221+
if extra_message and not DISABLE_CROSS_POLLINATION_MESSAGE.check_value(
222+
self.repository.ownerid
223+
):
221224
for i in [
222225
"<details><summary> :rocket: New features to boost your workflow: </summary>",
223226
"",

tasks/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@
3939
from tasks.process_flakes import process_flakes_task
4040
from tasks.regular_cleanup import regular_cleanup_task
4141
from tasks.save_commit_measurements import save_commit_measurements_task
42-
from tasks.save_report_results import save_report_results_task
4342
from tasks.send_email import send_email
4443
from tasks.static_analysis_suite_check import static_analysis_suite_check_task
4544
from tasks.status_set_error import status_set_error_task

tasks/save_report_results.py

Lines changed: 0 additions & 174 deletions
This file was deleted.

0 commit comments

Comments
 (0)