fix(ci): unblock repair-smoke-test workflow YAML parse failure#139
Merged
Conversation
The Python heredoc inside the `Write minimal install summary fixture` step had its body at column 0, which terminated the surrounding YAML literal block scalar (`run: |`) and caused every run of this workflow to fail at parse time with "workflow file issue" (74/74 historical runs failed, 0 jobs ever scheduled). Replace the heredoc with an equivalent `python3 -c` one-liner so all shell content stays within the block scalar indentation. Validated locally with PyYAML.
Contributor
There was a problem hiding this comment.
Pull request overview
This PR fixes a GitHub Actions workflow parse failure in repair-smoke-test.yml by removing a Python heredoc whose unindented body prematurely terminated the YAML block scalar, preventing the workflow from ever being scheduled.
Changes:
- Replaced the inline Python heredoc with a
python3 -cone-liner to keep all script content within YAML block-scalar indentation. - Preserved the same JSON “minimal install summary” fixture content used by the shell smoke test.
| print(f"Written fixture to: {out}") | ||
| PYEOF | ||
| OUT="$FIXTURE_DIR/smoke-test-summary.json" | ||
| python3 -c "import json, os; d=os.environ['RUNNER_TEMP']; json.dump({'schemaVersion':'1.0','operation':'install','scope':'project','targetDir':d,'installed':True,'destinations':{'claude':{'agentsDir':os.path.join(d,'.claude','agents')},'copilot':{},'copilotCli':{},'codex':{},'gemini':{},'mcp':{'serverDir':os.path.join(d,'mcp-server')}},'notes':[],'issues':[],'issueCount':0,'lastRepairRun':None,'version':'4.6.0','elapsedSeconds':0}, open(os.path.join(d,'smoke-test-summary.json'),'w'), indent=2)" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
fix(ci): unblock repair-smoke-test workflow YAML parse failure
The Python heredoc inside the
Write minimal install summary fixturestep had its body at column 0, which terminated the surrounding YAML
literal block scalar (
run: |) and caused every run of this workflowto fail at parse time with "workflow file issue" (74/74 historical
runs failed, 0 jobs ever scheduled).
Replace the heredoc with an equivalent
python3 -cone-liner so allshell content stays within the block scalar indentation.
Validated locally with PyYAML.