fix: resolve CI failures for egress policies and Python 3.7 buildpack support #388
+3
−11
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.
Summary
Fixes CI/CD failures across multiple workflows due to egress policy blocking and buildpack version support issues.
Problems Fixed
1. ECONNREFUSED Errors in Multiple Workflows
The following workflows were failing with connection refused errors when downloading Python:
Error:
Root Cause: The harden-runner egress policies were blocking connections to GitHub's release assets CDN.
Solution: Added
release-assets.githubusercontent.com:443
to the allowed endpoints in:.github/workflows/conformance.yml
.github/workflows/unit.yml
.github/workflows/conformance-asgi.yml
2. Buildpack Integration Test - Python 3.7 Failure
The buildpack test was failing with:
Root Cause: Google Cloud Buildpacks dropped Python 3.7 support for Ubuntu 22.04. The version is not available in https://dl.google.com/runtimes/ubuntu2204/python/version.json
Solution: Removed Python 3.7 from buildpack integration tests. Note that Functions Framework still supports Python 3.7, which continues to be tested in unit and conformance tests.
Test Plan