Skip to content

fix(status): always consider operation generate diagnostics when determining exit status#174

Merged
ryancragun merged 2 commits into
mainfrom
ryan/VAULT-45813
Jun 8, 2026
Merged

fix(status): always consider operation generate diagnostics when determining exit status#174
ryancragun merged 2 commits into
mainfrom
ryan/VAULT-45813

Conversation

@ryancragun

Copy link
Copy Markdown
Collaborator

Currently our system for determining an overall status for an operation has to consider the status of each child operation. We missed the "generate" child operation for check, launch, run, and destroy. This fixes that so we always exit 1 if generate fails regardless of the desired operation.

We also bump our dependencies as we intend to release this fix immediately.

How to read this pull request

You may provide an optional explanation of the best way a review might
approach the changes that are being proposed in this pull request.

Checklist

  • The commit message includes an explanation of the changes
  • Manual validation of the changes have been performed (if possible)
  • New or modified code has requisite test coverage (if possible)
  • I have performed a self-review of the changes
  • I have made necessary changes and/or pull requests for documentation
  • I have written useful comments in the code

…rmining exit status

Currently our system for determining an overall status for an operation
has to consider the status of each child operation. We missed the
"generate" child operation for check, launch, run, and destroy. This
fixes that so we always exit 1 if generate fails regardless of the
desired operation.

We also bump our dependencies as we intend to release this fix
immediately.

Signed-off-by: Ryan Cragun <me@ryan.ec>
@ryancragun ryancragun requested a review from a team as a code owner June 8, 2026 19:04
@ryancragun ryancragun added the changelog/bug Fix for something that wasn't working. Will be included in "Bug Fixes" category in release notes. label Jun 8, 2026

@hashigator hashigator left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM - Clean fix for missing generate diagnostics in exit status determination.

Core Fix

  • Added generate diagnostics checks for check/launch/run/destroy operations
  • Simple 4-line addition to resDiags() function

Test Coverage

  • Comprehensive tests for all affected operations
  • New invalid scenario with missing module
  • Tests verify proper error handling and exit codes

Minor Note
Test code is duplicated across 5 files (~65 lines each) but follows existing test patterns in the codebase.

Signed-off-by: Ryan Cragun <me@ryan.ec>
@ryancragun ryancragun merged commit c816361 into main Jun 8, 2026
11 of 12 checks passed
@ryancragun ryancragun deleted the ryan/VAULT-45813 branch June 8, 2026 19:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog/bug Fix for something that wasn't working. Will be included in "Bug Fixes" category in release notes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants