Add test for interdependent Gradle subprojects to reproduce known bug
What does this MR do?
This merge request adds a test for interdependent Gradle subprojects. The test reproduces a known bug related to path normalization failures. It includes the necessary build files and settings for the employees
and handler
projects.
Output
[DEBU] [gemnasium-maven] [2024-05-21T12:49:32Z] [/go/src/app/builder/gradle/gradle.go:97] ▶ /opt/asdf/shims/gradle --init-script /gemnasium-init.gradle htmlDependencyReport
Welcome to Gradle 7.3.3!
Here are the highlights of this release:
- Easily declare new test suites in Java projects
- Support for Java 17
- Support for Scala 3
For more details see https://docs.gradle.org/7.3.3/release-notes.html
Starting a Gradle Daemon (subsequent builds will be faster)
> Task :htmlDependencyReport
See the report at: file:///app/employees/build/reports/project/dependencies/index.html
> Task :handler:htmlDependencyReport
See the report at: file:///app/handler/build/reports/project/dependencies/index.html
Deprecated Gradle features were used in this build, making it incompatible with Gradle 8.0.
You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.
See https://docs.gradle.org/7.3.3/userguide/command_line_interface.html#sec:command_line_warnings
BUILD SUCCESSFUL in 3s
2 actionable tasks: 2 executed
[FATA] [gemnasium-maven] [2024-05-21T12:49:32Z] [/go/src/app/cmd/gemnasium-maven/main.go:65] ▶ gradle builder: failed to normalize /app/handler/build/reports/project/dependencies/root.handler.js: report path "/app/handler/build/reports/project/dependencies/root.handler.js" does not start with root path "/app/employees"
Related Issue(s)
gitlab-org/gitlab#462792 (closed)
Does this MR meet the acceptance criteria?
-
Changelog entry added -
Documentation created/updated for GitLab EE, if necessary -
Documentation created/updated for this project, if necessary -
Documentation reviewed by technical writer or follow-up review issue created -
Tests added for this feature/bug -
Job definition updated, if necessary -
Conforms to the code review guidelines -
Conforms to the Go guidelines -
Security reports checked/validated by reviewer
Edited by Philip Cunningham