Skip to content

Conversation

@betterclever
Copy link
Contributor

Overview

This PR addresses critical failures in E2E tests and fixes trace summary generation for primitive values.

Changes

  1. Worker Trace Summary Fix (`worker/src/temporal/utils/component-output.ts`):

    • Fixed a logic error in `createLightweightSummary` where primitive values (numbers, strings, booleans) were ignored, leading to empty or falsely "truncated" output summaries in traces. This was causing `subworkflow.test.ts` to fail as it couldn't see the numeric output `42`.
  2. Backend Dynamic Port Resolution (`backend/src/workflows/workflows.service.ts`):

    • Updated parameter extraction logic to look in `config.params` (and other locations) ensuring dynamic ports are resolved correctly during workflow compilation.
  3. E2E Test Updates:

    • Updated `http-observability.test.ts` and `node-io-spilling.test.ts` to reflect the correct nested `params` structure for components.
    • Added better error reporting for workflow creation failures in tests.

Impact

  • Trace observability: Users will now properly see primitive output values in the UI trace view.
  • E2E Reliability: Fixes failing E2E tests related to subworkflows and HTTP observability.

- Updated E2E tests to use the correct nested 'params' structure for Entry Point and HTTP Request components.
- Fixed 'workflows.service.ts' to correctly extract parameters for dynamic port resolution from config.params.
- Added detailed error reporting in 'http-observability.test.ts' for failed workflow creation.

Signed-off-by: betterclever <paliwal.pranjal83@gmail.com>
Previously, 'createLightweightSummary' ignored primitive values (numbers, strings, booleans), causing trace outputs to appear empty or truncated in E2E tests and the UI. This fix ensures primitives are correctly copied to the summary.

Signed-off-by: betterclever <paliwal.pranjal83@gmail.com>
@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@betterclever betterclever merged commit 553d7c3 into main Jan 20, 2026
3 checks passed
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