|
77 | 77 | migration: ${{ steps.filter.outputs.migration }}
|
78 | 78 | payments: ${{ steps.filter.outputs.payments }}
|
79 | 79 | dynamic-scheduler: ${{ steps.filter.outputs.dynamic-scheduler }}
|
| 80 | + docker-api-proxy: ${{ steps.filter.outputs.docker-api-proxy }} |
80 | 81 | resource-usage-tracker: ${{ steps.filter.outputs.resource-usage-tracker }}
|
81 | 82 | static-webserver: ${{ steps.filter.outputs.static-webserver }}
|
82 | 83 | storage: ${{ steps.filter.outputs.storage }}
|
@@ -233,6 +234,9 @@ jobs:
|
233 | 234 | - 'services/docker-compose*'
|
234 | 235 | - 'scripts/mypy/*'
|
235 | 236 | - 'mypy.ini'
|
| 237 | + docker-api-proxy: |
| 238 | + - 'packages/**' |
| 239 | + - 'services/docker-api-proxy/**' |
236 | 240 | resource-usage-tracker:
|
237 | 241 | - 'packages/**'
|
238 | 242 | - 'services/resource-usage-tracker/**'
|
@@ -2190,6 +2194,71 @@ jobs:
|
2190 | 2194 | with:
|
2191 | 2195 | flags: integrationtests #optional
|
2192 | 2196 |
|
| 2197 | + |
| 2198 | + integration-test-docker-api-proxy: |
| 2199 | + needs: [changes, build-test-images] |
| 2200 | + if: ${{ needs.changes.outputs.anything-py == 'true' || needs.changes.outputs.docker-api-proxy == 'true' || github.event_name == 'push'}} |
| 2201 | + timeout-minutes: 30 # if this timeout gets too small, then split the tests |
| 2202 | + name: "[int] docker-api-proxy" |
| 2203 | + runs-on: ${{ matrix.os }} |
| 2204 | + strategy: |
| 2205 | + matrix: |
| 2206 | + python: ["3.11"] |
| 2207 | + os: [ubuntu-22.04] |
| 2208 | + fail-fast: false |
| 2209 | + steps: |
| 2210 | + - uses: actions/checkout@v4 |
| 2211 | + - name: setup docker buildx |
| 2212 | + id: buildx |
| 2213 | + uses: docker/setup-buildx-action@v3 |
| 2214 | + with: |
| 2215 | + driver: docker-container |
| 2216 | + - name: setup python environment |
| 2217 | + uses: actions/setup-python@v5 |
| 2218 | + with: |
| 2219 | + python-version: ${{ matrix.python }} |
| 2220 | + - name: expose github runtime for buildx |
| 2221 | + uses: crazy-max/ghaction-github-runtime@v3 |
| 2222 | + # FIXME: Workaround for https://github.com/actions/download-artifact/issues/249 |
| 2223 | + - name: download docker images with retry |
| 2224 | + uses: Wandalen/wretry.action@master |
| 2225 | + with: |
| 2226 | + action: actions/download-artifact@v4 |
| 2227 | + with: | |
| 2228 | + name: docker-buildx-images-${{ runner.os }}-${{ github.sha }}-backend |
| 2229 | + path: /${{ runner.temp }}/build |
| 2230 | + attempt_limit: 5 |
| 2231 | + attempt_delay: 1000 |
| 2232 | + - name: load docker images |
| 2233 | + run: make load-images local-src=/${{ runner.temp }}/build |
| 2234 | + - name: install uv |
| 2235 | + uses: astral-sh/setup-uv@v5 |
| 2236 | + with: |
| 2237 | + version: "0.5.x" |
| 2238 | + enable-cache: false |
| 2239 | + cache-dependency-glob: "**/docker-api-proxy/requirements/ci.txt" |
| 2240 | + - name: show system version |
| 2241 | + run: ./ci/helpers/show_system_versions.bash |
| 2242 | + - name: install |
| 2243 | + run: ./ci/github/integration-testing/docker-api-proxy.bash install |
| 2244 | + - name: test |
| 2245 | + run: ./ci/github/integration-testing/docker-api-proxy.bash test |
| 2246 | + - name: upload failed tests logs |
| 2247 | + if: ${{ failure() }} |
| 2248 | + uses: actions/upload-artifact@v4 |
| 2249 | + with: |
| 2250 | + name: ${{ github.job }}_docker_logs |
| 2251 | + path: ./services/docker-api-proxy/test_failures |
| 2252 | + - name: cleanup |
| 2253 | + if: ${{ !cancelled() }} |
| 2254 | + run: ./ci/github/integration-testing/docker-api-proxy.bash clean_up |
| 2255 | + - uses: codecov/codecov-action@v5 |
| 2256 | + if: ${{ !cancelled() }} |
| 2257 | + env: |
| 2258 | + CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} |
| 2259 | + with: |
| 2260 | + flags: integrationtests #optional |
| 2261 | + |
2193 | 2262 | integration-test-simcore-sdk:
|
2194 | 2263 | needs: [changes, build-test-images]
|
2195 | 2264 | if: ${{ needs.changes.outputs.anything-py == 'true' || needs.changes.outputs.simcore-sdk == 'true' || github.event_name == 'push' }}
|
@@ -2262,6 +2331,7 @@ jobs:
|
2262 | 2331 | integration-test-director-v2-01,
|
2263 | 2332 | integration-test-director-v2-02,
|
2264 | 2333 | integration-test-dynamic-sidecar,
|
| 2334 | + integration-test-docker-api-proxy, |
2265 | 2335 | integration-test-simcore-sdk,
|
2266 | 2336 | integration-test-webserver-01,
|
2267 | 2337 | integration-test-webserver-02,
|
|
0 commit comments