2121 OPAL_RPC_CREDENTIALS : ${{ secrets.OPAL_RPC_CREDENTIALS }}
2222
2323jobs :
24- test-matrix :
24+ macos- test-matrix :
2525 runs-on :
2626 - self-hosted
27- - " os=${{ matrix.os }} "
28- - " arch=${{ matrix.arch }} "
29- - " os_distribution=${{ matrix.os_distribution }} "
30- - " os_version=${{ matrix.os_version }} "
31- - " revision=${{ matrix.revision }} "
27+ - " os=macos "
28+ - " arch=arm64 "
29+ - " os_distribution=sonoma "
30+ - " os_version=14 "
31+ - " revision=4edc10aa8f8ca239699aaf1078832208fb3b7efe "
3232 timeout-minutes : 10
3333 strategy :
3434 fail-fast : false
3535 matrix :
36- include :
37- - os : macos
38- arch : arm64
39- os_distribution : sonoma
40- os_version : " 14 "
41- revision : 4edc10aa8f8ca239699aaf1078832208fb3b7efe
42- remote_execution : ' false '
43-
44- - os : macos
45- arch : arm64
46- os_distribution : sonoma
47- os_version : " 14 "
48- revision : 4edc10aa8f8ca239699aaf1078832208fb3b7efe
49- remote_execution : ' true '
36+ test_package :
37+ - cpp
38+ - csharp
39+ - docker
40+ - genrules
41+ - go
42+ # - ios # TODO: fix ios builds
43+ - java
44+ - kotlin
45+ - perl
46+ - scala
47+ - swift
48+ - typescript
49+ execution_type : [remote, local]
5050
5151 steps :
5252 - uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
@@ -61,36 +61,81 @@ jobs:
6161
6262 - name : Build and test
6363 env :
64- ARCH : ${{ matrix.arch }}
65- OS : ${{ matrix.os }}
66- REMOTE_EXECUTION : ${{ matrix.remote_execution }}
67- run : python3 infra/test-all.py
64+ ARCH : arm64
65+ OS : macos
66+ EXECUTION_TYPE : ${{ matrix.execution_type }}
67+ run : python3 infra/test-all.py --package=${{ matrix.test_package }}
6868
69- ci-runners -test-matrix :
69+ linux -test-matrix :
7070 runs-on :
7171 - self-hosted
7272 - " os=linux"
7373 - " arch=x64"
74- - " remote_execution=${{ matrix.remote_execution }}"
7574 - " engflow-bento-name=example-gh-x64"
7675 - " engflow-cluster=glass"
77- - " engflow-job-name=ci-runners-test-matrix-${{matrix.remote_execution}}_${{matrix.allow_bento_snapshot}}"
76+ - " engflow-job-name=linux-test-matrix-${{matrix.execution_type}}"
77+ - " engflow-job-type=${{github.event_name}}-${{github.ref_name}}"
78+ - " engflow-run-id=${{ github.run_id }}"
79+ - " engflow-bento-allow-save=false"
80+
81+ timeout-minutes : 10
82+ strategy :
83+ fail-fast : false
84+ matrix :
85+ test_package :
86+ - cpp
87+ - csharp
88+ - docker
89+ - genrules
90+ - go
91+ # - ios # TODO: fix ios builds
92+ - java
93+ - kotlin
94+ - perl
95+ - scala
96+ - swift
97+ - typescript
98+ execution_type : [remote, local]
99+
100+ steps :
101+ - uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
102+
103+ - name : Set up authentication
104+ shell : bash
105+ run : cp infra/bazelrc .bazelrc.user
106+
107+ - name : Generate python requirements lock
108+ shell : bash
109+ run : bazel run //python:requirements.update
110+
111+ - name : Build and test
112+ env :
113+ ARCH : x64
114+ OS : linux
115+ EXECUTION_TYPE : ${{ matrix.execution_type }}
116+ run : python3 infra/test-all.py --package=${{ matrix.test_package }}
117+
118+ bento-snapshot :
119+ runs-on :
120+ - self-hosted
121+ - " os=linux"
122+ - " arch=x64"
123+ - " remote_execution=true"
124+ - " engflow-bento-name=example-gh-x64"
125+ - " engflow-cluster=glass"
126+ - " engflow-job-name=bento-snapshot"
78127 - " engflow-job-type=${{github.event_name}}-${{github.ref_name}}"
79128 - " engflow-run-id=${{ github.run_id }}"
80129 # To avoid a race condition, among all the jobs that use the same Bento in the same repo, only
81130 # one should specify "engflow-bento-allow-save=true".
82- - " engflow-bento-allow-save=${{ matrix.allow_bento_snapshot }} "
131+ - " engflow-bento-allow-save=true "
83132
84133 timeout-minutes : 10
85134 strategy :
86135 fail-fast : false
87136 matrix :
88- include :
89- - remote_execution : ' false'
90- allow_bento_snapshot : ' false'
91-
92- - remote_execution : ' true'
93- allow_bento_snapshot : ' true'
137+ test_package : [cpp]
138+ execution_type : [remote]
94139
95140 steps :
96141 - uses : " actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd"
@@ -107,8 +152,8 @@ jobs:
107152 env :
108153 ARCH : x64
109154 OS : linux
110- REMOTE_EXECUTION : ${{ matrix.remote_execution }}
111- run : python3 infra/test-all.py
155+ EXECUTION_TYPE : ${{ matrix.execution_type }}
156+ run : python3 infra/test-all.py --package=${{ matrix.test_package }}
112157
113158 buck2-test :
114159 runs-on :
0 commit comments