Skip to content

Where people and agents ship software together. The open-source git platform for the whole job: issues, agents, checks and deploys to the edge.

g1t.sh

Commit

The deploy tool parses again: the last change put a newline inside a string in scripts/deploy.mjs, so every deploy failed its first check. A test now runs node --check on scripts/deploy.mjs, since no other test imports it.

syntaqxcommitted Parent59f0c9fBrowse files
2 files+5−20/2 viewed
+1−2
409409 } catch (error) {
410410 out.line(`could not read the container applications as JSON (${error.message ?? error}); wrangler said:`);
411411 const said = await wrangler(["containers", "list"], { cwd }).catch(() => ({ out: "" }));
412− for (const line of said.out.split("
413−").filter((l) => l.trim()).slice(0, 40)) out.line(` ${line}`);
412+ for (const line of said.out.split("\n").filter((l) => l.trim()).slice(0, 40)) out.line(` ${line}`);
414413 }
415414 }
416415
+4−0
870870 assert.equal(containersRollout(unit, { image: false, files: ["services/runnerx/wrangler.jsonc"] }), "none");
871871 assert.equal(containersRollout(unit, { image: false, files: [] }, { rebuildImage: true }), "immediate");
872872 });
873+
874+test("the deploy tool itself parses: a test that never imports it would not notice", () => {
875+ execFileSync(process.execPath, ["--check", join(import.meta.dirname, "..", "deploy.mjs")]);
876+});

Comments

Sign in to comment.