browser tests run only by hand: the suites that launch Chrome / Chromium move to tests/browser/*.browser.ts (bun test, ci, ci:quick and the Forgejo workflows never pick them up; bun run test:browser runs them); the desktop boot check leaves bun run ci (it stays in desktop-release.ts mac at release time); CI=full is gone: Forgejo's ci runs the Rust steps when the push changed a Rust input (STOREBOUND_CI_BASE=HEAD~1), no Playwright install; CONTRIBUTING
This commit is contained in:
parent
4c7ff89950
commit
cd1e13c1e2
20 changed files with 116 additions and 133 deletions
|
|
@ -13,9 +13,9 @@ export const TIMINGS = join(ROOT, 'node_modules/.cache/storebound-ci/test-timing
|
|||
* never next to the light tests, and those shards start first: eight browsers at once (one per shard) on a machine
|
||||
* other sessions already load to 100+ made the walks time out. */
|
||||
export const HEAVY = [
|
||||
'tests/console-fill.test.ts', 'tests/site-overflow.test.ts', 'tests/local-fonts.test.ts', 'tests/glyphs.test.ts',
|
||||
'tests/capture-web.test.ts', 'tests/console-session.test.ts', 'tests/console-persist.test.ts', 'tests/console-flow.test.ts',
|
||||
'tests/glyph-ligatures.test.ts', 'tests/feature-fit.test.ts',
|
||||
'tests/browser/console-fill.browser.ts', 'tests/browser/site-overflow.browser.ts', 'tests/browser/local-fonts.browser.ts', 'tests/browser/glyphs.browser.ts',
|
||||
'tests/browser/capture-web.browser.ts', 'tests/browser/console-session.browser.ts', 'tests/browser/console-persist.browser.ts', 'tests/browser/console-flow.browser.ts',
|
||||
'tests/browser/glyph-ligatures.browser.ts', 'tests/browser/feature-fit.browser.ts',
|
||||
];
|
||||
|
||||
/** Browser tests of one file at the same time (bun test --max-concurrency for the browser shards; the tests opt in
|
||||
|
|
@ -31,7 +31,7 @@ export function browserShardCount(env = process.env): number {
|
|||
/**
|
||||
* The local pre-push gate on a busy shared machine: with the 1-minute load average above 2x the cores, the browser
|
||||
* suites (HEAVY) and the desktop boot check (real Chrome) are deferred to the Forgejo CI on the VDS, which always runs
|
||||
* them (CI=full; a red Forgejo CI on main stops releases). CI=full forces them locally.
|
||||
* them. Kept for the record: CI has no browser suites any more (tests/browser/, `bun run test:browser`).
|
||||
*/
|
||||
export function deferBrowser(env = process.env, load1 = loadavg()[0] ?? 0, cores = cpus().length): boolean {
|
||||
return env.CI !== 'full' && load1 > 2 * cores;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue