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

Run Java Checks Job Fails on PRs #4923

Open
1 task
psavidis opened this issue Feb 5, 2025 · 1 comment
Open
1 task

Run Java Checks Job Fails on PRs #4923

psavidis opened this issue Feb 5, 2025 · 1 comment
Labels
scope:optimize Changes to Optimize. type:bug Issues that describe a user-facing bug in the project.

Comments

@psavidis
Copy link
Contributor

psavidis commented Feb 5, 2025

Environment (Required on creation)

CI

Description (Required on creation; please attach any relevant screenshots, stacktraces, log files, etc. to the ticket)

The Run Java Checks job is Failing on PR builds

Steps to reproduce (Required on creation)

The issue can be reproduced consistently in two different ways:

  • CI
    • Open a PR with with a branch to merge to master
    • Check the Run Java Checks job of the CI; it finishes unsuccesfully consistently
  • Locally
    • cd camunda-optimize/optimize from the projects root
    • mvn spotless:apply
    • mvn -T1C -B -DskipTests -P '!autoFormat,checkFormat' verify

Observed Behavior (Required on creation)

During the build of optimize-backend module, the spring boot artifacts are not fetched properly. The following warnings can be found in the logs:

Logs [WARNING] The POM for org.springframework.boot:spring-boot-starter:jar:${spring-boot.version} is missing, no dependency information available [WARNING] The POM for org.springframework.boot:spring-boot-starter-web:jar:${spring-boot.version} is missing, no dependency information available [WARNING] The POM for org.springframework.boot:spring-boot:jar:${spring-boot.version} is missing, no dependency information available [WARNING] The POM for org.yaml:snakeyaml:jar:${snakeyaml.version} is missing, no dependency information available [WARNING] The POM for org.springframework.boot:spring-boot-autoconfigure:jar:${spring-boot.version} is missing, no dependency information available

Note: The local build gets the artifact fetch misses from Nexus but does not fail; failure occurs only at the CI job.

Expected behavior (Required on creation)

The Run Java Checks job passes for PRs

Root Cause (Required on prioritization)

Solution Ideas

Hints

  • spring-boot.version property is reported in the logs but does not belong to optimize; spring.boot.version is used instead
  • C8 Optimize uses the property spring-boot.version
  • The build does not fail on master, only on PR builds
  • Failing job example

Links

Breakdown

Pull Requests

Preview Give feedback
No tasks being tracked yet.

Dev2QA handover

  • Does this ticket need a QA test and the testing goals are not clear from the description? Add a Dev2QA handover comment
@psavidis psavidis added scope:optimize Changes to Optimize. type:bug Issues that describe a user-facing bug in the project. labels Feb 5, 2025
@PHWaechtler
Copy link
Contributor

Note: the notation doesnt seem to be making a difference: https://github.com/camunda/camunda-optimize/actions/runs/13154673811/job/36708999776?pr=15385

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
scope:optimize Changes to Optimize. type:bug Issues that describe a user-facing bug in the project.
Projects
None yet
Development

No branches or pull requests

2 participants