Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
43 commits
Select commit Hold shift + click to select a range
e7c9c2c
[rust] Implement desktop recording in SM using FFmpeg
bonigarcia Feb 13, 2025
282440d
[rust] Get recordings from runners
bonigarcia Feb 17, 2025
884d1c4
[rust] Use --ffmepg flag in test
bonigarcia Feb 17, 2025
762f026
[rust] Fix recording paths in Linux and macOS
bonigarcia Feb 17, 2025
efa5161
[rust] Change paths and recording names
bonigarcia Feb 17, 2025
293f259
[rust] Change home path in Linux and macOS
bonigarcia Feb 17, 2025
863b551
[rust] Include temporal forced error in recording test
bonigarcia Feb 17, 2025
ecfb6a5
[rust] Run recording command with log
bonigarcia Feb 17, 2025
6165a37
[rust] Expose DISPLAY env in Linux and macOS
bonigarcia Feb 17, 2025
e73663e
[rust] Read DISPLAY env for recording command in Linux and macOS
bonigarcia Feb 17, 2025
5cc834c
[rust] Forced display value for tests
bonigarcia Feb 17, 2025
a95c3de
[rust] Temporal command to see ffmpeg help
bonigarcia Feb 18, 2025
2a312e0
Revert "[rust] Temporal command to see ffmpeg help"
bonigarcia Feb 18, 2025
7a071a1
[rust] Temporal ffmpeg command to list devices in Linux and macOS
bonigarcia Feb 18, 2025
0998660
[rust] Include stderr also in shell command output
bonigarcia Feb 18, 2025
ab30e11
[rust] Change ffmpeg commands to record desktop in Linux and macOS
bonigarcia Feb 18, 2025
ced762f
[rust] Change macOS command to record desktop
bonigarcia Feb 18, 2025
e32ef1c
[rust] Include audio device in command to record desktop in Linux and…
bonigarcia Feb 18, 2025
77ee114
[rust] Reset env DISPLAY
bonigarcia Feb 18, 2025
66b92bc
[rust] Remove forced error in recording test
bonigarcia Feb 18, 2025
4ce880a
[rust] Modify command to record desktop with x11grab
bonigarcia Feb 18, 2025
8b67bd2
[rust] Export DISPLAY env with value :99 for Rust tests
bonigarcia Feb 18, 2025
b7c254f
Revert "[rust] Remove forced error in recording test"
bonigarcia Feb 18, 2025
2b5c73d
[rust] Remove DISPLAY value from bazel setup
bonigarcia Feb 18, 2025
1599ec0
[rust] Set DISPLAY env to :1 for Rust tests
bonigarcia Feb 18, 2025
224b7ab
[rust] Setup Xvfb always in Linux worker
bonigarcia Feb 18, 2025
067121e
[rust] Setup Xvfb if save-recordings is enabled in Linux worker
bonigarcia Feb 18, 2025
16367e8
[rust] Set default video device for avfoundation
bonigarcia Feb 18, 2025
1ee4010
[rust] List devices in avfoundation and fail test
bonigarcia Feb 18, 2025
7b7bb8f
[rust] Change video device in macOS
bonigarcia Feb 18, 2025
b311ed4
[rust] Use MKV format in macOS recording
bonigarcia Feb 18, 2025
4ec1442
[rust] Change devices in macOS recording
bonigarcia Feb 18, 2025
d404577
Revert "[rust] Change devices in macOS recording"
bonigarcia Feb 19, 2025
1f515b9
[Use] Use device 0 and yuv420p mov for avfoundation recording (macOS)
bonigarcia Feb 19, 2025
d66cebf
[rust] Error after desktop recording if command terminates
bonigarcia Feb 19, 2025
07423e1
[rust] Remove optional ffmpeg version in cli parameter
bonigarcia Feb 19, 2025
0a4d944
Remove step to save recording in macOS worker since requires manual s…
bonigarcia Feb 19, 2025
7cd6f33
[rust] Use mkv as video container for all recordings
bonigarcia Feb 19, 2025
733f227
[rust] Revert default video format to avi
bonigarcia Feb 19, 2025
2cb138d
[rust] Use mpeg-4 video codec for recording desktop (balance size & q…
bonigarcia Feb 19, 2025
e3efe51
[rust] Assert in recording test
bonigarcia Feb 19, 2025
1e804c7
[rust] Revert change in test
bonigarcia Feb 19, 2025
8560c48
[rust] Update bazel lock file
bonigarcia Feb 20, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 20 additions & 1 deletion .github/workflows/bazel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,11 @@ on:
required: false
type: string
default: 'ignore-artifacts'
save-recordings:
description: Save desktop recordings
required: false
type: boolean
default: false

jobs:
bazel:
Expand Down Expand Up @@ -140,7 +145,7 @@ jobs:
with:
bazelrc: common --color=yes
- name: Setup Fluxbox and Xvfb
if: inputs.os == 'ubuntu' && inputs.browser != ''
if: inputs.os == 'ubuntu' && (inputs.browser != '' || inputs.save-recordings)
run: |
sudo apt-get -y install fluxbox
Xvfb :99 &
Expand Down Expand Up @@ -182,3 +187,17 @@ jobs:
name: ${{ inputs.artifact-name }}
path: changes.patch
retention-days: 6
- name: Save recordings (Windows)
if: inputs.save-recordings && inputs.os == 'windows'
uses: actions/upload-artifact@v4
with:
name: recordings-win
path: C:\Users\runneradmin\.cache\selenium\recordings\*.*
retention-days: 6
- name: Save recordings (Linux)
if: inputs.save-recordings && inputs.os == 'ubuntu'
uses: actions/upload-artifact@v4
with:
name: recordings-linux
path: /home/runner/.cache/selenium/recordings/*.*
retention-days: 6
1 change: 1 addition & 0 deletions .github/workflows/ci-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ jobs:
cache-key: rust-test
os: ${{ matrix.os }}
run: bazel test --test_env=RUST_BACKTRACE=full --test_env=RUST_TEST_NOCAPTURE=1 --flaky_test_attempts=3 //rust/...
save-recordings: true

windows-stable:
name: "Windows Stable"
Expand Down
Loading