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

Task action implementation is not tracked when added via Task.doLast(String, Action) #7923

Closed
wolfs opened this issue Dec 5, 2018 · 11 comments · Fixed by #21084
Closed

Task action implementation is not tracked when added via Task.doLast(String, Action) #7923

wolfs opened this issue Dec 5, 2018 · 11 comments · Fixed by #21084
Assignees
Labels
a:bug affects-version:4.2 in:execution-engine incremental, up-to-date, overlapping outputs
Milestone

Comments

@wolfs
Copy link
Member

wolfs commented Dec 5, 2018

@wolfs commented on Tue Dec 04 2018

See gradle/kotlin-dsl-samples#1271

The underlying issue is that we don't unpack ConfigureUtil.WrappedConfigureAction which is created by the Closure accepting method created by our runtime task decoration.

@wolfs
Copy link
Member Author

wolfs commented Dec 5, 2018

@jjohannes Can you maybe look into fixing this, given that you introduced the method(s)? I can give some guidance.

@lptr
Copy link
Member

lptr commented Feb 10, 2020

I'm guessing this is not true anymore?

@wolfs
Copy link
Member Author

wolfs commented Feb 10, 2020

I am pretty sure it still is. At least I don't remember fixing anything in that area.

@lptr
Copy link
Member

lptr commented Feb 10, 2020

IIRC, we did track unnamed additional actions properly, it was only an issue with the (then) newly added named actions. If you look at the code we are now calling through from unnamed to named, so either we don't have the problem or we have the problem with unnamed actions, too.

I'd be pretty surprised if we had a problem with tracking the implementation of unnamed actions, as we have tests for that case.

@lptr
Copy link
Member

lptr commented Feb 10, 2020

Ah, is this not about the "new" methods adding the String parameter, but the methods taking Closure?

The underlying issue is that we don't unpack ConfigureUtil.WrappedConfigureAction which is created by the Closure accepting method created by our runtime task decoration.

Those methods are gone now. Does that change the situation?

We do unwrap WrappedConfigurationAction here, but it's not related:

// Same as above, if we have wrapped a closure in a WrappedConfigureAction or a ClosureBackedAction, we want to
// track the closure itself, not the action class.
if (bean instanceof ConfigureUtil.WrappedConfigureAction) {
return ((ConfigureUtil.WrappedConfigureAction)bean).getConfigureClosure().getClass();
}

@jjohannes jjohannes removed their assignment Feb 17, 2020
@stale
Copy link

stale bot commented Feb 16, 2021

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Feb 16, 2021
@wolfs
Copy link
Member Author

wolfs commented Feb 16, 2021

We should fix this.

@stale
Copy link

stale bot commented Mar 9, 2021

This issue has been automatically closed due to inactivity. If you can reproduce this on a recent version of Gradle or if you have a good use case for this feature, please feel free to reopen the issue with steps to reproduce, a quick explanation of your use case or a high-quality pull request.

@stale stale bot closed this as completed Mar 9, 2021
@lptr
Copy link
Member

lptr commented Mar 9, 2021

Let's keep this open...

@lptr lptr reopened this Mar 9, 2021
@stale stale bot removed the stale label Mar 9, 2021
@stale
Copy link

stale bot commented Apr 17, 2022

This issue has been automatically marked as stale because it has not had recent activity. Given the limited bandwidth of the team, it will be automatically closed if no further activity occurs. If you're interested in how we try to keep the backlog in a healthy state, please read our blog post on how we refine our backlog. If you feel this is something you could contribute, please have a look at our Contributor Guide. Thank you for your contribution.

@stale stale bot added the stale label Apr 17, 2022
@wolfs wolfs removed the stale label Apr 19, 2022
@lptr lptr added the in:execution-engine incremental, up-to-date, overlapping outputs label Jun 2, 2022
@alllex alllex self-assigned this Jun 23, 2022
@alllex alllex added this to the 7.6 RC1 milestone Jun 23, 2022
@lptr
Copy link
Member

lptr commented Jul 4, 2022

Woo-hoo! 🎉

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug affects-version:4.2 in:execution-engine incremental, up-to-date, overlapping outputs
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants