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

chore: use a single Jenkinsfile for both ci.jenkins.io and infra.ci.jenkins.io #354

Merged
merged 13 commits into from May 14, 2024

Conversation

lemeurherve
Copy link
Member

@lemeurherve lemeurherve commented Feb 10, 2024

@lemeurherve lemeurherve changed the title chore: remove shared pipeline library test instruction chore: use a single Jenkinsfile for both ci.jenkins.io and infra.ci.jenkins.io Feb 12, 2024
@lemeurherve lemeurherve requested review from dduportal, smerle33 and a team February 12, 2024 17:40
@lemeurherve lemeurherve marked this pull request as ready for review February 12, 2024 17:40
Jenkinsfile Outdated Show resolved Hide resolved
Jenkinsfile Outdated Show resolved Hide resolved
@dduportal
Copy link
Contributor

The build passes: checks fails at the "Test" stage with the following error:

Gradle build daemon disappeared unexpectedly (it may have been killed or may have crashed)

I wonder if this pod template (on infra.ci) has enough resources (to compare with the jdk17 on ci.jenkins.io).

@lemeurherve
Copy link
Member Author

I wonder if this pod template (on infra.ci) has enough resources (to compare with the jdk17 on ci.jenkins.io).

It doesn't seem so...

On ci.jenkins.io:

00:00:19.731      resources:
00:00:19.731        limits:
00:00:19.731          memory: "8G"
00:00:19.731          cpu: "4"
00:00:19.731        requests:
00:00:19.731          memory: "8G"
00:00:19.731          cpu: "4"

On infra.ci.jenkins.io:

00:00:14.482      resources:
00:00:14.482        limits:
00:00:14.482          memory: "1024Mi"
00:00:14.482          cpu: "500m"
00:00:14.482        requests:
00:00:14.482          memory: "512Mi"
00:00:14.482          cpu: "500m"

😅

Adding a custom pod template for this job.

Jenkinsfile Outdated Show resolved Hide resolved
Jenkinsfile Outdated Show resolved Hide resolved
@dduportal
Copy link
Contributor

Build step is failing on infra.ci.jenkins.io with the following:

13:05:19  FAILURE: Build failed with an exception.
13:05:19  
13:05:19  * What went wrong:
13:05:19  Could not determine the dependencies of task ':javadoc'.
13:05:19  > Failed to calculate the value of task ':compileJava' property 'javaCompiler'.
13:05:19     > Cannot find a Java installation on your machine matching this tasks requirements: {languageVersion=17, vendor=any, implementation=vendor-specific} for LINUX on aarch64.
13:05:19        > No locally installed toolchains match and toolchain download repositories have not been configured.
13:05:19  
13:05:19  * Try:
13:05:19  > Learn more about toolchain auto-detection at https://docs.gradle.org/8.6/userguide/toolchains.html#sec:auto_detection.
13:05:19  > Learn more about toolchain repositories at https://docs.gradle.org/8.6/userguide/toolchains.html#sub:download_repositories.
13:05:19  > Run with --stacktrace option to get the stack trace.
13:05:19  > Run with --info or --debug option to get more log output.
13:05:19  > Run with --scan to get full insights.
13:05:19  > Get more help at https://help.gradle.org/
13:05:19 
13:05:19  Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0
13:05:19
13:05:19  You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

=> triggered a replay with java --version and it shows:

20:28:24  + java --version
20:28:26  openjdk 11.0.23 2024-04-16
20:28:26  OpenJDK Runtime Environment Temurin-11.0.23+9 (build 11.0.23+9)
20:28:26  OpenJDK 64-Bit Server VM Temurin-11.0.23+9 (build 11.0.23+9, mixed mode)

while the project expect JDK17.

=> It means that the Linux arm64 VM template is misconfigured on infra.ci:

  • Either it specifies a default JAVA_HOME to the JDK11
  • Or the packer template image defines JDK11 as default JDK

@smerle33 smerle33 marked this pull request as ready for review May 14, 2024 09:44
@smerle33
Copy link
Contributor

switched back to amd64 for selenium :

Caused by: org.openqa.selenium.WebDriverException: Driver server process died prematurely.

@dduportal dduportal merged commit c0f7d95 into main May 14, 2024
8 checks passed
@dduportal dduportal deleted the lemeurherve-patch-1 branch May 14, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants