Repository navigation
fix(deep-scan): recover publication after a lost reply #938
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
Open
mldangelo-oai
wants to merge
85
commits into
main
Choose a base branch
from
mdangelo/codex/deep-publication-response-loss
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+1,178
−52
Open
Changes from 13 commits
Commits
Show all changes
85 commits
Select commit
Hold shift + click to select a range
ef9e2ab
fix(plugin): fence stale Deep publication and preserve replay
mldangelo-oai 1179155
Merge remote-tracking branch 'origin/main' into mdangelo/codex/phase1…
mldangelo-oai 0e623ac
test(plugin): preserve legacy Deep publication replay
mldangelo-oai fed7140
Preserve Deep parent drafts and reducer publication order
mldangelo-oai 4173b55
fix(deep): recover accepted publication response loss
mldangelo-oai 4a5983f
Read reducer sequence from its worker directory
mldangelo-oai f9aae33
Merge reducer directory ordering prerequisite
mldangelo-oai 2cb3645
Keep accepted publication successful when receipt I/O fails
mldangelo-oai 91515fa
Distinguish Windows receipt storage errors from path validation
mldangelo-oai 774b4d5
Emulate Windows temporary-file deletion on handle close
mldangelo-oai 685fc98
Merge main and reconcile Deep Scan publication fencing
mldangelo-oai 30f7bc5
Merge latest main into PR branch
mldangelo-oai 1152827
Merge updated parent and preserve publication recovery
mldangelo-oai e021cf4
Merge latest main into PR branch
mldangelo-oai 17a9944
Merge latest main into PR branch
mldangelo-oai 591b1e1
Merge latest main into PR branch
mldangelo-oai 3935943
Merge latest main into PR branch
mldangelo-oai bc06ffc
Merge latest main into PR branch
mldangelo-oai 8787aaa
Merge latest main into PR branch
mldangelo-oai bdd3733
Merge latest main into PR branch
mldangelo-oai 832a3c6
Merge updated base branch into PR branch
mldangelo-oai 8d70ac6
Merge current main into publication replay branch
mldangelo-oai 5e89f16
fix(deep): preserve terminal aggregates during completion replay
mldangelo-oai ff7bd08
Merge current main into publication response recovery branch
mldangelo-oai afd844d
Merge current publication replay prerequisite
mldangelo-oai dabab96
fix(deep): preserve accepted publication results during recovery
mldangelo-oai 02a7c39
fix(deep): retain Windows receipt probe I/O errors
mldangelo-oai 5a0998c
Merge main into accepted-publication recovery
mldangelo-oai e97ea58
Merge commit 'a7b3618f4c5e63aa70f4defa4e72bbe8e0c4cdb1' into HEAD
mldangelo-oai 2d6aaee
Merge commit 'refs/codex/pr-repair/907/current-main' into HEAD
mldangelo-oai d68f027
Merge current main into publication recovery
mldangelo-oai d7a0591
Preserve partial Deep setup drafts before orchestration
mldangelo-oai c4850d0
Merge stack parent into publication recovery
mldangelo-oai 8636afc
Merge current main into publication recovery
mldangelo-oai 151946f
Merge commit 'refs/codex/pr-repair/916/main-f894' into HEAD
mldangelo-oai c07d281
Merge current stack parent into publication recovery
mldangelo-oai 59d36f5
Merge commit 'refs/codex/pr-repair/916/current-main' into HEAD
mldangelo-oai dfabb2d
Merge commit 'da446104d4328435e7b305c79c4f26f80e771ccf' into HEAD
mldangelo-oai 5dceb5e
fix(deep-scan): retain terminal legacy publication during replay
mldangelo-oai 1665efe
test(deep-scan): retain actual SQLite replay crash boundaries
mldangelo-oai 1656243
Merge main into Deep Scan publication updates
mldangelo-oai 1cf7c2a
fix(deep): preserve selected legacy publications during completion re…
mldangelo-oai cf3f24d
fix(deep): preserve legacy progress and selected-result replay
mldangelo-oai 7da9822
Merge main into Deep Scan publication updates
mldangelo-oai 0118c1a
style(deep): format selected publication check
mldangelo-oai 51397ff
Merge main into Deep publication fix
mldangelo-oai 40246ad
Merge main into Deep publication fix
mldangelo-oai f1ba502
Merge main into Deep publication update
mldangelo-oai e215264
fix(deep): retain parent publication after legacy lease claims
mldangelo-oai d2a1775
Merge main into Deep publication fixes
mldangelo-oai 38f5710
Merge main into Deep publication fixes
mldangelo-oai 1a14d67
Merge main into Deep publication fixes
mldangelo-oai be75948
Merge main into Deep Scan publication fix
mldangelo-oai 0e30641
Merge main into Deep Scan publication fix
mldangelo-oai 6eacf7d
Merge main into Deep Scan publication fix
mldangelo-oai a51c643
Merge main into Deep Scan publication fix
mldangelo-oai 21eb50f
fix(deep): align publication with recovered reducer selection
mldangelo-oai d46c854
Merge main into Deep Scan publication fix
mldangelo-oai 26ff705
Merge main into Deep Scan publication fixes
mldangelo-oai 6591067
Merge main into Deep Scan publication fixes
mldangelo-oai 39f06e6
test(workbench): track the current migration history
mldangelo-oai f7fcedd
Merge main into Deep Scan publication fixes
mldangelo-oai 2ff4fe4
Merge main into Deep Scan publication fixes
mldangelo-oai bc7a120
fix(deep): retain progress after publication selection
mldangelo-oai 0b97a93
Merge main into Deep publication changes
mldangelo-oai e605e4e
Merge main into Deep publication changes
mldangelo-oai f5b5f07
Merge main into Deep publication changes
mldangelo-oai 473f0ab
Merge main into Deep publication changes
mldangelo-oai fb7e9f9
Merge main into Deep publication changes
mldangelo-oai f8ef501
Merge main into Deep Scan publication fix
mldangelo-oai 95b9884
Merge main into Deep publication fix
mldangelo-oai c17a4a5
Merge main into Deep publication fix
mldangelo-oai 8829d13
Merge main into Deep publication fix
mldangelo-oai 5de8cfd
Merge main into Deep publication fix
mldangelo-oai 78d37a2
Merge main into Deep publication fix
mldangelo-oai 3a09174
Merge main into Deep publication fix
mldangelo-oai af584a1
Merge main and preserve Deep Scan publication metadata
mldangelo-oai 517cbe9
Merge current stack parent into publication recovery
mldangelo-oai 9f9f33b
Merge current main into publication recovery
mldangelo-oai 812c72a
style(deep-scan): format accepted publication comparison
mldangelo-oai 71cf387
Merge current stack parent into publication recovery
mldangelo-oai ea5d3b5
chore: merge main and resolve integration conflicts
mldangelo-oai 5dbb147
Merge current parent and main into publication recovery
mldangelo-oai 95f1160
fix(publication): keep late Windows path failures fatal
mldangelo-oai 5d798c5
Merge main into Deep Scan publication recovery
codex File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,34 @@ | ||
| """Control the workbench clock while retaining its real commands and database writes.""" | ||
|
|
||
| import errno | ||
| import os | ||
| import runpy | ||
| import sys | ||
| from pathlib import Path | ||
|
|
||
| source = Path(sys.argv[1]) | ||
| sys.argv = [str(source), *sys.argv[2:]] | ||
| sys.path.insert(0, str(source.parent)) | ||
| api = runpy.run_path(str(source), run_name="test_workbench") | ||
| instant = os.environ["TEST_WORKBENCH_NOW"] | ||
| api["main"].__globals__["now"] = lambda: instant | ||
| api["_WORKBENCH_DB_CONTEXT"].now = lambda: instant | ||
| if os.environ.get("TEST_WORKBENCH_RECEIPT_IO_FAILURE"): | ||
| if os.name == "nt": | ||
| from finalize_scan_contract import _windows_scan_local_files | ||
|
|
||
| backend = _windows_scan_local_files() | ||
| original_replace = backend._rename_handle | ||
| else: | ||
| original_replace = os.replace | ||
|
|
||
| def replace(source, destination, *args, **kwargs): | ||
| if str(destination).endswith(".accepted.json"): | ||
| raise OSError(errno.ENOSPC, "Synthetic receipt I/O failure", destination) | ||
| return original_replace(source, destination, *args, **kwargs) | ||
|
|
||
| if os.name == "nt": | ||
| backend._rename_handle = replace | ||
| else: | ||
| os.replace = replace | ||
| api["main"]() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.