diff --git a/.github/scripts/__tests__/pr-triage-classify.test.js b/.github/scripts/__tests__/pr-triage-classify.test.js index 53d3f16242..cf3bef3256 100644 --- a/.github/scripts/__tests__/pr-triage-classify.test.js +++ b/.github/scripts/__tests__/pr-triage-classify.test.js @@ -50,6 +50,11 @@ describe('isTestFile', () => { assert.ok(isTestFile('packages/app/tests/e2e/navigation.ts')); }); + it('matches Storybook story files', () => { + assert.ok(isTestFile('packages/app/src/components/Alert.stories.tsx')); + assert.ok(isTestFile('packages/app/src/HDXMultiSeriesTable.stories.ts')); + }); + it('matches the E2E-only ClickHouse fixture, but not its shipped siblings', () => { assert.ok(isTestFile('docker/clickhouse/local/init-db-e2e.sh')); // config.xml / users.xml are copied into the all-in-one image — production config diff --git a/.github/scripts/pr-triage-classify.js b/.github/scripts/pr-triage-classify.js index f7ee056bd5..3402b157c4 100644 --- a/.github/scripts/pr-triage-classify.js +++ b/.github/scripts/pr-triage-classify.js @@ -78,6 +78,9 @@ const TEST_FILE_PATTERNS = [ /\/__tests__\//, /\.test\.[jt]sx?$/, /\.spec\.[jt]sx?$/, + // Storybook stories are dev-only fixtures — never shipped in the app bundle, + // so they carry no production risk and should not drive the tier. + /\.stories\.[jt]sx?$/, /^packages\/app\/tests\//, // E2E-only ClickHouse fixture, mounted solely by packages/app/tests/e2e. Its // siblings (config.xml, users.xml) ship in the image and stay critical.