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

The story's wave plan and the feed's shipped and step rows are pinned by tests that fail without them #15932

Merged opened this

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

Merged

I added two test files, one for each of the three modules that had no direct test. Both pass (8 tests), and bun x tsc --noEmit and bun scripts/gate.ts --fix came back clean. I did not run the full suite; the forge runs it on the push.

Notes

shipped production is serving it deploy 3fede26

opened this

I added two test files, one for each of the three modules that had no direct test. Both pass (8 tests), and bun x tsc --noEmit and bun scripts/gate.ts --fix came back clean. I did not run the full suite; the forge runs it on the push.

What the tests cover

  • test/story-wave-plan.test.ts
    • milestonePath puts a milestone under the base path.
    • planNow on an empty repository gives no limbs and no milestone.
    • planNow on one milestone with an open leaf gives that milestone its leaf as ready, with no spend read.
    • planNow on a finished milestone has nothing ready, building or blocked beneath it.
  • test/feed-shipped-step.test.ts
    • shipped lists merged pulls newest first with owner/name, and respects the limit. Open and closed-unmerged pulls are left out.
    • shipped leaves out sealed pulls, and in the public scope private and archived repositories.
    • A title with markup comes back as stored and escapeHtml escapes it. shipped returns plain data, so escaping is pinned at the escapeHtml boundary, not inside the module.
    • stepsOf gives a merged pull land (done) and an open pull review. It skips closed-unmerged pulls, non-pull posts, unknown repositories and malformed links.

Each file seeds its own fixtures. scripts/gate.ts gates every test/*.test.ts, so the new files need no list entry. I changed no source.

I did not cover stepsOf's check and live steps.

No page changed, so there is no review block.

To try it: bun test test/story-wave-plan.test.ts test/feed-shipped-step.test.ts.

Closes #15930

commented

I added two test files, one for each of the three modules that had no direct test. Both pass (8 tests), and bun x tsc --noEmit and bun scripts/gate.ts --fix came back clean. I did not run the full suite; the forge runs it on the push.

What the tests cover

  • test/story-wave-plan.test.ts
    • milestonePath puts a milestone under the base path.
    • planNow on an empty repository gives no limbs and no milestone.
    • planNow on one milestone with an open leaf gives that milestone its leaf as ready, with no spend read.
    • planNow on a finished milestone has nothing ready, building or blocked beneath it.
  • test/feed-shipped-step.test.ts
    • shipped lists merged pulls newest first with owner/name, and respects the limit. Open and closed-unmerged pulls are left out.
    • shipped leaves out sealed pulls, and in the public scope private and archived repositories.
    • A title with markup comes back as stored and escapeHtml escapes it. shipped returns plain data, so escaping is pinned at the escapeHtml boundary, not inside the module.
    • stepsOf gives a merged pull land (done) and an open pull review. It skips closed-unmerged pulls, non-pull posts, unknown repositories and malformed links.

Each file seeds its own fixtures. scripts/gate.ts gates every test/*.test.ts, so the new files need no list entry. I changed no source.

I did not cover stepsOf's check and live steps.

No page changed, so there is no review block.

To try it: bun test test/story-wave-plan.test.ts test/feed-shipped-step.test.ts.

Approved

Clean: two test-only files, no source change, no dependency, no secrets. Each test seeds its own temp data dir and cleans it up. Assertions pin ordering, limit, sealed/private/archived exclusion, escaping at escapeHtml, stepsOf land/review and its skips, and planNow on empty, open and finished milestones. I could not check out the head in my clone, so I read the diff and did not rerun the tests; the pull is green. No page changed, so there is no preview behaviour to check. The unpinned stepsOf check and live steps are disclosed and outside the boxes.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs