Skip to content
This repository was archived by the owner on May 5, 2025. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions services/test_analytics/ta_finish_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ def queue_followup_tasks(
process_flakes_task_name,
kwargs={
"repo_id": repo.repoid,
"commit_id": commit.commitid,
"impl_type": impl_type,
},
)
Expand All @@ -119,7 +118,7 @@ def queue_followup_tasks(
celery_app.send_task(
cache_test_rollups_task_name,
kwargs={
"repoid": repo.repoid,
"repo_id": repo.repoid,
"branch": commit.branch,
"impl_type": impl_type,
},
Expand Down
7 changes: 2 additions & 5 deletions services/test_analytics/tests/test_ta_finish_upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,7 @@
from shared.django_apps.test_analytics.models import Flake

from database.enums import ReportType
from database.tests.factories import (
PullFactory,
UploadFactory,
)
from database.tests.factories import PullFactory, UploadFactory
from services.test_analytics.ta_finish_upload import FinisherResult, new_impl
from services.yaml import UserYaml
from tests.helpers import mock_all_plans_and_tiers
Expand Down Expand Up @@ -147,7 +144,7 @@ def assert_tasks(tasks: list[Literal["flakes", "cache_rollup"]]):
"cache_rollup": call(
"app.tasks.cache_rollup.CacheTestRollupsTask",
kwargs={
"repoid": repo.repoid,
"repo_id": repo.repoid,
"branch": commit.branch,
"impl_type": "new",
},
Expand Down
2 changes: 1 addition & 1 deletion tasks/cache_rollup_cron_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def run_cron_task(self, _db_session: Session, *args, **kwargs):
repo_branch.delete()
else:
self.app.tasks[cache_test_rollups_task_name].s(
repoid=repo.repoid,
repo_id=repo.repoid,
branch=branch,
update_date=False,
).apply_async()
Expand Down
2 changes: 1 addition & 1 deletion tasks/tests/unit/test_cache_rollup_cron_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ def test_cache_rollup_cron_task(mock_storage, transactional_db, mocker):
)

mocked_app.tasks[cache_test_rollups_task_name].s.assert_called_once_with(
repoid=rollup_date.repository_id,
repo_id=rollup_date.repository_id,
branch=rollup_date.branch,
update_date=False,
)
Expand Down
Loading