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

deps: update shared#1173

Merged
joseph-sentry merged 1 commit intomainfrom
joseph/update-shared
Feb 27, 2025
Merged

deps: update shared#1173
joseph-sentry merged 1 commit intomainfrom
joseph/update-shared

Conversation

@joseph-sentry
Copy link
Copy Markdown
Contributor

No description provided.

@joseph-sentry joseph-sentry requested review from a team as code owners February 24, 2025 17:24
@github-actions
Copy link
Copy Markdown
Contributor

This PR includes changes to shared. Please review them here: codecov/shared@47fa7fd...37d9caa

@codecov-notifications
Copy link
Copy Markdown

Codecov Report

All modified and coverable lines are covered by tests ✅

✅ All tests successful. No failed tests found.

📢 Thoughts on this report? Let us know!

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.92%. Comparing base (f4f7dc8) to head (2a62c8a).
Report is 3 commits behind head on main.

✅ All tests successful. No failed tests found.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1173   +/-   ##
=======================================
  Coverage   95.92%   95.92%           
=======================================
  Files         492      492           
  Lines       16876    16877    +1     
=======================================
+ Hits        16188    16189    +1     
  Misses        688      688           
Flag Coverage Δ
unit 95.92% <100.00%> (+<0.01%) ⬆️

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.

@joseph-sentry joseph-sentry force-pushed the joseph/update-shared branch 2 times, most recently from 35094d4 to 0c14dc9 Compare February 26, 2025 21:36
@github-actions
Copy link
Copy Markdown
Contributor

github-actions bot commented Feb 26, 2025

This PR includes changes to shared. Please review them here: codecov/shared@47fa7fd...fd58134

raise Http404("Requested report could not be found")
return repo

@sync_to_async
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.

this change looks unrelated. why?
if the function was sync all along, there is no reason to make it async? the function body looks trivial enough that it wouldn’t benefit from running concurrently.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

this is a workaround because now the initialization of ArchiveService involves feature flags which involves Django queries which can't run in an async context by default

sync_to_async allows us to make django queries in an async context

mocked_task_service = mocker.patch.object(TaskService, "schedule_task")
mocked_presigned_put = mocker.patch(
"shared.api_archive.archive.StorageService.create_presigned_put",
"shared.storage.MinioStorageService.create_presigned_put",
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.

as we have discussed in the retro, related to "overreliance on mocks", keep in mind that all of these mocks are potential breakage in production that we will never catch in tests :-(

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I made an issue to remove these, but i'd like to get this PR in so we don't fall too behind compared to shared

@joseph-sentry joseph-sentry added this pull request to the merge queue Feb 27, 2025
Merged via the queue into main with commit fd87f23 Feb 27, 2025
48 of 50 checks passed
@joseph-sentry joseph-sentry deleted the joseph/update-shared branch February 27, 2025 20:18
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants