Skip to content

Commit 46d2a7b

Browse files
authored
Move arm64 testing to Runs-On (#5448)
1 parent 6a9d832 commit 46d2a7b

File tree

153 files changed

+1835
-298
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

153 files changed

+1835
-298
lines changed

.github/package-template.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/amazon-ecr-credential-helper.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/amtool.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/argocd.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/assume-role.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/atlantis.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/atmos.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

.github/workflows/awless.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,11 @@ jobs:
151151
# Publish the artifacts
152152
- name: "Push artifact to package repository"
153153
uses: cloudsmith-io/[email protected]
154+
env:
155+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
156+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
157+
# that we do not have half the packages timing out.
158+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
154159
with:
155160
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
156161
command: 'push'
@@ -181,13 +186,13 @@ jobs:
181186
include:
182187
# Default value for runs-on. Original matrix values will not be overridden, but added ones (like runs-on) can be.
183188
# See https://docs.github.com/en/actions/using-jobs/using-a-matrix-for-your-jobs#expanding-or-adding-matrix-configurations
184-
- runs-on: "self-hosted-arm64-large"
189+
- runs-on: "runs-on=${{ github.run_id }}/runner=packages-arm64"
185190
# By including `arch: amd64` here, we override the `runs-on` value when the matrix `arch` is `amd64`.
186191
# This also forces the matrix to include `arch: amd64` even if it is not in the original matrix.
187192
# This is why we do not default for amd64 and then override for arm64. (Because it would force arm64 to be included, and some tools are not available for arm64.)
188193
- arch: amd64
189194
runs-on: "ubuntu-latest"
190-
runs-on: ${{ matrix.runs-on }}
195+
runs-on: ${{ matrix.arch == 'arm64' && format('{0}/tag=pkg-{1}', matrix.runs-on, matrix.package-type) || matrix.runs-on }}
191196
env:
192197
# We are in a bit of a bind here because of how GitHub actions work as of 2020-11-19
193198
# Although the "workspace" is mounted to the container, it is not mounted
@@ -253,6 +258,11 @@ jobs:
253258
# Publish the artifacts
254259
- name: "Push artifact to package repository"
255260
uses: cloudsmith-io/[email protected]
261+
env:
262+
# This is a hack. We need to hack the action by setting up a `curl` wrapper
263+
# that injects the GIT_TOKEN into API requests so our rate limit is high enough
264+
# that we do not have half the packages timing out.
265+
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
256266
with:
257267
api-key: ${{ secrets.CLOUDSMITH_API_KEY }}
258268
command: 'push'

0 commit comments

Comments
 (0)