Files
summercms/.planning/phases/19.8-console-commands-overhaul/deferred-items.md

5.5 KiB

Phase 19.8 deferred items

Out-of-scope findings recorded during execution. Not fixed in this phase.

Found during 19.8-01

  • Flaky wristband test. TestOIDCSubjectIsRandomSmoke (modules/wristband/oidc_security_test.go:151) rejects a subject that contains ada (to catch the fixture user's name), but a random UUIDv4 contains ada in about 0.7% of runs. It failed once during the 19.8-01 short suite (sub = "64a89757-94a7-4699-bf28-4329d8c7eada") and passed on three reruns. Fix: compare against the fixture's name as a whole, or check that the subject differs from it, instead of matching a substring of hex.
  • Pre-existing gofmt drift. gofmt -l lists internal/build/registry.go, modules/cabana/account_tokens.go (no newline at end of file) and some test files (modules/cabana/*_test.go, modules/compass/*_test.go, modules/tide/*_test.go). Unchanged by this plan beyond the logger lines.
  • examples/hello go.mod is stale outside the workspace. GOWORK=off go -C examples/hello build . asks for go mod tidy: its go.mod lacks requirements the framework already had before this phase (aws-sdk, bluemonday, redis, among others). Inside the repository's go.work every build and test passes, so the example modules' go.mod and go.sum were left as they were.

Found during 19.8-03 (segment B, plugin sweep)

Each failure below also fails at the plugin's commit before the sweep, with framework master and with framework v0.3.1 (checked in scratch worktrees), so it is not caused by the sweep or by v0.4.0. Not fixed here.

  • sm-sitemap-plugin TestSitemapAdminSmoke (sitemap_smoke_test.go:607): expects the phrase key golem15.sitemap::lang.item.reference_required in a 422 body, gets the translated text "The item reference is required.".
  • sm-faq-plugin TestFaqAdminSmoke, TestFaqAdminPurgesSiteCache (site_cache_admin_test.go:208): a create without a locale returns "Choose a language." where the test expects the phrase key.
  • sm-menu-plugin TestMenuAdminSmoke, TestMenuAdminPurgesSiteCache (site_cache_admin_test.go:228): a create returns 422 "Choose a menu or a parent entry." where the test expects success or the phrase key.
  • sm-user-plugin updates migration tests (TestExtendUsersMigration, TestCreateUserThrottleMigration, TestCreateJwtBlacklistMigration, user_session_test.go): "survived rollback", a varying subset per run; also at v0.1.5 with framework v0.3.1.
  • Plugin boot logs on list. Application binaries print INFO boot records (for example paymentgateway: operators registered) before list and help output. Already captured by another session as a todo (summercms.go c1f5ded, "Quiet plugin boot logs on console commands like --help").
  • sm-demo-app roadmap snapshot vs local master. scripts/sync-roadmap.sh --check fails against local framework master while other sessions' 19.6 and 19.6.1 planning commits are unpushed; it passes with ROADMAP_REF=origin/master. Re-sync after those commits are pushed.

Found during 19.8-04 (unit tests)

Recorded, not fixed here: none of them is a defect in released behaviour.

  • gofmt drift from plan 03. gofmt -l lists cmd/summer/main.go, cmd/summer/runtime.go, cmd/summer/runtime_test.go (map key alignment) and modules/flare/commands.go; each already differs at the plan 03 release. The tests added here are formatted.
  • Dotted component names in YAML. The diary README and docs/services/logging.md say component names cannot contain dots. compass keeps a dotted YAML key literal (components: {golem15.blog: debug} parses as component golem15.blog and works for diary.For("golem15.blog")); only the nested form, which SUMMER_LOG__ variables produce, is refused. TestConfigRules pins both. Either reject the literal form or reword the docs ("use names without dots so environment overrides can reach them").
  • Version.Header collapses equal versions. An application built as devel against a devel framework prints SummerCMS acme devel without (framework devel), the same rule that gives SummerCMS summer v0.4.0. Go stamps VCS pseudo-versions on applications, so it shows only with -buildvcs=false. Pinned by TestVersionHeader.
  • Error blocks scrub credential shapes only. RenderError passes text through sunscreen.Scrub (Bearer tokens, sk- keys, x-api-key:); a password=... written into an error message is printed as is. The plan's TestErrorScrubbed wording ("a password attribute in the message") is covered for the shapes Scrub knows; extending Scrub is a sunscreen change for every log line and needs its own decision.
  • Live views on a non-terminal writer draw no frames. runLive takes the window size from the terminal; with a buffer the renderer draws nothing but the PrintAbove lines. The widget matrix therefore proves the live path ran (cursor hidden, no fallback lines) and TestLiveModels renders the frames with a fixed size; a pty run of spinner, progress and process view printed every final frame (✓ fast spinner, 4/4, ✓ a, ✗ b bad row, Importing 2/2 … 100%).
  • Landing end-to-end check. TestTerminalCommands (sm-summercmsio-app) runs the deployed one-liner and needs network, Docker and ports 54320 and 8080; the gate runs it only with SUMMERCMS_TERMINAL_CHECK=1 and prints NOT RUN otherwise.
  • Stray binary in sm-grzybyfunkcjonalne-app. An untracked sm-grzybyfunkcjonalne-app executable sits in that application's root (present before this plan; a go build without -o). Not this plan's; left alone.