@indigoai-us/hq-cloud 6.16.70-alpha.1 → 6.16.70-alpha.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bin/sync-runner-watch-loop.d.ts.map +1 -1
- package/dist/bin/sync-runner-watch-loop.js +2 -0
- package/dist/bin/sync-runner-watch-loop.js.map +1 -1
- package/dist/bin/sync-runner.test.js +4 -0
- package/dist/bin/sync-runner.test.js.map +1 -1
- package/dist/sync/full-pass-caps.d.ts +28 -2
- package/dist/sync/full-pass-caps.d.ts.map +1 -1
- package/dist/sync/full-pass-caps.js +174 -79
- package/dist/sync/full-pass-caps.js.map +1 -1
- package/dist/sync/full-pass-caps.test.js +204 -14
- package/dist/sync/full-pass-caps.test.js.map +1 -1
- package/package.json +1 -1
|
@@ -9262,6 +9262,7 @@ describe("CooperativePassScheduler", () => {
|
|
|
9262
9262
|
let cpuUser = 0;
|
|
9263
9263
|
const order = [];
|
|
9264
9264
|
const caps = new FullPassCapController({
|
|
9265
|
+
platform: "darwin",
|
|
9265
9266
|
now: () => now,
|
|
9266
9267
|
cpuUsage: () => ({ user: cpuUser, system: 0 }),
|
|
9267
9268
|
memoryUsage: () => ({ heapUsed: 1024, rss: 1024 }),
|
|
@@ -9302,6 +9303,7 @@ describe("CooperativePassScheduler", () => {
|
|
|
9302
9303
|
it("does not consult the full-pass cap for realtime work", async () => {
|
|
9303
9304
|
let applyCalls = 0;
|
|
9304
9305
|
const caps = new FullPassCapController({
|
|
9306
|
+
platform: "darwin",
|
|
9305
9307
|
flags: { read: () => ({ cpuCapPct: 25, heapCapMb: 512 }) },
|
|
9306
9308
|
cpuUsage: () => ({ user: 0, system: 0 }),
|
|
9307
9309
|
memoryUsage: () => ({ heapUsed: 1, rss: 1 }),
|
|
@@ -9326,6 +9328,7 @@ describe("CooperativePassScheduler", () => {
|
|
|
9326
9328
|
let applyCalls = 0;
|
|
9327
9329
|
let beginCalls = 0;
|
|
9328
9330
|
const caps = new FullPassCapController({
|
|
9331
|
+
platform: "darwin",
|
|
9329
9332
|
flags: { read: () => ({ cpuCapPct: 25, heapCapMb: 512 }) },
|
|
9330
9333
|
cpuUsage: () => ({ user: 0, system: 0 }),
|
|
9331
9334
|
memoryUsage: () => ({ heapUsed: 1, rss: 1 }),
|
|
@@ -9355,6 +9358,7 @@ describe("CooperativePassScheduler", () => {
|
|
|
9355
9358
|
it("does not consult the full-pass cap for a chore with resourceCap false", async () => {
|
|
9356
9359
|
let applyCalls = 0;
|
|
9357
9360
|
const caps = new FullPassCapController({
|
|
9361
|
+
platform: "darwin",
|
|
9358
9362
|
flags: { read: () => ({ cpuCapPct: 25, heapCapMb: 512 }) },
|
|
9359
9363
|
cpuUsage: () => ({ user: 0, system: 0 }),
|
|
9360
9364
|
memoryUsage: () => ({ heapUsed: 1, rss: 1 }),
|