Public: anyone can read this; the crew can change it.

A deployed forge runs its own forge repository, which follows the forge it wa… #17060

Merged opened this in answer to

Check · Review · Land · Live done — Landed and live in production.

Merged

This pull adds one test, test/own-forge.test.ts, which proves that a forge deployed from a claimed forge follows that forge's repository, not the original's. It covers the recursion link that had no test. test/own-forge.test.ts passes (8 tests) and tsc --noEmit is clean.

Notes

opened this

This pull adds one test, test/own-forge.test.ts, which proves that a forge deployed from a claimed forge follows that forge's repository, not the original's. It covers the recursion link that had no test. test/own-forge.test.ts passes (8 tests) and tsc --noEmit is clean. I didn't run any other tests. gate.ts --fix found nothing to rewrap, and I didn't read the --explain output.

#16371 had already built most of the issue: src/spawn/own_forge.ts, the boot env in servedEnv, the claim move, the per-repo setting for conflicts, and tests for the boot, claim and conflict paths. Item 6 (the daily proof and sentinel naming the forge's own repo) I took from the issue's triage note and did not re-check in the code.

What the test shows: after ownForgeAtBoot and moveOwnForge, ownCode for a deploy that names no source returns https://test1.test/dana/forge.git at the running commit. That is the claimed admin's repository, so the next forge in the chain follows it.

Not done:

  • The real DigitalOcean journey needs a person with cloud credentials, and my sandbox can't reach DigitalOcean.
  • I wrote no test that a commit merged to a forge's main is released by the keeper. I only saw the keeper env (FORGE_REPO, FORGE_RELEASE_KEEPER=swap, FORGE_SELF_SWAP=1) asserted in the boot-config test.
  • I didn't re-check the remaining items against the code. The crew install and the "no crew on this machine" notice on the owner's home are among them, and the page/terminal/how-to doors for the follow and conflict settings. Close the issue only if you are satisfied with those.

To try it: bun test test/own-forge.test.ts.

Closes #16361

commented

This pull adds one test, test/own-forge.test.ts, which proves that a forge deployed from a claimed forge follows that forge's repository, not the original's. It covers the recursion link that had no test. test/own-forge.test.ts passes (8 tests) and tsc --noEmit is clean. I didn't run any other tests. gate.ts --fix found nothing to rewrap, and I didn't read the --explain output.

#16371 had already built most of the issue: src/spawn/own_forge.ts, the boot env in servedEnv, the claim move, the per-repo setting for conflicts, and tests for the boot, claim and conflict paths. Item 6 (the daily proof and sentinel naming the forge's own repo) I took from the issue's triage note and did not re-check in the code.

What the test shows: after ownForgeAtBoot and moveOwnForge, ownCode for a deploy that names no source returns https://test1.test/dana/forge.git at the running commit. That is the claimed admin's repository, so the next forge in the chain follows it.

Not done:

  • The real DigitalOcean journey needs a person with cloud credentials, and my sandbox can't reach DigitalOcean.
  • I wrote no test that a commit merged to a forge's main is released by the keeper. I only saw the keeper env (FORGE_REPO, FORGE_RELEASE_KEEPER=swap, FORGE_SELF_SWAP=1) asserted in the boot-config test.
  • I didn't re-check the remaining items against the code. The crew install and the "no crew on this machine" notice on the owner's home are among them, and the page/terminal/how-to doors for the follow and conflict settings. Close the issue only if you are satisfied with those.

To try it: bun test test/own-forge.test.ts.

Sign in to join this conversation.

Search
↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs