Skip to content

Commit

Permalink
Bring back source constraints generation for PROD image build (#35004)
Browse files Browse the repository at this point in the history
The PROD image uses source constraints to get built. The #34990
had moved the constraint generation to CI workflow which works
for main builds, but for regular PRs we also need to upload them
in the build-image workflow - otherwise PROD image build cannot
find them as artifacts.

This PR restores only source constraints upload as artifacts (this
is very fast)
  • Loading branch information
potiuk committed Oct 18, 2023
1 parent 2c6d439 commit 40b9d2b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions .github/workflows/build-images.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,20 @@ jobs:
PYTHON_VERSIONS: ${{needs.build-info.outputs.all-python-versions-list-as-string}}
DEBUG_RESOURCES: ${{ needs.build-info.outputs.debug-resources }}
BUILD_TIMEOUT_MINUTES: 70
- name: "Source constraints"
shell: bash
run: >
breeze release-management generate-constraints --run-in-parallel
--airflow-constraints-mode constraints-source-providers
env:
PYTHON_VERSIONS: ${{needs.build-info.outputs.all-python-versions-list-as-string}}
DEBUG_RESOURCES: ${{ needs.build-info.outputs.debug-resources }}
- name: "Upload constraint artifacts"
uses: actions/upload-artifact@v3
with:
name: constraints
path: ./files/constraints-*/constraints-*.txt
retention-days: 7

build-prod-images:
permissions:
Expand Down

0 comments on commit 40b9d2b

Please sign in to comment.