Skip to content

Commit 34ada7d

Browse files
tarasclaude
andcommitted
Hold the checks-watch tests to the published boundaries
The checks watch publishes two contextual Apis from `@executablemd/git/api`, so the entrypoint's seam list names them. The REPL watch suite states the spec's ten- and five-second cadence itself instead of importing it from Git's source, which the S6 boundary forbids. The `xmd syntax` catalog fixtures now carry `<PullRequest.Checks>`'s `watch` and `timeoutSeconds` props. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 038fdd4 commit 34ada7d

3 files changed

Lines changed: 8 additions & 6 deletions

File tree

‎packages/cli/tests/repl-pull-request-checks-watch.test.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,6 @@ import { InMemoryStream } from "@executablemd/durable-streams";
4242
import type { DurableEvent, DurableStream } from "@executablemd/durable-streams";
4343
import { collect, DocumentOutput, Elicitation } from "@executablemd/core";
4444
import { executeInstalled } from "@executablemd/core/host";
45-
import {
46-
CHECK_WATCH_POLL_MS,
47-
CHECK_WATCH_RETRY_MS,
48-
} from "../../git/src/composition/pull-request-checks-watch.ts";
4945
import { PullRequestWatchClock } from "@executablemd/git/api";
5046
import { useCompositionComponents } from "@executablemd/git";
5147
import {
@@ -66,6 +62,10 @@ const URL_1 = "https://github.com/owner/repository/pull/1";
6662
const HEAD = "a".repeat(40);
6763
const MOVED = "b".repeat(40);
6864
const START = Date.UTC(2026, 10, 23, 12);
65+
// The cadence the workflow workspace spec states, held here rather than read
66+
// from the implementation so a changed interval fails this suite.
67+
const CHECK_WATCH_POLL_MS = 10_000;
68+
const CHECK_WATCH_RETRY_MS = 5_000;
6969

7070
/** One request the modeled GitHub receives. */
7171
interface GitHubHttpRequest {

0 commit comments

Comments
 (0)