Skip to content

Commit c53b231

Browse files
authored
revert: "chore(IDX): remove bazel-bep upload (dfinity#3615)" (dfinity#3646)
This reverts commit 0468e6f.
1 parent 7325e17 commit c53b231

File tree

11 files changed

+246
-0
lines changed

11 files changed

+246
-0
lines changed

.github/workflows-source/ci-main.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,7 @@ jobs:
153153
# check if PR title contains release and set timeout filters accordingly
154154
BAZEL_EXTRA_ARGS: ${{ env.BAZEL_EXTRA_ARGS }}
155155
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
156+
- <<: *bazel-bep
156157
- <<: *bazel-upload
157158

158159
bazel-build-all-config-check:
@@ -169,6 +170,7 @@ jobs:
169170
BAZEL_COMMAND: "build"
170171
BAZEL_TARGETS: "//rs/..."
171172
BAZEL_CI_CONFIG: "--config=check --config=ci --keep_going"
173+
- <<: *bazel-bep
172174

173175
bazel-test-macos-intel:
174176
name: Bazel Test macOS Intel
@@ -200,6 +202,7 @@ jobs:
200202
BAZEL_EXTRA_ARGS: '--test_tag_filters=test_macos'
201203
BAZEL_STARTUP_ARGS: "--output_base /var/tmp/bazel-output/${CI_RUN_ID}"
202204
BAZEL_TARGETS: "//rs/... //publish/binaries/..."
205+
- <<: *bazel-bep
203206
- name: Purge Bazel Output
204207
if: always()
205208
shell: bash
@@ -218,6 +221,7 @@ jobs:
218221
BAZEL_COMMAND: "build"
219222
BAZEL_TARGETS: "//rs/..."
220223
BAZEL_EXTRA_ARGS: "--keep_going --config=fuzzing --build_tag_filters=libfuzzer"
224+
- <<: *bazel-bep
221225

222226
bazel-build-fuzzers-afl:
223227
name: Bazel Build Fuzzers AFL
@@ -231,6 +235,7 @@ jobs:
231235
BAZEL_COMMAND: "build"
232236
BAZEL_TARGETS: "//rs/..."
233237
BAZEL_EXTRA_ARGS: "--keep_going --config=afl"
238+
- <<: *bazel-bep
234239

235240
python-ci-tests:
236241
name: Python CI Tests

.github/workflows-source/ci-pr-only.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,17 @@ jobs:
6464
set -euo pipefail
6565
cd "${GITHUB_WORKSPACE}"/bin
6666
./build-all-fuzzers.sh --zip
67+
- name: Upload bazel-bep
68+
if: always()
69+
uses: actions/upload-artifact@v4
70+
with:
71+
name: ${{ github.job }}-bep
72+
retention-days: 14
73+
if-no-files-found: ignore
74+
compression-level: 9
75+
path: |
76+
bazel-bep.pb
77+
profile.json
6778
6879
lock-generate:
6980
name: Lock Generate

.github/workflows-source/release-testing.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ jobs:
8282
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
8383
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_nightly"
8484
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
85+
- <<: *bazel-bep
8586

8687
bazel-system-test-staging:
8788
name: Bazel System Test Staging
@@ -98,6 +99,7 @@ jobs:
9899
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
99100
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_staging"
100101
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
102+
- <<: *bazel-bep
101103

102104
bazel-system-test-hotfix:
103105
name: Bazel System Test Hotfix
@@ -115,6 +117,7 @@ jobs:
115117
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
116118
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_hotfix"
117119
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
120+
- <<: *bazel-bep
118121

119122
dependency-scan-release-cut:
120123
name: Dependency Scan for Release
@@ -187,3 +190,8 @@ jobs:
187190
BAZEL_CI_CONFIG: "--config=systest --repository_cache=/cache/bazel"
188191
BAZEL_EXTRA_ARGS: "--keep_going --test_timeout=7200 --test_env=OLD_VERSION=${{ matrix.version }}"
189192
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
193+
- <<: *bazel-bep
194+
name: Upload bazel bep for version ${{ matrix.version }}
195+
with:
196+
<<: *bazel-bep-with
197+
name: ${{ github.job }}-${{ matrix.version }}-bep

.github/workflows-source/schedule-daily.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,7 @@ jobs:
118118
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=fi_tests_nightly --test_env=SSH_AUTH_SOCK --test_timeout=43200"
119119
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
120120
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
121+
- <<: *bazel-bep
121122

122123
nns-tests-nightly:
123124
name: Bazel Test NNS Nightly
@@ -136,6 +137,7 @@ jobs:
136137
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=nns_tests_nightly --test_env=SSH_AUTH_SOCK --test_env=NNS_CANISTER_UPGRADE_SEQUENCE=all"
137138
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
138139
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
140+
- <<: *bazel-bep
139141

140142
system-tests-benchmarks-nightly:
141143
name: Bazel System Test Benchmarks
@@ -159,6 +161,7 @@ jobs:
159161
# note: there's just one performance cluster, so the job can't be parallelized
160162
BAZEL_EXTRA_ARGS: "--test_tag_filters=system_test_benchmark --//bazel:enable_upload_perf_systest_results=True --keep_going --jobs 1"
161163
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
164+
- <<: *bazel-bep
162165
- name: Post Slack Notification
163166
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
164167
if: failure()

.github/workflows-source/schedule-hourly.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ jobs:
6666
BAZEL_CI_CONFIG: "--config=ci"
6767
BAZEL_COMMAND: "build"
6868
BAZEL_EXTRA_ARGS: "--repository_cache= --disk_cache= --noremote_accept_cached --remote_instance_name=${CI_COMMIT_SHA} --@rules_rust//rust/settings:pipelined_compilation=True"
69+
- <<: *bazel-bep
6970

7071
bazel-system-test-hourly:
7172
name: Bazel System Tests Hourly
@@ -85,6 +86,7 @@ jobs:
8586
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
8687
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_hourly"
8788
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
89+
- <<: *bazel-bep
8890

8991
bazel-run-fuzzers-hourly:
9092
name: Bazel Run Fuzzers Hourly

.github/workflows/ci-main.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,19 @@ jobs:
101101
# check if PR title contains release and set timeout filters accordingly
102102
BAZEL_EXTRA_ARGS: ${{ env.BAZEL_EXTRA_ARGS }}
103103
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
104+
- name: Upload bazel-bep
105+
# runs only if previous step succeeded or failed;
106+
# we avoid collecting artifacts of jobs that were cancelled
107+
if: success() || failure()
108+
uses: actions/upload-artifact@v4
109+
with:
110+
name: ${{ github.job }}-bep
111+
retention-days: 14
112+
if-no-files-found: ignore
113+
compression-level: 9
114+
path: |
115+
bazel-bep.pb
116+
profile.json
104117
- name: Upload bazel-targets
105118
uses: actions/upload-artifact@v4
106119
with:
@@ -136,6 +149,19 @@ jobs:
136149
BAZEL_COMMAND: "build"
137150
BAZEL_TARGETS: "//rs/..."
138151
BAZEL_CI_CONFIG: "--config=check --config=ci --keep_going"
152+
- name: Upload bazel-bep
153+
# runs only if previous step succeeded or failed;
154+
# we avoid collecting artifacts of jobs that were cancelled
155+
if: success() || failure()
156+
uses: actions/upload-artifact@v4
157+
with:
158+
name: ${{ github.job }}-bep
159+
retention-days: 14
160+
if-no-files-found: ignore
161+
compression-level: 9
162+
path: |
163+
bazel-bep.pb
164+
profile.json
139165
bazel-test-macos-intel:
140166
name: Bazel Test macOS Intel
141167
timeout-minutes: 130
@@ -168,6 +194,19 @@ jobs:
168194
BAZEL_EXTRA_ARGS: '--test_tag_filters=test_macos'
169195
BAZEL_STARTUP_ARGS: "--output_base /var/tmp/bazel-output/${CI_RUN_ID}"
170196
BAZEL_TARGETS: "//rs/... //publish/binaries/..."
197+
- name: Upload bazel-bep
198+
# runs only if previous step succeeded or failed;
199+
# we avoid collecting artifacts of jobs that were cancelled
200+
if: success() || failure()
201+
uses: actions/upload-artifact@v4
202+
with:
203+
name: ${{ github.job }}-bep
204+
retention-days: 14
205+
if-no-files-found: ignore
206+
compression-level: 9
207+
path: |
208+
bazel-bep.pb
209+
profile.json
171210
- name: Purge Bazel Output
172211
if: always()
173212
shell: bash
@@ -194,6 +233,19 @@ jobs:
194233
BAZEL_COMMAND: "build"
195234
BAZEL_TARGETS: "//rs/..."
196235
BAZEL_EXTRA_ARGS: "--keep_going --config=fuzzing --build_tag_filters=libfuzzer"
236+
- name: Upload bazel-bep
237+
# runs only if previous step succeeded or failed;
238+
# we avoid collecting artifacts of jobs that were cancelled
239+
if: success() || failure()
240+
uses: actions/upload-artifact@v4
241+
with:
242+
name: ${{ github.job }}-bep
243+
retention-days: 14
244+
if-no-files-found: ignore
245+
compression-level: 9
246+
path: |
247+
bazel-bep.pb
248+
profile.json
197249
bazel-build-fuzzers-afl:
198250
name: Bazel Build Fuzzers AFL
199251
runs-on:
@@ -215,6 +267,19 @@ jobs:
215267
BAZEL_COMMAND: "build"
216268
BAZEL_TARGETS: "//rs/..."
217269
BAZEL_EXTRA_ARGS: "--keep_going --config=afl"
270+
- name: Upload bazel-bep
271+
# runs only if previous step succeeded or failed;
272+
# we avoid collecting artifacts of jobs that were cancelled
273+
if: success() || failure()
274+
uses: actions/upload-artifact@v4
275+
with:
276+
name: ${{ github.job }}-bep
277+
retention-days: 14
278+
if-no-files-found: ignore
279+
compression-level: 9
280+
path: |
281+
bazel-bep.pb
282+
profile.json
218283
python-ci-tests:
219284
name: Python CI Tests
220285
runs-on:

.github/workflows/ci-pr-only.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,17 @@ jobs:
4444
set -euo pipefail
4545
cd "${GITHUB_WORKSPACE}"/bin
4646
./build-all-fuzzers.sh --zip
47+
- name: Upload bazel-bep
48+
if: always()
49+
uses: actions/upload-artifact@v4
50+
with:
51+
name: ${{ github.job }}-bep
52+
retention-days: 14
53+
if-no-files-found: ignore
54+
compression-level: 9
55+
path: |
56+
bazel-bep.pb
57+
profile.json
4758
lock-generate:
4859
name: Lock Generate
4960
timeout-minutes: 30

.github/workflows/release-testing.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,19 @@ jobs:
5151
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
5252
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_nightly"
5353
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
54+
- name: Upload bazel-bep
55+
# runs only if previous step succeeded or failed;
56+
# we avoid collecting artifacts of jobs that were cancelled
57+
if: success() || failure()
58+
uses: actions/upload-artifact@v4
59+
with:
60+
name: ${{ github.job }}-bep
61+
retention-days: 14
62+
if-no-files-found: ignore
63+
compression-level: 9
64+
path: |
65+
bazel-bep.pb
66+
profile.json
5467
bazel-system-test-staging:
5568
name: Bazel System Test Staging
5669
runs-on:
@@ -80,6 +93,19 @@ jobs:
8093
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
8194
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_staging"
8295
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
96+
- name: Upload bazel-bep
97+
# runs only if previous step succeeded or failed;
98+
# we avoid collecting artifacts of jobs that were cancelled
99+
if: success() || failure()
100+
uses: actions/upload-artifact@v4
101+
with:
102+
name: ${{ github.job }}-bep
103+
retention-days: 14
104+
if-no-files-found: ignore
105+
compression-level: 9
106+
path: |
107+
bazel-bep.pb
108+
profile.json
83109
bazel-system-test-hotfix:
84110
name: Bazel System Test Hotfix
85111
runs-on:
@@ -109,6 +135,19 @@ jobs:
109135
BAZEL_CI_CONFIG: "--config=ci --repository_cache=/cache/bazel"
110136
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=system_test_hotfix"
111137
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
138+
- name: Upload bazel-bep
139+
# runs only if previous step succeeded or failed;
140+
# we avoid collecting artifacts of jobs that were cancelled
141+
if: success() || failure()
142+
uses: actions/upload-artifact@v4
143+
with:
144+
name: ${{ github.job }}-bep
145+
retention-days: 14
146+
if-no-files-found: ignore
147+
compression-level: 9
148+
path: |
149+
bazel-bep.pb
150+
profile.json
112151
dependency-scan-release-cut:
113152
name: Dependency Scan for Release
114153
runs-on:
@@ -212,3 +251,16 @@ jobs:
212251
BAZEL_CI_CONFIG: "--config=systest --repository_cache=/cache/bazel"
213252
BAZEL_EXTRA_ARGS: "--keep_going --test_timeout=7200 --test_env=OLD_VERSION=${{ matrix.version }}"
214253
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
254+
- # runs only if previous step succeeded or failed;
255+
# we avoid collecting artifacts of jobs that were cancelled
256+
if: success() || failure()
257+
uses: actions/upload-artifact@v4
258+
name: Upload bazel bep for version ${{ matrix.version }}
259+
with:
260+
retention-days: 14
261+
if-no-files-found: ignore
262+
compression-level: 9
263+
path: |
264+
bazel-bep.pb
265+
profile.json
266+
name: ${{ github.job }}-${{ matrix.version }}-bep

.github/workflows/schedule-daily.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,19 @@ jobs:
9494
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=fi_tests_nightly --test_env=SSH_AUTH_SOCK --test_timeout=43200"
9595
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
9696
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
97+
- name: Upload bazel-bep
98+
# runs only if previous step succeeded or failed;
99+
# we avoid collecting artifacts of jobs that were cancelled
100+
if: success() || failure()
101+
uses: actions/upload-artifact@v4
102+
with:
103+
name: ${{ github.job }}-bep
104+
retention-days: 14
105+
if-no-files-found: ignore
106+
compression-level: 9
107+
path: |
108+
bazel-bep.pb
109+
profile.json
97110
nns-tests-nightly:
98111
name: Bazel Test NNS Nightly
99112
runs-on:
@@ -122,6 +135,19 @@ jobs:
122135
BAZEL_EXTRA_ARGS: "--keep_going --test_tag_filters=nns_tests_nightly --test_env=SSH_AUTH_SOCK --test_env=NNS_CANISTER_UPGRADE_SEQUENCE=all"
123136
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
124137
SSH_PRIVATE_KEY: ${{ secrets.SSH_PRIVATE_KEY }}
138+
- name: Upload bazel-bep
139+
# runs only if previous step succeeded or failed;
140+
# we avoid collecting artifacts of jobs that were cancelled
141+
if: success() || failure()
142+
uses: actions/upload-artifact@v4
143+
with:
144+
name: ${{ github.job }}-bep
145+
retention-days: 14
146+
if-no-files-found: ignore
147+
compression-level: 9
148+
path: |
149+
bazel-bep.pb
150+
profile.json
125151
system-tests-benchmarks-nightly:
126152
name: Bazel System Test Benchmarks
127153
runs-on:
@@ -155,6 +181,19 @@ jobs:
155181
# note: there's just one performance cluster, so the job can't be parallelized
156182
BAZEL_EXTRA_ARGS: "--test_tag_filters=system_test_benchmark --//bazel:enable_upload_perf_systest_results=True --keep_going --jobs 1"
157183
BUILDEVENT_APIKEY: ${{ secrets.HONEYCOMB_API_TOKEN }}
184+
- name: Upload bazel-bep
185+
# runs only if previous step succeeded or failed;
186+
# we avoid collecting artifacts of jobs that were cancelled
187+
if: success() || failure()
188+
uses: actions/upload-artifact@v4
189+
with:
190+
name: ${{ github.job }}-bep
191+
retention-days: 14
192+
if-no-files-found: ignore
193+
compression-level: 9
194+
path: |
195+
bazel-bep.pb
196+
profile.json
158197
- name: Post Slack Notification
159198
uses: slackapi/slack-github-action@6c661ce58804a1a20f6dc5fbee7f0381b469e001 # v1.25.0
160199
if: failure()

0 commit comments

Comments
 (0)