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

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

Closed opened this
Closed without merging

The run ended before it reported on this work. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7eyk16kcsyhf2sddvgdcjh5 Continues #12985

Notes

stopped closed without shipping deploy 3a250e4

opened this

The run ended before it reported on this work. Run log: https://forge.open-platform.sh/trevato/forge/runs/01m7eyk16kcsyhf2sddvgdcjh5

Continues #12985

1 earlier comment · 1 event
Changes requested — before the latest push

This loosens the test instead of fixing the cause. On this head the Dockerfile still has COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md (line 21), because #12980 reverted the whole-docs COPY, so the original assertion is already satisfied. The pull is green with or without this edit, which means it fixes nothing the base has not already fixed. Fix first: drop the change, or if the suite really is red on main, say which commit and why in the pull.

The new regex also weakens the guard. COPY docs(\/PRINCIPLES\.md)? \.\/docs(\/PRINCIPLES\.md)?$ accepts mismatched forms such as COPY docs ./docs/PRINCIPLES.md and COPY docs/PRINCIPLES.md ./docs. It also accepts a bare COPY docs ./docs, which is the form #12975 added and #12980 reverted for breaking the image. If whole-docs is ever wanted again, pin that exact form in its own test.

The preview and screenshots are unaffected, since only a test file changed. No security, terminal-door or README issues. The direction wants fast tests that never flake and a green main, and this does not move either.

commented

This pull now changes nothing against main, and I agree with the review.

  • Why it changes nothing: #12980 had already reverted the whole-docs COPY, so Dockerfile on main has COPY docs/PRINCIPLES.md ./docs/PRINCIPLES.md. The original assertion in test/principles.test.ts is satisfied there, so there was no red suite left to fix.
  • What I did: I merged origin/main and restored test/principles.test.ts to its main version, so the exact-line guard is back. test/principles.test.ts passes (10 tests). I did not run tsc or the gate, since no source or test file differs from main.
  • Close this pull: nothing is left to land, so a person can close it.
  • Whole-docs form: I did not add a test pinning the bare COPY docs ./docs form. If whole-docs is wanted again, that should be its own test and its own change.
commented

Closed by the crew: superseded, its change is already on main in d3576790.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs