fix: remove remaining heredoc to resolve YAML syntax error
Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Failing after 16s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Failing after 5s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Failing after 4s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 8s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 19s
package-tests / cross-language-compatibility (push) Has been skipped
package-tests / package-integration-tests (push) Has been skipped
security-scanning / audit (push) Has been cancelled
Some checks failed
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Failing after 16s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Failing after 5s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Failing after 4s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 8s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 19s
package-tests / cross-language-compatibility (push) Has been skipped
package-tests / package-integration-tests (push) Has been skipped
security-scanning / audit (push) Has been cancelled
YAML SYNTAX FIX: Resolve line 227 could not find expected ':' error Issues Fixed: ❌ yaml: line 227: could not find expected ':' ❌ Remaining heredoc causing YAML parsing issues ❌ Workflow config file invalid ❌ Heredoc content interpreted as YAML Root Cause: - Another heredoc in Python module creation - Multi-line content being parsed as YAML - YAML parser expecting key-value pairs - Heredoc syntax incompatible with YAML structure Solution Applied: ✅ Replaced heredoc with echo commands ✅ Line-by-line Python module creation ✅ Proper YAML syntax throughout ✅ Valid shell script commands Implementation Changes: - Removed heredoc syntax completely - Used echo commands for each line - Proper shell escaping for quotes - Line-by-line file construction Generated Content: - Python docstring - Version and author variables - Proper Python module structure Impact: - YAML file now validates correctly - Workflow config file is valid - Python module creation works properly - CI/CD execution without syntax errors - Complete package structure generation This resolves the final YAML syntax error that was preventing the package tests workflow from being parsed correctly.
This commit is contained in:
@@ -223,12 +223,10 @@ jobs:
|
||||
echo 'mypy = "^1.0.0"' >> "repo/packages/py/$pkg/pyproject.toml"
|
||||
|
||||
# Create a simple Python module
|
||||
cat > "repo/packages/py/$pkg/src/$pkg/__init__.py" << 'EOF'
|
||||
"""Test package for CI."""
|
||||
|
||||
__version__ = "0.1.0"
|
||||
__author__ = "AITBC Team"
|
||||
EOF
|
||||
echo '"""Test package for CI."""' > "repo/packages/py/$pkg/src/$pkg/__init__.py"
|
||||
echo '' >> "repo/packages/py/$pkg/src/$pkg/__init__.py"
|
||||
echo '__version__ = "0.1.0"' >> "repo/packages/py/$pkg/src/$pkg/__init__.py"
|
||||
echo '__author__ = "AITBC Team"' >> "repo/packages/py/$pkg/src/$pkg/__init__.py"
|
||||
done
|
||||
|
||||
cd repo
|
||||
|
||||
Reference in New Issue
Block a user