Skip to content

ci: surface errors in subtree update report step#1018

Merged
csjones merged 5 commits intomainfrom
FIX-SUBTREE-UPDATE-CHECK
Mar 4, 2026
Merged

ci: surface errors in subtree update report step#1018
csjones merged 5 commits intomainfrom
FIX-SUBTREE-UPDATE-CHECK

Conversation

@csjones
Copy link
Contributor

@csjones csjones commented Mar 3, 2026

The report step silently swallowed failures by redirecting stderr to /dev/null and using || true. When the swift package command failed, REPORT_FILE was empty, jq returned "null", and the step exited with "No update available" — hiding the real error.

Changes:

  • Capture stderr to a temp file instead of /dev/null
  • Track exit code explicitly instead of || true
  • Emit ::warning:: with stderr on unexpected exit codes
  • Validate JSON output before parsing with jq
  • Use jq '// empty' to avoid literal "null" string comparison

csjones added 2 commits March 3, 2026 15:34
The report step silently swallowed failures by redirecting stderr to
/dev/null and using || true. When the swift package command failed,
REPORT_FILE was empty, jq returned "null", and the step exited with
"No update available" — hiding the real error.

Changes:
- Capture stderr to a temp file instead of /dev/null
- Track exit code explicitly instead of || true
- Emit ::warning:: with stderr on unexpected exit codes
- Validate JSON output before parsing with jq
- Use jq '// empty' to avoid literal "null" string comparison
@csjones csjones force-pushed the FIX-SUBTREE-UPDATE-CHECK branch from 1519d6e to 1cdabeb Compare March 4, 2026 02:25
test-bot added 3 commits March 3, 2026 19:31
Add debug steps before/after subtree update to capture git state, trailers, and working tree status. Capture stdout/stderr from subtree update command and emit error annotations on failure. Change downstream step conditions from checking branch_name to checking update.outcome == 'success' to prevent execution when update fails.
Change branch creation and commit counting to reference origin/main instead of local main branch. This ensures the workflow operates against the remote state rather than potentially stale local refs, fixing issues where local main may not be up-to-date with the remote repository.
@csjones csjones merged commit 7715e23 into main Mar 4, 2026
8 of 9 checks passed
@csjones csjones deleted the FIX-SUBTREE-UPDATE-CHECK branch March 4, 2026 05:41
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