Skip to content

Commit 5ced1f6

Browse files
committed
test chunking against AWS proxies
1 parent a653400 commit 5ced1f6

File tree

1 file changed

+37
-2
lines changed

1 file changed

+37
-2
lines changed

.github/workflows/test-chunking.yaml

Lines changed: 37 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Builds against a cache proxy with CDC (content-defined chunking) enabled.
22
# Large blobs are chunked on upload and download.
3-
name: Build against Proxy with Chunking (dev)
3+
name: Build against Proxy with Chunking
44

55
on:
66
push:
@@ -11,7 +11,7 @@ on:
1111
- master
1212

1313
jobs:
14-
metal:
14+
metal-dev:
1515
runs-on: ubuntu-latest
1616
if: "!contains(github.event.head_commit.message, 'ci skip')"
1717

@@ -46,3 +46,38 @@ jobs:
4646
repo-cache-dir: ${{ steps.cache-restore.outputs.repo-cache-dir }}
4747
go-mod-cache-dir: ${{ steps.cache-restore.outputs.go-mod-cache-dir }}
4848
yarn-cache-dir: ${{ steps.cache-restore.outputs.yarn-cache-dir }}
49+
aws-prod:
50+
runs-on: ubuntu-latest
51+
if: "!contains(github.event.head_commit.message, 'ci skip')"
52+
53+
steps:
54+
- name: Checkout
55+
uses: actions/checkout@v3
56+
57+
- name: Restore caches
58+
id: cache-restore
59+
uses: ./.github/actions/cache-restore
60+
61+
- name: Build
62+
env:
63+
GO_REPOSITORY_USE_HOST_CACHE: 1
64+
GOMODCACHE: /home/runner/go-mod-cache
65+
run: |
66+
bazelisk build \
67+
--config=untrusted-ci \
68+
--remote_cache=grpcs://proxy.aws-us-west-2.buildbuddy.io \
69+
--remote_executor=grpcs://chunking.buildbuddy.io \
70+
--bes_backend=grpcs://chunking.buildbuddy.io \
71+
--bes_results_url=https://chunking.buildbuddy.io/invocation/ \
72+
--remote_header=x-buildbuddy-api-key=${{ secrets.BB_CHUNKING_PROD_API_KEY }} \
73+
--remote_upload_local_results \
74+
--announce_rc \
75+
//...
76+
77+
- name: Save caches
78+
uses: ./.github/actions/cache-save
79+
if: always()
80+
with:
81+
repo-cache-dir: ${{ steps.cache-restore.outputs.repo-cache-dir }}
82+
go-mod-cache-dir: ${{ steps.cache-restore.outputs.go-mod-cache-dir }}
83+
yarn-cache-dir: ${{ steps.cache-restore.outputs.yarn-cache-dir }}

0 commit comments

Comments
 (0)