From 490dbdea4f34347f40cee75a01d0c8420c98c4f6 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 24 Nov 2026 21:21:43 +0000 Subject: [PATCH 1/5] ci(docs): exclude the gzip manual from the lychee link check --- changelog.d/+lychee-gzip-manual.misc.md | 1 + lychee.toml | 2 ++ 2 files changed, 3 insertions(+) create mode 100644 changelog.d/+lychee-gzip-manual.misc.md diff --git a/changelog.d/+lychee-gzip-manual.misc.md b/changelog.d/+lychee-gzip-manual.misc.md new file mode 100644 index 0000000..3b8f17d --- /dev/null +++ b/changelog.d/+lychee-gzip-manual.misc.md @@ -0,0 +1 @@ +The external link check skips `https://www.gnu.org/software/gzip/manual/gzip.html`, which times out from CI. diff --git a/lychee.toml b/lychee.toml index 9a1f778..5e792c1 100644 --- a/lychee.toml +++ b/lychee.toml @@ -27,5 +27,7 @@ exclude = [ '^https://eb-stack\.rgoswami\.me/', # The repository's own, each with its reason; apply.py keeps this block. # local:begin + # The gzip manual times out from CI runners, failing the check. + '^https://www\.gnu\.org/software/gzip/manual/gzip\.html$', # local:end ] From d4518ebf7bd58acdceccc68e01ad11569d14b41b Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 24 Nov 2026 21:22:24 +0000 Subject: [PATCH 2/5] refactor(syslog)!: remove the functions without an Identity --- CHANGELOG.md | 2 +- .../+syslog-without-identity.removal.md | 1 + src/syslog.zig | 49 ++----------------- 3 files changed, 5 insertions(+), 47 deletions(-) create mode 100644 changelog.d/+syslog-without-identity.removal.md diff --git a/CHANGELOG.md b/CHANGELOG.md index c42ade8..c7f045c 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,7 +6,7 @@ ### Features -- `syslog`: `Identity` names the program and the structured-data identifier of an event; `formatRfc5424For`, `formatJournaldFor` and `emitFor` take one, and `send` delivers an already formatted payload, for a tool with formatting of its own. The functions without an identity keep writing `eb-keep-logs`, as 0.11.0 did, and are removed in 0.13.0. +- `syslog`: `Identity` names the program and the structured-data identifier of an event; `formatRfc5424For`, `formatJournaldFor` and `emitFor` take one, and `send` delivers an already formatted payload, for a tool with formatting of its own. The functions without an identity keep writing `eb-keep-logs`, as 0.11.0 did, until 0.13.0 removes them. ### Miscellaneous diff --git a/changelog.d/+syslog-without-identity.removal.md b/changelog.d/+syslog-without-identity.removal.md new file mode 100644 index 0000000..6f37791 --- /dev/null +++ b/changelog.d/+syslog-without-identity.removal.md @@ -0,0 +1 @@ +`syslog`: `formatRfc5424`, `formatJournald` and `emit`, the functions without an `Identity`, are removed, with the identity they wrote; call `formatRfc5424For`, `formatJournaldFor` and `emitFor` with the caller's own `Identity`, `.{ .app = "eb-keep-logs", .sd_name = "ebKeepLogs" }` for the events they sent. diff --git a/src/syslog.zig b/src/syslog.zig index 7ad5e5e..0082d54 100644 --- a/src/syslog.zig +++ b/src/syslog.zig @@ -55,10 +55,6 @@ pub const Identity = struct { sd_name: []const u8, }; -/// The identity the functions without an `Identity` argument write. They -/// predate `Identity` and are removed in 0.13.0; a caller names its own. -pub const legacy_identity: Identity = .{ .app = "eb-keep-logs", .sd_name = "ebKeepLogs" }; - fn trimWs(s: []const u8) []const u8 { return std.mem.trim(u8, s, " \t\n\r\x0b\x0c"); } @@ -179,18 +175,6 @@ fn utcTimestamp(arena: Allocator) []const u8 { }) catch "1970-01-01T00:00:00.000000Z"; } -/// `formatRfc5424For` with `legacy_identity`. Removed in 0.13.0. -pub fn formatRfc5424( - arena: Allocator, - severity: u8, - msgid: []const u8, - params: []const Param, - msg: []const u8, - pen: []const u8, -) Allocator.Error![]u8 { - return formatRfc5424For(arena, legacy_identity, severity, msgid, params, msg, pen); -} - /// One RFC 5424 message from `id`: header, one structured-data element /// `[@ key="value"...]`, and `msg` on one line. pub fn formatRfc5424For( @@ -233,17 +217,6 @@ fn journalKv(arena: Allocator, out: *std.ArrayList(u8), key: []const u8, value: } } -/// `formatJournaldFor` with `legacy_identity`. Removed in 0.13.0. -pub fn formatJournald( - arena: Allocator, - severity: u8, - msgid: []const u8, - fields: []const JournalField, - msg: []const u8, -) Allocator.Error![]u8 { - return formatJournaldFor(arena, legacy_identity, severity, msgid, fields, msg); -} - /// One native journald datagram from `id`: MESSAGE, PRIORITY, /// SYSLOG_IDENTIFIER, SYSLOG_FACILITY, MSGID, then `fields` with a value. pub fn formatJournaldFor( @@ -456,19 +429,6 @@ pub fn send(arena: Allocator, target: Target, payload: []const u8) bool { }; } -/// `emitFor` with `legacy_identity`. Removed in 0.13.0. -pub fn emit( - arena: Allocator, - target: Target, - severity: u8, - msgid: []const u8, - params: []const Param, - jfields: []const JournalField, - msg: []const u8, -) bool { - return emitFor(arena, legacy_identity, target, severity, msgid, params, jfields, msg); -} - /// Format one event from `id` for `target` and send it. Best effort: false /// when it could not be formatted or delivered, and never an error. pub fn emitFor( @@ -500,11 +460,12 @@ test "parseTarget accepts unix, journald, udp and tcp" { try std.testing.expect(parseTarget("tcp://host:0") == null); } -test "formatRfc5424 escapes structured data values and uses configured PEN" { +test "formatRfc5424For escapes structured data values and uses configured PEN" { var arena_state = std.heap.ArenaAllocator.init(std.testing.allocator); defer arena_state.deinit(); const a = arena_state.allocator(); - const msg = try formatRfc5424(a, 4, "EB_KEEP_FAILED", &.{ + const id: Identity = .{ .app = "eb-keep-logs", .sd_name = "ebKeepLogs" }; + const msg = try formatRfc5424For(a, id, 4, "EB_KEEP_FAILED", &.{ .{ .key = "cmd", .value = "failed" }, .{ .key = "name", .value = "a\"b\\c]d" }, }, "kept 1", "55555"); @@ -526,10 +487,6 @@ test "the formatters write the identity they are given" { try std.testing.expect(std.mem.find(u8, line, "eb-keep-logs") == null); const datagram = try formatJournaldFor(a, id, 6, "EVENT", &.{}, "hello"); try std.testing.expect(std.mem.find(u8, datagram, "SYSLOG_IDENTIFIER=some-tool\n") != null); - // The entry points without an identity keep writing the one they always did. - const legacy = try formatRfc5424(a, 6, "EVENT", &.{}, "hello", "32473"); - try std.testing.expect(std.mem.find(u8, legacy, " eb-keep-logs ") != null); - try std.testing.expect(std.mem.find(u8, legacy, "[ebKeepLogs@32473] hello") != null); } test "send reports false for a target nobody listens on" { From 86c563fec2fa7593e8d7b1c51aeaa6664c954a88 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 24 Nov 2026 21:22:28 +0000 Subject: [PATCH 3/5] docs(compat): add the 0.13.0 row --- COMPAT.md | 1 + changelog.d/+compat-0.13.0.misc.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 changelog.d/+compat-0.13.0.misc.md diff --git a/COMPAT.md b/COMPAT.md index 35d2063..591964e 100644 --- a/COMPAT.md +++ b/COMPAT.md @@ -2,6 +2,7 @@ | zig-common | Zig | tools built on it | |---|---|---| +| 0.13.0 | 0.17.1 | eb-keep-logs and eessi-arch-guard on their next releases (`syslog` without the functions that take no `Identity`; `emitFor` and `send` are unchanged); eb-keep-logs builds against it in CI | | 0.12.0 | 0.17.1 | eb-keep-logs (`syslog.emitFor` with its own `Identity`) and eessi-arch-guard (`syslog.send`, the transport under its own formatting) on their next releases; eb-keep-logs builds against it in CI | | 0.11.0 | 0.17.1 | eb-keep-logs and eessi-arch-guard on their next releases (`syslog`: the RFC 5424 and journald emitter each carried a copy of); eb-keep-logs builds against it in CI | | 0.10.0 | 0.17.1 | eessi-arch-guard and eb-staged-rebuild (`fsx.mkdtemp`, `fsx.normPath`, `fsx.absPath`); eb-keep-logs builds against it in CI | diff --git a/changelog.d/+compat-0.13.0.misc.md b/changelog.d/+compat-0.13.0.misc.md new file mode 100644 index 0000000..1a3a401 --- /dev/null +++ b/changelog.d/+compat-0.13.0.misc.md @@ -0,0 +1 @@ +Prepare `zig-common` `0.13.0` in `COMPAT.md` for callers of `syslog` that name their own `Identity`. From 334a4508a82d099bf7c5a57dee5198a05e4fdc46 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 24 Nov 2026 21:22:50 +0000 Subject: [PATCH 4/5] docs(changelog): build the 0.13.0 release notes --- CHANGELOG.md | 130 ++++++++++++++++++ ...+argparse-native-exact-parity-test.misc.md | 1 - .../+argparse-native-exact-policy.feature.md | 1 - ...parse-option-token-and-separator.bugfix.md | 1 - changelog.d/+argparse-parity-test.misc.md | 1 - changelog.d/+argparse-parse-core.feature.md | 1 - changelog.d/+argparse-policies.feature.md | 1 - changelog.d/+argparse-spec-types.feature.md | 1 - .../+argparse-usage-error-kind.feature.md | 1 - changelog.d/+argparse-validators.feature.md | 1 - ...rse-variadic-positional-unknown.feature.md | 1 - changelog.d/+atomic-oserror-oom.bugfix.md | 1 - changelog.d/+atomic-write-at.feature.md | 3 - .../+atomic-write-oserror-text.bugfix.md | 1 - changelog.d/+ci-argparse-parity.misc.md | 1 - changelog.d/+cli-checked-stdout.feature.md | 1 - changelog.d/+compat-0.13.0.misc.md | 1 - .../+copyto-fifo-destination-test.misc.md | 1 - .../+copyto-nested-target-parent.bugfix.md | 2 - .../+env-diff-reverse-patch.feature.md | 2 - changelog.d/+flock-eintr-retry.bugfix.md | 1 - changelog.d/+fs-lock-parity-atomic.misc.md | 4 - .../+fs-lock-parity-copy-edges.misc.md | 4 - changelog.d/+fs-lock-parity-env-cli.misc.md | 3 - changelog.d/+fs-lock-parity-errno.misc.md | 3 - changelog.d/+fs-lock-parity-gunzip.misc.md | 3 - .../+fs-lock-parity-json-fuzz-strict.misc.md | 3 - .../+fs-lock-parity-lookup-diag-gzip.misc.md | 3 - changelog.d/+fs-lock-parity-test.misc.md | 4 - changelog.d/+fsx-gettempdir.feature.md | 1 - changelog.d/+fsx-mkdtemp-report.feature.md | 1 - changelog.d/+fsx-mkstemp.feature.md | 1 - changelog.d/+gunzip-zero-padding.bugfix.md | 3 - .../+gzip-long-name-tmp-overflow.bugfix.md | 7 - changelog.d/+json-dropped-raw-bytes.bugfix.md | 3 - changelog.d/+json-dumps-compact.feature.md | 2 - changelog.d/+json-pytext-parity-test.misc.md | 3 - .../+json-topy-dropped-duplicate.bugfix.md | 3 - changelog.d/+keep-above-stdio.feature.md | 4 - changelog.d/+lock-acquire-filename.bugfix.md | 1 - .../+lock-exclusive-u64-timeout.feature.md | 3 - changelog.d/+logs-gunzip.feature.md | 2 - changelog.d/+logs-gzip-nested-path.bugfix.md | 2 - changelog.d/+lychee-gzip-manual.misc.md | 1 - changelog.d/+makedirs-exist-errno.bugfix.md | 3 - .../+makedirs-failed-ancestor.bugfix.md | 1 - changelog.d/+moveacross-call-trace.misc.md | 1 - ...+moveacross-nested-target-parent.bugfix.md | 1 - .../+moveacross-source-parent.bugfix.md | 1 - changelog.d/+oserror-errno-lifetime.bugfix.md | 1 - changelog.d/+proc-run-empty-argv.bugfix.md | 2 - changelog.d/+pytext-decimal-digits.feature.md | 1 - .../+rootlock-preflight-osfailure.bugfix.md | 1 - changelog.d/+rootlock-tighten-mode.bugfix.md | 2 - changelog.d/+self-exe.feature.md | 3 - .../+state-create-private-at.feature.md | 3 - .../+state-writeprivate-nested-path.bugfix.md | 2 - changelog.d/+sys-strerror-success.bugfix.md | 2 - .../+sys-strerror-unknown-errno.bugfix.md | 2 - .../+syslog-without-identity.removal.md | 1 - changelog.d/.gitkeep | 0 61 files changed, 130 insertions(+), 115 deletions(-) delete mode 100644 changelog.d/+argparse-native-exact-parity-test.misc.md delete mode 100644 changelog.d/+argparse-native-exact-policy.feature.md delete mode 100644 changelog.d/+argparse-option-token-and-separator.bugfix.md delete mode 100644 changelog.d/+argparse-parity-test.misc.md delete mode 100644 changelog.d/+argparse-parse-core.feature.md delete mode 100644 changelog.d/+argparse-policies.feature.md delete mode 100644 changelog.d/+argparse-spec-types.feature.md delete mode 100644 changelog.d/+argparse-usage-error-kind.feature.md delete mode 100644 changelog.d/+argparse-validators.feature.md delete mode 100644 changelog.d/+argparse-variadic-positional-unknown.feature.md delete mode 100644 changelog.d/+atomic-oserror-oom.bugfix.md delete mode 100644 changelog.d/+atomic-write-at.feature.md delete mode 100644 changelog.d/+atomic-write-oserror-text.bugfix.md delete mode 100644 changelog.d/+ci-argparse-parity.misc.md delete mode 100644 changelog.d/+cli-checked-stdout.feature.md delete mode 100644 changelog.d/+compat-0.13.0.misc.md delete mode 100644 changelog.d/+copyto-fifo-destination-test.misc.md delete mode 100644 changelog.d/+copyto-nested-target-parent.bugfix.md delete mode 100644 changelog.d/+env-diff-reverse-patch.feature.md delete mode 100644 changelog.d/+flock-eintr-retry.bugfix.md delete mode 100644 changelog.d/+fs-lock-parity-atomic.misc.md delete mode 100644 changelog.d/+fs-lock-parity-copy-edges.misc.md delete mode 100644 changelog.d/+fs-lock-parity-env-cli.misc.md delete mode 100644 changelog.d/+fs-lock-parity-errno.misc.md delete mode 100644 changelog.d/+fs-lock-parity-gunzip.misc.md delete mode 100644 changelog.d/+fs-lock-parity-json-fuzz-strict.misc.md delete mode 100644 changelog.d/+fs-lock-parity-lookup-diag-gzip.misc.md delete mode 100644 changelog.d/+fs-lock-parity-test.misc.md delete mode 100644 changelog.d/+fsx-gettempdir.feature.md delete mode 100644 changelog.d/+fsx-mkdtemp-report.feature.md delete mode 100644 changelog.d/+fsx-mkstemp.feature.md delete mode 100644 changelog.d/+gunzip-zero-padding.bugfix.md delete mode 100644 changelog.d/+gzip-long-name-tmp-overflow.bugfix.md delete mode 100644 changelog.d/+json-dropped-raw-bytes.bugfix.md delete mode 100644 changelog.d/+json-dumps-compact.feature.md delete mode 100644 changelog.d/+json-pytext-parity-test.misc.md delete mode 100644 changelog.d/+json-topy-dropped-duplicate.bugfix.md delete mode 100644 changelog.d/+keep-above-stdio.feature.md delete mode 100644 changelog.d/+lock-acquire-filename.bugfix.md delete mode 100644 changelog.d/+lock-exclusive-u64-timeout.feature.md delete mode 100644 changelog.d/+logs-gunzip.feature.md delete mode 100644 changelog.d/+logs-gzip-nested-path.bugfix.md delete mode 100644 changelog.d/+lychee-gzip-manual.misc.md delete mode 100644 changelog.d/+makedirs-exist-errno.bugfix.md delete mode 100644 changelog.d/+makedirs-failed-ancestor.bugfix.md delete mode 100644 changelog.d/+moveacross-call-trace.misc.md delete mode 100644 changelog.d/+moveacross-nested-target-parent.bugfix.md delete mode 100644 changelog.d/+moveacross-source-parent.bugfix.md delete mode 100644 changelog.d/+oserror-errno-lifetime.bugfix.md delete mode 100644 changelog.d/+proc-run-empty-argv.bugfix.md delete mode 100644 changelog.d/+pytext-decimal-digits.feature.md delete mode 100644 changelog.d/+rootlock-preflight-osfailure.bugfix.md delete mode 100644 changelog.d/+rootlock-tighten-mode.bugfix.md delete mode 100644 changelog.d/+self-exe.feature.md delete mode 100644 changelog.d/+state-create-private-at.feature.md delete mode 100644 changelog.d/+state-writeprivate-nested-path.bugfix.md delete mode 100644 changelog.d/+sys-strerror-success.bugfix.md delete mode 100644 changelog.d/+sys-strerror-unknown-errno.bugfix.md delete mode 100644 changelog.d/+syslog-without-identity.removal.md create mode 100644 changelog.d/.gitkeep diff --git a/CHANGELOG.md b/CHANGELOG.md index c7f045c..b449122 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,136 @@ +## 0.13.0 (2026-11-24) + +### Features + +- Add `Policy.native_exact` with `NegativeNumberMode.any` and `SpecialActionMode.prescan` plus `Policy.fail_fast` and `CommandSpec.mutually_exclusive` alongside `OptionSpec.allow_empty` / `allow_dash_value` in `zig_common.argparse`. +- Add `Policy.prolog_lenient` preset with `optional_value` (`nargs="?"`, `const=""`), deferred help/version recording, silent unknown skipping, and non-exiting Slurm TaskProlog semantics. +- Add `PositionalArity.zero_or_more` and `PositionalArity.one_or_more` alongside `PositionalSpec.ignore_empty` and `UnknownMode.positional` in `zig_common.argparse`. +- Add `argparse.types` eager validators (`pyFloat`, `nonNegativeFiniteFloat`, `nonNegativeU128`, `boundedU64`, `choice`) and eager option/positional choice checking in `src/argparse.zig`. +- Add `cli.Stdout` and `cli.writeOut` for checked standard-output writes that report the first write error on standard error and turn a zero exit status into `1`. +- Add `fsx.TempDir`, a port of `tempfile.gettempdir`. It probes the candidates from the environment first and the system directories after. Each probe is a file write, as in Python. The answer is made absolute and normalized, and it is kept for later calls. A failure gives the text of Python's FileNotFoundError, which lists the candidates. The `TempDir` owns the answer and the message, and `deinit` frees them. `fsx.tempDirCandidates` returns the list alone, and `fsx.freeTempDirCandidates` frees it. +- Add `fsx.mkstemp` to create a private `0600` file with a random suffix under a given directory. The file is open for reading and writing. As in Python, a relative directory is made absolute, so the path is absolute. A refused open reports its path, so the caller can format the error as Python does. +- Add `pytext.decimalDigit` and `pytext.decimalToAscii`. They read the decimal digits of every script as Python's `float()` and `int()` do. A generator script under tools builds the table from `unicodedata`, and the table is pinned to Unicode 16.0.0, the data of Python 3.14. +- Add declarative `argparse` specification, policy, outcome, and `optionLike` types in `src/argparse.zig` and export `zig_common.argparse`. +- Add structured `ErrorKind` classification on `UsageError` in `zig_common.argparse` so callers can render native diagnostics without parsing `UsageError.message`. +- Implement pure `argparse.parse` and `argparse.parseOrExit` with Python 3.14 prefix abbreviations, short-option clustering, `--` termination, subcommand dispatch, `REMAINDER`, and argv-ordered unrecognized argument reporting. +- `Builder.diff`, `Diff.reverse` and `Diff.patch` record an environment + change and apply it in either direction. +- `atomic.atomicWriteAt` writes through an open directory descriptor with + the exact mode the caller names, umask aside, for the metrics writers + that hold their directory pinned. +- `fsx.mkdtempReport` is `mkdtemp` with a `Why`. A failed create reports the OSError text that Python gives, with the whole path it tried, random name included, in one repr. +- `fsx.selfExe` reads this program's own path from /proc/self/exe, answering a + failed, empty or truncated read with null so each caller can choose what + that means. +- `json.dumpsCompact` writes the one-line form Python's default json.dumps + call gives, with the same separators and ensure_ascii, byte for byte. +- `logs.gunzip` reads the members of a gzip stream one after another, + checking each member's CRC-32 and size, ported from eb-keep-logs. +- `state.createPrivateAt` creates a private file through an open directory + descriptor at an exact mode without ever replacing an existing name, the + never-clobber shape the tools' new-file writers need. +- `state.lockExclusive` and `lockExclusiveCancel` take the timeout as u64 + milliseconds, wide enough for the 999_999_999 seconds a flock -w style + caller passes, where a u32 held only about 49 days. +- `sys.keepAboveStdio` moves an open descriptor in slots 0, 1 or 2 to 3 + or above with `FD_CLOEXEC` set and closes the original slot, returning + descriptors already at 3 or above unchanged; `proc.run` uses it for its + child setup and exec-failure pipe. + +### Fixes + +- A failed lock acquisition records the OSError text and whether Python names .lock, .lock.posix, the state directory, or no file. +- A failed replacement names the temporary file when the open fails, names both files when the rename fails, and names no file when the write or the flush fails. +- An interrupted non-blocking flock is retried instead of reported as a busy lock. +- Classify a space-containing dash token that matches a registered option as an option token, and drop a double-dash separator only when it is adjacent to a consumed positional. +- Keep the original operating-system error when allocation fails while formatting its atomic-write diagnostic. +- Record the state-root path and error text when lock acquisition rejects a non-directory or broken symbolic link. +- Report the ancestor that actually failed when recursive state-root or atomic-write directory creation stops. +- Reset stale lock errno state and preserve the parent-directory errno after an atomic replacement has been renamed. +- `atomic.makedirs` reports EEXIST for a final name that exists as a + non-directory, and no longer passes silently when that name is a dangling + link, matching os.makedirs with exist_ok. +- `fsx.copyTo` creates its temporary file in the destination parent directory + for nested targets, avoiding cross-device rename failures. +- `fsx.moveAcross` syncs the destination parent directory for nested targets. +- `fsx.moveAcross` syncs the parent directory of the source name, also when one descriptor holds both names and the destination is nested. +- `gzipInPlace` refused to compress a log whose name, well within the + reference compressor's own limit, no longer fit a filesystem's 255-byte + limit on one path component once its temporary file's pid and random + suffix were added on. That suffix alone already makes the temporary + name unique, so the original name is left off a temporary name that + would otherwise overflow, and a name that reference tool would have + compressed compresses here too. +- `json.toPy` keeps the last value of a duplicate key without decoding the + members the document drops, as json.loads does, so an undecodable dropped + duplicate no longer fails the document. +- `json.toPy` refuses a document whose raw non-UTF-8 byte sits in the + member a duplicate key drops, as the consumers decode the whole text + strictly before json.loads. +- `logs.gunzip` treats bytes that are all zero after the last member as + padding, as gzip -d and Python's gzip do, instead of refusing them as + another damaged member. +- `logs.gzipInPlace` now handles nested relative paths and writes temporary + archives beside the destination gzip path. +- `proc.run` rejects an empty argument vector instead of spawning a child with + no `argv[0]`. +- `state.RootLock.acquire` tightens accepted owner-checked lock descriptors to + mode 0600, repairing permissive pre-existing lock files. +- `state.writePrivate` accepts names with directory components and creates + its temporary file in the same subdirectory as the destination. +- `sys.strerror(.SUCCESS)` reports `Success`, matching libc wording for errno + zero. +- `sys.strerror` returns `Unknown error N` for non-Linux `linux.E` tags such as + `NSRNODATA` through `NSRCNAMELOOP`, matching glibc and Python's `os.strerror`. + +### Removals + +- `syslog`: `formatRfc5424`, `formatJournald` and `emit`, the functions without an `Identity`, are removed, with the identity they wrote; call `formatRfc5424For`, `formatJournaldFor` and `emitFor` with the caller's own `Identity`, `.{ .app = "eb-keep-logs", .sd_name = "ebKeepLogs" }` for the events they sent. + +### Miscellaneous + +- A differential fuzz compares json.parse, toPy and Value.get against + json.loads on strictly decoded text, the way the consumers read it, with + the writer's own output read back through the same strict reader. +- A differential fuzz compares logs.gunzip over a run-time corpus with + Python's gzip module: the header flags, multi-member streams, truncated + and damaged members, trailing garbage and trailing zero padding. +- A differential parity test compares atomicWrite, replaceContents and + appendLine with the Python tempfile-plus-replace pattern and the append + mode of open, covering the umask in the mode bits, symlink targets and + read-only parent directories. +- A differential parity test compares env parsing and building with what a + Python child resolves from the same environ block, and the CLI usage exit + code with argparse's own error exit. +- A differential parity test compares sys.describeErrno and sys.errnoText + with os.strerror for every errno the kernel names, and the OSError framing + with quotes, non-UTF-8 and newlines in the path against Python's repr. +- A differential parity test compares the library's JSON and pytext output + with Python's own json, repr, shlex and text calls, byte for byte, from + a probe built in the CI test job. +- A differential parity test compares the library's path normalization, + makedirs errnos, copy and move effects, realpath results and lock + outcomes with Python's own os.path, os.makedirs, os.replace, + realpath and fcntl.flock calls, from a probe built in the CI test job. +- A differential parity test compares whichShutil with shutil.which over a + PATH fixture, reprStr and osErrorErrno with Python's repr and OSError + text, and gzipInPlace with GNU gzip's mode, mtime, header and content. +- A differential parity test covers copyTo and moveAcross edges against + shutil and os: cross-device moves and their copy fallback, a read-only + destination, a symlinked destination, a write stopped by the file-size + limit and a source removed after its descriptor was opened. +- Add a runtime-seeded differential parity test (`tests/test_argparse_parity.py` and `zig build argparse-parity-probe`) comparing `argparse` against Python 3.14 `argparse` and fixing two subtle edge cases uncovered by fuzzing. +- Add a unit test that pins the `fsx.copyTo` error for a FIFO destination. +- Add differential parity fuzz tests covering variadic intermixed positionals (`parse_intermixed_args`) plus `Policy.native_exact` with `SpecialActionMode.prescan` and `CommandSpec.mutually_exclusive` alongside `PositionalSpec.ignore_empty` and `ErrorKind`. +- Prepare `zig-common` `0.13.0` in `COMPAT.md` for callers of `syslog` that name their own `Identity`. +- The CI runs the argparse parity suite under Python 3.14 next to the JSON, filesystem and `tempfile.gettempdir` suites, guarded by a Python 3.14+ version check. +- The external link check skips `https://www.gnu.org/software/gzip/manual/gzip.html`, which times out from CI. +- `fsx` unit tests trace the renames and directory syncs that `moveAcross` makes. + + ## 0.12.0 (2026-11-19) ### Features diff --git a/changelog.d/+argparse-native-exact-parity-test.misc.md b/changelog.d/+argparse-native-exact-parity-test.misc.md deleted file mode 100644 index 1eeb860..0000000 --- a/changelog.d/+argparse-native-exact-parity-test.misc.md +++ /dev/null @@ -1 +0,0 @@ -Add differential parity fuzz tests covering variadic intermixed positionals (`parse_intermixed_args`) plus `Policy.native_exact` with `SpecialActionMode.prescan` and `CommandSpec.mutually_exclusive` alongside `PositionalSpec.ignore_empty` and `ErrorKind`. diff --git a/changelog.d/+argparse-native-exact-policy.feature.md b/changelog.d/+argparse-native-exact-policy.feature.md deleted file mode 100644 index 2d3ecf8..0000000 --- a/changelog.d/+argparse-native-exact-policy.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `Policy.native_exact` with `NegativeNumberMode.any` and `SpecialActionMode.prescan` plus `Policy.fail_fast` and `CommandSpec.mutually_exclusive` alongside `OptionSpec.allow_empty` / `allow_dash_value` in `zig_common.argparse`. diff --git a/changelog.d/+argparse-option-token-and-separator.bugfix.md b/changelog.d/+argparse-option-token-and-separator.bugfix.md deleted file mode 100644 index d64bd77..0000000 --- a/changelog.d/+argparse-option-token-and-separator.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Classify a space-containing dash token that matches a registered option as an option token, and drop a double-dash separator only when it is adjacent to a consumed positional. diff --git a/changelog.d/+argparse-parity-test.misc.md b/changelog.d/+argparse-parity-test.misc.md deleted file mode 100644 index 9200aeb..0000000 --- a/changelog.d/+argparse-parity-test.misc.md +++ /dev/null @@ -1 +0,0 @@ -Add a runtime-seeded differential parity test (`tests/test_argparse_parity.py` and `zig build argparse-parity-probe`) comparing `argparse` against Python 3.14 `argparse` and fixing two subtle edge cases uncovered by fuzzing. diff --git a/changelog.d/+argparse-parse-core.feature.md b/changelog.d/+argparse-parse-core.feature.md deleted file mode 100644 index fe103f3..0000000 --- a/changelog.d/+argparse-parse-core.feature.md +++ /dev/null @@ -1 +0,0 @@ -Implement pure `argparse.parse` and `argparse.parseOrExit` with Python 3.14 prefix abbreviations, short-option clustering, `--` termination, subcommand dispatch, `REMAINDER`, and argv-ordered unrecognized argument reporting. diff --git a/changelog.d/+argparse-policies.feature.md b/changelog.d/+argparse-policies.feature.md deleted file mode 100644 index e712e34..0000000 --- a/changelog.d/+argparse-policies.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `Policy.prolog_lenient` preset with `optional_value` (`nargs="?"`, `const=""`), deferred help/version recording, silent unknown skipping, and non-exiting Slurm TaskProlog semantics. diff --git a/changelog.d/+argparse-spec-types.feature.md b/changelog.d/+argparse-spec-types.feature.md deleted file mode 100644 index 9474742..0000000 --- a/changelog.d/+argparse-spec-types.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add declarative `argparse` specification, policy, outcome, and `optionLike` types in `src/argparse.zig` and export `zig_common.argparse`. diff --git a/changelog.d/+argparse-usage-error-kind.feature.md b/changelog.d/+argparse-usage-error-kind.feature.md deleted file mode 100644 index 6d5cd60..0000000 --- a/changelog.d/+argparse-usage-error-kind.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add structured `ErrorKind` classification on `UsageError` in `zig_common.argparse` so callers can render native diagnostics without parsing `UsageError.message`. diff --git a/changelog.d/+argparse-validators.feature.md b/changelog.d/+argparse-validators.feature.md deleted file mode 100644 index 260fee7..0000000 --- a/changelog.d/+argparse-validators.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `argparse.types` eager validators (`pyFloat`, `nonNegativeFiniteFloat`, `nonNegativeU128`, `boundedU64`, `choice`) and eager option/positional choice checking in `src/argparse.zig`. diff --git a/changelog.d/+argparse-variadic-positional-unknown.feature.md b/changelog.d/+argparse-variadic-positional-unknown.feature.md deleted file mode 100644 index 2a5bb8d..0000000 --- a/changelog.d/+argparse-variadic-positional-unknown.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `PositionalArity.zero_or_more` and `PositionalArity.one_or_more` alongside `PositionalSpec.ignore_empty` and `UnknownMode.positional` in `zig_common.argparse`. diff --git a/changelog.d/+atomic-oserror-oom.bugfix.md b/changelog.d/+atomic-oserror-oom.bugfix.md deleted file mode 100644 index dfc0fe0..0000000 --- a/changelog.d/+atomic-oserror-oom.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Keep the original operating-system error when allocation fails while formatting its atomic-write diagnostic. diff --git a/changelog.d/+atomic-write-at.feature.md b/changelog.d/+atomic-write-at.feature.md deleted file mode 100644 index 62e99d5..0000000 --- a/changelog.d/+atomic-write-at.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -`atomic.atomicWriteAt` writes through an open directory descriptor with -the exact mode the caller names, umask aside, for the metrics writers -that hold their directory pinned. diff --git a/changelog.d/+atomic-write-oserror-text.bugfix.md b/changelog.d/+atomic-write-oserror-text.bugfix.md deleted file mode 100644 index 7760f67..0000000 --- a/changelog.d/+atomic-write-oserror-text.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -A failed replacement names the temporary file when the open fails, names both files when the rename fails, and names no file when the write or the flush fails. diff --git a/changelog.d/+ci-argparse-parity.misc.md b/changelog.d/+ci-argparse-parity.misc.md deleted file mode 100644 index 8064d04..0000000 --- a/changelog.d/+ci-argparse-parity.misc.md +++ /dev/null @@ -1 +0,0 @@ -The CI runs the argparse parity suite under Python 3.14 next to the JSON, filesystem and `tempfile.gettempdir` suites, guarded by a Python 3.14+ version check. diff --git a/changelog.d/+cli-checked-stdout.feature.md b/changelog.d/+cli-checked-stdout.feature.md deleted file mode 100644 index 4dd9784..0000000 --- a/changelog.d/+cli-checked-stdout.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `cli.Stdout` and `cli.writeOut` for checked standard-output writes that report the first write error on standard error and turn a zero exit status into `1`. diff --git a/changelog.d/+compat-0.13.0.misc.md b/changelog.d/+compat-0.13.0.misc.md deleted file mode 100644 index 1a3a401..0000000 --- a/changelog.d/+compat-0.13.0.misc.md +++ /dev/null @@ -1 +0,0 @@ -Prepare `zig-common` `0.13.0` in `COMPAT.md` for callers of `syslog` that name their own `Identity`. diff --git a/changelog.d/+copyto-fifo-destination-test.misc.md b/changelog.d/+copyto-fifo-destination-test.misc.md deleted file mode 100644 index 43b83fb..0000000 --- a/changelog.d/+copyto-fifo-destination-test.misc.md +++ /dev/null @@ -1 +0,0 @@ -Add a unit test that pins the `fsx.copyTo` error for a FIFO destination. diff --git a/changelog.d/+copyto-nested-target-parent.bugfix.md b/changelog.d/+copyto-nested-target-parent.bugfix.md deleted file mode 100644 index 1c04551..0000000 --- a/changelog.d/+copyto-nested-target-parent.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`fsx.copyTo` creates its temporary file in the destination parent directory -for nested targets, avoiding cross-device rename failures. diff --git a/changelog.d/+env-diff-reverse-patch.feature.md b/changelog.d/+env-diff-reverse-patch.feature.md deleted file mode 100644 index 3020c61..0000000 --- a/changelog.d/+env-diff-reverse-patch.feature.md +++ /dev/null @@ -1,2 +0,0 @@ -`Builder.diff`, `Diff.reverse` and `Diff.patch` record an environment -change and apply it in either direction. diff --git a/changelog.d/+flock-eintr-retry.bugfix.md b/changelog.d/+flock-eintr-retry.bugfix.md deleted file mode 100644 index 10dea63..0000000 --- a/changelog.d/+flock-eintr-retry.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -An interrupted non-blocking flock is retried instead of reported as a busy lock. diff --git a/changelog.d/+fs-lock-parity-atomic.misc.md b/changelog.d/+fs-lock-parity-atomic.misc.md deleted file mode 100644 index 775cae4..0000000 --- a/changelog.d/+fs-lock-parity-atomic.misc.md +++ /dev/null @@ -1,4 +0,0 @@ -A differential parity test compares atomicWrite, replaceContents and -appendLine with the Python tempfile-plus-replace pattern and the append -mode of open, covering the umask in the mode bits, symlink targets and -read-only parent directories. diff --git a/changelog.d/+fs-lock-parity-copy-edges.misc.md b/changelog.d/+fs-lock-parity-copy-edges.misc.md deleted file mode 100644 index c0c575c..0000000 --- a/changelog.d/+fs-lock-parity-copy-edges.misc.md +++ /dev/null @@ -1,4 +0,0 @@ -A differential parity test covers copyTo and moveAcross edges against -shutil and os: cross-device moves and their copy fallback, a read-only -destination, a symlinked destination, a write stopped by the file-size -limit and a source removed after its descriptor was opened. diff --git a/changelog.d/+fs-lock-parity-env-cli.misc.md b/changelog.d/+fs-lock-parity-env-cli.misc.md deleted file mode 100644 index 2647ca8..0000000 --- a/changelog.d/+fs-lock-parity-env-cli.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential parity test compares env parsing and building with what a -Python child resolves from the same environ block, and the CLI usage exit -code with argparse's own error exit. diff --git a/changelog.d/+fs-lock-parity-errno.misc.md b/changelog.d/+fs-lock-parity-errno.misc.md deleted file mode 100644 index df544af..0000000 --- a/changelog.d/+fs-lock-parity-errno.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential parity test compares sys.describeErrno and sys.errnoText -with os.strerror for every errno the kernel names, and the OSError framing -with quotes, non-UTF-8 and newlines in the path against Python's repr. diff --git a/changelog.d/+fs-lock-parity-gunzip.misc.md b/changelog.d/+fs-lock-parity-gunzip.misc.md deleted file mode 100644 index 0831538..0000000 --- a/changelog.d/+fs-lock-parity-gunzip.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential fuzz compares logs.gunzip over a run-time corpus with -Python's gzip module: the header flags, multi-member streams, truncated -and damaged members, trailing garbage and trailing zero padding. diff --git a/changelog.d/+fs-lock-parity-json-fuzz-strict.misc.md b/changelog.d/+fs-lock-parity-json-fuzz-strict.misc.md deleted file mode 100644 index 16a960b..0000000 --- a/changelog.d/+fs-lock-parity-json-fuzz-strict.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential fuzz compares json.parse, toPy and Value.get against -json.loads on strictly decoded text, the way the consumers read it, with -the writer's own output read back through the same strict reader. diff --git a/changelog.d/+fs-lock-parity-lookup-diag-gzip.misc.md b/changelog.d/+fs-lock-parity-lookup-diag-gzip.misc.md deleted file mode 100644 index e9ee4e5..0000000 --- a/changelog.d/+fs-lock-parity-lookup-diag-gzip.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential parity test compares whichShutil with shutil.which over a -PATH fixture, reprStr and osErrorErrno with Python's repr and OSError -text, and gzipInPlace with GNU gzip's mode, mtime, header and content. diff --git a/changelog.d/+fs-lock-parity-test.misc.md b/changelog.d/+fs-lock-parity-test.misc.md deleted file mode 100644 index 9bc78c7..0000000 --- a/changelog.d/+fs-lock-parity-test.misc.md +++ /dev/null @@ -1,4 +0,0 @@ -A differential parity test compares the library's path normalization, -makedirs errnos, copy and move effects, realpath results and lock -outcomes with Python's own os.path, os.makedirs, os.replace, -realpath and fcntl.flock calls, from a probe built in the CI test job. diff --git a/changelog.d/+fsx-gettempdir.feature.md b/changelog.d/+fsx-gettempdir.feature.md deleted file mode 100644 index 985c6a7..0000000 --- a/changelog.d/+fsx-gettempdir.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `fsx.TempDir`, a port of `tempfile.gettempdir`. It probes the candidates from the environment first and the system directories after. Each probe is a file write, as in Python. The answer is made absolute and normalized, and it is kept for later calls. A failure gives the text of Python's FileNotFoundError, which lists the candidates. The `TempDir` owns the answer and the message, and `deinit` frees them. `fsx.tempDirCandidates` returns the list alone, and `fsx.freeTempDirCandidates` frees it. diff --git a/changelog.d/+fsx-mkdtemp-report.feature.md b/changelog.d/+fsx-mkdtemp-report.feature.md deleted file mode 100644 index 2b3cc45..0000000 --- a/changelog.d/+fsx-mkdtemp-report.feature.md +++ /dev/null @@ -1 +0,0 @@ -`fsx.mkdtempReport` is `mkdtemp` with a `Why`. A failed create reports the OSError text that Python gives, with the whole path it tried, random name included, in one repr. diff --git a/changelog.d/+fsx-mkstemp.feature.md b/changelog.d/+fsx-mkstemp.feature.md deleted file mode 100644 index dbb6558..0000000 --- a/changelog.d/+fsx-mkstemp.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `fsx.mkstemp` to create a private `0600` file with a random suffix under a given directory. The file is open for reading and writing. As in Python, a relative directory is made absolute, so the path is absolute. A refused open reports its path, so the caller can format the error as Python does. diff --git a/changelog.d/+gunzip-zero-padding.bugfix.md b/changelog.d/+gunzip-zero-padding.bugfix.md deleted file mode 100644 index 8acc7bf..0000000 --- a/changelog.d/+gunzip-zero-padding.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -`logs.gunzip` treats bytes that are all zero after the last member as -padding, as gzip -d and Python's gzip do, instead of refusing them as -another damaged member. diff --git a/changelog.d/+gzip-long-name-tmp-overflow.bugfix.md b/changelog.d/+gzip-long-name-tmp-overflow.bugfix.md deleted file mode 100644 index b1e1427..0000000 --- a/changelog.d/+gzip-long-name-tmp-overflow.bugfix.md +++ /dev/null @@ -1,7 +0,0 @@ -`gzipInPlace` refused to compress a log whose name, well within the -reference compressor's own limit, no longer fit a filesystem's 255-byte -limit on one path component once its temporary file's pid and random -suffix were added on. That suffix alone already makes the temporary -name unique, so the original name is left off a temporary name that -would otherwise overflow, and a name that reference tool would have -compressed compresses here too. diff --git a/changelog.d/+json-dropped-raw-bytes.bugfix.md b/changelog.d/+json-dropped-raw-bytes.bugfix.md deleted file mode 100644 index 1e37066..0000000 --- a/changelog.d/+json-dropped-raw-bytes.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -`json.toPy` refuses a document whose raw non-UTF-8 byte sits in the -member a duplicate key drops, as the consumers decode the whole text -strictly before json.loads. diff --git a/changelog.d/+json-dumps-compact.feature.md b/changelog.d/+json-dumps-compact.feature.md deleted file mode 100644 index 7deb740..0000000 --- a/changelog.d/+json-dumps-compact.feature.md +++ /dev/null @@ -1,2 +0,0 @@ -`json.dumpsCompact` writes the one-line form Python's default json.dumps -call gives, with the same separators and ensure_ascii, byte for byte. diff --git a/changelog.d/+json-pytext-parity-test.misc.md b/changelog.d/+json-pytext-parity-test.misc.md deleted file mode 100644 index c83d860..0000000 --- a/changelog.d/+json-pytext-parity-test.misc.md +++ /dev/null @@ -1,3 +0,0 @@ -A differential parity test compares the library's JSON and pytext output -with Python's own json, repr, shlex and text calls, byte for byte, from -a probe built in the CI test job. diff --git a/changelog.d/+json-topy-dropped-duplicate.bugfix.md b/changelog.d/+json-topy-dropped-duplicate.bugfix.md deleted file mode 100644 index 94c2cf9..0000000 --- a/changelog.d/+json-topy-dropped-duplicate.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -`json.toPy` keeps the last value of a duplicate key without decoding the -members the document drops, as json.loads does, so an undecodable dropped -duplicate no longer fails the document. diff --git a/changelog.d/+keep-above-stdio.feature.md b/changelog.d/+keep-above-stdio.feature.md deleted file mode 100644 index c2cd4c8..0000000 --- a/changelog.d/+keep-above-stdio.feature.md +++ /dev/null @@ -1,4 +0,0 @@ -`sys.keepAboveStdio` moves an open descriptor in slots 0, 1 or 2 to 3 -or above with `FD_CLOEXEC` set and closes the original slot, returning -descriptors already at 3 or above unchanged; `proc.run` uses it for its -child setup and exec-failure pipe. diff --git a/changelog.d/+lock-acquire-filename.bugfix.md b/changelog.d/+lock-acquire-filename.bugfix.md deleted file mode 100644 index 7c79b66..0000000 --- a/changelog.d/+lock-acquire-filename.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -A failed lock acquisition records the OSError text and whether Python names .lock, .lock.posix, the state directory, or no file. diff --git a/changelog.d/+lock-exclusive-u64-timeout.feature.md b/changelog.d/+lock-exclusive-u64-timeout.feature.md deleted file mode 100644 index 587259e..0000000 --- a/changelog.d/+lock-exclusive-u64-timeout.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -`state.lockExclusive` and `lockExclusiveCancel` take the timeout as u64 -milliseconds, wide enough for the 999_999_999 seconds a flock -w style -caller passes, where a u32 held only about 49 days. diff --git a/changelog.d/+logs-gunzip.feature.md b/changelog.d/+logs-gunzip.feature.md deleted file mode 100644 index f1ad6a2..0000000 --- a/changelog.d/+logs-gunzip.feature.md +++ /dev/null @@ -1,2 +0,0 @@ -`logs.gunzip` reads the members of a gzip stream one after another, -checking each member's CRC-32 and size, ported from eb-keep-logs. diff --git a/changelog.d/+logs-gzip-nested-path.bugfix.md b/changelog.d/+logs-gzip-nested-path.bugfix.md deleted file mode 100644 index bd819e1..0000000 --- a/changelog.d/+logs-gzip-nested-path.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`logs.gzipInPlace` now handles nested relative paths and writes temporary -archives beside the destination gzip path. diff --git a/changelog.d/+lychee-gzip-manual.misc.md b/changelog.d/+lychee-gzip-manual.misc.md deleted file mode 100644 index 3b8f17d..0000000 --- a/changelog.d/+lychee-gzip-manual.misc.md +++ /dev/null @@ -1 +0,0 @@ -The external link check skips `https://www.gnu.org/software/gzip/manual/gzip.html`, which times out from CI. diff --git a/changelog.d/+makedirs-exist-errno.bugfix.md b/changelog.d/+makedirs-exist-errno.bugfix.md deleted file mode 100644 index 9186314..0000000 --- a/changelog.d/+makedirs-exist-errno.bugfix.md +++ /dev/null @@ -1,3 +0,0 @@ -`atomic.makedirs` reports EEXIST for a final name that exists as a -non-directory, and no longer passes silently when that name is a dangling -link, matching os.makedirs with exist_ok. diff --git a/changelog.d/+makedirs-failed-ancestor.bugfix.md b/changelog.d/+makedirs-failed-ancestor.bugfix.md deleted file mode 100644 index 7247385..0000000 --- a/changelog.d/+makedirs-failed-ancestor.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Report the ancestor that actually failed when recursive state-root or atomic-write directory creation stops. diff --git a/changelog.d/+moveacross-call-trace.misc.md b/changelog.d/+moveacross-call-trace.misc.md deleted file mode 100644 index 07c4714..0000000 --- a/changelog.d/+moveacross-call-trace.misc.md +++ /dev/null @@ -1 +0,0 @@ -`fsx` unit tests trace the renames and directory syncs that `moveAcross` makes. diff --git a/changelog.d/+moveacross-nested-target-parent.bugfix.md b/changelog.d/+moveacross-nested-target-parent.bugfix.md deleted file mode 100644 index 5706237..0000000 --- a/changelog.d/+moveacross-nested-target-parent.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -`fsx.moveAcross` syncs the destination parent directory for nested targets. diff --git a/changelog.d/+moveacross-source-parent.bugfix.md b/changelog.d/+moveacross-source-parent.bugfix.md deleted file mode 100644 index fc21013..0000000 --- a/changelog.d/+moveacross-source-parent.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -`fsx.moveAcross` syncs the parent directory of the source name, also when one descriptor holds both names and the destination is nested. diff --git a/changelog.d/+oserror-errno-lifetime.bugfix.md b/changelog.d/+oserror-errno-lifetime.bugfix.md deleted file mode 100644 index 77325ad..0000000 --- a/changelog.d/+oserror-errno-lifetime.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Reset stale lock errno state and preserve the parent-directory errno after an atomic replacement has been renamed. diff --git a/changelog.d/+proc-run-empty-argv.bugfix.md b/changelog.d/+proc-run-empty-argv.bugfix.md deleted file mode 100644 index 7ac6f23..0000000 --- a/changelog.d/+proc-run-empty-argv.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`proc.run` rejects an empty argument vector instead of spawning a child with -no `argv[0]`. diff --git a/changelog.d/+pytext-decimal-digits.feature.md b/changelog.d/+pytext-decimal-digits.feature.md deleted file mode 100644 index f82b83f..0000000 --- a/changelog.d/+pytext-decimal-digits.feature.md +++ /dev/null @@ -1 +0,0 @@ -Add `pytext.decimalDigit` and `pytext.decimalToAscii`. They read the decimal digits of every script as Python's `float()` and `int()` do. A generator script under tools builds the table from `unicodedata`, and the table is pinned to Unicode 16.0.0, the data of Python 3.14. diff --git a/changelog.d/+rootlock-preflight-osfailure.bugfix.md b/changelog.d/+rootlock-preflight-osfailure.bugfix.md deleted file mode 100644 index 2b22899..0000000 --- a/changelog.d/+rootlock-preflight-osfailure.bugfix.md +++ /dev/null @@ -1 +0,0 @@ -Record the state-root path and error text when lock acquisition rejects a non-directory or broken symbolic link. diff --git a/changelog.d/+rootlock-tighten-mode.bugfix.md b/changelog.d/+rootlock-tighten-mode.bugfix.md deleted file mode 100644 index 45b41c3..0000000 --- a/changelog.d/+rootlock-tighten-mode.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`state.RootLock.acquire` tightens accepted owner-checked lock descriptors to -mode 0600, repairing permissive pre-existing lock files. diff --git a/changelog.d/+self-exe.feature.md b/changelog.d/+self-exe.feature.md deleted file mode 100644 index 02e49a5..0000000 --- a/changelog.d/+self-exe.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -`fsx.selfExe` reads this program's own path from /proc/self/exe, answering a -failed, empty or truncated read with null so each caller can choose what -that means. diff --git a/changelog.d/+state-create-private-at.feature.md b/changelog.d/+state-create-private-at.feature.md deleted file mode 100644 index 58f0eba..0000000 --- a/changelog.d/+state-create-private-at.feature.md +++ /dev/null @@ -1,3 +0,0 @@ -`state.createPrivateAt` creates a private file through an open directory -descriptor at an exact mode without ever replacing an existing name, the -never-clobber shape the tools' new-file writers need. diff --git a/changelog.d/+state-writeprivate-nested-path.bugfix.md b/changelog.d/+state-writeprivate-nested-path.bugfix.md deleted file mode 100644 index 1b0affe..0000000 --- a/changelog.d/+state-writeprivate-nested-path.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`state.writePrivate` accepts names with directory components and creates -its temporary file in the same subdirectory as the destination. diff --git a/changelog.d/+sys-strerror-success.bugfix.md b/changelog.d/+sys-strerror-success.bugfix.md deleted file mode 100644 index dc475b5..0000000 --- a/changelog.d/+sys-strerror-success.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`sys.strerror(.SUCCESS)` reports `Success`, matching libc wording for errno -zero. diff --git a/changelog.d/+sys-strerror-unknown-errno.bugfix.md b/changelog.d/+sys-strerror-unknown-errno.bugfix.md deleted file mode 100644 index cb19a31..0000000 --- a/changelog.d/+sys-strerror-unknown-errno.bugfix.md +++ /dev/null @@ -1,2 +0,0 @@ -`sys.strerror` returns `Unknown error N` for non-Linux `linux.E` tags such as -`NSRNODATA` through `NSRCNAMELOOP`, matching glibc and Python's `os.strerror`. diff --git a/changelog.d/+syslog-without-identity.removal.md b/changelog.d/+syslog-without-identity.removal.md deleted file mode 100644 index 6f37791..0000000 --- a/changelog.d/+syslog-without-identity.removal.md +++ /dev/null @@ -1 +0,0 @@ -`syslog`: `formatRfc5424`, `formatJournald` and `emit`, the functions without an `Identity`, are removed, with the identity they wrote; call `formatRfc5424For`, `formatJournaldFor` and `emitFor` with the caller's own `Identity`, `.{ .app = "eb-keep-logs", .sd_name = "ebKeepLogs" }` for the events they sent. diff --git a/changelog.d/.gitkeep b/changelog.d/.gitkeep new file mode 100644 index 0000000..e69de29 From e0dec4c76ff0162a7abb5c060e30464c09056ec8 Mon Sep 17 00:00:00 2001 From: Rohit Goswami Date: Tue, 24 Nov 2026 21:23:01 +0000 Subject: [PATCH 5/5] chore(version): v0.13.0 --- build.zig.zon | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/build.zig.zon b/build.zig.zon index e28cd9a..0e703fd 100644 --- a/build.zig.zon +++ b/build.zig.zon @@ -1,6 +1,6 @@ .{ .name = .zig_common, - .version = "0.12.0", + .version = "0.13.0", .fingerprint = 0xa9bcabd6798f1690, .minimum_zig_version = "0.17.1", .dependencies = .{},