Skip to content

test(engine): cover failed action trace collection - #16249

Merged
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-qlzklnnlmqpk
Aug 29, 2026
Merged

test(engine): cover failed action trace collection#16249
rgrinberg merged 1 commit into
ocaml:mainfrom
rgrinberg:push-qlzklnnlmqpk

Conversation

@rgrinberg

Copy link
Copy Markdown
Member

Add a regression showing that action trace collection is skipped when result
validation raises for a failed action. The failure branch displays only events
supplied by actions with dune trace cat --only-actions; its empty snapshot
records the current behavior for a follow-up fix.

Have a failing action emit a valid trace event and snapshot the collected action
traces afterward. The missing event records that result validation skips trace
collection on action failure.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
@rgrinberg
rgrinberg merged commit af06947 into ocaml:main Aug 29, 2026
36 of 38 checks passed
rgrinberg added a commit that referenced this pull request Aug 29, 2026
Collect action-provided trace events even when result validation reports
that
the action failed. Validation and trace collection now run in sibling
fibers,
so neither can prevent the other from completing and both errors remain
reportable.

The regression is covered by #16249.

Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
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.

1 participant