Executions list: show what a command ran and on which worker (#15)
CI / Test (jest) (pull_request) Successful in 27s
CI / Lint (eslint) (pull_request) Successful in 31s
CI / Security (npm audit) (pull_request) Successful in 11s
CI / Integration (api) (pull_request) Canceled after 1m56s
CI / Scan (secrets, workflows, shell) (pull_request) Canceled after 1m48s
CI / UI (playwright) (pull_request) Canceled after 0s
CI / UI screenshots (before/after) (pull_request) Canceled after 0s
CI / Deploy (pull_request) Canceled after 0s
CI / Deploy worker (pull_request) Canceled after 0s
CI / Notify (pull_request) Canceled after 0s

Every command execution was listed as "[Quick Command]". The list API now
returns, for command executions, the first command (up to 120 characters)
and the worker's name (from the first log entry, joined to workers), and
the row shows them as `command @ worker`. Workflows keep their name.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jaredandClaude Opus 5.5 committed 2026-11-23 13:27:12 -05:00
1 parent a945cd80d3
commit eda319e16a
5 files changed
+37 -2

No files matched your search

+8
View File
@@ -76,3 +76,11 @@ test('execution search finds runs by the command they ran (#16)', async () => {
expect(byId.executions.map(e => e.id)).toContain(submit.json.execution_id);
expect((await sso('GET', '/api/executions?search=no-such-command-anywhere')).json.executions).toEqual([]);
});
test('the execution list says what a command ran and where (#15)', async () => {
const marker = `sum-${Date.now().toString(36)}`;
const submit = await gandalf('POST', '/api/internal/command', { worker_id: workerId, command: `echo ${marker}` });
await waitForExecution(submit.json.execution_id);
const row = (await sso('GET', `/api/executions?search=${marker}`)).json.executions[0];
expect(row).toMatchObject({ command: `echo ${marker}`, worker_name: 'node-01' });
});
+4
View File
@@ -21,6 +21,10 @@ test('a quick command runs on a worker and its output shows in Executions', asyn
const detail = page.locator('#ex-detail-body');
await expect(detail).toContainText(marker);
await expect(detail).toContainText(/completed/i);
// The list row says what ran and where, not just "[Quick Command]" (#15).
await page.keyboard.press('Escape');
await expect(page.locator('#ex-list-manual .ex-row').filter({ hasText: `echo ${marker}` }).first()).toContainText('@ node-02');
});
test('a failing command is reported as failed with its stderr', async ({ page }) => {