Fix build step to skip gracefully when package directory missing
Some checks failed
package-tests / test-python-packages (map[name:aitbc-cli path:. python_version:3.13]) (push) Successful in 16s
package-tests / test-python-packages (map[name:aitbc-agent-sdk path:packages/py/aitbc-agent-sdk python_version:3.13]) (push) Failing after 18s
package-tests / test-python-packages (map[name:aitbc-core path:packages/py/aitbc-core python_version:3.13]) (push) Failing after 6s
package-tests / test-python-packages (map[name:aitbc-crypto path:packages/py/aitbc-crypto python_version:3.13]) (push) Successful in 9s
package-tests / test-python-packages (map[name:aitbc-sdk path:packages/py/aitbc-sdk python_version:3.13]) (push) Successful in 11s
package-tests / test-javascript-packages (map[name:aitbc-sdk node_version:24 path:packages/js/aitbc-sdk]) (push) Successful in 12s
security-scanning / audit (push) Successful in 8s
package-tests / cross-language-compatibility (push) Has been skipped
package-tests / package-integration-tests (push) Has been skipped

This commit is contained in:
aitbc1
2026-03-28 12:52:49 +01:00
parent 6d19ee90db
commit 2b6952bdbd

View File

@@ -557,11 +557,17 @@ jobs:
echo "=== BUILDING PYTHON PACKAGE ==="
echo "Current PWD before cd: $(pwd)"
# Check if package directory exists
if [[ ! -d "/opt/aitbc/python-packages-workspace/repo/${{ matrix.package.path }}" ]]; then
echo "⚠️ Package directory not found: ${{ matrix.package.path }}"
echo "Skipping build for this package"
exit 0
fi
# Ensure we're in the correct directory
cd /opt/aitbc/python-packages-workspace/repo/${{ matrix.package.path }} || {
echo "❌ Failed to cd to package path, trying alternatives..."
cd /opt/aitbc/python-packages-workspace/repo || cd / || true
cd ${{ matrix.package.path }} 2>/dev/null || true
echo "❌ Failed to cd to package path"
exit 1
}
echo "Current PWD after cd: $(pwd)"