Skip to content

winx residuals: captain corrections from #1525 post-merge verification (locate/hostname pins, #1521 past-UINT64 clamp) - #1528

Merged
caomengxuan666 merged 1 commit into
mainfrom
captain/winx-residual-corrections
Nov 5, 2026
Merged

caomengxuan666 merged 1 commit into
mainfrom
captain/winx-residual-corrections

Conversation

@caomengxuan666

Copy link
Copy Markdown
Member

Captain's correction PR from the post-merge verification of #1525 (main CI run 41933615276, x64-default ctest: 3755/3757 — the two failures were both adjudicated, plus one residual-of-residual the lane had flagged for the captain).

本 PR 删除了什么

Adjudications landed here

  1. locate pin (was: exit 2, product exits 1) — pin was wrong. GNU locate routes -l overflow to gnulib xstrtol_fatal, which exits via exit_failure = EXIT_FAILURE = 1 (findutils' house value; the pin had imported grep/diff's 2). Pin now expects 1; the stderr assertion (which passed) is unchanged. Product untouched. Refs uniq counts: GNU clamps past UINT64_MAX, WinuxCmd parse-errors (residual of #1519) #1523.
  2. hostname pin (was: file is read and printed) — pin was wrong and the fix was dead code. hostname models coreutils: -F sits in the unsupported-option rejection table, so the designed behavior is exit 1 with empty stdout. The replacement pin hostname_file_option_rejected_by_design_issue1522 asserts exactly that; Text-mode narrow-ctor operand readers (dircolors, hexdump -f, hostname -F) share the #342 filename class #1522's live readers (dircolors, hexdump) were verified green in the same run. Refs Text-mode narrow-ctor operand readers (dircolors, hexdump -f, hostname -F) share the #342 filename class #1522, hostname: -F is advertised in help, rejected by the parser, and its read branch is dead code #1526.
  3. grep/diff numeric options: (INT64_MAX, UINT64_MAX] band should clamp like GNU (residual of #1519) #1521 residual-of-residual — the pre-existing [G18] grep count options above INT_MAX rejected instead of ceilinged (shared parser INT_TYPE) #1509 pins asserted grep -m / diff -U error with exit 2 at 10^23, but GNU's acceptance is unbounded (grep.c:2681-2692 xstrtoimax LONGINT_OVERFLOW; diff.c:358-367 strtoimax + CONTEXT_MAX clamp). The valued declarations (grep -m/-B/-A/-C/-NUM, diff -C/-U/-NUM) now ride UINT_CLAMP_TYPE (the type uniq counts: GNU clamps past UINT64_MAX, WinuxCmd parse-errors (residual of #1519) #1523 introduced for uniq), and the two pins are flipped to assert clamping: grep_count_above_uint64_clamps_issue1509, diff_unified_context_above_uint64_clamps_issue1509. The optional diff forms remain on OPTIONAL_UINT_TYPE — recorded as diff: optional context forms (--unified=/--context=, -c/-u) still error past UINT64_MAX — needs OptionalUIntClamp #1527 (needs an OptionalUIntClamp parser type), not silently dropped.

No user-visible strings change; no i18n catalog impact. Formatting follows the surrounding hand style (the repo-pinned formatter is not runnable on this machine, same note as #1520/#1525).

Net lines

+59 / −39 across 7 files (net +20, mostly adjudication comments and the replacement pin; product code is declaration-type swaps plus the hostname revert).

Verification route per this repo's established pattern: merge, then the main-push CI run's x64-default ctest log is checked per pin by the captain before #1521–#1524 are closed.

Three adjudications from the main-push CI run on 42ac074
(x64-default ctest 3755/3757, both failures wrong-pin family):

- locate #1523 pin: exit 2 -> 1. GNU xstrtol_fatal exits via
  gnulib exit_failure (EXIT_FAILURE); the pin had imported
  grep/diff's convention. Product unchanged.
- hostname #1522: revert the lane's wide-path hunk (it patched
  an unreachable branch -- build_config rejects -F by design and
  never populates Config::file) and replace its pin with one
  asserting the designed rejection. Incoherence filed as #1526.
- #1521 residual-of-residual: grep -m/-B/-A/-C/-NUM and diff
  -C/-U/-NUM move UINT_TYPE -> UINT_CLAMP_TYPE so past-UINT64
  values clamp per GNU (grep.c:2681-2692, diff.c:358-367); the
  two #1509 pins flip from "still errors" to clamping
  assertions. Optional diff forms stay for #1527.

Refs #1521, #1522, #1523, #1526, #1527.
No user-visible strings; hand-formatted per repo custom (the
pinned formatter is not runnable on this machine).
@caomengxuan666
caomengxuan666 merged commit 38c5937 into main Nov 5, 2026
9 checks passed
caomengxuan666 added a commit that referenced this pull request Nov 7, 2026
fix(small-batch): hostname -F (#1526 + #1528 wide-path restore), diff clamp (#1527), ls COLUMNS (#1504), grep --color usage (#1516)
@caomengxuan666
caomengxuan666 deleted the captain/winx-residual-corrections branch November 18, 2026 05:50
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