~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless

git that lives in your Atmosphere account

knotless.dev
1 collaborator

knotless 0.13.0 Latest 2 packages, 1 image

1
10

Probe: the tests against the spaces alpha alone

Closed chadtmiller.com asked to merge into main from chadtmiller.com/knotless:ci/spaces-only-probe
.knotless/workflows/test.yml+1−1
@@ -73,7 +73,7 @@ steps:
# A pull's run, its pre-flight, goes against the stock PDS alone, to
# be quick, and against the alpha too only when the gate falls short
# without it; the merge queue's batch runs both.
COV_NETS=${KNOTLESS_RUN_PULL:+stock} COV_STORE=/opt/testcache COV_JOBS=$(( $(nproc) / 2 )) COV_HARNESSES=2 COV_TOOLCHAIN=$(rustup show active-toolchain | cut -d' ' -f1) \
COV_NETS=stock,spaces COV_STOCK=gateway,pages,cli,spaces,oauth COV_STORE= COV_JOBS=$(( $(nproc) / 2 )) COV_HARNESSES=2 COV_TOOLCHAIN=$(rustup show active-toolchain | cut -d' ' -f1) \
node harness/cov.mjs /opt/atproto/packages/dev-env
- name: answers
run: |
harness/cov.mjs+5−2
@@ -318,7 +318,10 @@ const reused = all.filter(stored)
// finish is not one started late: the integration tests before the rest
// where there is no time yet.
const guess = (t) => times[timeKey(t)] ?? (t.name.endsWith('(test)') ? 1e9 : 0)
const runs = all.filter((r) => !reused.includes(r) && netsRun.includes(r.net)).sort((a, b) => guess(b) - guess(a))
// COV_STOCK=a,b: against the stock PDS, only the test binaries named.
const stockOnly = process.env.COV_STOCK?.split(',')
const wanted = (r) => netsRun.includes(r.net) && !(stockOnly && r.net === 'stock' && !stockOnly.includes(r.name.split(' ')[0]))
const runs = all.filter((r) => !reused.includes(r) && wanted(r)).sort((a, b) => guess(b) - guess(a))
console.log(`${reused.length} of ${all.length} runs passed before, as they are now, ${runs.length} to run`)
const left = all.filter((r) => !reused.includes(r) && !runs.includes(r))
if (left.length) console.log(` not run, as COV_NETS is ${netsRun}: ${left.map((r) => `${r.net} ${r.name}`).join(', ')}`)
@@ -559,7 +562,7 @@ if (status !== 0 && reused.length && !partial) {
await runAll(reused)
status = gate()
}
if (status !== 0 && partial && left.length) {
if (status !== 0 && partial && left.length && !process.env.COV_NETS?.includes('spaces')) {
console.log(`short against ${netsRun} alone: making the ${left.length} runs left, against the rest`)
for (const r of left) bring(r.net)
for (const n of Object.values(nets).flat()) n.file = await n.up