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

Use TA Timeseries models in TA processor task #1084

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

joseph-sentry
Copy link
Contributor

we want to be calling a another set of TA processor tasks that write Testruns to Timescale but don't do any other writing to the upload state.

the plan will be that at some point we will change this so it either calls the TA processors with use_timeseries = True or False and not both. At which point the TA processor will write to the upload state.

depends on: #1078 #1080 #1083

@joseph-sentry joseph-sentry marked this pull request as draft February 11, 2025 21:40
@joseph-sentry joseph-sentry requested review from a team and removed request for a team February 11, 2025 21:40
Copy link

codecov bot commented Feb 11, 2025

❌ 13 Tests Failed:

Tests completed Failed Passed Skipped
13 13 0 0
View the top 3 failed test(s) by shortest run time
tasks/tests/integration/test_ghm_sync_plans.py::tasks.tests.integration.test_ghm_sync_plans
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_ghm_sync_plans.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_http_request_task.py::tasks.tests.integration.test_http_request_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_http_request_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_send_email_task.py::tasks.tests.integration.test_send_email_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_send_email_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

@codecov-staging
Copy link

codecov-staging bot commented Feb 11, 2025

❌ 13 Tests Failed:

Tests completed Failed Passed Skipped
13 13 0 0
View the top 3 failed tests by shortest run time
tasks/tests/integration/test_http_request_task.py::tasks.tests.integration.test_http_request_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_http_request_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_notify_task.py::tasks.tests.integration.test_notify_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_notify_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_status_set_pending_task.py::tasks.tests.integration.test_status_set_pending_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_status_set_pending_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

@codecov-qa
Copy link

codecov-qa bot commented Feb 11, 2025

❌ 13 Tests Failed:

Tests completed Failed Passed Skipped
13 13 0 0
View the top 3 failed test(s) by shortest run time
tasks/tests/integration/test_ghm_sync_plans.py::tasks.tests.integration.test_ghm_sync_plans
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_ghm_sync_plans.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_status_set_pending_task.py::tasks.tests.integration.test_status_set_pending_task
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_status_set_pending_task.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'
tasks/tests/integration/test_timeseries_backfill.py::tasks.tests.integration.test_timeseries_backfill
Stack Traces | 0s run time
ImportError while importing test module '.../tests/integration/test_timeseries_backfill.py'.
Hint: make sure your test modules/packages have valid Python names.
Traceback:
.../local/lib/python3.13/importlib/__init__.py:88: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/__init__.py:55: in <module>
    from tasks.ta_processor import ta_processor_task
tasks/ta_processor.py:20: in <module>
    from services.test_analytics.ta_timeseries import get_flaky_tests_set, insert_testrun
E   ModuleNotFoundError: No module named 'services.test_analytics'

To view more test analytics, go to the Test Analytics Dashboard
📋 Got 3 mins? Take this short survey to help us improve Test Analytics.

Copy link

❌ 13 Tests Failed:

Tests completed Failed Passed Skipped
13 13 0 0
View the top 3 failed tests by shortest run time
tasks/tests/integration/test_ai_pr_review.py::::tasks.tests.integration.test_ai_pr_review
Stack Traces | 0s run time
No failure message available
tasks/tests/integration/test_sync_pull.py::::tasks.tests.integration.test_sync_pull
Stack Traces | 0s run time
No failure message available
tasks/tests/integration/test_upload_e2e.py::::tasks.tests.integration.test_upload_e2e
Stack Traces | 0s run time
No failure message available

To view more test analytics, go to the Test Analytics Dashboard
📢 Thoughts on this report? Let us know!

Copy link

❌ 26 Tests Failed:

Tests completed Failed Passed Skipped
26 26 0 0
View the top 3 failed tests by shortest run time
services.tests.test_repository_service
Stack Traces | 0.000s run time
No failure message available
services.tests.test_ta_timeseries.test_ta_timeseries
Stack Traces | 0.000s run time
No failure message available
tasks.tests.integration.test_ai_pr_review
Stack Traces | 0.000s run time
No failure message available

📣 Thoughts on this report? Let Codecov know! | Powered by Codecov

@joseph-sentry joseph-sentry force-pushed the joseph/use-ta-timeseries branch from 3c8fb5f to b8083f9 Compare February 11, 2025 21:58
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.

1 participant