Skip to content

e2e: Update e2e specs for the docks and the run bar - #3835

Draft
SCcagg5 wants to merge 50 commits into
dagucloud:mainfrom
SCcagg5:agentstack/41-e2e
Draft

SCcagg5 wants to merge 50 commits into
dagucloud:mainfrom
SCcagg5:agentstack/41-e2e

Conversation

@SCcagg5

@SCcagg5 SCcagg5 commented Nov 13, 2026 •

Copy link
Copy Markdown
Contributor

Stack 41/41. Base branch: main. Review and merge in order; this PR builds on the previous one.
Size: 16 files changed, 425 insertions(+), 290 deletions(-).
Checked: on branch agentstack/41-e2e at commit ca8b0d590. go build ./...: pass (16s); pnpm typecheck: pass (59s); pnpm exec eslint on the changed files: pass (16 files); pnpm exec prettier --check on the changed files: pass (16 files); pnpm build: pass (48s); llmsgen again, then git diff llms.txt: pass (git diff empty (the input skills/dagu is the same in PR 30 to 41)); playwright e2e: not run (needs a browser and a built server; GitHub runs it only with the label full-ci).

Summary

Subject: e2e specs for the docks and the run bar. Adapts the e2e specs to the docks and to the run bar. This PR holds 16 files of e2e specs.

Why

The e2e specs follow the run bar and dock changes. No file of this PR imports a file of an earlier PR. The PR still sits on the previous branch of the stack.

Changes

Counts: 15 existing files modified, 1 new files (0 tests or test data).

  • ui/e2e/workspace: 9 files (layout.spec.ts, ndv.spec.ts, remote.spec.ts, roles.spec.ts, ...)
  • ui/e2e/dag-crud.spec.ts: 1 file (dag-crud.spec.ts)
  • ui/e2e/dag-run-actions.spec.ts: 1 file (dag-run-actions.spec.ts)
  • ui/e2e/dag-run-history.spec.ts: 1 file (dag-run-history.spec.ts)
  • ui/e2e/helpers: 1 file (e2e.ts)
  • ui/e2e/workflow-list-activity.spec.ts: 1 file (workflow-list-activity.spec.ts)
  • ui/e2e/workflow-list-open.spec.ts: 1 file (workflow-list-open.spec.ts)
  • ui/playwright.config.ts: 1 file (playwright.config.ts)

How to review

  1. Read the spec documents first, when the PR has some.
  2. Read the non-test code, from the types to the callers.
  3. Read the tests last.

Summary by cubic

Adapts the e2e specs to the docks and the run bar, and adds shared conformance infrastructure with black-box coverage for agent tools, agent steps, and service run history, all testable without external model services.

  • Tests tool configuration, skills, MCP and DAG tools, CLI flags, the MCP bridge, retries, effort levels, and tool limits.
  • Updates chat tool calling to use with.dags; legacy provider keys remain valid but emit a deprecation warning.
  • Covers rejection of uncarried steps as outputsFromRuns sources, regenerates the API spec and client, registers egressProxy, and excludes demo run artifacts from Docker builds.

Written for commit d6ed030. Summary will update on new commits.

View guided diff

…rt 1 of 2)

Adds the per-step `secrets` and `untrusted` keys, the restricted-user
isolation of untrusted steps, the egress proxy with key injection, the
configuration blocks for untrusted steps, worker pools, agent tools and
AI, the step secret path of the coordinator, and the `step_name` field
of the coordinator protocol.
This is part 1 of 2 of this change.
The limits UntrustedIDMin and UntrustedIDMax are untyped constants. The
largest one, 4294967294, does not fit in an int on a 32-bit build, so the
error message of untrustedID did not compile for GOARCH=386 (job Test
compatibility of the CI). Convert both limits to int64 in the call of
fmt.Errorf.
@coderabbitai

coderabbitai Bot commented Nov 13, 2026

Copy link
Copy Markdown

Walkthrough

Warning

Review details and warnings were omitted to fit the comment limit.

A malformed ai.upstream.proxy_url was echoed verbatim in the startup
error, password included, and a parsed URL still showed its user name,
which can hold a token. The error now replaces all user information
with xxxxx, whether or not the URL parses.

The ai block tests come from the AI endpoints PR, without the check
against Spec 093, which is not in this PR yet.
The parsers of agent_tools, coordinator.worker_pools and
coordinator.dispatchers had no tests in this PR, and the loader test
pointed to tests that did not exist yet. The files come unchanged from
the agent tools and agent workers PRs of the stack, so those rebase
cleanly.
Spec 069 says a registry ref that starts with ai/ is a validation
error, but only the resolver refused it, so dagu validate accepted a
DAG that failed at run time. The check is the same as the one in the
chat completion PR of the stack, so that PR rebases cleanly.
The comment described a 90-second wait for a matched dispatch that the
coordinator does not have in this PR. It goes back to the text on main
until the PR that adds that wait.
The status listed the agent worker, isolation, the egress proxy and
the verify loop as implemented, but this PR only parses the untrusted
and worker pool blocks. The README also requires black-box coverage
for a partial implementation. The status can move again as the rest
of the stack lands.
yohamta0 and others added 11 commits November 19, 2026 17:03
…part 2 of 2)

Adds the per-step `secrets` and `untrusted` keys, the restricted-user
isolation of untrusted steps, the egress proxy with key injection, the
configuration blocks for untrusted steps, worker pools, agent tools and
AI, the step secret path of the coordinator, and the `step_name` field
of the coordinator protocol.
This is part 2 of 2 of this change.

Also includes:
- Fix the 32-bit build, a Windows test and the unused constants
- cmd: Accept the quoted form of a path in the egress proxy tests
Refines the workflow list, the run page links and the YAML editor of the
DAG pages that are already merged. These files are shared by the agent
UI and by the service state UI. They have no new backend dependency.

Also includes:
- test(ui): Update the status style test for the graph tokens of this PR
Adds AI endpoints and MCP server entries: the `aiendpoint` package, the
stores, the REST routes under `/ai`, the JSON schema entries, and the
part of the AI page of the UI that does not import files of the later
PRs (specs 093 and 095).
This is part 1 of 3 of this change.

Also includes:
- config: Read the spec of the AI keys with LF line ends in its test
Adds AI endpoints and MCP server entries: the `aiendpoint` package, the
stores, the REST routes under `/ai`, the JSON schema entries, and the
part of the AI page of the UI that does not import files of the later
PRs (specs 093 and 095).
This is part 2 of 3 of this change.
Adds AI endpoints and MCP server entries: the `aiendpoint` package, the
stores, the REST routes under `/ai`, the JSON schema entries, and the
part of the AI page of the UI that does not import files of the later
PRs (specs 093 and 095).
This is part 3 of 3 of this change.
Adds the AI gateway: the relay of model API requests with the key of the
endpoint, its limits and checks, and the first part of the coordinator
stream for the relay (spec 094).
Refines the canvas and the run model of the visual editor that is
already merged: link routing, zoom ladder, output cache for step runs of
a draft, references.
Refines the workflow workspace UI that is already merged: docks, run
timeline, addresses of runs and sub-runs, and settings. These changes
are independent of the agent features. Later UI PRs (AI page, tools,
agent node) import some of these files.
Adds skills: the `skill` package, the REST routes for skills, the ZIP
download, the Skills tab of the AI page, and the Skills card (spec 096).
A skill gives instructions to chat and agent steps from plain files.
Files are the only source of truth.
This is part 1 of 2 of this change.

Also includes:
- skill: Skip the tests of POSIX files on Windows and let a reader meet a write
Adds skills: the `skill` package, the REST routes for skills, the ZIP
download, the Skills tab of the AI page, and the Skills card (spec 096).
A skill gives instructions to chat and agent steps from plain files.
Files are the only source of truth.
This is part 2 of 2 of this change.
@yohamta0 yohamta0 added perf:storage May store more bytes per run: status, logs, outputs, indexes, artifacts perf:cpu May add a ticker, watcher, scan, or hot-path work, or idle cost perf:memory May add caches or maps keyed by run or DAG, or long-lived goroutines perf:upgrade May bump an index version or add a migration with a one-time cost and removed perf:network May change UI polling, SSE traffic, or worker and coordinator messages perf:disk-io May read run or DAG files on a request or tick path perf:storage May store more bytes per run: status, logs, outputs, indexes, artifacts perf:cpu May add a ticker, watcher, scan, or hot-path work, or idle cost perf:memory May add caches or maps keyed by run or DAG, or long-lived goroutines perf:upgrade May bump an index version or add a migration with a one-time cost labels Nov 19, 2026
@yohamta0
yohamta0 marked this pull request as draft November 21, 2026 09:22
@yohamta0

Copy link
Copy Markdown
Member

Moving this to draft while I re-slice the stack into feature-sized PRs, tracked in #4002. It stays open as the reference and I will close it once its content has landed through the new PRs.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants