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

Commit c7ef944

Browse files
Merge pull request #55 from seleniumhq-community/tmp
This closes #51 and involves changes made by @fhoeben to upgrade Debian to Bookworm and also fix the broken download files test. Thank you for your contributions and valuable assistance in getting the trunk stable again.
2 parents 247e34e + d78ba38 commit c7ef944

File tree

110 files changed

+2322
-778
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

110 files changed

+2322
-778
lines changed

.circleci/config.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,6 +205,8 @@ jobs:
205205
BUILD_ARGS: << parameters.build-args >>
206206
MAKE_TARGETS: << parameters.make-targets >>
207207
DEPLOY_BRANCH: trunk
208+
RELEASE: selenium-4.16.0
209+
SELENIUM_VERSION: 4.16.1
208210
GITHUB_USER: seleniumhq-community
209211
GITHUB_REPO: docker-seleniarm
210212
steps:
@@ -227,7 +229,7 @@ jobs:
227229
- run:
228230
name: "Prepare workflow environment variables"
229231
command: |
230-
export SELENIUM_VERSION=$(grep selenium-server Base/Dockerfile | sed 's/.*-\([^-]*\)\.jar \\/\1/' | head -n 1)
232+
#export SELENIUM_VERSION=$(grep selenium-server Base/Dockerfile | sed 's/.*-\([^-]*\)\.jar \\/\1/' | head -n 1)
231233
echo "Prepare workflow environment variables"
232234
echo 'export BRANCH='$SELENIUM_VERSION >> $BASH_ENV
233235
echo 'export BUILD_DATE=$(date '+%Y%m%d')' >> $BASH_ENV
@@ -244,6 +246,8 @@ jobs:
244246
echo DEPLOY_BRANCH="$DEPLOY_BRANCH"
245247
echo GITHUB_USER="$GITHUB_USER"
246248
echo GITHUB_REPO="$GITHUB_REPO"
249+
echo SELENIUM_VERSION="$SELENIUM_VERSION"
250+
echo RELEASE="$RELEASE"
247251
- run: uname -a
248252
- run: docker info
249253
- run:
@@ -277,6 +281,7 @@ jobs:
277281
278282
export NAME=${NAMESPACE}
279283
export VERSION=${BRANCH}
284+
export RELEASE=${RELEASE}
280285
export BUILD_DATE=${BUILD_DATE}
281286
export PLATFORMS=${PLATFORMS}
282287
export BUILD_ARGS=${BUILD_ARGS}

.github/ISSUE_TEMPLATE/bug_report.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,15 @@ body:
1919
validations:
2020
required: true
2121
- type: textarea
22-
id: repro-command
22+
id: reproduce-command
2323
attributes:
24-
label: Command used to start Selenium Grid with Docker
24+
label: Command used to start Selenium Grid with Docker (or Kubernetes)
2525
description: |
26-
What command do you use to start Selenium Grid with Docker?
26+
What command do you use to start Selenium Grid with Docker (or Kubernetes)?
2727
placeholder: |
2828
Please share the script or docker-compose file used. This will be automatically
2929
formatted into code, so no need for backticks.
30+
If Kubernetes used, please share the YAML file, or chart values used to deploy the cluster.
3031
Be sure to include an SSCCE (Short, Self Contained, Correct
3132
[compilable] example) http://sscce.org/
3233
render: shell
@@ -47,14 +48,14 @@ body:
4748
attributes:
4849
label: Operating System
4950
description: What host operating system are you using to run docker-selenium?
50-
placeholder: Windows 10? macOS BigSur? Ubuntu?
51+
placeholder: Windows 10? macOS BigSur? Ubuntu? Kubernetes (Minikube, EKS, GKE, AKS, OpenShift, Rancher, etc.) version?
5152
validations:
5253
required: true
5354
- type: input
5455
id: version
5556
attributes:
56-
label: Docker Selenium version (tag)
57+
label: Docker Selenium version (tag or chart version)
5758
description: What version of Docker Selenium are you using?
58-
placeholder: 4.12.1-20230920? Please use the full tag, avoid "latest"
59+
placeholder: 4.16.0-20231206? Please use the full tag, avoid "latest"
5960
validations:
60-
required: true
61+
required: true

.github/workflows/build-test.yml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,21 +9,20 @@ permissions:
99

1010
jobs:
1111
build-and-test:
12-
# Skip job based on the commit message, only works in push to branches for now
13-
if: contains(toJson(github.event.commits), '[skip ci]') == false
1412
name: Build & test Docker images with random user
15-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1614
strategy:
1715
matrix:
1816
use-random-user: [false, true]
1917
steps:
2018
- uses: actions/checkout@v4
2119
- name: Output Docker info
2220
run: docker info
23-
- name: Set up Python 3.8
24-
uses: actions/setup-python@v4.7.0
21+
- name: Set up Python
22+
uses: actions/setup-python@v5.0.0
2523
with:
26-
python-version: 3.8
24+
python-version: '3.11'
25+
check-latest: true
2726
- name: Get branch name (only for push to branch)
2827
if: github.event_name == 'push'
2928
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
@@ -41,7 +40,11 @@ jobs:
4140
- name: Build Docker images
4241
run: VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build
4342
- name: Test Docker images
44-
run: USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make test
43+
uses: nick-invision/[email protected]
44+
with:
45+
timeout_minutes: 20
46+
max_attempts: 3
47+
command: |
48+
USE_RANDOM_USER_ID=${USE_RANDOM_USER} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make test
4549
env:
4650
USE_RANDOM_USER: ${{ matrix.use-random-user }}
47-

.github/workflows/deploy.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ jobs:
1010
# Only continue if the commit message has '[deploy]' in it
1111
if: contains(toJson(github.event.commits), '[deploy]') == true
1212
name: Deploy Docker images
13-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1414
steps:
1515
- name: Checkout code
1616
uses: actions/checkout@v4
@@ -51,25 +51,25 @@ jobs:
5151
DOCKER_USERNAME: ${{secrets.DOCKER_USERNAME}}
5252
DOCKER_PASSWORD: ${{secrets.DOCKER_PASSWORD}}
5353
- name: Deploy new images
54-
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
54+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
5555
with:
5656
timeout_minutes: 20
5757
max_attempts: 3
5858
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release
5959
- name: Tag images as latest
60-
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
60+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
6161
with:
6262
timeout_minutes: 20
6363
max_attempts: 3
6464
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make tag_latest
6565
- name: Deploy latest tag
66-
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
66+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
6767
with:
6868
timeout_minutes: 20
6969
max_attempts: 3
7070
command: VERSION="${GRID_VERSION}" BUILD_DATE=${BUILD_DATE} make release_latest
7171
- name: Tag browser images
72-
uses: nick-invision/retry@943e742917ac94714d2f408a0e8320f2d1fcafcd # v2
72+
uses: nick-invision/retry@14672906e672a08bd6eeb15720e9ed3ce869cdd4 # v2
7373
with:
7474
timeout_minutes: 20
7575
max_attempts: 3
@@ -78,9 +78,9 @@ jobs:
7878
run: |
7979
git config --local user.email "[email protected]"
8080
git config --local user.name "Selenium CI Bot"
81-
git commit -m "Update tag in docs and files [skip ci]" -a
81+
git commit -m "Update tag in docs and files" -a
8282
- name: Push changes
83-
uses: ad-m/github-push-action@40bf560936a8022e68a3c00e7d2abefaf01305a6 # master
83+
uses: ad-m/github-push-action@d91a481090679876dfc4178fef17f286781251df # master
8484
with:
8585
github_token: ${{ secrets.SELENIUM_CI_TOKEN }}
8686
branch: trunk

.github/workflows/helm-chart-release.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ on:
66
- trunk
77
paths:
88
- 'charts/selenium-grid/Chart.yaml'
9+
workflow_dispatch:
910

1011
jobs:
1112
release:
@@ -23,6 +24,6 @@ jobs:
2324
git config user.email "[email protected]"
2425
2526
- name: Run chart-releaser
26-
uses: helm/chart-releaser-action@v1.5.0
27+
uses: helm/chart-releaser-action@v1.6.0
2728
env:
2829
CR_TOKEN: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/helm-chart-test.yml

Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
name: Lint and Test Helm Charts
2+
3+
on:
4+
push:
5+
pull_request:
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
11+
jobs:
12+
build-and-test:
13+
name: Test Helm charts
14+
runs-on: ubuntu-latest
15+
strategy:
16+
matrix:
17+
test-strategy: [chart_test, chart_test_parallel_autoscaling]
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Output Docker info
21+
run: docker info
22+
- name: Set up Python
23+
uses: actions/[email protected]
24+
with:
25+
python-version: '3.11'
26+
check-latest: true
27+
- name: Get branch name (only for push to branch)
28+
if: github.event_name == 'push'
29+
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
30+
env:
31+
PUSH_BRANCH: ${{ github.ref }}
32+
- name: Get target branch name (only for PRs)
33+
if: github.event_name == 'pull_request'
34+
run: echo "BRANCH=$(echo ${TARGET_BRANCH##*/})" >> $GITHUB_ENV
35+
env:
36+
TARGET_BRANCH: ${{ github.head_ref }}
37+
- name: Output branch name
38+
run: echo ${BRANCH}
39+
- name: Sets build date
40+
run: |
41+
echo "BUILD_DATE=$(date '+%Y%m%d')" >> $GITHUB_ENV
42+
echo "IMAGE_REGISTRY=artifactory/selenium" >> $GITHUB_ENV
43+
- name: Setup Kubernetes environment
44+
run: make chart_setup_env
45+
- name: Build Docker images
46+
run: NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make build
47+
- name: Build and lint charts
48+
run: |
49+
BUILD_DATE=${BUILD_DATE} make chart_build
50+
echo "CHART_PACKAGE_PATH=$(cat /tmp/selenium_chart_version)" >> $GITHUB_ENV
51+
echo "CHART_FILE_NAME=$(basename $(cat /tmp/selenium_chart_version))" >> $GITHUB_ENV
52+
- name: Setup Kubernetes cluster
53+
run: NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make chart_cluster_setup
54+
- name: Test Selenium Grid on Kubernetes
55+
uses: nick-invision/[email protected]
56+
with:
57+
timeout_minutes: 30
58+
max_attempts: 3
59+
command: |
60+
NAME=${IMAGE_REGISTRY} VERSION=${BRANCH} BUILD_DATE=${BUILD_DATE} make ${{ matrix.test-strategy }}
61+
- name: Cleanup Kubernetes cluster
62+
if: always()
63+
run: make chart_cluster_cleanup
64+
- name: Upload Helm chart package
65+
if: always()
66+
uses: actions/upload-artifact@v3
67+
with:
68+
name: ${{ env.CHART_FILE_NAME }}
69+
path: ${{ env.CHART_PACKAGE_PATH }}
70+
- name: Upload Helm chart template rendered
71+
if: always()
72+
uses: actions/upload-artifact@v3
73+
with:
74+
name: chart_template_rendered.yaml
75+
path: ./tests/tests/output_deployment.yaml
76+
if-no-files-found: ignore

.github/workflows/label-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ permissions:
1111

1212
jobs:
1313
comment:
14-
runs-on: ubuntu-20.04
14+
runs-on: ubuntu-latest
1515
steps:
1616
- uses: actions/checkout@v4
1717
- name: Label Commenter

.github/workflows/lock.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
action:
1515
runs-on: ubuntu-latest
1616
steps:
17-
- uses: dessant/lock-threads@be8aa5be94131386884a6da4189effda9b14aa21 # v3
17+
- uses: dessant/lock-threads@1bf7ec25051fe7c00bdd17e6a7cf3d7bfb7dc771 # v3
1818
with:
1919
process-only: 'issues'
2020
issue-lock-inactive-days: '30'

.github/workflows/test-video.yml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,18 +9,17 @@ permissions:
99

1010
jobs:
1111
build-and-test:
12-
# Skip job based on the commit message, only works in push to branches for now
13-
if: contains(toJson(github.event.commits), '[skip ci]') == false
1412
name: Test video recorded through Docker Selenium
15-
runs-on: ubuntu-20.04
13+
runs-on: ubuntu-latest
1614
steps:
1715
- uses: actions/checkout@v4
1816
- name: Output Docker info
1917
run: docker info
20-
- name: Set up Python 3.8
21-
uses: actions/setup-python@v4.7.0
18+
- name: Set up Python
19+
uses: actions/setup-python@v5.0.0
2220
with:
23-
python-version: 3.8
21+
python-version: '3.11'
22+
check-latest: true
2423
- name: Get branch name (only for push to branch)
2524
if: github.event_name == 'push'
2625
run: echo "BRANCH=$(echo ${PUSH_BRANCH##*/})" >> $GITHUB_ENV
@@ -51,4 +50,4 @@ jobs:
5150
uses: actions/upload-artifact@v3
5251
with:
5352
name: firefox_video
54-
path: ./tests/videos/firefox_video.mp4
53+
path: ./tests/videos/firefox_video.mp4

.gitignore

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,4 +147,6 @@ ENV/
147147

148148
# End of https://www.gitignore.io/api/python
149149
.DS_Store
150-
150+
/charts/*/charts
151+
/charts/*/**.lock
152+
/charts/*.tgz

0 commit comments

Comments
 (0)