Skip to content

Commit 538d03c

Browse files
authored
Use WarpBuild runners for CI workflows (#185)
Migrate test, integration, and docker workflows from ubuntu-latest to warp-ubuntu-latest-x64-4x. Update Docker Buildx setup with network=host driver-opts and point Docker layer cache at WarpBuild's cache proxy. Release and CLA workflows are left on GitHub-hosted runners.
1 parent 9e75895 commit 538d03c

3 files changed

Lines changed: 12 additions & 6 deletions

File tree

.github/workflows/docker.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ env:
1515

1616
jobs:
1717
build-python-services-docker-image:
18-
runs-on: ubuntu-latest
18+
runs-on: warp-ubuntu-latest-x64-4x
1919
steps:
2020
- name: Checkout repository
2121
uses: actions/checkout@v4
@@ -24,7 +24,10 @@ jobs:
2424
uses: docker/setup-qemu-action@v2
2525

2626
- name: Set up Docker Buildx
27-
uses: docker/setup-buildx-action@v2
27+
uses: docker/setup-buildx-action@v3
28+
with:
29+
driver-opts: |
30+
network=host
2831
2932
- name: Log into GitHub container registry
3033
uses: docker/login-action@v2

.github/workflows/integration.yaml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ on:
4646
jobs:
4747
sdk-test-suite:
4848
if: github.repository_owner == 'restatedev'
49-
runs-on: ubuntu-latest
49+
runs-on: warp-ubuntu-latest-x64-4x
5050
name: Features integration test
5151
permissions:
5252
contents: read
@@ -104,6 +104,9 @@ jobs:
104104
- name: Set up Docker Buildx
105105
if: ${{ inputs.serviceImage == '' }}
106106
uses: docker/setup-buildx-action@v3
107+
with:
108+
driver-opts: |
109+
network=host
107110
- name: Build Python test-services image
108111
if: ${{ inputs.serviceImage == '' }}
109112
id: build
@@ -114,8 +117,8 @@ jobs:
114117
push: false
115118
load: true
116119
tags: restatedev/test-services-python
117-
cache-from: type=gha,scope=${{ github.workflow }}
118-
cache-to: type=gha,mode=max,scope=${{ github.workflow }}
120+
cache-from: type=gha,url=http://127.0.0.1:49160/,version=1,scope=${{ github.workflow }}
121+
cache-to: type=gha,url=http://127.0.0.1:49160/,mode=max,version=1,scope=${{ github.workflow }}
119122

120123
# Or use the provided one
121124
- name: Pull test services image

.github/workflows/test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ permissions:
1515
jobs:
1616
lint-and-test:
1717
name: "Lint and Test (Python ${{ matrix.python }})"
18-
runs-on: ubuntu-latest
18+
runs-on: warp-ubuntu-latest-x64-4x
1919
strategy:
2020
matrix:
2121
python: [ "3.10", "3.11", "3.12", "3.13", "3.14" ]

0 commit comments

Comments
 (0)