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

Test clouds rework #1047

Closed
wants to merge 4 commits 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
2 changes: 1 addition & 1 deletion Jenkinsfile
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ branches['CI'] = {
for (int i = 0; i < splits.size(); i++) {
int index = i
for (int j in [11]) {
for (String v in ['lts', 'latest']) {
for (String v in ['latest']) {
int javaVersion = j
String jenkinsUnderTest = v
def name = "java-${javaVersion}-jenkins-${jenkinsUnderTest}-split${index}"
Expand Down
9 changes: 1 addition & 8 deletions Jenkinsfile.infra.ci.jenkins.io
Original file line number Diff line number Diff line change
@@ -1,8 +1 @@
// This pipeline runs on infra.ci.jenkins.io (private) to build, test and deploy the Docker image
buildDockerAndPublishImage('ath', [
automaticSemanticVersioning: false,
gitCredentials: 'jenkinsci-ath-ghapp', // Only available in infra.ci.jenkins.io
dockerfile: 'src/main/resources/ath-container/Dockerfile',
imageDir: 'src/main/resources/ath-container/',
registryNamespace: 'jenkins',
])
echo "Skipping"
7 changes: 4 additions & 3 deletions src/main/resources/ath-container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ RUN apt-get update && \
# No Snaps please https://www.omgubuntu.co.uk/2022/04/how-to-install-firefox-deb-apt-ubuntu-22-04
SHELL ["/bin/bash", "-o", "pipefail", "-c"]
RUN add-apt-repository ppa:mozillateam/ppa && \
printf 'Package: *\nPin: release o=LP-PPA-mozillateam\nPin-Priority: 1001' | tee /etc/apt/preferences.d/mozilla-firefox
printf 'Package: firefox*\nPin: version 102.8.0*\nPin-Priority: 1001' | tee /etc/apt/preferences.d/mozilla-firefox

# hadolint ignore=DL3008
RUN apt-get update && \
Expand All @@ -27,7 +27,7 @@ RUN apt-get update && \
git \
imagemagick \
iptables \
firefox \
firefox-esr \
unzip \
tightvncserver \
openjdk-11-jdk \
Expand All @@ -36,7 +36,7 @@ RUN apt-get update && \
apt-get clean all && rm -rf /var/cache/apt

# Selenium needs a geckodriver in order to work properly
ENV GECKODRIVER_VERSION 0.32.0
ENV GECKODRIVER_VERSION 0.32.2
# gross due to https://github.com/mozilla/geckodriver/issues/1956
RUN arch=$(arch | sed s/aarch64/arm64/ | sed s/x86_64/amd64/) && \
if [ "$arch" = "arm64" ] ; \
Expand Down Expand Up @@ -94,6 +94,7 @@ COPY run.sh /usr/bin/

RUN chmod u+s "$(which update-alternatives)"
RUN dbus-uuidgen > /etc/machine-id
RUN ln -s /lib/firefox-esr/firefox.sh /usr/bin/firefox

USER ath-user

Expand Down
6 changes: 3 additions & 3 deletions src/main/resources/ath-container/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fi

function download() {
echo "Fetching $1 to $2"
status=$(curl -sSL --write-out "%{http_code}" --retry 3 --retry-delay 0 --retry-max-time 60 -o $2 $1)
status=$(curl --http1.1 -sSL --write-out "%{http_code}" --retry 3 --retry-delay 0 --retry-max-time 60 -o $2 $1)
if [ "$status" -ne 200 ]; then
echo >&2 "Failed to fetch the $1 ($status) to $2"
return 1
Expand All @@ -43,8 +43,8 @@ war=$2
if [ ! -f $war ]; then
case "$war" in
"latest")
war=jenkins-latest.war
url=https://updates.jenkins.io/latest/jenkins.war
#war=jenkins-latest.war
url=https://repo.jenkins-ci.org/incrementals/org/jenkins-ci/main/jenkins-war/2.394-rc33399.a_9b_e4d03d1fb_/jenkins-war-2.394-rc33399.a_9b_e4d03d1fb_.war
;;
"lts")
war=jenkins-lts.war
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/plugins/ExternalWorkspaceManagerPluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
import org.jenkinsci.test.acceptance.slave.SlaveController;
import org.junit.Before;
import org.junit.ClassRule;
import org.junit.Ignore;
import org.junit.Test;
import org.junit.rules.TemporaryFolder;
import org.openqa.selenium.By;
Expand Down Expand Up @@ -40,6 +41,7 @@
"workflow-job",
"ws-cleanup",
})
@Ignore("TODO https://github.com/jenkinsci/external-workspace-manager-plugin/pull/77")
public class ExternalWorkspaceManagerPluginTest extends AbstractJUnitTest {

@ClassRule
Expand Down
2 changes: 2 additions & 0 deletions src/test/java/plugins/OwnershipPluginTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
import org.jenkinsci.test.acceptance.Matcher;
import org.jenkinsci.test.acceptance.Matchers;
import org.jenkinsci.test.acceptance.junit.AbstractJUnitTest;
import org.junit.Ignore;
import org.jvnet.hudson.test.Issue;
import org.jenkinsci.test.acceptance.junit.Since;
import org.jenkinsci.test.acceptance.junit.WithPlugins;
Expand Down Expand Up @@ -80,6 +81,7 @@ public void implicitly_set_job_ownership() {

@Test
@Since("1.509") @Issue("JENKINS-24370")
@Ignore("https://github.com/jenkinsci/acceptance-test-harness/issues/1044")
public void correct_redirect_after_save() throws Exception {
JenkinsConfig cp = jenkins.getConfigPage();
cp.configure();
Expand Down