Skip to content

Fix AgentLogObserver printing [SUCCESS] on failed runs#6962

Merged
bentsherman merged 1 commit into
masterfrom
fix/agent-log-success-on-failure
Mar 24, 2026
Merged

Fix AgentLogObserver printing [SUCCESS] on failed runs#6962
bentsherman merged 1 commit into
masterfrom
fix/agent-log-success-on-failure

Conversation

@pditommaso

Copy link
Copy Markdown
Member

Summary

  • Check session.isSuccess() in AgentLogObserver.printSummary() so that session-level errors (aborted, cancelled, failOnIgnore) correctly produce a [FAILED] summary line
  • Previously only task-level failedCount was checked, causing [SUCCESS] to be printed even when the session exited with code 1

Fixes #6959

Test plan

  • Existing tests updated to provide session stub
  • New test: [FAILED] is printed when session has error but zero task failures
  • Manual: run nextflow module run with missing params and verify [FAILED] in summary

🤖 Generated with Claude Code

Check session.isSuccess() in addition to task failedCount so that
session-level errors (aborted, cancelled, failOnIgnore) correctly
produce a [FAILED] summary line.

Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Signed-off-by: Paolo Di Tommaso <paolo.ditommaso@gmail.com>
@netlify

netlify Bot commented Mar 23, 2026

Copy link
Copy Markdown

Deploy Preview for nextflow-docs-staging canceled.

Name Link
🔨 Latest commit 7df5fc9
🔍 Latest deploy log https://app.netlify.com/projects/nextflow-docs-staging/deploys/69c1afc94d5107000940e906

@pditommaso pditommaso requested a review from bentsherman March 23, 2026 21:26
@bentsherman bentsherman merged commit 342d27c into master Mar 24, 2026
25 checks passed
@bentsherman bentsherman deleted the fix/agent-log-success-on-failure branch March 24, 2026 13:31
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.

nextflow module run prints [SUCCESS] even when execution fails with exit code 1

2 participants