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

[REGRESSION]: Gradle V3 build task failure message reports "Code analysis failed" for all failures #19416

Closed
4 of 7 tasks
bannus opened this issue Jan 2, 2024 · 2 comments
Closed
4 of 7 tasks
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug regression This used to work, but a change in the service/tasks broke it. stale Task: Gradle

Comments

@bannus
Copy link

bannus commented Jan 2, 2024

New issue checklist

Task name

Gradle

Breaking task version

3.204.0

Last working task version

3.200.0

Regression Description

Any failing build reports "Code analysis failed". PR 16078 attempted to improve the task failure reporting, but as far as I can tell it did not add any new information to the failure, and confusingly reports that "Code analysis failed" even if the build failed for another reason.

Environment type (Please select at least one enviroment where you face this issue)

  • Self-Hosted
  • Microsoft Hosted
  • VMSS Pool
  • Container

Azure DevOps Server type

dev.azure.com (formerly visualstudio.com)

Azure DevOps Server Version (if applicable)

No response

Operation system

Windows 11

Relevant log output

> Task :product:GradlePlugin:test FAILED
FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':product:GradlePlugin:test'.
> There were failing tests. See the report at: file:///D:/a/_work/1/s/obj/AnyCPU/GradlePlugin/reports/tests/test/index.html

* Try:
> Run with --scan to get full insights.

BUILD FAILED in 23m 11s


Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.

For more on this, please refer to https://docs.gradle.org/8.2/userguide/command_line_interface.html#sec:command_line_warnings in the Gradle documentation.
940 actionable tasks: 940 executed
Error: The process 'D:\a\_work\1\s\_BuildCommon\path1st\gradlew.bat' failed with exit code 1
    at ExecState._setResult (D:\a\_work\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\3.231.0\node_modules\azure-pipelines-task-lib\toolrunner.js:943:25)
    at ExecState.CheckComplete (D:\a\_work\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\3.231.0\node_modules\azure-pipelines-task-lib\toolrunner.js:926:18)
    at ChildProcess.<anonymous> (D:\a\_work\_tasks\Gradle_8d8eebd8-2b94-4c97-85af-839254cc6da4\3.231.0\node_modules\azure-pipelines-task-lib\toolrunner.js:839:19)
    at ChildProcess.emit (node:events:513:28)
    at maybeClose (node:internal/child_process:1100:16)
    at Process.ChildProcess._handle.onexit (node:internal/child_process:304:5)
Result Attachments will be stored in LogStore
Run Attachments will be stored in LogStore
##[error]Code analysis failed. Gradle exit code: -1. Error: Error: The process 'D:\a\_work\1\s\_BuildCommon\path1st\gradlew.bat' failed with exit code 1

Full task logs with system.debug enabled

N/A

Repro steps

No response

@bannus bannus added bug regression This used to work, but a change in the service/tasks broke it. labels Jan 2, 2024
@kirill-ivlev
Copy link
Contributor

Hi @bannus thanks for reporting! We are working on more prioritized issues at the moment, but will get back to this one soon.

@kirill-ivlev kirill-ivlev added Area: ABTT Akvelon Build Tasks Team area of work Task: Gradle and removed Area: Release triage labels Jan 3, 2024
Copy link

github-actions bot commented Jul 1, 2024

This issue is stale because it has been open for 180 days with no activity. Remove the stale label or comment on the issue otherwise this will be closed in 5 days

@github-actions github-actions bot added the stale label Jul 1, 2024
@github-actions github-actions bot closed this as completed Jul 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area: ABTT Akvelon Build Tasks Team area of work bug regression This used to work, but a change in the service/tasks broke it. stale Task: Gradle
Projects
None yet
Development

No branches or pull requests

2 participants