Skip to content

fix: surface codefresh-run CLI failures instead of bare exit 1 [closes CCS-20] - #738

Draft
openswe-task-force[bot] wants to merge 1 commit into
masterfrom
open-swe/codefresh-run-error-visibility
Draft

fix: surface codefresh-run CLI failures instead of bare exit 1 [closes CCS-20]#738
openswe-task-force[bot] wants to merge 1 commit into
masterfrom
open-swe/codefresh-run-error-visibility

Conversation

@openswe-task-force

Copy link
Copy Markdown

Description

The codefresh-run step template captured the CLI output into a variable and then exited silently when no build id came back, so every failure surfaced only as "plugin failed" with no diagnostics (reported by yellowbrickdata when the step is gated on a terminal workflow.result and the build is terminated gracefully). The template now captures stderr too, echoes the captured output, propagates the CLI's exit code, and prints an explicit message for the "succeeded but no build id" case. metadata.version bumped 1.6.0 → 1.6.1. This does not change the underlying engine behaviour for typed steps started during termination teardown — it makes the failure diagnosable.

Linear ticket: https://linear.app/octopus/issue/CCS-20/yellowbrickdata-parallel-codefresh-run-step-fails-ambiguously-when

Release Note

codefresh-run now reports the Codefresh CLI's output and exit code instead of failing with an unexplained "plugin failed".

Test Plan

  • Run a pipeline with type: codefresh-run against a non-existent PIPELINE_ID; the step log shows the CLI error and the CLI's exit code.
  • Run the ticket's mode: parallel YAML and terminate the build during the sleep step; the step log now explains that no build id was returned.
  • Run a normal successful codefresh-run (both DETACH: true and false) and confirm BUILD_ID / first_CF_OUTPUT_URL are still exported correctly.

Made by Open SWE

…s CCS-20]

The step template captured the CLI output and exited silently, so every
failure of the typed step surfaced only as "plugin failed" with no
diagnostics. Echo the captured output, propagate the CLI exit code, and
explain the empty-build-id case.

Co-authored-by: open-swe[bot] <open-swe@users.noreply.github.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