Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Stabilization EXPERIMENTAL #29180

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all 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
3 changes: 2 additions & 1 deletion .github/actions/run-qunit-tests/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ runs:

- name: Setup Chrome
if: ${{ inputs.browser == 'chrome' }}
uses: ./.github/actions/setup-chrome
uses: ./.github/actions/setup-chrome-headless-shell
with:
chrome-version: '133.0.6943.53'

Expand Down Expand Up @@ -139,6 +139,7 @@ runs:
GITHUBACTION: "true"
TARGET: "test"
DISPLAY: ":99"
CHROME_CMD: ${{ env.CHROME_SHELL }}
run: |
chmod +x ./docker-ci.sh
./docker-ci.sh
Expand Down
34 changes: 34 additions & 0 deletions .github/actions/setup-chrome-headless-shell/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Chrome headless shell installer
description: Install chrome-headless-shell

# Chrome headless shell
# https://developer.chrome.com/blog/chrome-headless-shell

inputs:
chrome-version:
description: Chrome headless shell version to install
default: "latest"

runs:
using: composite
steps:
- name: Setup chrome-headless-shell
shell: bash
env:
CHROME_VERSION: ${{ inputs.chrome-version }}
run: |
if [ -n "$CHROME_VERSION" ]; then
sudo apt-get update
sudo apt-get -y install libu2f-udev
sudo apt-get -y install dbus

echo "version to install: $CHROME_VERSION"
CHROME_BIN=`npx @puppeteer/browsers install chrome-headless-shell@$CHROME_VERSION | awk '{print $2}'`
chmod +x $CHROME_BIN
echo "chrome-headless-shell installed in: $CHROME_BIN"
$CHROME_BIN --version
echo "CHROME_SHELL=$CHROME_BIN" >> $GITHUB_ENV
else
echo "chrome-headless-shell not installed!"
fi

9 changes: 2 additions & 7 deletions .github/workflows/qunit_tests-additional-renovation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ jobs:
browser: 'chrome'
isPerformance: 'true'
useJQuery: 'true'
headless: 'false'
headless: 'true'
useCsp: 'false'

qunit-tests-mobile-and-shadow-dom:
Expand Down Expand Up @@ -157,7 +157,6 @@ jobs:
]
kind: [ 'shadow-dom', 'ios10', 'android6' ]
include:
- headless: false
- kind: 'shadow-dom'
userAgent: ''
useShadowDom: true
Expand All @@ -166,10 +165,6 @@ jobs:
- kind: 'android6'
userAgent: 'android6'
useJQuery: true
- constel: 'ui'
headless: true
- constel: 'viz'
headless: true

steps:
- name: Get sources
Expand All @@ -184,7 +179,7 @@ jobs:
useJQuery: ${{ matrix.useJquery || 'false' }}
userAgent: ${{ matrix.userAgent }}
useShadowDom: ${{ matrix.useShadowDom }}
headless: ${{ matrix.headless }}
headless: 'true'
useCsp: 'true'

qunit-tests-firefox:
Expand Down
5 changes: 3 additions & 2 deletions packages/devextreme/docker-ci.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ function run_test_impl {
local runner_pid
local runner_result=0

[ -z "$CHROME_CMD"] && CHROME_CMD=google-chrome-stable
[ "$LOCAL" == "true" ] && url="http://host.docker.internal:$port/run?notimers=true"
[ -n "$CONSTEL" ] && url="$url&constellation=$CONSTEL"
[ -n "$MOBILE_UA" ] && url="$url&deviceMode=true"
Expand Down Expand Up @@ -96,7 +97,7 @@ function run_test_impl {
;;

*)
local chrome_command=google-chrome-stable
local chrome_command=$CHROME_CMD
local chrome_args=(
--no-sandbox
--disable-dev-shm-usage
Expand Down Expand Up @@ -163,7 +164,7 @@ function run_test_impl {
printf ' %s\n' "${chrome_args[@]}"
tput setaf 9
fi
google-chrome-stable --version
eval "$chrome_command --version"
eval "$chrome_command ${chrome_args[@]} '$url'" &>chrome.log &
;;

Expand Down
Loading