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

GradleOutErrorCollector triggers on wrong messages, that match JAVA_ERROR pattern #42

Open
petertrr opened this issue May 19, 2021 · 1 comment

Comments

@petertrr
Copy link

Example can be found here: https://github.com/cqfn/save/actions/runs/857338267

In our Kotlin project, detekt plugin writes some messages to stderr, but build completes successfully (i.e. gradle finishes with status 0; there is an opened issue on side of detekt to suppress these unnecessary messages).

However, gradle-cache-action consideres these messages to be actual errors, because they match JAVA_ERROR pattern in GradleOutErrorCollector, and fails the step.

I think this behavior should need explicit opt-in (e.g. a configuration option in action's yaml config), or more explicitly state that an error has been produced by this action.

@orchestr7
Copy link

It looks to be a common problem for static analyzers (like detekt that you have mentioned). This is a blocking issue for such tools.

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

No branches or pull requests

2 participants