refactor(tooling): organize remaining scripts by domain owners (#38407)

* refactor(tooling): group remaining scripts by concrete domain owners

* fix(tooling): preserve relocated launcher resource roots
This commit is contained in:
Neil
2026-11-05 00:29:16 -08:00
committed by GitHub
parent 318f543293
commit 6bb2e13c35
661 changed files with 2024 additions and 1738 deletions
@@ -3,7 +3,7 @@ import { createHash } from 'node:crypto'
import { realpathSync } from 'node:fs'
import { pathToFileURL } from 'node:url'
import { performance, monitorEventLoopDelay } from 'node:perf_hooks'
import { workload } from '../../../../../config/scripts/check-job-log-performance-cases.mjs'
import { workload } from '../../../../../config/scripts/performance/check-job-log/check-job-log-performance-cases.mjs'
assert(
!process.versions.bun && typeof globalThis.gc === 'function',
@@ -7,8 +7,8 @@ import path from 'node:path'
import { fileURLToPath, pathToFileURL } from 'node:url'
import { build, version as esbuildVersion } from 'esbuild'
import { runProcess } from '@orca/process-host'
import { nodeExecutable } from '../../../../../config/scripts/check-job-log-byte-cap-benchmark.mjs'
import { workload } from '../../../../../config/scripts/check-job-log-performance-cases.mjs'
import { nodeExecutable } from '../../../../../config/scripts/performance/check-job-log/check-job-log-byte-cap-benchmark.mjs'
import { workload } from '../../../../../config/scripts/performance/check-job-log/check-job-log-performance-cases.mjs'
const require = createRequire(import.meta.url)
export const hash = (value) => createHash('sha256').update(value).digest('hex')
@@ -29,7 +29,7 @@ const cpuDescriptors = [8, 63].map((size) => ({
mode: 'cpu',
family: 'short-lines',
bytes: size * 1024 * 1024,
generator: 'config/scripts/check-job-log-performance-cases.mjs#workload'
generator: 'config/scripts/performance/check-job-log/check-job-log-performance-cases.mjs#workload'
}))
export async function prepareHostMeasurement(root = process.cwd()) {
@@ -70,8 +70,16 @@ export async function prepareHostMeasurement(root = process.cwd()) {
const executedSources = [
import.meta.filename,
fileURLToPath(scriptUrl('./check-job-log-cache-retention-child.mjs')),
fileURLToPath(scriptUrl('../../../../../config/scripts/check-job-log-performance-cases.mjs')),
fileURLToPath(scriptUrl('../../../../../config/scripts/check-job-log-byte-cap-benchmark.mjs'))
fileURLToPath(
scriptUrl(
'../../../../../config/scripts/performance/check-job-log/check-job-log-performance-cases.mjs'
)
),
fileURLToPath(
scriptUrl(
'../../../../../config/scripts/performance/check-job-log/check-job-log-byte-cap-benchmark.mjs'
)
)
].map((filename) => sourceName(scriptRoot, filename))
const sourceHashes = {}
for (const name of [...new Set([...bundleSources, ...executedSources])].sort()) {
@@ -26,8 +26,8 @@ describe('standalone host measurement identity', () => {
it.each([
'src/main/github/client/check/check-job-log-host-measurement.mjs',
'src/main/github/client/check/check-job-log-cache-retention-child.mjs',
'config/scripts/check-job-log-performance-cases.mjs',
'config/scripts/check-job-log-byte-cap-benchmark.mjs',
'config/scripts/performance/check-job-log/check-job-log-performance-cases.mjs',
'config/scripts/performance/check-job-log/check-job-log-byte-cap-benchmark.mjs',
'src/shared/github/repository-identity-key.ts',
'src/main/git/command-runner/abort-error.ts'
])('rejects stale record identity after an owned-copy mutation of %s', async (name) => {
@@ -3,7 +3,7 @@ import { afterEach, beforeEach, describe, expect, it, vi } from 'vitest'
import * as excerpt from '../../../../shared/source-control/checks/logs/check-job-log-excerpt'
import * as extraction from '../../../../shared/source-control/checks/logs/check-job-log-tail-slice'
import { TERMINAL_CONTROL_CHARACTER_PATTERN } from '../../../../shared/ansi-escape-sequences'
import { createCheckLogFixture } from '../../../../../config/scripts/check-job-log-test-fixture.mjs'
import { createCheckLogFixture } from '../../../../../config/scripts/performance/check-job-log/check-job-log-test-fixture.mjs'
import {
completeFakeSpawn,
createFakeSpawnedChild