Skip to content
This repository has been archived by the owner on Jun 22, 2024. It is now read-only.

Sync from upstream repo and make changes to stabilize the build process. #55

Merged
merged 85 commits into from
Dec 30, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
85 commits
Select commit Hold shift + click to select a range
980f915
Bump docker images to 4.13.0 (#1951)
luisfcorreia Sep 26, 2023
1872925
Update tag in docs and files [skip ci]
selenium-ci Sep 26, 2023
a1af630
Bumping Chart version
diemol Sep 26, 2023
51eafbe
Bump nick-invision/retry from 2.8.3 to 2.9.0 (#1952)
dependabot[bot] Sep 28, 2023
773c0dc
fix(obsolescence): bumped up packages (#1961)
amardeep2006 Oct 3, 2023
889b7f5
fix: update base image to use focal 20230801 (#1962)
imtheish97 Oct 3, 2023
410ca81
Add missing Ingress namespace field (#1966)
IronMage Oct 4, 2023
306b8fc
feat(keda): bumped up keda 2.12.0 (#1960)
amardeep2006 Oct 4, 2023
0049db7
Update tag in docs and files [skip ci]
selenium-ci Oct 4, 2023
69d9349
Bumping Chart version
diemol Oct 4, 2023
cefee2a
Bump images to 4.14.1 (#1970)
luisfcorreia Oct 16, 2023
37fb389
Update tag in docs and files [skip ci]
selenium-ci Oct 16, 2023
eea48b3
fix issue #1887: affinity rules for helm charts (again) (#1973)
sehaas Oct 16, 2023
a6bf003
Bump ad-m/github-push-action from 0.6.0 to 0.8.0 (#1971)
dependabot[bot] Oct 17, 2023
cf442bf
Bump actions/setup-python from 4.7.0 to 4.7.1 (#1965)
dependabot[bot] Oct 17, 2023
32ec173
Adds possibility to set node stereotype in standalone mode (#1967)
philippe-granet Oct 17, 2023
5c177a7
Update Dockerfile ubuntu version (#1980)
mtcolman Oct 20, 2023
3a03f97
Update tag in docs and files [skip ci]
selenium-ci Oct 20, 2023
01648f3
feat: video recording with pluggable upload container (#1881)
msvticket Oct 25, 2023
60ad27e
Update Video/Dockerfile with based image ffmpeg:6.0-alpine (#1981)
VietND96 Oct 25, 2023
9b4acaa
Update tag in docs and files [skip ci]
selenium-ci Oct 25, 2023
020ded4
Bumping chart version
diemol Oct 25, 2023
0f7367e
Fix minor issues after PR #1881 and #1981 (#1983)
VietND96 Oct 27, 2023
fe80aba
Improve default value for videoRecorder in chart (#1984)
VietND96 Oct 27, 2023
4f725b7
Improve chart templates in the section videoRecorder (#1987)
VietND96 Oct 30, 2023
b1c358c
Update to Selenium 4.15.0 (#1990)
luisfcorreia Nov 2, 2023
cef5534
Update tag in docs and files [skip ci]
selenium-ci Nov 2, 2023
599c704
feat(autoscaling): Unified parameters to set scaled options for brows…
VietND96 Nov 6, 2023
009d47c
Add chart parameter ingress.paths to configure custom paths (#1994)
VietND96 Nov 6, 2023
87c0cf6
Bump helm/chart-releaser-action from 1.5.0 to 1.6.0 (#1993)
dependabot[bot] Nov 6, 2023
fe17f6d
feat: Adding port to nodes service (#1996)
VietND96 Nov 8, 2023
e071a31
Update Dockerfile external jar versions (#1998)
mtcolman Nov 8, 2023
6b7356b
Update tag in docs and files [skip ci]
selenium-ci Nov 8, 2023
f5f90dd
Switching to Jammy (#1923)
diemol Nov 10, 2023
f291b8e
Update tag in docs and files [skip ci]
selenium-ci Nov 10, 2023
6f9708e
Update start-xvfb.sh
diemol Nov 10, 2023
f038e69
Bump dessant/lock-threads from 4.0.1 to 5.0.0 (#2012)
dependabot[bot] Nov 14, 2023
35a044a
feat(helm-test): Added helm test and linting (#2003)
amardeep2006 Nov 14, 2023
eec5ecc
Bug: Error setting name in helm release #2006 #2007 (#2009)
VietND96 Nov 14, 2023
373c3c3
corrected typo in selenium grid charts (#2010)
Thab310 Nov 14, 2023
b365646
Update Dockerfile - external jar version uplift (#2015)
mtcolman Nov 21, 2023
ad0a7a6
Setting driver and browser path via configuration (#2017)
diemol Nov 22, 2023
9bc083a
Update tag in docs and files [skip ci]
selenium-ci Nov 22, 2023
a14d80e
Bump dessant/lock-threads from 5.0.0 to 5.0.1 (#2019)
dependabot[bot] Nov 22, 2023
0ca1bb1
Bump nick-invision/retry from 2.8.3 to 2.9.0 (#2024)
dependabot[bot] Nov 23, 2023
82603e9
Update NodeChrome support latest version from GoogleChromeLabs (#2018)
VietND96 Nov 27, 2023
c3938aa
Update service.name as selenium-node-chrome (#2026)
alaahong Nov 27, 2023
bbef734
feat: CI Bot bump chart version along with new deploy image version (…
VietND96 Nov 27, 2023
e56a1fc
Feature run selenium tests grid on kubernetes via helm chart (#2027)
amardeep2006 Nov 27, 2023
7b3dfe9
test: Sanity tests Selenium Grid chart via Makefile commands (#2029)
VietND96 Nov 28, 2023
57c78c0
Update tag in docs and files [skip ci]
selenium-ci Nov 28, 2023
e3304b4
bug(#1888): TimeZone change behavior changed (#2031)
VietND96 Nov 29, 2023
7545bc9
feat(chart): distribution registry can be set global and individual c…
VietND96 Nov 29, 2023
b5dab36
bug(#2032): Rollback to use regular version in NodeChrome (#2033)
VietND96 Nov 29, 2023
991d245
test: Add sanity test for download file (#2034) [deploy]
VietND96 Nov 29, 2023
591e3f5
Update tag in docs and files
selenium-ci Nov 29, 2023
4c7703b
Update bug report template [skip ci]
VietND96 Nov 29, 2023
113bb0a
test(chart): Add test for setting registry to pull images (#2036)
VietND96 Nov 30, 2023
8fd00ef
bug(#2038): Rollback io.opentelemetry 1.31.0 - add test tracing enabl…
VietND96 Dec 1, 2023
e5d0aa6
feat: Video image with based FFmpeg-6.1 on Ubuntu-22.04 (#2042)
VietND96 Dec 1, 2023
c2a5b66
test(chart): Chart template render and assert output (#2043)
VietND96 Dec 1, 2023
99448df
bug(#1824): Container ENV SE_NODE_SESSION_TIMEOUT not take effect (#2…
VietND96 Dec 3, 2023
c4e4024
test(chart): Parallel tests execution against autoscaling in Kubernet…
VietND96 Dec 5, 2023
30a6cc3
Update chart CHANGELOG [skip ci]
VietND96 Dec 6, 2023
59cb6cb
Bump actions/setup-python from 4.7.1 to 4.8.0 (#2048)
dependabot[bot] Dec 6, 2023
da15922
Add build-arg to get based version from Makefile (#2049)
VietND96 Dec 6, 2023
e2843cc
feat(chart): Add default annotations for ingress nginx controller (#2…
VietND96 Dec 6, 2023
c4e7e10
Update to Selenium 4.16.0 [deploy]
VietND96 Dec 6, 2023
67c8a7b
Maintain test failure [deploy]
VietND96 Dec 6, 2023
6a12140
Update tag in docs and files
selenium-ci Dec 6, 2023
915f39a
Bump actions/setup-python from 4.8.0 to 5.0.0 (#2050)
dependabot[bot] Dec 7, 2023
08e0509
Merging from upstream
jamesmortensen Dec 8, 2023
84e8b99
Fix build scripts so the RELEASE variable is used.
jamesmortensen Dec 9, 2023
b643b84
Fix Makefile - add BASE_RELEASE and BASE_VERSION to the base_multi ac…
jamesmortensen Dec 9, 2023
5169a5c
Adding locale to Chromium dockerfile.
jamesmortensen Dec 9, 2023
c92165e
Handle usrmerge issues https://wiki.debian.org/UsrMerge
jamesmortensen Dec 9, 2023
d56b368
Just install usrmerge
jamesmortensen Dec 9, 2023
69b5bfe
Try chromium without usrmerge. Upgrade Firefox to 120
jamesmortensen Dec 10, 2023
562ab74
Add usrmerge to NodeChromium after setting sources. Split Firefox ins…
jamesmortensen Dec 10, 2023
1a8d4a4
[deploy] test with debian bookworm update - was missing the browser_v…
jamesmortensen Dec 20, 2023
ac446ae
[deploy] test
jamesmortensen Dec 20, 2023
a065634
[deploy] test from tmp
jamesmortensen Dec 20, 2023
8b1a1b1
[deploy] fixed tests
jamesmortensen Dec 21, 2023
8912ca0
Fixed tests by waiting for downloadable files to exist in array, fixe…
jamesmortensen Dec 30, 2023
d78ba38
Prepare release for 4.16.1
jamesmortensen Dec 30, 2023
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
7 changes: 6 additions & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ jobs:
BUILD_ARGS: << parameters.build-args >>
MAKE_TARGETS: << parameters.make-targets >>
DEPLOY_BRANCH: trunk
RELEASE: selenium-4.16.0
SELENIUM_VERSION: 4.16.1
GITHUB_USER: seleniumhq-community
GITHUB_REPO: docker-seleniarm
steps:
Expand All @@ -227,7 +229,7 @@ jobs:
- run:
name: "Prepare workflow environment variables"
command: |
export SELENIUM_VERSION=$(grep selenium-server Base/Dockerfile | sed 's/.*-\([^-]*\)\.jar \\/\1/' | head -n 1)
#export SELENIUM_VERSION=$(grep selenium-server Base/Dockerfile | sed 's/.*-\([^-]*\)\.jar \\/\1/' | head -n 1)
echo "Prepare workflow environment variables"
echo 'export BRANCH='$SELENIUM_VERSION >> $BASH_ENV
echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
Expand All @@ -244,6 +246,8 @@ jobs:
echo DEPLOY_BRANCH="$DEPLOY_BRANCH"
echo GITHUB_USER="$GITHUB_USER"
echo GITHUB_REPO="$GITHUB_REPO"
echo SELENIUM_VERSION="$SELENIUM_VERSION"
echo RELEASE="$RELEASE"
- run: uname -a
- run: docker info
- run:
Expand Down Expand Up @@ -277,6 +281,7 @@ jobs:

export NAME=${NAMESPACE}
export VERSION=${BRANCH}
export RELEASE=${RELEASE}
export BUILD_DATE=${BUILD_DATE}
export PLATFORMS=${PLATFORMS}
export BUILD_ARGS=${BUILD_ARGS}
Expand Down
15 changes: 8 additions & 7 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,15 @@ body:
validations:
required: true
- type: textarea
id: repro-command
id: reproduce-command
attributes:
label: Command used to start Selenium Grid with Docker
label: Command used to start Selenium Grid with Docker (or Kubernetes)
description: |
What command do you use to start Selenium Grid with Docker?
What command do you use to start Selenium Grid with Docker (or Kubernetes)?
placeholder: |
Please share the script or docker-compose file used. This will be automatically
formatted into code, so no need for backticks.
If Kubernetes used, please share the YAML file, or chart values used to deploy the cluster.
Be sure to include an SSCCE (Short, Self Contained, Correct
[compilable] example) http://sscce.org/
render: shell
Expand All @@ -47,14 +48,14 @@ body:
attributes:
label: Operating System
description: What host operating system are you using to run docker-selenium?
placeholder: Windows 10? macOS BigSur? Ubuntu?
placeholder: Windows 10? macOS BigSur? Ubuntu? Kubernetes (Minikube, EKS, GKE, AKS, OpenShift, Rancher, etc.) version?
validations:
required: true
- type: input
id: version
attributes:
label: Docker Selenium version (tag)
label: Docker Selenium version (tag or chart version)
description: What version of Docker Selenium are you using?
placeholder: 4.12.1-20230920? Please use the full tag, avoid "latest"
placeholder: 4.16.0-20231206? Please use the full tag, avoid "latest"
validations:
required: true
required: true
19 changes: 11 additions & 8 deletions .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,21 +9,20 @@ permissions:

jobs:
build-and-test:
# Skip job based on the commit message, only works in push to branches for now
if: contains(toJson(github.event.commits), '[skip ci]') == false
name: Build & test Docker images with random user
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
strategy:
matrix:
use-random-user: [false, true]
steps:
- uses: actions/checkout@v4
- name: Output Docker info
run: docker info
- name: Set up Python 3.8
uses: actions/setup-python@v4.7.0
- name: Set up Python
uses: actions/setup-python@v5.0.0
with:
python-version: 3.8
python-version: '3.11'
check-latest: true
- name: Get branch name (only for push to branch)
if: github.event_name == 'push'
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
Expand All @@ -41,7 +40,11 @@ jobs:
- name: Build Docker images
run: VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build
- name: Test Docker images
run: USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make test
uses: nick-invision/[email protected]
with:
timeout_minutes: 20
max_attempts: 3
command: |
USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make test
env:
USE_RANDOM_USER: ${{ matrix.use-random-user }}

14 changes: 7 additions & 7 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
# Only continue if the commit message has '[deploy]' in it
if: contains(toJson(github.event.commits), '[deploy]') == true
name: Deploy Docker images
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
Expand Down Expand Up @@ -51,25 +51,25 @@ jobs:
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
- name: Deploy new images
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
with:
timeout_minutes: 20
max_attempts: 3
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
- name: Tag images as latest
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
with:
timeout_minutes: 20
max_attempts: 3
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
- name: Deploy latest tag
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
with:
timeout_minutes: 20
max_attempts: 3
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
- name: Tag browser images
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
with:
timeout_minutes: 20
max_attempts: 3
Expand All @@ -78,9 +78,9 @@ jobs:
run: |
git config --local user.email "[email protected]"
git config --local user.name "Selenium CI Bot"
git commit -m "Update tag in docs and files [skip ci]" -a
git commit -m "Update tag in docs and files" -a
- name: Push changes
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # master
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # master
with:
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
branch: trunk
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/helm-chart-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ on:
- trunk
paths:
- 'charts/selenium-grid/Chart.yaml'
workflow_dispatch:

jobs:
release:
Expand All @@ -23,6 +24,6 @@ jobs:
git config user.email "[email protected]"

- name: Run chart-releaser
uses: helm/chart-releaser-action@v1.5.0
uses: helm/chart-releaser-action@v1.6.0
env:
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
76 changes: 76 additions & 0 deletions .github/workflows/helm-chart-test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
name: Lint and Test Helm Charts

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

jobs:
build-and-test:
name: Test Helm charts
runs-on: ubuntu-latest
strategy:
matrix:
test-strategy: [chart_test, chart_test_parallel_autoscaling]
steps:
- uses: actions/checkout@v4
- name: Output Docker info
run: docker info
- name: Set up Python
uses: actions/[email protected]
with:
python-version: '3.11'
check-latest: true
- name: Get branch name (only for push to branch)
if: github.event_name == 'push'
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
env:
PUSH_BRANCH: ${{ github.ref }}
- name: Get target branch name (only for PRs)
if: github.event_name == 'pull_request'
run: echo "BRANCH=$(echo ${TARGET_BRANCH##*/})" >> $GITHUB_ENV
env:
TARGET_BRANCH: ${{ github.head_ref }}
- name: Output branch name
run: echo ${BRANCH}
- name: Sets build date
run: |
echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
echo "IMAGE_REGISTRY=artifactory/selenium" >> $GITHUB_ENV
- name: Setup Kubernetes environment
run: make chart_setup_env
- name: Build Docker images
run: NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build
- name: Build and lint charts
run: |
BUILD_DATE=${BUILD_DATE} make chart_build
echo "CHART_PACKAGE_PATH=$(cat /tmp/selenium_chart_version)" >> $GITHUB_ENV
echo "CHART_FILE_NAME=$(basename $(cat /tmp/selenium_chart_version))" >> $GITHUB_ENV
- name: Setup Kubernetes cluster
run: NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make chart_cluster_setup
- name: Test Selenium Grid on Kubernetes
uses: nick-invision/[email protected]
with:
timeout_minutes: 30
max_attempts: 3
command: |
NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make ${{ matrix.test-strategy }}
- name: Cleanup Kubernetes cluster
if: always()
run: make chart_cluster_cleanup
- name: Upload Helm chart package
if: always()
uses: actions/upload-artifact@v3
with:
name: ${{ env.CHART_FILE_NAME }}
path: ${{ env.CHART_PACKAGE_PATH }}
- name: Upload Helm chart template rendered
if: always()
uses: actions/upload-artifact@v3
with:
name: chart_template_rendered.yaml
path: ./tests/tests/output_deployment.yaml
if-no-files-found: ignore
2 changes: 1 addition & 1 deletion .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ permissions:

jobs:
comment:
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Label Commenter
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/lock.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:
action:
runs-on: ubuntu-latest
steps:
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 # v3
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v3
with:
process-only: 'issues'
issue-lock-inactive-days: '30'
Expand Down
13 changes: 6 additions & 7 deletions .github/workflows/test-video.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,17 @@ permissions:

jobs:
build-and-test:
# Skip job based on the commit message, only works in push to branches for now
if: contains(toJson(github.event.commits), '[skip ci]') == false
name: Test video recorded through Docker Selenium
runs-on: ubuntu-20.04
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Output Docker info
run: docker info
- name: Set up Python 3.8
uses: actions/setup-python@v4.7.0
- name: Set up Python
uses: actions/setup-python@v5.0.0
with:
python-version: 3.8
python-version: '3.11'
check-latest: true
- name: Get branch name (only for push to branch)
if: github.event_name == 'push'
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
Expand Down Expand Up @@ -51,4 +50,4 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: firefox_video
path: ./tests/videos/firefox_video.mp4
path: ./tests/videos/firefox_video.mp4
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -147,4 +147,6 @@ ENV/

# End of https://www.gitignore.io/api/python
.DS_Store

/charts/*/charts
/charts/*/**.lock
/charts/*.tgz
Loading
Loading