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

verifyPlugin does not fails builds if verificationReportsFormats does not include PLAIN reports #1871

Open
sbouchet opened this issue Jan 31, 2025 · 1 comment
Labels

Comments

@sbouchet
Copy link

sbouchet commented Jan 31, 2025

What happened?

we're using pluginverification task and noticed that even the report mention errors, the task don't fail if we specify the correct failure level, if the PLAIN verificationFormat is missing
it fails only if the ALL level is used

Relevant log output or stack trace

we're currently using

pluginVerification {
        failureLevel = listOf(INVALID_PLUGIN, COMPATIBILITY_PROBLEMS, MISSING_DEPENDENCIES)
       verificationReportsFormats = listOf(MARKDOWN)

and build outuput is


...
BUILD SUCCESSFUL in 4m 46s

but as soon as i change to

pluginVerification {
        failureLevel = ALL
        verificationReportsFormats = listOf(MARKDOWN)

the same build fails with

> Task :verifyPlugin FAILED

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':verifyPlugin'.
> SCHEDULED_FOR_REMOVAL_API_USAGES: Plugin uses API marked as scheduled for removal (ApiStatus.@ScheduledForRemoval). Check Plugin Verifier report for more details.

that is the correct expected output

Steps to reproduce

check out redhat-developer/intellij-kubernetes@5eea7ff
./gradlew verifyPlugin will not fail
change build.gradle.kts to use ALL as failureLevel and it will fail
or change verificationReportFormats to 'verificationReportsFormats = listOf(MARKDOWN, PLAIN)'

Gradle IntelliJ Plugin version

2.2.1

Gradle version

8.5

Operating System

Linux

Link to build, i.e. failing GitHub Action job

redhat-developer/intellij-kubernetes#824

@sbouchet sbouchet added the bug label Jan 31, 2025
@sbouchet sbouchet changed the title verifyPlugin does not fails builds even if correct failureLevel applied verifyPlugin does not fails builds if verificationReportsFormats does not include PLAIN reports Feb 5, 2025
@sbouchet
Copy link
Author

sbouchet commented Feb 5, 2025

found out it's because we're not using PLAIN report format.
still an issue though, but workaround is to always set PLAIN format

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant