|
54 | 54 | beam_PostCommit_Python_Arm: |
55 | 55 | name: ${{ matrix.job_name }} ${{ matrix.python_version }} |
56 | 56 | runs-on: [self-hosted, ubuntu-24.04, main] |
57 | | - # Python 3.14 multiarch container builds take much longer than other versions. |
58 | | - timeout-minutes: ${{ matrix.python_version == '3.14' && 600 || 480 }} |
| 57 | + # Python ARM PostCommit uses prebuilt Snapshots SDK images, so it no longer |
| 58 | + # spends hours on multiarch container builds. Keep headroom for the IT suite. |
| 59 | + timeout-minutes: 180 |
59 | 60 | strategy: |
60 | 61 | fail-fast: false |
61 | 62 | matrix: |
@@ -93,33 +94,23 @@ jobs: |
93 | 94 | credentials_json: ${{ secrets.GCP_SA_KEY }} |
94 | 95 | - name: Set up Cloud SDK |
95 | 96 | uses: google-github-actions/setup-gcloud@aa5489c8933f4cc7a4f7d45035b3b1440c9c10db |
96 | | - - name: Set up Docker Buildx |
97 | | - uses: docker/setup-buildx-action@bb05f3f5519dd87d3ba754cc423b652a5edd6d2c |
98 | | - - name: GCloud Docker credential helper |
99 | | - run: | |
100 | | - gcloud auth configure-docker us.gcr.io |
101 | 97 | - name: Set PY_VER_CLEAN |
102 | 98 | id: set_py_ver_clean |
103 | 99 | run: | |
104 | 100 | PY_VER=${{ matrix.python_version }} |
105 | 101 | PY_VER_CLEAN=${PY_VER//.} |
106 | 102 | echo "py_ver_clean=$PY_VER_CLEAN" >> $GITHUB_OUTPUT |
107 | | - - name: Generate TAG unique variable based on timestamp |
108 | | - id: set_tag |
109 | | - run: echo "TAG=$(date +'%Y%m%d-%H%M%S%N')" >> $GITHUB_OUTPUT |
110 | 103 | - name: run PostCommit Python ${{ matrix.python_version }} script |
111 | 104 | uses: ./.github/actions/gradle-command-self-hosted-action |
112 | 105 | with: |
113 | 106 | gradle-command: :sdks:python:test-suites:dataflow:py${{steps.set_py_ver_clean.outputs.py_ver_clean}}:postCommitArmIT |
114 | 107 | arguments: | |
115 | 108 | -PuseWheelDistribution \ |
116 | 109 | -PpythonVersion=${{ matrix.python_version }} \ |
117 | | - -Pcontainer-architecture-list=arm64,amd64 \ |
118 | | - -Pdocker-repository-root=us.gcr.io/apache-beam-testing/github-actions \ |
119 | | - -Pdocker-tag=${{ steps.set_tag.outputs.TAG }} \ |
120 | | - -Ppush-containers \ |
| 110 | + -PusePrebuiltSdkContainer \ |
121 | 111 | env: |
122 | | - MULTIARCH_TAG: ${{ steps.set_tag.outputs.TAG }} |
| 112 | + # Use multiarch images published by Publish Beam SDK Snapshots. |
| 113 | + SDK_CONTAINER_IMAGE: gcr.io/apache-beam-testing/beam-sdk/beam_python${{ matrix.python_version }}_sdk:latest |
123 | 114 | USER: github-actions |
124 | 115 | - name: Archive Python Test Results |
125 | 116 | uses: actions/upload-artifact@v7 |
|
0 commit comments