Skip to content

Commit 9dd0837

Browse files
committed
chore(gates): drop the .xml package-capture extension
That extension was added only to own the captured xctrace export this branch no longer commits, so the rule would own nothing real. Revert to the `.json` capture rule and keep the ownership test on the captures that exist.
1 parent 42b3d97 commit 9dd0837

2 files changed

Lines changed: 4 additions & 5 deletions

File tree

‎scripts/check-affected/model.test.ts‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,6 @@ test('a payload capture inside a package selects the unit lane', () => {
235235
// a capture edit failed the gate open, which punished adding evidence rather than the absence of it.
236236
for (const file of [
237237
'packages/platform-apple/src/core/__tests__/fixtures/ios-device-info-details.json',
238-
'packages/platform-apple/src/core/__tests__/fixtures/xcode27-time-profile.xml',
239238
'packages/platform-apple/src/snapshot-source/fixtures/wire-vocabulary.json',
240239
]) {
241240
const result = plan([file]);

‎scripts/check-affected/model.ts‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -530,16 +530,16 @@ const BUILD_OWNERSHIP: ReadonlyArray<{
530530
file === 'examples/test-app/pnpm-workspace.yaml',
531531
},
532532
// In-package payload captures: a recorded tool response checked in under a package's fixture
533-
// directory (`packages/*/**/__tests__/fixtures/*.json` or `*.xml`, or a `fixtures/` dir beside
534-
// the module that reads it). Nothing builds them and no `.ts` sibling names them, so without
535-
// this a capture edit fails the gate open even though exactly one suite asserts against it.
533+
// directory (`packages/*/**/__tests__/fixtures/*.json`, or a `fixtures/` dir beside the module that
534+
// reads it). Nothing builds them and no `.ts` sibling names them, so without this a capture edit
535+
// fails the gate open even though exactly one suite asserts against it.
536536
{
537537
check: 'unit',
538538
rule: 'own:package-capture',
539539
detail: 'the vitest unit suite reads the captured payload',
540540
owns: (file) =>
541541
file.startsWith('packages/') &&
542-
(file.endsWith('.json') || file.endsWith('.xml')) &&
542+
file.endsWith('.json') &&
543543
(file.includes('/__tests__/fixtures/') || file.includes('/fixtures/')),
544544
},
545545
// TS/Swift golden tables (`contracts/fixtures/*.json`): the vitest parity test and the

0 commit comments

Comments
 (0)