This repository was archived by the owner on May 5, 2025. It is now read-only.
File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- from shared .metrics import Summary
1+ from shared .metrics import Counter , Summary
22
33write_tests_summary = Summary (
44 "write_tests_summary" ,
3737 "The time it takes to process flakes" ,
3838 ["impl" ],
3939)
40+
41+
42+ new_ta_tasks_repo_summary = Counter (
43+ "new_ta_tasks_repo_summary" ,
44+ "Number of repos that were processed using 'new' ta tasks, due to being created after 2025-04-25" ,
45+ )
Original file line number Diff line number Diff line change 33import time
44import uuid
55from copy import deepcopy
6+ from datetime import datetime
67from typing import Optional , TypedDict
78
89import orjson
4647 gitlab_webhook_update ,
4748 possibly_update_commit_from_provider_info ,
4849)
50+ from services .test_analytics .ta_metrics import new_ta_tasks_repo_summary
4951from services .test_results import TestResultsReportService
5052from tasks .base import BaseCodecovTask
5153from tasks .bundle_analysis_notify import bundle_analysis_notify_task
@@ -775,6 +777,9 @@ def _schedule_ta_processing_task(
775777 new_ta_tasks = NEW_TA_TASKS .check_value (commit .repoid , default = "old" )
776778 if not settings .TA_TIMESERIES_ENABLED :
777779 new_ta_tasks = "old"
780+ elif commit .repository .created_at > datetime (2025 , 4 , 25 ):
781+ new_ta_tasks = "new"
782+ new_ta_tasks_repo_summary .labels ().inc ()
778783
779784 task_group = [
780785 test_results_processor_task .s (
You can’t perform that action at this time.
0 commit comments