Skip to content

307726 aurora async tasks refactor#5902

Open
MarekBiczysko wants to merge 6 commits intodevelopfrom
307726_aurora_async_tasks_refactor
Open

307726 aurora async tasks refactor#5902
MarekBiczysko wants to merge 6 commits intodevelopfrom
307726_aurora_async_tasks_refactor

Conversation

@MarekBiczysko
Copy link
Copy Markdown
Contributor

@MarekBiczysko MarekBiczysko commented Apr 13, 2026

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 13, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.29%. Comparing base (6912971) to head (36c458f).

Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #5902      +/-   ##
===========================================
+ Coverage    92.25%   92.29%   +0.04%     
===========================================
  Files          494      494              
  Lines        34349    34372      +23     
  Branches      3602     3604       +2     
===========================================
+ Hits         31689    31725      +36     
+ Misses        1911     1899      -12     
+ Partials       749      748       -1     
Flag Coverage Δ
e2e 52.63% <34.09%> (-0.02%) ⬇️
unit 92.00% <100.00%> (+0.04%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@MarekBiczysko MarekBiczysko marked this pull request as ready for review April 14, 2026 10:12

def test_clean_old_record_files_task(record_set: dict[str, Record]) -> None:
clean_old_record_files_task()
queue_and_run_async_task(clean_old_record_files_async_task)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert query numer?

)


def queue_and_run_async_task(task: object, *args: object, **kwargs: object) -> object:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's a duplicate. Can't we put this function to fixture and put it to conftest, so that we keep it dry?

def test_create_task_for_processing_records_not_implemented_error() -> None:
with pytest.raises(NotImplementedError):
create_task_for_processing_records(ServiceWithoutCeleryTask, uuid.uuid4(), uuid.uuid4(), [1])
create_task_for_processing_records(ServiceWithoutCeleryTask, None, None, [1])
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you have any thoughts against adding assertion for number of db queries made for those tests? If not, can we add it?

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.

2 participants