Repository navigation
Conversation
| } | ||
| } | ||
|
|
||
| pub(super) fn walk(into: &Path, hooks: Hooks<'_>) -> std::io::Result<()> { |
There was a problem hiding this comment.
Could you use try_fold to drive the directory stack here, as the Unix restore walker does, for consistency? The Windows-specific handle and deletion logic can stay as-is. If the explicit loop is measurably faster here, please include the comparison
| evidence: EffectEvidence, | ||
| budget: RetryBudget, | ||
| ) -> EffectDecision { | ||
| ) -> Result<EffectDecision, FilesystemStorageError> { |
There was a problem hiding this comment.
Could we keep decide_write_effect returning EffectDecision for ordinary writes? Right now Err carries an implicit lifecycle rule: each caller has to know it means Invalidate. The point of EffectDecision is that effects.rs decides how a failure affects the generation, and callers apply that decision. Startup needs to know why the generation was invalidated; it shouldn't change who decides to invalidate it.
One way to do that is to handle a failed seed attempt inside effects.rs. That's where both the recovery decision and the original observation error are available. For a terminal observation error, it can use the existing classify_startup_error to invalidate the generation and preserve the cause in the seed failure. seed_with_retry can then act on a seed outcome, such as retry or fail, while namespace, write, and resize callers keep using EffectDecision unchanged.
|
The PR reports that the native Windows invocation and restart smoke tests passed, but the executor test binary didn't compile on Windows. Could you make the five Windows-only restore-cleanup tests runnable and report their results at the PR head? Please include the updated cache lease test in that run too. The smoke tests don't check handle pinning, outside hard-link attributes, or whether a leased cache file stays read-only. |
| component_id: ComponentId, | ||
| component_revision: ComponentRevision, | ||
| ) { | ||
| { |
There was a problem hiding this comment.
Before this change, port 0 only meant “omit the port.” Now it decides whether we hold or send a compilation request, and setting the port releases the held batch. Could we model those two phases explicitly, e.g. WaitingForPort { pending } and Ready { port }, and have one transition function decide what to hold or send? That keeps the queue and the condition governing it together.
|
The Windows directory-handle changes make sense to me. Before merge, I'd like to resolve three filesystem behavior issues and verify the affected paths on Windows.
|
runtologist
left a comment
There was a problem hiding this comment.
Adversarial review of the head commit, with one finding and a reproducer in the inline comment. I checked that this PR and its counterpart make the same fix, adapted to the branch. The fix covers the stream close, the directory capabilities, the Windows restore clear, cache leases, registry port gating and plugin conflicts. Both heads reproduce this finding the same way.
|
At 9b690e95d, the selected non-symlink restore-cleanup tests, cache-lease tests and empty unsupported-root Capture and seed: yes, setting times before permissions applies only to directories; regular files still set the time through the open handle. The description now says so. The round trip ( Network roots: at 9b690e9 we also tested a real loopback share ( |
|
Thanks for the updates. The Two things I’d still like fixed:
Two smaller follow-ups:
|
|
Fixed in b1affe1. |
Unavailablewith both causes instead of aborting. The loader's cache directory owns the leftover until shutdown cleanup. Keep the existing deletion policy for initialized entries.rustic_corechange in golemcloud/rustic_core#7 by revision. It captures Windows read-only modes, sets timestamps through an attribute-only handle, and clears read-only before writing changed contents. Restore saved permissions after contents and timestamps. Leave symlink permissions unchanged and propagate metadata errors. The Windows snapshots were regenerated from the changed mapper. The native fork regression restores A, A again, then writable B into the same destination without clearing or permission resets; its byte, timestamp and permission assertions pass. This does not establish a Golem build with the new pin.effects.rs; runtime writes still returnEffectDecision, while seed failures retain terminal usage-observation errors throughclassify_startup_error.trigger_stream_timeout_sends_a_close_handshakeand the Windows-onlyan_empty_unsupported_windows_root_fails_restore_permanently. The latter passed on native Windows. It substitutes an unsupported final path on an opened empty directory and checks the permanent run failure before repository loading. This covers Permanent classification with a synthetic final path, not a real-network RestoreRun.a_failed_protection_and_cleanup_returns_unavailable_and_keeps_cache_ownership,capture_and_seed_preserve_readonly_nested_contents_and_times,a_run_after_a_clear_that_failed_partway_clears_before_it_loads, and the CLI stream suite withfailed_invocation_sends_a_close_handshake.a_failed_protection_and_cleanup_returns_unavailable_and_keeps_cache_ownership,capture_and_seed_preserve_readonly_nested_contents_and_timesandfailed_invocation_sends_a_close_handshakewith the pinned Rustic revision. Rust/Cargo 1.99.1 and MSVC 14.41.34120 ran non-elevated with Developer Mode off. No source repair or settings change was needed. This is focused source-test coverage, not a repeated release-asset smoke test or qualification of main. See the native commands, logs and binary provenance.enqueue_is_best_effort_and_bounds_the_entire_attempt,test_component_stageon SQLite/Postgres/Postgres TLS, the CLI stream tests includingpeer_initiated_close_is_acknowledged, the destination tests, anda_run_after_a_clear_that_failed_partway_clears_before_it_loads. The portable permissions test, typed disk-full/quota errors, cache lease tests andcapture_and_seed_preserve_readonly_nested_contents_and_timesalso ran locally.sandbox_creation_failures_require_host_recovery_and_keep_cleanup_failuresandan_unwritable_sandbox_root_retries_creation_after_host_repair. The existing recovery-classification and pending-update permanent-storage tests remain controls. The permission-denial test returns early as root, like existing permission tests.capture_and_seed_preserve_readonly_nested_contents_and_timesand the empty-root RestoreRun regression. Those broader results apply to the earlier maintenance candidate, not this head or main. The focused native checks above do not replace that broader run or repeat the release application smoke test. See the per-test table, build provenance and real-root probe results.net usemapped-drive roots. All opened handles resolved to real UNC paths. The clear returnedUnsupportedwith "only local paths are supported on Windows" and left contents, attributes and write times unchanged. A local C: control cleared normally. This verifies network-root rejection, not network-root support or a real-network RestoreRun.sandbox_creation_failures_require_host_recovery_and_keep_cleanup_failurescoversPermissionDenied,ReadOnlyFilesystem,InvalidDataandTimedOut, each with and without cleanup failure. Its additional rawEIO,ESTALEandENODEVcases are Linux/macOS only. The host-repair regression iscfg(unix). Neither exclusion was compiled on Windows.