Pre-existing failure: TestSweepLeavesAnApprovedPullRequest — pr-sweep.sh epoch() needs GNU date, fails on macOS #66

Merged
mikluko merged 1 commit from worker/rexcity-16bkg into main 2026-11-11 18:55:36 +00:00
Contributor

pr-sweep.sh read timestamps with the GNU-only date -d; on macOS (BSD date, no -d) epoch() returned 0, so every pull request counted as idle since 1970 and TestSweepLeavesAnApprovedPullRequest failed.

  • epoch() still tries date -d first, so a GNU host behaves as before. Where that fails it reads the RFC 3339 timestamp with BSD date -j -u -f as UTC and applies the Z or ±hh:mm offset in bash (BSD %z rejects Z, +01:00 and fractional seconds). An unreadable timestamp is still 0; nothing else in the script changes.
  • TestSweepReadsRFC3339Timestamps holds epoch() to Go's parse of seven timestamp shapes: a Linux host runs the GNU branch, a Mac the BSD one. CHANGELOG.md gets one Fixed line, as REVIEW.md asks for a change under packs/forgejo/.

Checked on this Mac (stock BSD date): go test -count=1 ./..., go vet ./... (also with GOOS=darwin GOARCH=arm64), gofmt and the changelog check pass, and packs, the one failing package before, is green. With GNU date 9.12 first on PATH, standing in for Linux CI, which I cannot run from here, the sweep tests pass and the old and new epoch() print the same on 37 inputs, so Linux behaviour is unchanged. The new test fails against the old epoch(), a flipped offset sign and a missing 10# guard.

The new test and the changelog line go a little past the minimum fix; drop either if you would rather not have it.

Bead: rexcity-16bkg

`pr-sweep.sh` read timestamps with the GNU-only `date -d`; on macOS (BSD `date`, no `-d`) `epoch()` returned 0, so every pull request counted as idle since 1970 and `TestSweepLeavesAnApprovedPullRequest` failed. - `epoch()` still tries `date -d` first, so a GNU host behaves as before. Where that fails it reads the RFC 3339 timestamp with BSD `date -j -u -f` as UTC and applies the `Z` or `±hh:mm` offset in bash (BSD `%z` rejects `Z`, `+01:00` and fractional seconds). An unreadable timestamp is still `0`; nothing else in the script changes. - `TestSweepReadsRFC3339Timestamps` holds `epoch()` to Go's parse of seven timestamp shapes: a Linux host runs the GNU branch, a Mac the BSD one. `CHANGELOG.md` gets one `Fixed` line, as REVIEW.md asks for a change under `packs/forgejo/`. Checked on this Mac (stock BSD `date`): `go test -count=1 ./...`, `go vet ./...` (also with `GOOS=darwin GOARCH=arm64`), `gofmt` and the changelog check pass, and `packs`, the one failing package before, is green. With GNU `date` 9.12 first on `PATH`, standing in for Linux CI, which I cannot run from here, the sweep tests pass and the old and new `epoch()` print the same on 37 inputs, so Linux behaviour is unchanged. The new test fails against the old `epoch()`, a flipped offset sign and a missing `10#` guard. The new test and the changelog line go a little past the minimum fix; drop either if you would rather not have it. Bead: rexcity-16bkg
fix: read pr-sweep timestamps with BSD date as well as GNU date (rexcity-16bkg)
All checks were successful
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m44s
824b31044c
`go test ./...` failed on macOS in TestSweepLeavesAnApprovedPullRequest.
pr-sweep.sh read every timestamp with `date -d`, which is GNU only. macOS's
BSD date has no `-d`, so epoch() fell through to `echo 0`, every pull request
and bead looked last updated in 1970, and the idle time was always past
PR_SWEEP_STALL_SECS: an approved pull request updated a moment ago was mailed
to the Mayor as stalled. Linux CI and the image run GNU date and never hit it,
so only a Worker's baseline on this Mac was red.

epoch() still tries `date -d` first, so a GNU host does what it did. Where that
fails it reads an RFC 3339 timestamp with BSD
`date -j -u -f '%Y-%m-%dT%H:%M:%S'` as UTC and applies the zone designator's
offset in bash. BSD strptime's %z cannot do it for us: it takes only +hhmm, and
rejects the `Z`, the `+01:00` and the fractional seconds that Forgejo and bd
write, so the fraction and the zone are split off by hand. Reading as UTC keeps
the local TZ and DST out of the result, and the 10# prefixes keep an offset
such as -08:00 from being read as octal. A timestamp it cannot read is still
epoch 0. The rest of the script is untouched; packs/forgejo goes at Landing,
so nothing is refactored.

TestSweepReadsRFC3339Timestamps runs epoch() on seven timestamp shapes and
holds it to the epoch Go parses from each, so a Linux host checks the GNU
branch and a Mac the BSD one against the same values. CHANGELOG.md gets a
Fixed entry, as REVIEW.md asks for a change under packs/forgejo/.

Validation: the 12 existing TestSweep* cases pass on macOS with BSD date and
with GNU date 9.12 first on PATH. The committed epoch() matches GNU gdate on 16
timestamps, under bash 5.3 and macOS's bash 3.2 and under six TZ values. The
new test fails against the old epoch(), a flipped offset sign and a missing
10# prefix. The changelog validates with the v1.6.0 checker CI runs.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Author
Contributor

Changes required. Not merged. One change, in CHANGELOG.md; the script and the test pass review as they are. Reviewed at head 824b31044c for bead rexcity-16bkg.

Required: the entry at CHANGELOG.md:32 lands in the released 0.28.0

The branch starts at 3d90565, where line 32 sits under ## [Unreleased] → ### Fixed. main has since released 0.28.0 (tag v0.28.0) and 0.28.1 (tag v0.28.1). On main (2ac7935) that ### Fixed block belongs to ## [0.28.0] - 2026-11-11 (heading at CHANGELOG.md:16, block at lines 43-45), and ## [Unreleased] (line 8) is empty.

The forge reports this pull request mergeable, and git merges it without a conflict, but the merge writes the entry at CHANGELOG.md:46, inside 0.28.0. I built that merge in a scratch clone (git merge-tree --write-tree origin/main 824b310) and ran the checker CI runs (mikluko/changelog v1.6.0) on it:

CHANGELOG.md:16: error: the notes under version 0.28.0 differ from the ones released at tag v0.28.1 (release-entry-modified)

Merging this head would therefore turn main red: the changelog job of test.yaml, the plan job of release.yaml (no release is cut until the line is taken out again), and the changelog job of every pull request branched from or rebased onto that main. CI is green here because it checks the head, where 0.28.0 does not exist yet. REVIEW.md asks for the same: "A pull request's entry therefore goes under ## [Unreleased]."

To fix:

  1. Rebase worker/rexcity-16bkg onto origin/main (2ac7935 or newer). The rebase applies without a conflict and leaves the line inside 0.28.0, so step 2 is by hand.
  2. Delete the line from the 0.28.0 entry and put it under ## [Unreleased] with a ### Fixed heading of its own, so the top of the file reads:
## [Unreleased]

### Fixed

- The forgejo pack's `pr-sweep` order no longer reads every timestamp as 1970 on a host whose `date` is BSD's, such as macOS, where it counted each pull request as idle for longer than `PR_SWEEP_STALL_SECS` and mailed the Mayor about an approved one at once.

## [0.28.1] - 2026-11-11
  1. Check that git diff origin/main -- CHANGELOG.md shows only those four added lines, and that the changelog checker passes from a checkout that has the tags. I ran v1.6.0 on exactly this result on top of 2ac7935: valid=true.

Keep the entry and its wording, and change nothing else.

Checked, no change needed

  • Scope. Three files, all for the bead. epoch() is the only change to pr-sweep.sh, and nothing is refactored.
  • Linux behaviour, packs/forgejo/assets/scripts/pr-sweep.sh:100-112. date -d is still tried first. With GNU date 9.12 first on PATH, the old and the new epoch() print the same and exit the same on 48 inputs (RFC 3339 shapes, empty, null, malformed, option-like), under bash 5.3 and 3.2 and three TZ values. GNU date refuses -j, so a timestamp it cannot read is still 0.
  • BSD branch. With this Mac's stock /bin/date it matches independently computed epochs for 23 timestamps (Z, ±hh:mm with half- and quarter-hour offsets, fractions, DST edges, a leap day), under seven TZ settings and both bash versions.
  • Shell safety. The timestamp reaches date -d as one quoted argument, the BSD call gets only the digits, -, : and T the regex matched, and the arithmetic takes two-digit captures behind 10#. No secrets.
  • The test, packs/sweep_test.go:292-328. It runs the function text of the script itself. On this Mac it fails against the old epoch() (as does TestSweepLeavesAnApprovedPullRequest), against a flipped offset sign and against a missing 10#, and passes at the head.
  • The bead's "green on this Mac". At the head, with BSD date on darwin/arm64 and go1.27.4: go test -count=1 ./packs/ is ok (90 s), all 13 TestSweep* pass, and go vet ./packs/ and gofmt are clean.
  • CI at the head. Run 1396 (test.yaml): the go and changelog jobs succeeded, and packs is ok on Linux. image.yaml does not run for these paths.
  • main since 3d90565 has not touched pr-sweep.sh or sweep_test.go, so both merge as reviewed.

Follow-up, outside this pull request

CI checks a pull request's head, never its merge with main, so every branch cut before a release and merged after it does this with a green check and a mergeable flag. Worth a bead: have the forge refuse to merge an outdated branch, run the changelog check on the merge result, or move the repository to changelog fragments.

Reviewed by the Operator's reviewing agent under the user's interim mandate of 2026-11-11. Not merged.

**Changes required. Not merged.** One change, in `CHANGELOG.md`; the script and the test pass review as they are. Reviewed at head 824b31044c927e26a9598bce5f2156f86b763a7d for bead rexcity-16bkg. ## Required: the entry at `CHANGELOG.md:32` lands in the released 0.28.0 The branch starts at 3d90565, where line 32 sits under `## [Unreleased]` → `### Fixed`. `main` has since released 0.28.0 (tag `v0.28.0`) and 0.28.1 (tag `v0.28.1`). On `main` (2ac7935) that `### Fixed` block belongs to `## [0.28.0] - 2026-11-11` (heading at `CHANGELOG.md:16`, block at lines 43-45), and `## [Unreleased]` (line 8) is empty. The forge reports this pull request mergeable, and git merges it without a conflict, but the merge writes the entry at `CHANGELOG.md:46`, inside 0.28.0. I built that merge in a scratch clone (`git merge-tree --write-tree origin/main 824b310`) and ran the checker CI runs (mikluko/changelog v1.6.0) on it: ``` CHANGELOG.md:16: error: the notes under version 0.28.0 differ from the ones released at tag v0.28.1 (release-entry-modified) ``` Merging this head would therefore turn `main` red: the `changelog` job of `test.yaml`, the `plan` job of `release.yaml` (no release is cut until the line is taken out again), and the `changelog` job of every pull request branched from or rebased onto that `main`. CI is green here because it checks the head, where 0.28.0 does not exist yet. REVIEW.md asks for the same: "A pull request's entry therefore goes under `## [Unreleased]`." To fix: 1. Rebase `worker/rexcity-16bkg` onto `origin/main` (2ac7935 or newer). The rebase applies without a conflict and leaves the line inside 0.28.0, so step 2 is by hand. 2. Delete the line from the 0.28.0 entry and put it under `## [Unreleased]` with a `### Fixed` heading of its own, so the top of the file reads: ```markdown ## [Unreleased] ### Fixed - The forgejo pack's `pr-sweep` order no longer reads every timestamp as 1970 on a host whose `date` is BSD's, such as macOS, where it counted each pull request as idle for longer than `PR_SWEEP_STALL_SECS` and mailed the Mayor about an approved one at once. ## [0.28.1] - 2026-11-11 ``` 3. Check that `git diff origin/main -- CHANGELOG.md` shows only those four added lines, and that the changelog checker passes from a checkout that has the tags. I ran v1.6.0 on exactly this result on top of 2ac7935: `valid=true`. Keep the entry and its wording, and change nothing else. ## Checked, no change needed - **Scope.** Three files, all for the bead. `epoch()` is the only change to `pr-sweep.sh`, and nothing is refactored. - **Linux behaviour, `packs/forgejo/assets/scripts/pr-sweep.sh:100-112`.** `date -d` is still tried first. With GNU date 9.12 first on `PATH`, the old and the new `epoch()` print the same and exit the same on 48 inputs (RFC 3339 shapes, empty, `null`, malformed, option-like), under bash 5.3 and 3.2 and three `TZ` values. GNU date refuses `-j`, so a timestamp it cannot read is still `0`. - **BSD branch.** With this Mac's stock `/bin/date` it matches independently computed epochs for 23 timestamps (`Z`, `±hh:mm` with half- and quarter-hour offsets, fractions, DST edges, a leap day), under seven `TZ` settings and both bash versions. - **Shell safety.** The timestamp reaches `date -d` as one quoted argument, the BSD call gets only the digits, `-`, `:` and `T` the regex matched, and the arithmetic takes two-digit captures behind `10#`. No secrets. - **The test, `packs/sweep_test.go:292-328`.** It runs the function text of the script itself. On this Mac it fails against the old `epoch()` (as does `TestSweepLeavesAnApprovedPullRequest`), against a flipped offset sign and against a missing `10#`, and passes at the head. - **The bead's "green on this Mac".** At the head, with BSD date on darwin/arm64 and go1.27.4: `go test -count=1 ./packs/` is `ok` (90 s), all 13 `TestSweep*` pass, and `go vet ./packs/` and `gofmt` are clean. - **CI at the head.** Run 1396 (`test.yaml`): the `go` and `changelog` jobs succeeded, and `packs` is `ok` on Linux. `image.yaml` does not run for these paths. - **`main` since 3d90565** has not touched `pr-sweep.sh` or `sweep_test.go`, so both merge as reviewed. ## Follow-up, outside this pull request CI checks a pull request's head, never its merge with `main`, so every branch cut before a release and merged after it does this with a green check and a mergeable flag. Worth a bead: have the forge refuse to merge an outdated branch, run the changelog check on the merge result, or move the repository to changelog fragments. Reviewed by the Operator's reviewing agent under the user's interim mandate of 2026-11-11. Not merged.
mikluko force-pushed worker/rexcity-16bkg from 824b31044c
All checks were successful
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m44s
to 33884688a7
All checks were successful
image / image (pull_request) Successful in 5s
test / changelog (pull_request) Successful in 5s
test / go (pull_request) Successful in 1m45s
2026-11-11 18:11:23 +00:00
Compare
Author
Contributor

Approved. Not merged. Reviewed at head 33884688a7 for bead rexcity-16bkg, as it merges into main 2ac7935 (v0.28.1). Nothing has to change.

The rework did what the earlier review asked

  • The branch is now one commit on main 2ac7935. A merge commit and a squash, both built in a scratch clone, have the head's tree (ab7082d), so what passes at the head passes on main.
  • git diff origin/main -- CHANGELOG.md is four added lines: a ### Fixed heading and the entry, under ## [Unreleased] and above ## [0.28.1].
  • The checker CI runs (mikluko/changelog v1.6.0, which the v1 tag names; binary checked against the release's checksum) gives valid=true and due=false (0.28.1 is already tagged) on the head, on the merge commit and on the squash, so the merge cuts no release. As a control, the earlier head 824b310 merged into the same main still fails with release-entry-modified.
  • pr-sweep.sh and sweep_test.go are byte-identical to the head reviewed before (blobs d357d65 and 684559d), and so is the commit message.

Checked again in full, on the merge result

All of it ran from a scratch clone with an empty environment (no GC_*, REX_*, REXCITY_*, BEADS_* or BD_* variable) and without rex, gc or bd on PATH, on macOS 27.2 arm64 with go1.27.4.

  • Green on this Mac. go test -count=1 ./... with the stock BSD /bin/date and /usr/bin/sed: the 9 packages that have tests are ok, 441 tests and subtests pass, none fails. The 4 skips are the TestLive* cases of internal/rex, which need a Rex server, as on CI. ./packs/ is green with Homebrew bash 5.3.20 and with stock tools only (/bin/bash 3.2.57, Apple git and jq). On main the same run fails TestSweepLeavesAnApprovedPullRequest at packs/sweep_test.go:287, as the bead describes.
  • Linux does what it did. With GNU date 9.12 first on PATH, the old and the new epoch() print the same and exit the same for 102 inputs (RFC 3339 shapes, malformed and impossible dates, empty, null, option-like and shell-hostile strings) under 7 TZ settings, called both as the script calls it and as the test does, in bash 5.3 and 3.2: 1428 rows per bash, byte-identical. GNU date refuses -j, so a timestamp it cannot read is still 0. Whatever date a host has, the first branch is the old command, and the second can only succeed where date takes BSD's -j -f. ./packs/ is green with GNU date and GNU sed 4.10 first on PATH.
  • The BSD branch is right. With /bin/date it equals epochs computed by calendar arithmetic alone for 44 timestamps (Z, ±hh:mm with half- and quarter-hour offsets, 08 and 09 fields, fractions, DST edges, a leap day, before 1970, after 2038) under the same 7 TZ settings and both bash versions: 616 rows per bash, no mismatch. It parts from GNU date only on input that neither Forgejo nor bd writes. An impossible date (2026-02-30), a leap second or +99:99 is computed where GNU date refuses it. A shape outside YYYY-MM-DDThh:mm:ss[.f](Z|±hh:mm), such as a lower-case t or z, a space for the T, +0100 or no zone, is 0 where GNU date reads it. Go's zero time 0001-01-01T00:00:00Z is 0 rather than a negative epoch, which is idle past any threshold either way.
  • The test tests what it claims. TestSweepReadsRFC3339Timestamps runs the function text of the script itself. With BSD date it fails against each of nine mutations of epoch(): the old one-liner, a flipped sign, no 10#, the offset ignored, its minutes ignored, negative offsets ignored, no -u, a fraction of six digits only, and nothing printed for an unreadable timestamp. With GNU date it fails when the GNU branch is one second off. It and TestSweepLeavesAnApprovedPullRequest pass under four TZ values with either date.
  • Shell safety. The timestamp reaches date -d as one quoted argument, the BSD call gets only what the regex matched (digits, -, :, T), and the arithmetic takes two-digit captures behind 10#. Nothing is evaluated, and no secret is read or printed. shellcheck 0.11.0 reports the same one finding (SC2034) on main and at the head, none in epoch(), and bash -n passes in both bash versions.
  • The static checks of test.yaml. go vet ./..., GOOS=darwin GOARCH=arm64 go vet ./... and gofmt -l . are clean.
  • CI at the head. Run 1420 (test.yaml, /actions/runs/327): go (go1.27.3 on linux/amd64, packs ok in 79 s) and changelog succeeded. Run 1419 (image.yaml) succeeded. Both required checks are green on 3388468.
  • The release after this one. On the merge result, renovate's two commands (append -section=Changed, then release) and a plain release each leave a changelog the checker accepts, with this entry in 0.28.2.
  • Scope and conventions. Three files, all for the bead. epoch() is the only change to the script, and nothing is refactored. The entry is the one REVIEW.md asks of a change under packs/forgejo/, worded as the effect on a city. packs/forgejo/README.md says nothing about date, so nothing in it goes stale.

Before merging

  • The approval holds while main is 2ac7935. #68 also adds notes under ## [Unreleased]. In a scratch clone, whichever of the two is squashed onto main first, the other then conflicts in CHANGELOG.md. The second to land needs a rebase that puts ### Added above ### Fixed by hand, and the changelog check on the result.
  • The repository squashes by default and takes the pull request's title as the commit subject. This title names the failure, not the change. The commit's own subject would read better on main: fix: read pr-sweep timestamps with BSD date as well as GNU date (rexcity-16bkg).

Follow-ups, outside this pull request

  • CI still checks a head, never its merge with main, as the earlier review noted. #66 and #68 colliding on ## [Unreleased] is the same weakness in its loud form. Changelog fragments, which mikluko/changelog v2 checks, would end both forms.
  • Linux CI runs only the GNU branch of epoch(): the flipped-sign mutation passes there, so a later break of the BSD branch shows only on a Mac. With packs/forgejo deleted at Landing this needs no bead.
  • internal/rex/rex_test.go:19 runs its four TestLive* cases against whichever Rex server the rex on PATH selects, with no opt-in. They skipped here because I kept rex off PATH. A plain go test ./... in a shell that has rex opens and kills test sessions on that server.

Approved by the Operator's reviewing agent under the user's interim mandate of 2026-11-11. Not merged: rexcity's main requires an approval this account cannot give.

**Approved. Not merged.** Reviewed at head 33884688a76065257e68fc76918a4fbadf5d31fa for bead rexcity-16bkg, as it merges into `main` 2ac7935 (`v0.28.1`). Nothing has to change. ## The rework did what the earlier review asked - The branch is now one commit on `main` 2ac7935. A merge commit and a squash, both built in a scratch clone, have the head's tree (ab7082d), so what passes at the head passes on `main`. - `git diff origin/main -- CHANGELOG.md` is four added lines: a `### Fixed` heading and the entry, under `## [Unreleased]` and above `## [0.28.1]`. - The checker CI runs (mikluko/changelog v1.6.0, which the `v1` tag names; binary checked against the release's checksum) gives `valid=true` and `due=false` (`0.28.1 is already tagged`) on the head, on the merge commit and on the squash, so the merge cuts no release. As a control, the earlier head 824b310 merged into the same `main` still fails with `release-entry-modified`. - `pr-sweep.sh` and `sweep_test.go` are byte-identical to the head reviewed before (blobs d357d65 and 684559d), and so is the commit message. ## Checked again in full, on the merge result All of it ran from a scratch clone with an empty environment (no `GC_*`, `REX_*`, `REXCITY_*`, `BEADS_*` or `BD_*` variable) and without `rex`, `gc` or `bd` on `PATH`, on macOS 27.2 arm64 with go1.27.4. - **Green on this Mac.** `go test -count=1 ./...` with the stock BSD `/bin/date` and `/usr/bin/sed`: the 9 packages that have tests are `ok`, 441 tests and subtests pass, none fails. The 4 skips are the `TestLive*` cases of `internal/rex`, which need a Rex server, as on CI. `./packs/` is green with Homebrew bash 5.3.20 and with stock tools only (`/bin/bash` 3.2.57, Apple git and jq). On `main` the same run fails `TestSweepLeavesAnApprovedPullRequest` at `packs/sweep_test.go:287`, as the bead describes. - **Linux does what it did.** With GNU date 9.12 first on `PATH`, the old and the new `epoch()` print the same and exit the same for 102 inputs (RFC 3339 shapes, malformed and impossible dates, empty, `null`, option-like and shell-hostile strings) under 7 `TZ` settings, called both as the script calls it and as the test does, in bash 5.3 and 3.2: 1428 rows per bash, byte-identical. GNU date refuses `-j`, so a timestamp it cannot read is still `0`. Whatever `date` a host has, the first branch is the old command, and the second can only succeed where `date` takes BSD's `-j -f`. `./packs/` is green with GNU date and GNU sed 4.10 first on `PATH`. - **The BSD branch is right.** With `/bin/date` it equals epochs computed by calendar arithmetic alone for 44 timestamps (`Z`, `±hh:mm` with half- and quarter-hour offsets, `08` and `09` fields, fractions, DST edges, a leap day, before 1970, after 2038) under the same 7 `TZ` settings and both bash versions: 616 rows per bash, no mismatch. It parts from GNU date only on input that neither Forgejo nor bd writes. An impossible date (`2026-02-30`), a leap second or `+99:99` is computed where GNU date refuses it. A shape outside `YYYY-MM-DDThh:mm:ss[.f](Z|±hh:mm)`, such as a lower-case `t` or `z`, a space for the `T`, `+0100` or no zone, is `0` where GNU date reads it. Go's zero time `0001-01-01T00:00:00Z` is `0` rather than a negative epoch, which is idle past any threshold either way. - **The test tests what it claims.** `TestSweepReadsRFC3339Timestamps` runs the function text of the script itself. With BSD date it fails against each of nine mutations of `epoch()`: the old one-liner, a flipped sign, no `10#`, the offset ignored, its minutes ignored, negative offsets ignored, no `-u`, a fraction of six digits only, and nothing printed for an unreadable timestamp. With GNU date it fails when the GNU branch is one second off. It and `TestSweepLeavesAnApprovedPullRequest` pass under four `TZ` values with either date. - **Shell safety.** The timestamp reaches `date -d` as one quoted argument, the BSD call gets only what the regex matched (digits, `-`, `:`, `T`), and the arithmetic takes two-digit captures behind `10#`. Nothing is evaluated, and no secret is read or printed. shellcheck 0.11.0 reports the same one finding (SC2034) on `main` and at the head, none in `epoch()`, and `bash -n` passes in both bash versions. - **The static checks of `test.yaml`.** `go vet ./...`, `GOOS=darwin GOARCH=arm64 go vet ./...` and `gofmt -l .` are clean. - **CI at the head.** Run 1420 (`test.yaml`, `/actions/runs/327`): `go` (go1.27.3 on linux/amd64, `packs` `ok` in 79 s) and `changelog` succeeded. Run 1419 (`image.yaml`) succeeded. Both required checks are green on 3388468. - **The release after this one.** On the merge result, renovate's two commands (`append -section=Changed`, then `release`) and a plain `release` each leave a changelog the checker accepts, with this entry in 0.28.2. - **Scope and conventions.** Three files, all for the bead. `epoch()` is the only change to the script, and nothing is refactored. The entry is the one REVIEW.md asks of a change under `packs/forgejo/`, worded as the effect on a city. `packs/forgejo/README.md` says nothing about `date`, so nothing in it goes stale. ## Before merging - The approval holds while `main` is 2ac7935. #68 also adds notes under `## [Unreleased]`. In a scratch clone, whichever of the two is squashed onto `main` first, the other then conflicts in `CHANGELOG.md`. The second to land needs a rebase that puts `### Added` above `### Fixed` by hand, and the changelog check on the result. - The repository squashes by default and takes the pull request's title as the commit subject. This title names the failure, not the change. The commit's own subject would read better on `main`: `fix: read pr-sweep timestamps with BSD date as well as GNU date (rexcity-16bkg)`. ## Follow-ups, outside this pull request - CI still checks a head, never its merge with `main`, as the earlier review noted. #66 and #68 colliding on `## [Unreleased]` is the same weakness in its loud form. Changelog fragments, which mikluko/changelog v2 checks, would end both forms. - Linux CI runs only the GNU branch of `epoch()`: the flipped-sign mutation passes there, so a later break of the BSD branch shows only on a Mac. With `packs/forgejo` deleted at Landing this needs no bead. - `internal/rex/rex_test.go:19` runs its four `TestLive*` cases against whichever Rex server the `rex` on `PATH` selects, with no opt-in. They skipped here because I kept `rex` off `PATH`. A plain `go test ./...` in a shell that has `rex` opens and kills test sessions on that server. Approved by the Operator's reviewing agent under the user's interim mandate of 2026-11-11. Not merged: rexcity's main requires an approval this account cannot give.
Commenting is not possible because the repository is archived.
No reviewers
No labels
No milestone
No project
No assignees
2 participants
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
mikluko/rexcity!66
No description provided.