mirror of
https://github.com/stablyai/orca.git
synced 2026-11-13 17:37:40 +00:00
* refactor(tooling): organize test runtime and maintenance owners * test(tooling): preserve relocated runtime fixture dependency edges * refactor(tooling): preserve xterm routing owner checks * ci(tooling): include routing owner in sparse checkout * test(tooling): preserve copied workflow dependency closures * fix(tooling): normalize hashed JSON assets in release parity * fix(tooling): distinguish asset aliases from literal references * fix(tooling): frame normalized asset reference payloads * fix(tooling): normalize decoded JSON asset references * refactor(tooling): organize build, CI and release owners * fix(tooling): align moved generator and workflow path contracts * fix(tooling): update generated plugin bundle owner banners * test(tooling): create relocated mobile verifier fixture directories * test(tooling): copy headless detector dependency closure * test(tooling): align native batch policy fixtures with owner path * fix(tooling): link moved reliability command to historical evidence * fix(tooling): preserve nested sandbox owners and canonical guide source * fix(tooling): target release version owners in checkout fixture
43 lines
1.5 KiB
JavaScript
43 lines
1.5 KiB
JavaScript
import { expect, it } from 'vitest'
|
|
import { classifyPrJobs, PR_CHECK_JOBS } from './pr-code-change-scope.mjs'
|
|
|
|
it.each([
|
|
'config/scripts/workflow/source-routing/pr-code-change-scope.test.mjs',
|
|
'config/scripts/workflow/source-routing/pr-code-change-scope-released-phone.test.mjs',
|
|
'config/scripts/pr-package-test-paths.test.mjs'
|
|
])('keeps full units and preflight without forcing unrelated lanes for %s', (file) => {
|
|
for (const files of [[file], [file, 'AGENTS.md']]) {
|
|
const result = classifyPrJobs(files)
|
|
expect(PR_CHECK_JOBS.filter((job) => result[job])).toEqual([
|
|
'static_analysis',
|
|
'typecheck',
|
|
'test'
|
|
])
|
|
}
|
|
const mixed = classifyPrJobs([file, 'src/shared/git/commands/git-capability-cache.ts'])
|
|
expect(PR_CHECK_JOBS.filter((job) => mixed[job])).toEqual([
|
|
'static_analysis',
|
|
'typecheck',
|
|
'git_compatibility',
|
|
'test',
|
|
'package',
|
|
'package_windows'
|
|
])
|
|
})
|
|
|
|
it.each([
|
|
'config/scripts/workflow/source-routing/pr-code-change-scope.mjs',
|
|
'config/scripts/pr-code-change-scope-next.mjs',
|
|
'config/scripts/workflow/source-routing/pr-package-test-paths.mjs',
|
|
'.github/workflows/pr.yml',
|
|
'.github/actions/install-node-dependencies/action.yml'
|
|
])('keeps every lane for routing or execution changes mixed with routing tests: %s', (file) => {
|
|
const result = classifyPrJobs([
|
|
'config/scripts/workflow/source-routing/pr-code-change-scope.test.mjs',
|
|
file
|
|
])
|
|
for (const job of PR_CHECK_JOBS) {
|
|
expect(result[job], job).toBe(true)
|
|
}
|
|
})
|