You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@texera.apache.org by GitBox <gi...@apache.org> on 2026/07/12 02:05:48 UTC

[GH] (texera/gh-readonly-queue/main/pr-6354-5a7317c6b6d187e4d24b157cd2a9c2d97ae8ea4d): Workflow run "Required Checks" is working again!

The GitHub Actions job "Required Checks" on texera.git/gh-readonly-queue/main/pr-6354-5a7317c6b6d187e4d24b157cd2a9c2d97ae8ea4d has succeeded.
Run started by GitHub user mengw15 (triggered by mengw15).

Head commit for run:
20bc526be33acbbc7130d259758b5cf49a96c4ce / Meng Wang <me...@uci.edu>
test(agent-service): add unit test coverage for assembleContext (#6354)

### What changes were proposed in this PR?

Add unit test coverage for `assembleContext` in
`agent-service/src/agent/util/context-utils.ts` — a pure function
(type-only imports, no network) that groups `ReActStep`s by task,
serializes completed vs ongoing tasks into markdown sections, appends a
dataflow section, and returns `[{ role: "user", content }]`. A `bun
test` `.spec.ts` sits next to the source. No production-code changes.

### Any related issues, documentation, discussions?

Closes #6333.

### How was this PR tested?

```
bun test src/agent/util/context-utils.spec.ts
```

5 pass. `bun run typecheck` and `bun run format:check` are clean. The
spec is pure — it builds `ReActStep` / `WorkflowState` /
`OperatorPredicate` fixtures in-process and covers: empty steps → a
single user message with no task sections; a completed task under `#
Completed Tasks` (`## Task (completed)` with the request + turns); an
unfinished task under `# Ongoing Task`; a `# Current Dataflow` section
when the workflow has operators; and steps sharing a `messageId` grouped
into one task.

### Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Opus 4.8 [1M context])

---------

Signed-off-by: Meng Wang <me...@uci.edu>
Co-authored-by: Copilot Autofix powered by AI <17...@users.noreply.github.com>

Report URL: https://github.com/apache/texera/actions/runs/29175974770

With regards,
GitHub Actions via GitBox