Skip to content

Commit 36f3695

Browse files
committed
[rust] Get recordings from runners
1 parent c72716c commit 36f3695

File tree

2 files changed

+27
-0
lines changed

2 files changed

+27
-0
lines changed

.github/workflows/bazel.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,11 @@ on:
6666
required: false
6767
type: string
6868
default: 'ignore-artifacts'
69+
save-recordings:
70+
description: Save desktop recordings
71+
required: false
72+
type: boolean
73+
default: false
6974

7075
jobs:
7176
bazel:
@@ -182,3 +187,24 @@ jobs:
182187
name: ${{ inputs.artifact-name }}
183188
path: changes.patch
184189
retention-days: 6
190+
- name: Save recordings (Windows)
191+
if: inputs.save-recordings && inputs.os == 'windows'
192+
uses: actions/upload-artifact@v4
193+
with:
194+
name: win-recordings
195+
path: C:\Users\runneradmin\.cache\selenium\recordings\*.avi
196+
retention-days: 6
197+
- name: Save recordings (Linux)
198+
if: inputs.save-recordings && inputs.os == 'linux'
199+
uses: actions/upload-artifact@v4
200+
with:
201+
name: linux-recordings
202+
path: $HOME/.cache/selenium/recordings\*.avi
203+
retention-days: 6
204+
- name: Save recordings (macOS)
205+
if: inputs.save-recordings && inputs.os == 'macos'
206+
uses: actions/upload-artifact@v4
207+
with:
208+
name: macos-recordings
209+
path: $HOME/.cache/selenium/recordings\*.avi
210+
retention-days: 6

.github/workflows/ci-rust.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ jobs:
4141
cache-key: rust-test
4242
os: ${{ matrix.os }}
4343
run: bazel test --test_env=RUST_BACKTRACE=full --test_env=RUST_TEST_NOCAPTURE=1 --flaky_test_attempts=3 //rust/...
44+
save-recordings: true
4445

4546
windows-stable:
4647
name: "Windows Stable"

0 commit comments

Comments
 (0)