Skip to content

Conversation

@BruinGrowly
Copy link
Owner

No description provided.

…c indentation

Fixed critical YAML syntax error in harmony-check.yml caused by incorrect
heredoc indentation:

**Problem:**
- Python heredoc content and terminators were unindented (column 0)
- This broke YAML's literal block (run: |) parsing
- YAML parser failed with "could not find expected ':'" error
- GitHub Actions workflows would not run

**Root Cause:**
In YAML literal blocks (|), all lines must maintain consistent base indentation.
The heredoc pattern `python3 << 'EOF'` with unindented Python code and EOF
terminator violated this requirement.

**Solution:**
1. Changed `<< 'PYTHON_SCRIPT'` to `<<'PYTHON_SCRIPT'` (no space)
2. Indented all Python code to match surrounding bash code (10 spaces)
3. Indented PYTHON_SCRIPT terminators to match (10 spaces)

This preserves YAML structure while bash correctly strips the indentation
when processing the heredoc.

**Files Fixed:**
- Job 2 (harmony-json-report), Step 3: Generate JSON Harmony Report
- Job 2 (harmony-json-report), Step 5: Display Top 5 Disharmonious Functions

**Testing:**
- ✅ YAML validates with Python yaml.safe_load()
- ✅ Extracted bash script executes correctly
- ✅ JSON parsing works as expected
- ✅ All heredoc syntax functional

This resolves the CI workflow failures reported by the user.
The harmony-report.json file is a generated artifact from CI workflows
and testing. It should not be tracked in version control.
@BruinGrowly BruinGrowly merged commit b6b3c94 into main Nov 1, 2025
3 of 14 checks passed
@BruinGrowly BruinGrowly deleted the claude/check-code-011CUf7NJcXsSSKr1fXAedS5 branch November 1, 2025 02:09
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.

3 participants