bun run ci defers the browser suites and the desktop boot check to Forgejo CI when the 1-minute load is above 2x the cores (deferBrowser in tools/ci-plan.ts, said at the start and in the summary); CI=full forces them, Forgejo runs CI=full
This commit is contained in:
parent
918146d4a6
commit
49a73c90e4
3 changed files with 28 additions and 6 deletions
|
|
@ -1,5 +1,14 @@
|
|||
import { describe, expect, test } from 'bun:test';
|
||||
import { balance, depsOf, GLOBAL, HEAVY, junitTimes, listTests, mergeTimings, relatedTests, rustNeeded, shardCount } from '../tools/ci-plan';
|
||||
import { balance, deferBrowser, depsOf, GLOBAL, HEAVY, junitTimes, listTests, mergeTimings, relatedTests, rustNeeded, shardCount } from '../tools/ci-plan';
|
||||
|
||||
describe('tools/ci-plan: browser suites deferred on a busy machine', () => {
|
||||
test('deferred only when the 1-minute load is above 2x the cores, never with CI=full', () => {
|
||||
expect(deferBrowser({}, 21, 10)).toBe(true);
|
||||
expect(deferBrowser({}, 20, 10)).toBe(false);
|
||||
expect(deferBrowser({ CI: 'full' }, 500, 10)).toBe(false);
|
||||
expect(deferBrowser({ CI: 'true' }, 500, 10)).toBe(true);
|
||||
});
|
||||
});
|
||||
|
||||
describe('tools/ci-plan: test shards', () => {
|
||||
test('shard count: cores - 1, between 1 and 8, env override', () => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue