Re-vendor the shared files from sneak/prompts at 0653579 (closes #52) #85

Merged
clawbot merged 1 commits from issue-52-revendor-prompts into next 2026-10-19 12:10:12 +02:00
Collaborator

Re-vendors the shared files from sneak/prompts commit 0653579 for #52.

  • .golangci.yml, .gitea/workflows/check.yml and REPO_POLICIES.md are the shared copies unchanged; .gitignore, .editorconfig and .dockerignore are the shared copies followed by this repository's own entries.
  • Lint (golangci-lint v2.14.0) and test are Dockerfile phases, which script/lint and script/test build alone with a new CACHEBUST value, keeping Go's and golangci-lint's caches. The image build depends on both.
  • make fmt and make fmt-check also format the markdown with prettier, pinned in package.json and yarn.lock.
  • The Go code is fixed for the new findings, the code of #88 and #89 included: wrapping and blank lines, long functions split, unused code removed, tests using unexported names renamed *_internal_test.go and run in parallel. The streamer, WHOIS fetcher, database maintainer and web server take a context but run until stopped.

make test and make lint now need Docker.

Disclosures:

  • Behaviour change: the AS detail and prefix detail reads return the rows' error after their loops instead of a partial result.
  • Behaviour change: a JSON error answer that fails to encode is now logged.
  • Deviation: .dockerignore also keeps out local databases and go.work, as the image ships a source archive.
  • Judgement call: AGENTS.md is CLAUDE.md reformatted by make fmt; its words are unchanged.
  • Rule suppressed: tagliatelle on the feed's and the API's JSON names; interfacebloat on database.Store; paralleltest on two goroutine-counting tests; gosec G404 on the prefix-length sample's shuffle; sqlclosecheck on the transaction wrapper's QueryContext, which returns its rows for the caller to close.
  • Unverified: not run on the Gitea runner.

Model: opus-5-5

Re-vendors the shared files from `sneak/prompts` commit `0653579` for https://git.eeqj.de/sneak/routewatch/issues/52. - `.golangci.yml`, `.gitea/workflows/check.yml` and `REPO_POLICIES.md` are the shared copies unchanged; `.gitignore`, `.editorconfig` and `.dockerignore` are the shared copies followed by this repository's own entries. - Lint (golangci-lint v2.14.0) and test are `Dockerfile` phases, which `script/lint` and `script/test` build alone with a new `CACHEBUST` value, keeping Go's and golangci-lint's caches. The image build depends on both. - `make fmt` and `make fmt-check` also format the markdown with prettier, pinned in `package.json` and `yarn.lock`. - The Go code is fixed for the new findings, the code of https://git.eeqj.de/sneak/routewatch/pulls/88 and https://git.eeqj.de/sneak/routewatch/pulls/89 included: wrapping and blank lines, long functions split, unused code removed, tests using unexported names renamed `*_internal_test.go` and run in parallel. The streamer, WHOIS fetcher, database maintainer and web server take a context but run until stopped. `make test` and `make lint` now need Docker. Disclosures: - Behaviour change: the AS detail and prefix detail reads return the rows' error after their loops instead of a partial result. - Behaviour change: a JSON error answer that fails to encode is now logged. - Deviation: `.dockerignore` also keeps out local databases and `go.work`, as the image ships a source archive. - Judgement call: `AGENTS.md` is `CLAUDE.md` reformatted by `make fmt`; its words are unchanged. - Rule suppressed: `tagliatelle` on the feed's and the API's JSON names; `interfacebloat` on `database.Store`; `paralleltest` on two goroutine-counting tests; `gosec` G404 on the prefix-length sample's shuffle; `sqlclosecheck` on the transaction wrapper's `QueryContext`, which returns its rows for the caller to close. - Unverified: not run on the Gitea runner. Model: opus-5-5
clawbot added the needs-review label 2026-10-14 22:03:11 +02:00
clawbot self-assigned this 2026-10-14 22:03:11 +02:00
clawbot added needs-rework and removed needs-review labels 2026-10-19 10:29:15 +02:00
clawbot force-pushed issue-52-revendor-prompts from 793c75751d to 4c1afe6cfe 2026-10-19 11:06:34 +02:00 Compare
clawbot changed title from Re-vendor the shared files from sneak/prompts at dd4027b (closes #52) to Re-vendor the shared files from sneak/prompts at 0653579 (closes #52) 2026-10-19 11:07:19 +02:00
clawbot added needs-review and removed needs-rework labels 2026-10-19 11:07:24 +02:00
Author
Collaborator

Redone on current next from sneak/prompts 0653579 instead of dd4027b. The check builds now pass a new CACHEBUST value instead of --no-cache, so Go's and golangci-lint's caches are kept; make fmt and make fmt-check also format the markdown with prettier; and the lint fixes now cover the code the fix PRs added to next since the last version.

Model: opus-5-5

Redone on current `next` from `sneak/prompts` `0653579` instead of `dd4027b`. The check builds now pass a new `CACHEBUST` value instead of `--no-cache`, so Go's and golangci-lint's caches are kept; `make fmt` and `make fmt-check` also format the markdown with prettier; and the lint fixes now cover the code the fix PRs added to `next` since the last version. Model: opus-5-5
Author
Collaborator
  1. internal/routewatch/app_test.go: the file's only comment says the package's tests are in app_integration_test.go. This change renames that file to app_integration_internal_test.go, so the comment now sends a reader to a file that does not exist. Acceptable: the comment names app_integration_internal_test.go.

  2. internal/routewatch/app.go, the package comment: this change deletes the package comments of asnfetcher.go ("contains the ASN WHOIS fetcher for background updates") and dbmaintainer.go ("contains the database maintainer for background maintenance tasks") so that the package has only one, but carries neither into the one left in app.go, which describes only the RouteWatch type. The package's documentation no longer says that the package runs the background WHOIS fetcher and the database maintenance, the work of two of its files. Acceptable: the package comment in app.go also says the package holds the WHOIS fetcher and the database maintainer.

Model: opus-5-5

1. `internal/routewatch/app_test.go`: the file's only comment says the package's tests are in `app_integration_test.go`. This change renames that file to `app_integration_internal_test.go`, so the comment now sends a reader to a file that does not exist. Acceptable: the comment names `app_integration_internal_test.go`. 2. `internal/routewatch/app.go`, the package comment: this change deletes the package comments of `asnfetcher.go` ("contains the ASN WHOIS fetcher for background updates") and `dbmaintainer.go` ("contains the database maintainer for background maintenance tasks") so that the package has only one, but carries neither into the one left in `app.go`, which describes only the `RouteWatch` type. The package's documentation no longer says that the package runs the background WHOIS fetcher and the database maintenance, the work of two of its files. Acceptable: the package comment in `app.go` also says the package holds the WHOIS fetcher and the database maintainer. Model: opus-5-5
clawbot added needs-rework and removed needs-review labels 2026-10-19 11:22:31 +02:00
clawbot force-pushed issue-52-revendor-prompts from 4c1afe6cfe to 0925c569b6 2026-10-19 11:35:21 +02:00 Compare
Author
Collaborator
  1. internal/routewatch/app_test.go now names app_integration_internal_test.go.
  2. The package comment in internal/routewatch/app.go now also says the package holds the ASN WHOIS fetcher and the database maintainer.

Rebased onto current next; #88 and #89 have not landed on it yet, so no other code needed bringing under the new lint configuration.

Model: opus-5-5

1. `internal/routewatch/app_test.go` now names `app_integration_internal_test.go`. 2. The package comment in `internal/routewatch/app.go` now also says the package holds the ASN WHOIS fetcher and the database maintainer. Rebased onto current `next`; https://git.eeqj.de/sneak/routewatch/pulls/88 and https://git.eeqj.de/sneak/routewatch/pulls/89 have not landed on it yet, so no other code needed bringing under the new lint configuration. Model: opus-5-5
clawbot added needs-review and removed needs-rework labels 2026-10-19 11:35:35 +02:00
Author
Collaborator
  1. The branch no longer applies to current next. #88 has landed there, and rebasing this change onto it conflicts in README.md, internal/database/database.go, internal/database/interface.go, internal/routewatch/peerhandler.go, internal/routewatch/prefixhandler.go, internal/routewatch/prefixhandler_internal_test.go, internal/streamer/streamer.go and internal/streamer/streamer_internal_test.go. Acceptable: rebased onto current next, keeping everything #88 added. Its code must pass the new lint configuration with its behaviour unchanged, and its tests must sit in the renamed *_internal_test.go files.

Model: opus-5-5

1. The branch no longer applies to current `next`. https://git.eeqj.de/sneak/routewatch/pulls/88 has landed there, and rebasing this change onto it conflicts in `README.md`, `internal/database/database.go`, `internal/database/interface.go`, `internal/routewatch/peerhandler.go`, `internal/routewatch/prefixhandler.go`, `internal/routewatch/prefixhandler_internal_test.go`, `internal/streamer/streamer.go` and `internal/streamer/streamer_internal_test.go`. Acceptable: rebased onto current `next`, keeping everything https://git.eeqj.de/sneak/routewatch/pulls/88 added. Its code must pass the new lint configuration with its behaviour unchanged, and its tests must sit in the renamed `*_internal_test.go` files. Model: opus-5-5
clawbot added needs-rebase and removed needs-review labels 2026-10-19 11:45:15 +02:00
clawbot added 1 commit 2026-10-19 12:01:32 +02:00
Takes .golangci.yml, .dockerignore, .gitignore, .editorconfig, the
workflow and REPO_POLICIES.md from sneak/prompts 0653579, with this
repository's own entries after the shared content. Lint (golangci-lint
v2.14.0) and test are Dockerfile phases that script/lint and script/test
build alone with a new CACHEBUST value, keeping Go's and golangci-lint's
caches; the image build depends on both. make fmt and make fmt-check also
format the markdown with prettier, pinned in yarn.lock. The agent
guidance moves to AGENTS.md. The Go code is fixed for what the new
configuration finds, and the AS and prefix detail reads now return the
rows' error after their loops.

Model: opus-5-5
clawbot force-pushed issue-52-revendor-prompts from 0925c569b6 to 0b71832569 2026-10-19 12:01:32 +02:00 Compare
Author
Collaborator

Rebased onto current next, which since the review also has #89. The code of #88 and #89 now passes the new lint configuration with its behaviour unchanged and its tests sit in the *_internal_test.go files; the transaction wrapper's QueryContext is back for the peer delete, under one //nolint:sqlclosecheck.

Model: opus-5-5

Rebased onto current `next`, which since the review also has https://git.eeqj.de/sneak/routewatch/pulls/89. The code of https://git.eeqj.de/sneak/routewatch/pulls/88 and https://git.eeqj.de/sneak/routewatch/pulls/89 now passes the new lint configuration with its behaviour unchanged and its tests sit in the `*_internal_test.go` files; the transaction wrapper's `QueryContext` is back for the peer delete, under one `//nolint:sqlclosecheck`. Model: opus-5-5
clawbot added needs-review and removed needs-rebase labels 2026-10-19 12:01:42 +02:00
Author
Collaborator

Review passed.

Model: opus-5-5

Review passed. Model: opus-5-5
clawbot merged commit b89987e356 into next 2026-10-19 12:10:12 +02:00
clawbot deleted branch issue-52-revendor-prompts 2026-10-19 12:10:13 +02:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: sneak/routewatch#85