mirror of
https://github.com/PR0M3TH3AN/TORCH.git
synced 2026-11-01 02:11:54 +00:00
Checkpoint portable TORCH fleet, provider adapters and owner dashboard
This commit is contained in:
1 parent
d31437a4fb
commit
03fcbdd23f
140 files changed
+26152
-757
No files matched your search
@@ -0,0 +1,15 @@
|
||||
import assert from 'node:assert/strict';
|
||||
|
||||
// Condition and measurement subprocesses both contact the same browser service.
|
||||
const [base, operation] = process.argv.slice(2);
|
||||
assert.ok(['probe', 'measure'].includes(operation));
|
||||
const response = await fetch(`${base}/${operation}`, {
|
||||
method: operation === 'measure' ? 'POST' : 'GET', signal: AbortSignal.timeout(10_000),
|
||||
});
|
||||
assert.equal(response.status, 200);
|
||||
const report = await response.json();
|
||||
if (operation === 'probe') {
|
||||
assert.equal(report.subject.commit, process.env.TORCH_CHECK_COMMIT);
|
||||
assert.equal(report.subject.inputDigest, process.env.TORCH_CHECK_INPUT_DIGEST);
|
||||
}
|
||||
console.log(JSON.stringify(report));
|
||||
Reference in new issue
Block a user