Skip to content

docs: list GzipStep and state what an archive error leaves - #88

Merged
HaoZeke merged 3 commits into
developfrom
docs/gzip-step-nits
Nov 25, 2026
Merged

HaoZeke merged 3 commits into
developfrom
docs/gzip-step-nits

Conversation

@HaoZeke

@HaoZeke HaoZeke commented Nov 25, 2026

Copy link
Copy Markdown
Contributor

Follow-up to the gzip log step work:

  • The API reference and the compress-and-mark-logs how-to now list GzipStep and gzipInPlaceAtStep.
  • The logs.GzipStep doc comments state what an archive error leaves behind in the log directory.
  • Tests share one scratch directory helper in test_support instead of repeating the setup.

Add both to the logs section of the API reference, and a note on reading
the step to the compress-and-mark-logs how-to.
If opening the original fails, the archive step changes nothing. After
an earlier run compressed it, `name` stays gone. Any `name.gz` from an
earlier run stays as it was. Once the original is open, the step keeps
it. It leaves `name.gz` behind only when that file existed before, or
when it failed to remove the original and then failed to remove the
archive. The `directory_sync` step follows one rename and one unlink,
not two renames.
test_support.ScratchDir makes .zig-cache/zig-common-TAG-PID empty,
removing one a killed run left under the same pid, and fails when it
cannot create it. The logs tests and the fsx moveAcross fixture use it in
place of their own copies, so writeLog's O_EXCL create cannot hit a stale
file.
@HaoZeke
HaoZeke merged commit 49bfe5a into develop Nov 25, 2026
8 checks passed
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.

1 participant