Repository navigation
Commit 6859b2f
docs(qa): RUNNER's connector self-URL entry follows the compile, not the boot's OS_PORT (#33406)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"}
-->
_Requested by **Leehom** · [project
thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XAvhM3jY1jCc9QWVrVgRVuA)_
domain:devx#4 · os-project-manager · session_01FEkQ5ngu3885adndgvQofR
Fixes #33371
Clause-②: no
Metadata-protocol: none
## 维护者速读
- 改了什么:只改 `docs/qa/platform-checklist/RUNNER.md` 里「showcase
自连连接器」那一条。旧文说导出 `OS_PORT` 就能修好,新文写明实测事实:连接器地址在编译时定下,`--no-compile` 启动时导出
`OS_PORT` 不起作用。两条可行路线都实测过,并写明哪条在共享检出上安全。另补一段端口被占时自动顺延的说明。
- 为什么改:旧文和 RUNNER 自己「共享检出用 `--no-compile`」的规定互相矛盾,照做的跑测会把正确的产品判成
BLOCKED。产品行为与 `self-url.ts` 头注释一致,过时的是 RUNNER。
- 风险与回滚:只改一份 QA 文档,不动产品、不发布。回滚即还原本 PR。
- 先看:`RUNNER.md` 连接器条目里的「Two routes work」两条路线,以及「A held port moves the
boot」那一段。
- 两分钟验证:`pnpm check:platform-checklist`,预期退出码 0。
- 需要你做的:无,席位落地。
## What changes
`docs/qa/platform-checklist/RUNNER.md` only:
- The connector self-URL entry is rewritten. The new headline says the
connectors dial the self-URL the artifact was **compiled** with, so on a
`--no-compile` boot an exported `OS_PORT` does not move it. The entry no
longer prescribes `OS_PORT` as the fix there. Instead it says plainly
that neither `OS_PORT` nor `SHOWCASE_SELF_URL` is read until the next
compile.
- It names two routes, each measured below, and says which is safe on a
shared checkout. Route 1 compiles in a private copy and is safe. Route 2
uses the default compile on the tree, which rewrites the shared
`dist/objectstack.json`, so it is only for a checkout no other runner
boots.
- It keeps the warning that `fetch failed` impersonates an egress block.
The QA run #25817 reading (at `6679644a`) is now dated as pre-#26130 and
marked as no longer holding. The `2889760a` paragraph is dropped because
the measured entry supersedes it.
- The stale "`-p` alone is not enough" headline is gone: `os dev`
exports `-p` for its compile (`portFlagEnv`), and that was measured
below.
- New paragraph on the port shift: `os dev` takes the next free port and
prints it twice, while the runner's shell keeps its `OS_PORT`. Runners
should read the port from the boot log.
- Two pointers: the `--no-compile` entry's #33025 sentence now points at
the connector entry, and the canonical boot line says a connector run
boots a private copy that compiles.
`self-url.ts`, the showcase connectors, the CLI, `scripts/qa/**` and
`areas/*.json` are untouched.
## Why
At `e0ce1b52` the product matches `self-url.ts`'s own header, which says
the metadata is served "as last built" under `os dev --no-compile` (leg
A below). RUNNER's entry was the stale part.
## Tests — live measurements
All legs ran at `origin/main` `e0ce1b52` after `pnpm build
--concurrency=2` under the verify lock (VERDICT command-exit 0,
119/119). Each probe signs in as the seeded admin and creates a
`showcase_task`. It then reads the newest run from `GET
/api/v1/automation/showcase_declarative_connector_ping/runs`, then `GET
/api/v1/meta/connector/showcase_status_api`, then `/api/v1/health`
uptime.
| leg | boot | artifact | ping run | metadata `baseUrl` | shared tree
artifact |
|---|---|---|---|---|---|
| A — the freeze | tree, `--no-compile --no-watch -p 41781`,
`OS_PORT=41781` exported | compiled with no `OS_PORT` (`127.0.0.1:3000`
×4) | **failed**, `connector_action(showcase_status_api.request) failed:
fetch failed` | `http://127.0.0.1:3000` | — |
| B — route 1 | private copy (`cp -a` and an absolute `node_modules`
symlink), default compile, `--no-watch -p 41782`, `OS_PORT=41782` |
`Compiling …` once; copy's artifact `127.0.0.1:41782` ×3 |
**completed**, ping step success, `ping.body` uptime 7.4 s (health 13.6
s six seconds later) | `http://127.0.0.1:41782` | sha256
`04d18b8a9def596a…`, mtime 1794681892 before and after |
| B′ — route 1, `-p` only | same copy, `OS_PORT`/`PORT` unset, `-p
41786` | `127.0.0.1:41786` ×3 | **completed**, uptime 9.6 s (health 15.8
s) | `http://127.0.0.1:41786` | — |
| C — port shift | same copy, 41783 held by a listener, `-p 41783`,
`OS_PORT=41783` | `127.0.0.1:41784` ×3 | **completed**, uptime 10.2 s
(health 16.4 s) | `http://127.0.0.1:41784` | — |
| D — route 2 | tree, default compile, `--no-watch -p 41785`,
`OS_PORT=41785` | `Compiling …` once; the tree's artifact rewritten |
**completed**, uptime 9.7 s (health 15.8 s) | `http://127.0.0.1:41785` |
sha256 → `edbbc9076e31ccf8…`, port 41785 baked in ×3 |
The one `127.0.0.1:3000` left in a recompiled artifact is the OpenAPI
document's `servers[0].url`. The artifact's own note says the
connector's `baseUrl` overrides it on every dispatch.
In leg C the log printed `⚠ Port 41783 is in use — serving on 41784
instead.` at line 6, before the compile, and `↪ server bound to port
41784 (requested 41783)` at line 171.
Every boot ran under `setsid` and was stopped by its process group, read
from the listener; each port was free afterwards. Leg D ran in this
dev's own worktree, not a shared one. No ablation was owed: the diff is
docs only (os-dev.md).
## Acceptance notes
- `skip-changeset`: `docs/qa/**` ships in no package (root `private:
true`).
- The branch was restarted from `origin/main` after #33367 merged (as
`98c3a80440`). This PR's diff is only this card's two commits.
## Verification
On head `7ffd1193` (merge base `origin/main` `e0ce1b52`), the derived
list from `node scripts/pm/dispatch-gates.mjs --commands --repo
objectstack-ai/objectstack` has 16 commands. Each exit code was captured
before any pipe:
<details><summary>16 derived, 16 run, all exit 0; --ran reconciliation
exit 0</summary>
```text
node scripts/check-adr-links.mjs :: exit 0
node scripts/check-adr-links.mjs --self-test :: exit 0
node scripts/check-closing-keyword-parity.mjs :: exit 0
node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0
node scripts/check-comment-mask-corpus.mjs :: exit 0
node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0
pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0
pnpm check:ci-filter-parity :: exit 0
pnpm check:cross-package-test-inputs :: exit 0
pnpm check:doc-authoring :: exit 0
pnpm check:driver-memory-census :: exit 0
pnpm check:gitlink-declared :: exit 0
pnpm check:nul-bytes :: exit 0
pnpm check:platform-checklist :: exit 0
pnpm check:refd-timer-probe :: exit 0
pnpm check:watch-hint-literal :: exit 0
```
`dispatch-gates --ran`: "16 run, 0 NOT-MEASURED (a DERIVED zero …)",
exit 0. Also: `node scripts/check-platform-checklist.mjs --changed-from
origin/main` exit 0, and the control-byte scan found 0 hits.
</details>
No package is touched, so no package build, test, typecheck or scoped
lint is owed. Every other family belongs to CI.
## Human Minimum
- [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic.
(n/a)
- [x] 2. Every name I added uses the casing for its kind.
- [x] 3. No formatter ran; `pnpm lint` passes. (no lintable file
touched)
- [x] 4. One issue, one branch off an up-to-date `main`, one pull
request.
- [x] 5. A change that publishes carries a changeset, and both
declaration lines are filled in here and in the changeset. (publishes
nothing: `skip-changeset`)
- [x] 6. `packages/spec` touched: its generated artifacts are
regenerated and committed. (n/a)
- [x] 7. No hand edits to `content/docs/references/`,
`packages/*/CHANGELOG.md` or `content/docs/releases/`.
- [x] 8. Title, body and comments are in English.
---
_Generated by [Claude
Code](https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR)_
🤖 Generated with [Claude Code](https://claude.com/claude-code)
https://claude.ai/code/session_01FEkQ5ngu3885adndgvQofR
---------
Co-authored-by: Claude <noreply@anthropic.com>1 parent 8a8c21e commit 6859b2f
1 file changed
Lines changed: 65 additions & 43 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
302 | 302 | | |
303 | 303 | | |
304 | 304 | | |
305 | | - | |
306 | | - | |
307 | | - | |
308 | | - | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
309 | 309 | | |
310 | | - | |
311 | | - | |
312 | | - | |
313 | | - | |
314 | | - | |
315 | | - | |
316 | | - | |
| 310 | + | |
| 311 | + | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
317 | 324 | | |
318 | 325 | | |
319 | | - | |
320 | | - | |
321 | | - | |
322 | | - | |
323 | | - | |
324 | | - | |
325 | | - | |
326 | | - | |
327 | | - | |
328 | | - | |
329 | | - | |
330 | | - | |
331 | | - | |
332 | | - | |
333 | | - | |
334 | | - | |
335 | | - | |
336 | | - | |
337 | | - | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
338 | 365 | | |
339 | | - | |
340 | | - | |
341 | | - | |
342 | | - | |
343 | | - | |
344 | | - | |
345 | | - | |
346 | | - | |
347 | | - | |
348 | | - | |
349 | | - | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
350 | 371 | | |
351 | 372 | | |
352 | 373 | | |
| |||
431 | 452 | | |
432 | 453 | | |
433 | 454 | | |
434 | | - | |
| 455 | + | |
435 | 456 | | |
436 | 457 | | |
437 | 458 | | |
| |||
623 | 644 | | |
624 | 645 | | |
625 | 646 | | |
626 | | - | |
| 647 | + | |
| 648 | + | |
627 | 649 | | |
628 | 650 | | |
629 | 651 | | |
| |||
0 commit comments