mirror of
https://github.com/stablyai/orca.git
synced 2026-11-03 18:47:40 +00:00
perf(ci): cut redundant tests and reuse expensive setup (#28669)
* perf(ci): reduce test overhead and reuse expensive build work * test(ci): keep worker startup outside failure-case deadlines * test: isolate push fixture advisory locks * test(ci): preserve fixed drain retry allowance * Align CI contracts with current triggers and guide content * Stabilize consolidated reveal scenarios and retain behavioral CI contracts * Fix upstream lint blockers while retaining behavior and assertions * Classify global Jira preferences in the WSL migration inventory * Align Jira test fixtures with startup and build safety checks * Include package-test routing dependency in CI checkouts and fixtures * Keep native stream classes intact in transcript dependency tests
This commit is contained in:
@@ -26,11 +26,10 @@ function fixture() {
|
||||
CREATE TABLE session_message (id TEXT PRIMARY KEY, session_id TEXT, type TEXT,
|
||||
seq INTEGER, data TEXT, time_created INTEGER, time_updated INTEGER);
|
||||
INSERT INTO session_v2 VALUES ('session');`)
|
||||
const insertMessage = db.prepare('INSERT INTO session_message VALUES (?, ?, ?, ?, ?, ?, ?)')
|
||||
let sequence = 0
|
||||
const insert = (id: string, type: string, data: unknown, time = 1) =>
|
||||
db
|
||||
.prepare('INSERT INTO session_message VALUES (?, ?, ?, ?, ?, ?, ?)')
|
||||
.run(id, 'session', type, ++sequence, JSON.stringify(data), time, time)
|
||||
insertMessage.run(id, 'session', type, ++sequence, JSON.stringify(data), time, time)
|
||||
return { db, path, insert }
|
||||
}
|
||||
|
||||
@@ -159,6 +158,8 @@ describe('OpenCode 2 native transcript', () => {
|
||||
|
||||
it('refuses excessive sparse scans instead of returning a partial transcript', () => {
|
||||
const { db, path, insert } = fixture()
|
||||
// The regression is the scan cap; avoid quadratic fixture scans between batches.
|
||||
db.exec('CREATE INDEX session_message_sequence ON session_message (session_id, seq)')
|
||||
db.exec('BEGIN')
|
||||
for (let index = 0; index < 10001; index++) {
|
||||
insert(String(index), 'idle', {})
|
||||
|
||||
Reference in New Issue
Block a user