-
Notifications
You must be signed in to change notification settings - Fork 13
feat(worker): make upload_finisher source-of-truth for commit uploads #756
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
base: main
Are you sure you want to change the base?
Changes from 5 commits
2cea686
6cab9cc
95a8a79
126a0b6
6e3b939
8852b60
b75054e
4322546
b4a0fcd
c3ff0f9
6306ed5
2a0e36e
7dcdac6
6d43a16
93f3146
53bc3ab
a0cbf7e
ceb7614
c48148b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,10 +54,10 @@ def test_batch_merging_many_uploads(): | |
| for id in range(1, 12): | ||
| state.mark_upload_as_processed(id) | ||
|
|
||
| # we have only processed 8 out of 9. we want to do a batched merge | ||
| # We now reconstruct all processed uploads in one pass. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. ProcessingState test suite broken by API changeMedium Severity
|
||
| assert should_perform_merge(state.get_upload_numbers()) | ||
| merging = state.get_uploads_for_merging() | ||
| assert len(merging) == 10 # = MERGE_BATCH_SIZE | ||
| assert len(merging) == 11 | ||
| state.mark_uploads_as_merged(merging) | ||
|
|
||
| # but no notifications yet | ||
|
|
@@ -68,7 +68,7 @@ def test_batch_merging_many_uploads(): | |
| # with the last upload being processed, we do another merge, and then trigger notifications | ||
| assert should_perform_merge(state.get_upload_numbers()) | ||
| merging = state.get_uploads_for_merging() | ||
| assert len(merging) == 2 | ||
| assert len(merging) == 1 | ||
| state.mark_uploads_as_merged(merging) | ||
|
|
||
| assert should_trigger_postprocessing(state.get_upload_numbers()) | ||
|
|
||


Uh oh!
There was an error while loading. Please reload this page.