[MONITOR-SPEC-PR] BUILD FAILURE in Java SDK Automation generation, but return succeeded
- Dominant language
- C#
- Stars
- 135
- Forks
- 260
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 143
Description
**Description:**
BUILD FAILURE in Java SDK Automation, but return succeeded.
```
10:50:51.005 cmdout [Java-Sdk-Automation] [ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3.13.0:compile (default-compile) on project azure-resourcemanager-sql-generated: Compilation failure: Compilation failure:
10:50:51.005 cmdout [Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/sql/azure-resourcemanager-sql-generated/src/main/java/com/azure/resourcemanager/sql/generated/implementation/SqlVulnerabilityAssessmentImpl.java:[124,61] incompatible types: com.azure.resourcemanager.sql.generated.models.VulnerabilityAssessmentName cannot be converted to com.azure.resourcemanager.sql.generated.models.SqlVulnerabilityAssessmentName
10:50:51.005 cmdout [Java-Sdk-Automation] [ERROR] /mnt/vss/_work/1/s/azure-sdk-for-java/sdk/sql/azure-resourcemanager-sql-generated/src/main/java/com/azure/resourcemanager/sql/generated/implementation/SqlVulnerabilityAssessmentImpl.java:[132,61] incompatible types: com.azure.resourcemanager.sql.generated.models.VulnerabilityAssessmentName cannot be converted to com.azure.resourcemanager.sql.generated.models.SqlVulnerabilityAssessmentName
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] -> [Help 1]
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR]
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] Re-run Maven using the -X switch to enable full debug logging.
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR]
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] For more information about the errors and possible solutions, please read the following articles:
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR]
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] After correcting the problems, you can resume the build with the command
10:50:51.006 cmdout [Java-Sdk-Automation] [ERROR] mvn -rf :azure-resourcemanager-sql-generated
10:50:51.133 cmdout [Java-Sdk-Automation] /mnt/vss/_work/1/s/azure-sdk-for-java
10:50:51.133 cmdout [Java-Sdk-Automation] 2025-02-12 10:50:51 [ERROR] [COMPILE] Maven build fail.
10:50:51.133 cmdout [Java-Sdk-Automation] 2025-02-12 10:50:51 [ERROR] You can inquire in "Language - Java" Teams channel. Please include the link of this Pull Request in the query.
10:50:51.156 info Script return with result [succeeded] code [0] signal [null] cwd [azure-sdk-for-java]: ./eng/automation/generate.py
10:50:51.156 endsection Call generateScript
```
**Additional context:**
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4557037&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33&l=4582
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4557037&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33&l=4598
https://dev.azure.com/azure-sdk/internal/_build/results?buildId=4557037&view=logs&j=a8a7a537-82b0-583c-7971-bac70b9822ca&t=37e3947b-3cfb-5d36-86ba-0e22bb7dbc33&l=6881
Contributor guide
Research direction
Start with sdk/sql/azure-resourcemanager-sql-generated/src/main/java/com/azure/resourcemanager/sql/generated/implementation/SqlVulnerabilityAssessmentImpl.java at lines 124 and 132, then review the Java SDK automation generation output and the referenced build logs. Re-run the azure-resourcemanager-sql-generated Maven build to reproduce the type mismatch. Done means the generated module compiles and the automation reports the build failure rather than returning success.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- build-system, ci-cd
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100