Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions apps/server/src/orchestration-v2/runtimeLayer.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5384,9 +5384,11 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
yield* worker.drain();
const wakes = (yield* texts).slice(before);
assert.equal(wakes.length, names.length === 0 ? 0 : 1);
// The finished section lists every failing check, so only the failed one counts here.
const failedSections = wakes.map((text) => text.split("- Every check has finished")[0]!);
for (const name of ["lint", "test"]) {
assert.equal(
wakes.some((text) => text.includes(` - ${name}`)),
failedSections.some((text) => text.includes(` - ${name}`)),
names.includes(name as never),
`read ${index} told ${name}`,
);
Expand Down Expand Up @@ -5748,7 +5750,7 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
e2e = "success";
yield* TestClock.adjust("10 minutes");
yield* reactor.sweep;
assert.deepEqual(yield* summaries, []);
assert.deepEqual(yield* summaries, ["#17: checks finished; #18: checks finished"]);
assert.isFalse(yield* checksPending);

// A push clears the answer while a read with news is in flight. That read's answer is the
Expand Down Expand Up @@ -5777,7 +5779,7 @@ it.layer(layerTest)("OrchestrationV2LayerLive lifecycle", (it) => {
gate = null;
yield* Deferred.succeed(release, undefined);
yield* Fiber.join(inFlight);
assert.lengthOf(yield* summaries, 1);
assert.lengthOf(yield* summaries, 2);
assert.isUndefined(yield* checksPending);

// The next sweep reads it again though nothing on the host changed.
Expand Down
Loading