Skip to content
Open
Changes from 15 commits
Commits
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
32 changes: 32 additions & 0 deletions .github/workflows/root-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,22 @@ jobs:
with:
ref: ${{ inputs.ref_name }}

# TODO: Install chrome
# Latest error: sudo: a terminal is required to read the password; either use the -S option to read from standard input or configure an askpass helper
# sudo: a password is required
# Error: Process completed with exit code 1.
# - name: Install Homebrew
# run: |
# sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# - name: Verify Installation
# run: |
# brew --version

# - name: Install chrome
# run: |
# brew install --cask google-chrome

- name: Apply option overrides from matrix for this job for non-release builds
if: ${{ github.event_name != 'schedule' && github.event_name != 'workflow_dispatch' && matrix.overrides != NaN }}
env:
Expand Down Expand Up @@ -414,6 +430,22 @@ jobs:
uses: actions/checkout@v4
with:
ref: ${{ inputs.ref_name }}

- name: Install Chromium
shell: bash
run: |
if [[ "${{ matrix.image }}" == "fedora39" ]]; then
dnf install -y chromium
elif [[ "${{ matrix.image }}" == "alma8" ]] || [[ "${{ matrix.image }}" == "alma9" ]] || [[ "${{ matrix.image }}" == "alma9-clang" ]]; then
dnf install -y epel-release
dnf install -y chromium
elif [[ "${{ matrix.image }}" == "ubuntu20" ]] || [[ "${{ matrix.image }}" == "ubuntu22" ]] || [[ "${{ matrix.image }}" == "ubuntu2404" ]]; then
apt update
apt install -y chromium-browser
elif [[ "${{ matrix.image }}" == "debian125" ]]; then
apt update
apt install -y chromium
fi

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why Google Chrome is used here? Why not to use chromium - it typically provided in all distributions.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ok I'll change that

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For the moment I see only installation of chromium - where it used then?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I need it to run the new graphic svg test in roottest. root-project/roottest#1179

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see now. Does it works with roottest now?

Copy link
Contributor Author

@DuesselbergAdrian DuesselbergAdrian Sep 12, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For MAC the chrome/chromium installation is still missing. I think someone with authority has to do it.
The new svg tests with headless chrome browser are not hanging on MAC, at least on my machine. So after the installation it should be posisble to enabled all tests here.

For Linux the chromium installation is implemented, but here the headless browser is sometimes hanging.
That's why only 15 new svg tests are enabled. This is also the reason why I am currently differentiating between MAC and Linux platforms in my CMakeLists in roottest/graphics.

Yes in general there is a set of all test types, which is working on Linux and should also work on MAC after the chrome/chromium installation in the ROOT CI

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ill probably have to regenerate some references, but that's it.

- name: Dump GitHub context
env:
Expand Down
Loading