+{"area":"cmd/mxcli","date":"2026-11-04","symptom":"The nightly goes red on the Mendix 11.14.0 leg only, in `TestTestAttach_KeepsTheHostingAppsPageBundles` (added the day before by ako/mxcli#1917): `mxcli test --attach` exits 1 with `this change needs a runtime restart (an entity or association changed), which --attach cannot do`, although the attach only adds a test microflow. 11.12.x, 11.13, 11.15 and 11.16 are green","cause":"On 11.14.0 every later build in an mxbuild --serve process fails, even with the model unchanged (`Cannot find module …/web/rollup.config.mjs`), and the failed /build response carries no restartRequired key at all. #1917 routes the attach's build through serveRecovery, whose legacy-hint path restarts onto a private serve and builds cold; a cold build reports restartRequired=true whatever changed, and runner_attach read that as a structural change. Before #1917 the same attach failed with the build failure itself, so attach never worked on 11.14.0; the test exposed it because its default 11.12.6 falls back to whatever mxbuild the nightly leg caches","file":"`cmd/mxcli/docker/serve_recovery.go` (rebuildFresh marks the cold answer `BuildResult.ColdRestart`; the incomplete-bundle path clears it when it takes the incremental answer), `cmd/mxcli/testrunner/runner_attach.go` (`attachRestartRefusal`), `cmd/mxcli/cmd_test_attach_bundle_integration_test.go` (11.14 branch)","insight":"A recovery that substitutes a fresh process's answer must say so: a cold build's restartRequired is \"unknown\", and only a caller that can restart may treat it as true. Settled by driving /build directly (a throwaway test with StartServe + Build, no watch loop): 11.14.0 build 2 with no change = Failure with no restartRequired; 11.15.0 = Success, false for no change and for a microflow, true for an entity, 0 pages (the 11.12.5 shape #1917 already recovers). That table is what puts the limit on 11.14.0 alone, so the test pins `>= 11.14 && < 11.15` and fails when an 11.14 mxbuild builds incrementally again. Reproduce in about 4 minutes: `mxcli setup mxbuild --version 11.14.0`, JAVA_HOME at a JDK 25, `MXCLI_RUNLIFE_VERSION=11.14.0 go test -tags integration -run TestTestAttach_KeepsTheHostingAppsPageBundles ./cmd/mxcli/`. Controls: the old test fails with the nightly's exact message; the new test passes on 11.14.0 and 11.15.0 and fails on 11.14.0 against a binary without the fix (it names the entity); stubbing the ColdRestart mark fails the two unit tests that pin it","refs":["mendixlabs/mxcli nightly run 41801646309","ako/mxcli nightly run 41801123003","ako/mxcli#1917","mendixlabs/mxcli#1723"],"test":"cmd/mxcli/cmd_test_attach_bundle_integration_test.go; cmd/mxcli/docker/serve_attached_test.go; cmd/mxcli/docker/serve_recovery_test.go; cmd/mxcli/testrunner/runner_attach_restart_test.go"}
0 commit comments