Skip to content

Commit bf14bb6

Browse files
committed
test(gates): state where the isolation canary compiles and drop the duplicate line-count test
1 parent bd6e8b9 commit bf14bb6

3 files changed

Lines changed: 3 additions & 6 deletions

File tree

‎scripts/__tests__/runner-isolation-diagnostics.test.ts‎

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@ function log(...lines: string[]): string {
4949
}
5050

5151
describe('scanRunnerBuildLog', () => {
52-
test('the canary marks one line per diagnosed shape', () => {
53-
expect(isolationCanaryLines(CANARY_SOURCE)).toHaveLength(4);
54-
});
55-
5652
test('a log carrying the baseline warnings and the full canary passes', () => {
5753
expect(scan(...BASELINE_WARNINGS, ...CANARY_DIAGNOSTICS)).toEqual({
5854
violations: [],

‎scripts/package-apple-runner-source.mjs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ const LEGACY_OUTPUT_DIRS = [
2828
];
2929
const SKIPPED_DIR_NAMES = new Set(['.build', '.swiftpm', 'UnitTests', 'xcuserdata']);
3030
const SKIPPED_ROOT_FILES = new Set(['README.md', 'RUNNER_PROTOCOL.md']);
31-
// The isolation scan's positive control compiles only in this repo's gate builds.
31+
// The isolation scan's positive control compiles only in scripts/build-xcuitest-apple.sh builds:
32+
// the repo gates and the prebuilt release runner. Runners built from this package omit it.
3233
const SKIPPED_RUNNER_FILE_PATHS = new Set([
3334
path.join('AgentDeviceRunner', 'AgentDeviceRunnerUITests', 'RunnerIsolationCanary.swift'),
3435
]);

‎src/__tests__/apple-runner-package-source.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,7 @@ test('package apple runner source skips the unit-test directory and the isolatio
186186
assert.equal(
187187
fs.existsSync(path.join(root, `dist/${uitestsDir}/RunnerIsolationCanary.swift`)),
188188
false,
189-
'the isolation scan canary compiles only in repo gate builds',
189+
'the isolation scan canary compiles only in scripts/build-xcuitest-apple.sh builds',
190190
);
191191
});
192192

0 commit comments

Comments
 (0)