Claude/check code 011 c uf7 n jc xs ss kr1f x aed s5#16
Merged
BruinGrowly merged 2 commits intomainfrom Nov 1, 2025
Merged
Conversation
…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.
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.
No description provided.