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

Source/javadoc attacher must report download actions as enabled. #3029

Merged
merged 2 commits into from Jul 1, 2021

Conversation

sdedic
Copy link
Member

@sdedic sdedic commented Jul 1, 2021

As part of work on 'Continuous' gradle mode, the infrastructure started to test actions for isEnabled() before actually invoking them. That broke source+javadoc attacher introduced in 12.4, that downloads sources/javadocs for the user - the java code never reported the actions as 'enabled', but carried them out anyway. And to be even better, the attacher relied on ActionProgress to report finished which never happened, since gradle's ActionProviderImpl returned silently without reporting anything if the client invoked a disabled action.
As a result, the Attacher blocked, the user needs to cancel it from the UI (or will run indefinitely if run headless).

@sdedic sdedic self-assigned this Jul 1, 2021
@sdedic sdedic added kind:bug Bug report or fix Gradle [ci] enable "build tools" tests Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) labels Jul 1, 2021
@sdedic sdedic added this to the 12.5 milestone Jul 1, 2021
Copy link
Contributor

@dbalek dbalek left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine

@sdedic sdedic merged commit bb9f9d6 into apache:master Jul 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Gradle [ci] enable "build tools" tests Java [ci] enable extra Java tests (java.completion, java.source.base, java.hints, refactoring.java, form) kind:bug Bug report or fix
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants