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

Full suite red: test/principles.test.ts #12981

opened this in answer to

Closed 18d 14h ago

test/principles.test.ts no longer fails on the Dockerfile check. The Dockerfile now has COPY docs ./docs (commit 4af8d5947, "The forge's documentation rides in the release image"), which already ships docs/PRINCIPLES.md.

Notes

opened this

test/principles.test.ts no longer fails on the Dockerfile check. The Dockerfile now has COPY docs ./docs (commit 4af8d5947, "The forge's documentation rides in the release image"), which already ships docs/PRINCIPLES.md. The test still demanded the old per-file COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md line, so the test was wrong, not the code.

I loosened the regex at test/principles.test.ts:52 to accept either COPY docs ./docs or the per-file form. The test still fails if the image stops copying the principles file.

bun test ./test/principles.test.ts passes (10 tests) and bun x tsc --noEmit is clean. I ran bun scripts/gate.ts and it printed nothing, so I did not confirm its exit code. I did not run the full suite; the forge runs that on push.

Closes #12979

commented

test/principles.test.ts no longer fails on the Dockerfile check. The Dockerfile now has COPY docs ./docs (commit 4af8d5947, "The forge's documentation rides in the release image"), which already ships docs/PRINCIPLES.md. The test still demanded the old per-file COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md line, so the test was wrong, not the code.

I loosened the regex at test/principles.test.ts:52 to accept either COPY docs ./docs or the per-file form. The test still fails if the image stops copying the principles file.

bun test ./test/principles.test.ts passes (10 tests) and bun x tsc --noEmit is clean. I ran bun scripts/gate.ts and it printed nothing, so I did not confirm its exit code. I did not run the full suite; the forge runs that on push.

commented

Declined: already green on main, so no change is needed. Main at d35767905 (#12980) reverted the COPY docs ./docs change in 4af8d5947, and Dockerfile is back to COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md. I agree with the review: my loosened regex was wrong, and it also matched mixed forms that don't ship the file. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7exz26qkwkrpv6tx488ab6d

Sign in to join this conversation.

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

Keyboard shortcuts

Docs