@gresearch/marimohub-compute-armada 0.4.0 → 0.5.0
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/CHANGELOG.md +17 -0
- package/README.md +1 -1
- package/dist/agent/SHA256SUMS +2 -2
- package/dist/agent/linux-amd64/agent +0 -0
- package/dist/agent/linux-arm64/agent +0 -0
- package/dist/index.js +39 -12
- package/dist/index.js.map +4 -4
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -9,6 +9,23 @@ heading merged to main is released: see
|
|
|
9
9
|
|
|
10
10
|
## [Unreleased]
|
|
11
11
|
|
|
12
|
+
## [0.5.0] - 2026-11-25
|
|
13
|
+
|
|
14
|
+
### Added
|
|
15
|
+
|
|
16
|
+
- On marimohub 0.7.2 and later, the editor's startup screen says where the kernel's Armada
|
|
17
|
+
job is while it waits to run: submitted, waiting in the queue, scheduled, pulling the
|
|
18
|
+
image, running, a preempted pod, and back in the queue after a failed attempt Armada
|
|
19
|
+
retries. The text names no queue, cluster, node or pod. An older marimohub shows its own
|
|
20
|
+
message, as before.
|
|
21
|
+
([#31](https://github.com/G-Research/marimohub-compute-armada/pull/31))
|
|
22
|
+
|
|
23
|
+
### Changed
|
|
24
|
+
|
|
25
|
+
- The Docker image builds on marimohub 0.7.2, and the dev loop runs the matching kernel
|
|
26
|
+
image. The adapter still loads on marimohub 0.7.1.
|
|
27
|
+
([#31](https://github.com/G-Research/marimohub-compute-armada/pull/31))
|
|
28
|
+
|
|
12
29
|
## [0.4.0] - 2026-11-19
|
|
13
30
|
|
|
14
31
|
### Added
|
package/README.md
CHANGED
|
@@ -140,7 +140,7 @@ binary at it. The agent image is still needed, since it runs in the cluster.
|
|
|
140
140
|
sudo install -D dist/index.js /etc/marimohub/compute.mjs
|
|
141
141
|
|
|
142
142
|
# The binary, at the release the Dockerfile names, checked against its published hash.
|
|
143
|
-
V=0.7.
|
|
143
|
+
V=0.7.2
|
|
144
144
|
curl -fsSLO "https://github.com/marimo-team/marimohub/releases/download/v$V/marimohub-linux-x64"
|
|
145
145
|
curl -fsSLO "https://github.com/marimo-team/marimohub/releases/download/v$V/marimohub-linux-x64.sha256"
|
|
146
146
|
sha256sum -c marimohub-linux-x64.sha256
|
package/dist/agent/SHA256SUMS
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
da99f472884b03fa889ba27bcfe8db8f145ee5d83291fe18ccb0d674afcbd33a linux-amd64/agent
|
|
2
|
+
ae9239fcb55aecc26da54877ecacb6a4b766de1089091f2b969808a30789c11b linux-arm64/agent
|
|
Binary file
|
|
Binary file
|
package/dist/index.js
CHANGED
|
@@ -7695,13 +7695,15 @@ class ArmadaClient {
|
|
|
7695
7695
|
}
|
|
7696
7696
|
return { jobId: item.jobId, jobSetId: sandboxId, queue };
|
|
7697
7697
|
}
|
|
7698
|
-
async waitForRunning(job, timeoutMs = this.config.startTimeoutSeconds * 1000) {
|
|
7698
|
+
async waitForRunning(job, timeoutMs = this.config.startTimeoutSeconds * 1000, onStage) {
|
|
7699
7699
|
const signal = AbortSignal.timeout(timeoutMs);
|
|
7700
7700
|
let stage;
|
|
7701
7701
|
try {
|
|
7702
7702
|
return await this.followUntilRunning(job, signal, (kind) => {
|
|
7703
|
-
if (
|
|
7704
|
-
|
|
7703
|
+
if (STAGE_NEUTRAL_EVENTS.has(kind))
|
|
7704
|
+
return;
|
|
7705
|
+
stage = kind;
|
|
7706
|
+
onStage?.(kind);
|
|
7705
7707
|
});
|
|
7706
7708
|
} catch (error) {
|
|
7707
7709
|
if (signal.aborted) {
|
|
@@ -7737,6 +7739,13 @@ class ArmadaClient {
|
|
|
7737
7739
|
const message = line.result?.message;
|
|
7738
7740
|
if (message === undefined)
|
|
7739
7741
|
continue;
|
|
7742
|
+
const failed = message.failed;
|
|
7743
|
+
if (failed !== undefined && failed.jobId === job.jobId && failed.retryable !== true) {
|
|
7744
|
+
throw new Error(`Armada job ${job.jobId} failed: ${failed.reason ?? "no reason given"}`);
|
|
7745
|
+
}
|
|
7746
|
+
if (message.cancelled !== undefined && message.cancelled.jobId === job.jobId) {
|
|
7747
|
+
throw new Error(`Armada job ${job.jobId} was cancelled before it started`);
|
|
7748
|
+
}
|
|
7740
7749
|
const kind = eventKind(message, job.jobId);
|
|
7741
7750
|
if (kind !== undefined)
|
|
7742
7751
|
onEvent(kind);
|
|
@@ -7749,13 +7758,6 @@ class ArmadaClient {
|
|
|
7749
7758
|
...running.nodeName === undefined ? {} : { nodeName: running.nodeName }
|
|
7750
7759
|
};
|
|
7751
7760
|
}
|
|
7752
|
-
const failed = message.failed;
|
|
7753
|
-
if (failed !== undefined && failed.jobId === job.jobId && failed.retryable !== true) {
|
|
7754
|
-
throw new Error(`Armada job ${job.jobId} failed: ${failed.reason ?? "no reason given"}`);
|
|
7755
|
-
}
|
|
7756
|
-
if (message.cancelled !== undefined && message.cancelled.jobId === job.jobId) {
|
|
7757
|
-
throw new Error(`Armada job ${job.jobId} was cancelled before it started`);
|
|
7758
|
-
}
|
|
7759
7761
|
}
|
|
7760
7762
|
} catch (error) {
|
|
7761
7763
|
if (signal.aborted)
|
|
@@ -8810,6 +8812,17 @@ function agentToken(secret, id) {
|
|
|
8810
8812
|
}
|
|
8811
8813
|
var WRITE_CONCURRENCY = 8;
|
|
8812
8814
|
var AGENT_READY_TIMEOUT_MS = 30000;
|
|
8815
|
+
var STAGE_DETAILS = new Map([
|
|
8816
|
+
["submitted", "Waiting in the Armada queue"],
|
|
8817
|
+
["queued", "Waiting in the Armada queue"],
|
|
8818
|
+
["leased", "Scheduled on a cluster, creating the kernel pod"],
|
|
8819
|
+
["pending", "Pulling the kernel image and starting the pod"],
|
|
8820
|
+
["running", "Kernel pod running, connecting to it"],
|
|
8821
|
+
["failed", "The last attempt failed, back in the Armada queue for a retry"],
|
|
8822
|
+
["leaseReturned", "Back in the Armada queue after the pod could not start"],
|
|
8823
|
+
["leaseExpired", "Back in the Armada queue after the pod could not start"],
|
|
8824
|
+
["preempted", "The kernel pod was preempted"]
|
|
8825
|
+
]);
|
|
8813
8826
|
var PORT_READY_TIMEOUT_MS = 0;
|
|
8814
8827
|
var goneErrors = new WeakSet;
|
|
8815
8828
|
function isSandboxGone(error) {
|
|
@@ -8860,6 +8873,7 @@ class ArmadaSandbox {
|
|
|
8860
8873
|
token;
|
|
8861
8874
|
env = {};
|
|
8862
8875
|
envDefaults = {};
|
|
8876
|
+
lastProgress;
|
|
8863
8877
|
constructor(id, config, armada, openChannel, queues, placements, notFound, options, attachOnly = false) {
|
|
8864
8878
|
this.id = id;
|
|
8865
8879
|
this.config = config;
|
|
@@ -8897,14 +8911,27 @@ class ArmadaSandbox {
|
|
|
8897
8911
|
if (finished) {
|
|
8898
8912
|
throw this.gone(`Sandbox ${this.id} is gone: its Armada job ${this.job.jobId} has finished, and a finished job is never started again`);
|
|
8899
8913
|
}
|
|
8900
|
-
this.pod = await this.armada.waitForRunning(this.job)
|
|
8914
|
+
this.pod = await this.armada.waitForRunning(this.job, undefined, (stage) => {
|
|
8915
|
+
const detail = STAGE_DETAILS.get(stage);
|
|
8916
|
+
if (detail !== undefined)
|
|
8917
|
+
this.progress(detail);
|
|
8918
|
+
});
|
|
8901
8919
|
const url = await this.armada.portUrl(this.job, this.config.agentPort);
|
|
8902
8920
|
const channel = this.openChannel({ url, token: this.token, pod: this.pod });
|
|
8903
8921
|
await channel.ready(AGENT_READY_TIMEOUT_MS);
|
|
8904
8922
|
this.channel = channel;
|
|
8905
8923
|
this.placements.set(this.id, { job: this.job, pod: this.pod, channel });
|
|
8906
8924
|
}
|
|
8925
|
+
progress(detail) {
|
|
8926
|
+
if (detail === this.lastProgress)
|
|
8927
|
+
return;
|
|
8928
|
+
this.lastProgress = detail;
|
|
8929
|
+
try {
|
|
8930
|
+
this.options?.onProgress?.({ phase: "allocating", detail });
|
|
8931
|
+
} catch {}
|
|
8932
|
+
}
|
|
8907
8933
|
async submit() {
|
|
8934
|
+
this.progress("Submitting the kernel job to Armada");
|
|
8908
8935
|
const tokenSha256 = createHash("sha256").update(this.token).digest("hex");
|
|
8909
8936
|
const job = await this.armada.submit(this.id, buildPodSpec(this.config, { tokenSha256 }, this.options), await this.queue());
|
|
8910
8937
|
this.queues.remember(this.id, job.queue);
|
|
@@ -9207,5 +9234,5 @@ export {
|
|
|
9207
9234
|
src_default as default
|
|
9208
9235
|
};
|
|
9209
9236
|
|
|
9210
|
-
//# debugId=
|
|
9237
|
+
//# debugId=85ED9DE49E3573E164756E2164756E21
|
|
9211
9238
|
//# sourceMappingURL=index.js.map
|