mirror of
https://github.com/stablyai/orca.git
synced 2026-11-15 18:37:24 +00:00
test: trim runner and mobile recording matrices
This commit is contained in:
@@ -108,9 +108,7 @@ for (const [name, options] of [
|
||||
[
|
||||
'alternate PostgreSQL',
|
||||
{ env: { ORCA_IDLE_REHOME_POSTGRES_URL: 'postgres://localhost:55440/relay' } }
|
||||
],
|
||||
['application database', { env: { DATABASE_URL: databaseUrl } }],
|
||||
['one CPU', { parallelism: 1 }]
|
||||
]
|
||||
]) {
|
||||
test(`retains the original single run for ${name}`, async (t) => {
|
||||
const h = start(t, options)
|
||||
@@ -126,20 +124,6 @@ for (const [name, options] of [
|
||||
})
|
||||
}
|
||||
|
||||
for (const [name, result] of [
|
||||
['null exit code', { ...success, code: null }],
|
||||
['termination signal', { ...success, signal: 'SIGTERM' }],
|
||||
['timeout', { ...success, timedOut: true }]
|
||||
]) {
|
||||
test(`fails a ${name} even when other result fields indicate success`, async (t) => {
|
||||
const h = start(t)
|
||||
finish(h.calls[0], result)
|
||||
finish(h.calls[1])
|
||||
assert.equal(await h.pending, 1)
|
||||
assertClean(h)
|
||||
})
|
||||
}
|
||||
|
||||
test('fails and retains scratch when a child never reports closure', async (t) => {
|
||||
const h = start(t)
|
||||
finish(h.calls[0], success, false)
|
||||
@@ -152,8 +136,7 @@ test('fails and retains scratch when a child never reports closure', async (t) =
|
||||
})
|
||||
|
||||
for (const [signal, exitCode, laterSignal] of [
|
||||
['SIGINT', 130, 'SIGTERM'],
|
||||
['SIGTERM', 143, 'SIGINT']
|
||||
['SIGINT', 130, 'SIGTERM']
|
||||
]) {
|
||||
test(`${signal} cancels every child and retains scratch despite root close callbacks`, async (t) => {
|
||||
const h = start(t)
|
||||
|
||||
@@ -139,10 +139,6 @@ describe('committed production task owners in recording adapters', () => {
|
||||
|
||||
it.each([
|
||||
['tk-item-metadata-gitlab', 'update-gitlab'],
|
||||
['tk-item-comment-github', 'comment'],
|
||||
['tk-item-checks-files', 'rerun'],
|
||||
['tk-item-status-gitlab', 'gitlab-status'],
|
||||
['tk-project-row-files-merge', 'pr-state'],
|
||||
['tk-linear-item', 'comment']
|
||||
])(
|
||||
'%s records deferred acquire, refused reentry, release and fresh remount',
|
||||
@@ -260,7 +256,7 @@ describe('committed production task owners in recording adapters', () => {
|
||||
}
|
||||
)
|
||||
|
||||
it.each(['tk-item-checks-files', 'tk-project-row-files-merge'])(
|
||||
it.each(['tk-item-checks-files'])(
|
||||
'%s records a same-path file successor and ignores retired publication/finish',
|
||||
async (id) => {
|
||||
const base = pilot(id)
|
||||
@@ -328,8 +324,6 @@ describe('committed production task owners in recording adapters', () => {
|
||||
)
|
||||
|
||||
it.each([
|
||||
['tk-item-detail-github', 'payload', 'detailLoading'],
|
||||
['tk-item-detail-gitlab', 'payload', 'detailLoading'],
|
||||
['tk-item-detail-linear', 'payload', 'detailLoading'],
|
||||
['tk-project-row-detail', 'detail', 'projectRowDetailLoading']
|
||||
])(
|
||||
|
||||
Reference in New Issue
Block a user