Skip to content

Commit defd483

Browse files
modified
2 parents 3f8f8fc + 0f9a462 commit defd483

File tree

64 files changed

+1052
-1615
lines changed

Some content is hidden

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

64 files changed

+1052
-1615
lines changed

.github/renovate.json

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@
5151
"customType": "regex",
5252
"managerFilePatterns": [
5353
"/src/main/java/org/jenkinsci/test/acceptance/FallbackConfig\\.java/",
54+
"/vars.cmd/",
5455
"/vars.sh/"
5556
],
5657
"matchStrings": [
@@ -102,7 +103,25 @@
102103
],
103104
"depNameTemplate": "{{{repo}}}",
104105
"datasourceTemplate": "docker"
106+
},
107+
{
108+
"customType": "regex",
109+
"managerFilePatterns": [
110+
"/pom.xml/"
111+
],
112+
"matchStrings": [
113+
"<!--RENOVATE-LTS-->\n\\s+<jenkins\\.version>(?<currentValue>.*)<\\/jenkins\\.version>"
114+
],
115+
"depNameTemplate": "jenkins-lts-profile",
116+
"datasourceTemplate": "custom.jenkins-latest-lts",
117+
"versioningTemplate": "semver-coerced"
105118
}
106119
],
120+
"customDatasources": {
121+
"jenkins-latest-lts": {
122+
"defaultRegistryUrlTemplate": "https://updates.jenkins.io/stable/latestCore.txt",
123+
"format": "plain"
124+
}
125+
},
107126
"rebaseWhen": "conflicted"
108127
}

.github/workflows/verify-gradle-wrapper.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@ jobs:
66
runs-on: ubuntu-latest
77
steps:
88
- name: Checkout Repository
9-
uses: actions/checkout@v4
9+
uses: actions/checkout@v5
1010
- name: Validate Gradle Wrapper
11-
uses: gradle/wrapper-validation-action@v3
11+
uses: gradle/actions/wrapper-validation@v5

.mvn/extensions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22
<extension>
33
<groupId>io.jenkins.tools.incrementals</groupId>
44
<artifactId>git-changelist-maven-extension</artifactId>
5-
<version>1.8</version>
5+
<version>1.13</version>
66
</extension>
77
</extensions>

Jenkinsfile.infra.ci.jenkins.io

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,5 @@ buildDockerAndPublishImage('ath', [
55
dockerfile: 'src/main/resources/ath-container/Dockerfile',
66
imageDir: 'src/main/resources/ath-container/',
77
registryNamespace: 'jenkins',
8+
cacheTo: 'type=registry,ref=jenkins/ath:build-cache',
89
])

ath-container.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" >/dev/null && pwd)"
55

66
# Obtain the group ID to grant to access the Docker socket
77
if [[ -z ${DOCKER_GID:-} ]]; then
8-
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
8+
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:Z ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
99
export DOCKER_GID
1010
fi
1111

1212
"${DIR}/build-image.sh" || exit 1
1313

1414
trap 'docker-compose kill && docker-compose down' EXIT
1515

16-
docker-compose run --name mvn --rm -P -v "${HOME}/.m2/repository:/home/ath-user/.m2/repository" mvn bash -c 'set-java.sh 17; bash'
16+
docker-compose run --name mvn --rm -P -v "${HOME}/.m2/repository:/home/ath-user/.m2/repository:Z" mvn bash -c 'set-java.sh 17; bash'
1717
status=$?
1818

1919
exit $status

build-image.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ fi
1616

1717
# Obtain the group ID to grant to access the Docker socket
1818
if [[ -z ${DOCKER_GID:-} ]]; then
19-
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
19+
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:Z ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
2020
export DOCKER_GID
2121
fi
2222

ci.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,13 @@ jenkinsVersion="$3"
77

88
# Obtain the group ID to grant to access the Docker socket
99
if [[ -z ${DOCKER_GID:-} ]]; then
10-
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
10+
DOCKER_GID=$(docker run --rm -v /var/run/docker.sock:/var/run/docker.sock:Z ubuntu:noble stat -c %g /var/run/docker.sock) || exit 1
1111
export DOCKER_GID
1212
fi
1313

1414
trap 'docker-compose kill && docker-compose down' EXIT
1515

16-
docker-compose run -e "MAVEN_ARGS=${MAVEN_ARGS}" --name mvn -T --rm -v "${MAVEN_SETTINGS}:${MAVEN_SETTINGS}" mvn bash -s <<-INSIDE
16+
docker-compose run -e "MAVEN_ARGS=${MAVEN_ARGS}" --name mvn -T --rm -v "${MAVEN_SETTINGS}:${MAVEN_SETTINGS}:Z" mvn bash -s <<-INSIDE
1717
set-java.sh ${jdk}
1818
1919
# Ensure that Jenkins node setup does not influence the container Java setup

docker-compose.yml

Lines changed: 23 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,68 @@
11
---
22
services:
33
init_video:
4+
container_name: init_video
45
image: ubuntu:noble
56
command: >
6-
sh -c "mkdir -p /tmp/videos && chmod 0777 /tmp/videos"
7+
sh -c 'chown 1000:1000 /videos && chmod 0777 /videos'
8+
user: root
79
volumes:
8-
- shared_tmp:/tmp
9-
firefox:
10-
container_name: firefox
10+
- videos:/videos:z
11+
browser:
12+
container_name: browser
1113
environment:
1214
- SE_JAVA_OPTS=-Xmx256m -XX:+HeapDumpOnOutOfMemoryError -XX:+TieredCompilation -XX:TieredStopAtLevel=1
13-
- SE_NODE_GRID_URL=http://firefox:4444 # Selenium needs to know where to advertise itself (e.g. BiDi)
15+
- SE_NODE_GRID_URL=http://browser:4444 # Selenium needs to know where to advertise itself (e.g. BiDi)
1416
- SE_SCREEN_HEIGHT=1090
1517
- SE_SCREEN_WIDTH=1680
1618
extra_hosts:
1719
- host.docker.internal:host-gateway
18-
image: selenium/standalone-firefox:4.32.0@sha256:40c0aa58b61f51aadda3dc0f92f7b8fa02658bb1cf8a9293b8cd7e5c7913d506
20+
image: selenium/standalone-firefox:4.36.0@sha256:f25c31de560ebf215dc646d0d09f9d78b4eba3e5a43b9e1f41231a9256e4bf25
1921
networks:
2022
- ath-network
2123
ports:
2224
- 4444:4444 # Selenium Grid port
2325
- 5900:5900 # VNC port
2426
shm_size: 2g
2527
volumes:
26-
- shared_tmp:/tmp
28+
- videos:/videos:z
2729
video:
2830
container_name: video
2931
depends_on:
30-
- firefox
32+
- browser
3133
- init_video
3234
environment:
33-
- DISPLAY_CONTAINER_NAME=firefox
34-
- SE_NODE_GRID_URL=http://firefox:4444
35+
- DISPLAY_CONTAINER_NAME=browser
36+
- SE_NODE_GRID_URL=http://browser:4444
3537
- SE_NODE_PORT=4444
3638
- SE_VIDEO_FILE_NAME=auto
3739
- SE_VIDEO_FILE_NAME_SUFFIX=false
3840
- SE_VIDEO_RECORD_STANDALONE=true
39-
- VIDEO_FOLDER=/tmp2/videos
41+
- VIDEO_FOLDER=/videos
4042
image: selenium/video:ffmpeg-7.1-20250515@sha256:5e283b26b1bb14cabb03b31aaf7d88348e93e92d82b0e1704780611bef129964
4143
networks:
4244
- ath-network
4345
volumes:
44-
- shared_tmp:/tmp2 # Avoid conflict with supervisord
46+
- videos:/videos:z
4547
mvn:
4648
build:
4749
context: src/main/resources/ath-container
4850
dockerfile: Dockerfile
4951
cache_from:
50-
- jenkins/ath:latest
52+
- type=registry,ref=jenkins/ath:build-cache
5153
container_name: mvn
5254
depends_on:
53-
- firefox
55+
- browser
5456
- video
5557
environment:
56-
- DISPLAY=firefox:99.0
58+
- DISPLAY=browser:99.0
5759
- DOCKER_FIXTURES_NETWORK=ath-network
5860
- JENKINS_LOCAL_HOSTNAME=mvn
59-
- REMOTE_WEBDRIVER_URL=http://firefox:4444/wd/hub
61+
- REMOTE_WEBDRIVER_URL=http://browser:4444/wd/hub
6062
- SELENIUM_PROXY_HOSTNAME=mvn
6163
- SHARED_DOCKER_SERVICE=true
6264
- TESTCONTAINERS_HOST_OVERRIDE=host.docker.internal
63-
- VIDEO_FOLDER=/tmp/videos
65+
- VIDEO_FOLDER=/videos
6466
extra_hosts:
6567
- host.docker.internal:host-gateway
6668
group_add:
@@ -73,16 +75,16 @@ services:
7375
shm_size: 2g
7476
user: ath-user
7577
volumes:
76-
- ${PWD}:/home/ath-user/sources
77-
- shared_tmp:/tmp
78-
- /var/run/docker.sock:/var/run/docker.sock
78+
- ${PWD}:/home/ath-user/sources:Z
79+
- videos:/videos:z
80+
- /var/run/docker.sock:/var/run/docker.sock:Z
7981
working_dir: /home/ath-user/sources
8082
networks:
8183
ath-network:
8284
name: ath-network
8385
attachable: true
8486
volumes:
85-
shared_tmp:
87+
videos:
8688
driver: local
8789
driver_opts:
8890
type: tmpfs

dockerinject.groovy

Lines changed: 0 additions & 176 deletions
This file was deleted.

docs/BROWSER.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ For example, to run tests with Safari, you'd execute:
3030
# or more concisely
3131
BROWSER=safari mvn install
3232

33-
See `FallbackConfig.java` for how the browser is selected.
33+
See `Config.java` for how the browser is selected.
3434

3535
Please note selenium library is sensitive to versions of browser used so it is better to stick with recent stable versions of mainstream web browsers. For more information about Selenium supported platforms visit [this page](http://www.seleniumhq.org/about/platforms.jsp).
3636

0 commit comments

Comments
 (0)