mirror of
https://github.com/stablyai/orca.git
synced 2026-11-02 18:17:36 +00:00
* perf(ci): reduce test overhead and reuse expensive build work * test(ci): keep worker startup outside failure-case deadlines * test: isolate push fixture advisory locks * test(ci): preserve fixed drain retry allowance * Align CI contracts with current triggers and guide content * Stabilize consolidated reveal scenarios and retain behavioral CI contracts * Fix upstream lint blockers while retaining behavior and assertions * Classify global Jira preferences in the WSL migration inventory * Align Jira test fixtures with startup and build safety checks * Include package-test routing dependency in CI checkouts and fixtures * Keep native stream classes intact in transcript dependency tests
37 lines
1.2 KiB
JavaScript
37 lines
1.2 KiB
JavaScript
import { appendFileSync, readFileSync } from 'node:fs'
|
|
import { pathToFileURL } from 'node:url'
|
|
import { isDocsOnlyPath } from './pr-code-change-scope.mjs'
|
|
|
|
const NON_TEST_FILES = new Set([
|
|
'mobile/Gemfile',
|
|
'mobile/Gemfile.lock',
|
|
'mobile/README.md',
|
|
'.github/workflows/mobile-ios-release.yml',
|
|
'config/scripts/pr-code-change-scope.mjs',
|
|
'config/scripts/pr-package-test-paths.mjs',
|
|
'config/scripts/pr-code-change-scope.test.mjs',
|
|
'config/scripts/pr-layout-oracle-route.mjs',
|
|
'config/scripts/mobile-release-check-scope.mjs',
|
|
'config/scripts/mobile-release-check-scope.test.mjs'
|
|
])
|
|
|
|
export function shouldRunMobileTests(files) {
|
|
return (
|
|
files.length === 0 ||
|
|
files.some(
|
|
(file) =>
|
|
file.split('/').includes('..') ||
|
|
(!isDocsOnlyPath(file) &&
|
|
!NON_TEST_FILES.has(file) &&
|
|
!file.startsWith('mobile/docs/') &&
|
|
!file.startsWith('mobile/fastlane/'))
|
|
)
|
|
)
|
|
}
|
|
|
|
if (process.argv[1] && import.meta.url === pathToFileURL(process.argv[1]).href) {
|
|
const input = readFileSync(process.argv[2], 'utf8')
|
|
const files = input.endsWith('\0') ? input.slice(0, -1).split('\0') : []
|
|
appendFileSync(process.env.GITHUB_OUTPUT, `should_run=${shouldRunMobileTests(files)}\n`)
|
|
}
|