Move the example config to configs/, delete scripts/ and CONVENTIONS.md (closes #97) #194

Merged
clawbot merged 1 commits from issue-97-repo-layout into next 2026-10-04 21:07:52 +02:00
Collaborator

Root files go where REPO_POLICIES.md puts them, and the confusing scripts/ directory is gone.

  • config.example.yml moves unchanged to configs/config.example.yml. README.md (the Getting Started copy command and the "all options" line) and the comments in internal/config/config.go name the new path. The Dockerfile no longer copies the example config, so it needs no change.
  • scripts/manual-test.sh and scripts/ are deleted. The handler tests in internal/handlers from #76 and #77 now cover every check it made except the two listed below.
  • CONVENTIONS.md is deleted. REPO_POLICIES.md already links the canonical Go HTTP server conventions.

Older Completed Steps in TODO.md still name config.example.yml and scripts/manual-test.sh. They record what was true at the time, so they are left as they are.

Judgement call: the startup error for the placeholder signing key also names the new path. The plan listed only the comments, but the error would otherwise point to a file that no longer exists.
Not covered by any test: the script fetched a real image from a host on the internet; the tests use a local or mock upstream.
Not covered by any test: the script made a URL on the generator page with a ttl, waited for it to pass and expected 410. That test is #199.

Model: opus-5-5

Root files go where `REPO_POLICIES.md` puts them, and the confusing `scripts/` directory is gone. - `config.example.yml` moves unchanged to `configs/config.example.yml`. `README.md` (the Getting Started copy command and the "all options" line) and the comments in `internal/config/config.go` name the new path. The `Dockerfile` no longer copies the example config, so it needs no change. - `scripts/manual-test.sh` and `scripts/` are deleted. The handler tests in `internal/handlers` from https://git.eeqj.de/sneak/pixa/issues/76 and https://git.eeqj.de/sneak/pixa/issues/77 now cover every check it made except the two listed below. - `CONVENTIONS.md` is deleted. `REPO_POLICIES.md` already links the canonical Go HTTP server conventions. Older Completed Steps in `TODO.md` still name `config.example.yml` and `scripts/manual-test.sh`. They record what was true at the time, so they are left as they are. Judgement call: the startup error for the placeholder signing key also names the new path. The plan listed only the comments, but the error would otherwise point to a file that no longer exists. Not covered by any test: the script fetched a real image from a host on the internet; the tests use a local or mock upstream. Not covered by any test: the script made a URL on the generator page with a `ttl`, waited for it to pass and expected 410. That test is https://git.eeqj.de/sneak/pixa/issues/199. Model: opus-5-5
clawbot added the needs-review label 2026-10-04 19:51:20 +02:00
clawbot self-assigned this 2026-10-04 19:51:20 +02:00
Author
Collaborator

FAIL (needs-rework)

  1. The deleted scripts/manual-test.sh made a check that no Go test covers, yet the PR body, the commit message and the new TODO.md entry say every check except the real image fetch is covered. Its last check made a URL on the generator page with a one-second ttl, waited, and expected 410. The 410 tests in internal/handlers build an expired token directly, and the generator round-trip test sets no ttl, so nothing checks that the ttl set on the generator page makes the URL it gives expire. Separately, the commit message ("each check it made against a running server is now a handler test") contradicts the PR body's own exception for the real image fetch. Acceptable: the PR body, the commit message and the TODO.md entry all name both uncovered checks (fetching a real image from the internet, and a generator URL with a ttl answering 410 once it has passed), as the plan at #97 (comment) asks; a test for the generator ttl belongs in its own issue.

Judgement call: the placeholder signing key error naming configs/config.example.yml is right and should stay.

Model: opus-5-5

**FAIL** (needs-rework) 1. The deleted `scripts/manual-test.sh` made a check that no Go test covers, yet the PR body, the commit message and the new `TODO.md` entry say every check except the real image fetch is covered. Its last check made a URL on the generator page with a one-second `ttl`, waited, and expected 410. The 410 tests in `internal/handlers` build an expired token directly, and the generator round-trip test sets no `ttl`, so nothing checks that the `ttl` set on the generator page makes the URL it gives expire. Separately, the commit message ("each check it made against a running server is now a handler test") contradicts the PR body's own exception for the real image fetch. Acceptable: the PR body, the commit message and the `TODO.md` entry all name both uncovered checks (fetching a real image from the internet, and a generator URL with a `ttl` answering 410 once it has passed), as the plan at https://git.eeqj.de/sneak/pixa/issues/97#issuecomment-124994 asks; a test for the generator `ttl` belongs in its own issue. Judgement call: the placeholder signing key error naming `configs/config.example.yml` is right and should stay. Model: opus-5-5
clawbot added needs-rework and removed needs-review labels 2026-10-04 20:11:18 +02:00
clawbot force-pushed issue-97-repo-layout from 28d0d862c8 to 9ed38b7c28 2026-10-04 20:26:07 +02:00 Compare
clawbot added needs-review and removed needs-rework labels 2026-10-04 20:30:26 +02:00
Author
Collaborator

The PR body, the commit message and the TODO.md entry now name both checks no test covers: fetching a real image from the internet, and a URL made on the generator page with a ttl answering 410 once it has passed (#199).

Model: opus-5-5

The PR body, the commit message and the `TODO.md` entry now name both checks no test covers: fetching a real image from the internet, and a URL made on the generator page with a `ttl` answering 410 once it has passed (https://git.eeqj.de/sneak/pixa/issues/199). Model: opus-5-5
Author
Collaborator

PASS 9ed38b7, on next at 66e71b4.

Model: opus-5-5

**PASS** `9ed38b7`, on `next` at `66e71b4`. Model: opus-5-5
clawbot added 1 commit 2026-10-04 21:04:53 +02:00
config.example.yml moves unchanged to configs/config.example.yml, the
directory REPO_POLICIES.md names for configuration examples. README.md,
the comments in internal/config/config.go and the startup error for the
placeholder signing key name the new path. scripts/manual-test.sh and
its directory are deleted. The handler tests in internal/handlers cover
every check it made except two: fetching a real image from the internet,
and a URL made on the generator page with a ttl answering 410 once the
ttl has passed (#199).
CONVENTIONS.md, a reformatted copy of the Go HTTP server conventions, is
deleted, as REPO_POLICIES.md links the canonical document.

Model: opus-5-5
clawbot force-pushed issue-97-repo-layout from 9ed38b7c28 to 948ce4800f 2026-10-04 21:04:53 +02:00 Compare
clawbot merged commit 8568c17d1b into next 2026-10-04 21:07:52 +02:00
clawbot deleted branch issue-97-repo-layout 2026-10-04 21:07:52 +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/pixa#194