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

--rerun on included build's task causes build error #23886

Open
Vampire opened this issue Feb 13, 2023 · 3 comments
Open

--rerun on included build's task causes build error #23886

Vampire opened this issue Feb 13, 2023 · 3 comments
Labels
a:bug @configuration-cache in:scheduler execution plan, task graph, work lease, project lock

Comments

@Vampire
Copy link
Contributor

Vampire commented Feb 13, 2023

I just run gw :build-src:compileKotlin --rerun :compileJava --rerun on a Gradle 8.0 build where build-src is an included build.
Now compileKotlin in build-src was considered up-to-date and after build-src was finished building, I got an error.

Expected Behavior

Optimally --rerun should be workable on included build's tasks

Current Behavior

Cannot call TaskOutputs.upToDateWhen(Spec) on task ':build-src:compileKotlin' after task has started execution.

@Vampire Vampire changed the title --rerun on included build's task causes build error --rerun on included build's task causes build error Feb 13, 2023
@eskatos
Copy link
Member

eskatos commented Feb 22, 2023

Sorry that you're having trouble with Gradle!

Your issue lacks information about how to reproduce the problem you're having. A minimal reproducible example can really help us track down and fix your problem. We may also be able to suggest workarounds or ways to avoid the problem if we can reproduce it.

We request you to provide a reproducer because we need to be sure we are looking at the exact problem you are facing.

The ideal way to provide a reproducer is to leverage our reproducer template.

This issue will be closed after 7 days, unless you can provide more information.

@eskatos eskatos added the pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days label Feb 22, 2023
@Vampire
Copy link
Contributor Author

Vampire commented Feb 22, 2023

Just clone for example https://github.com/Vampire/setup-wsl and execute gw :build-logic:compileKotlin --rerun :compileKotlin --rerun.
build-logic:compileKotlin was not executed, but served FROM-CACHE if you built before, and when it came to evaluate the root build, you get

Cannot call TaskOutputs.upToDateWhen(Spec) on task ':build-logic:compileKotlin' after task has started execution.

@eskatos eskatos added in:execution-engine incremental, up-to-date, overlapping outputs in:scheduler execution plan, task graph, work lease, project lock has:reproducer and removed to-triage pending:reproducer Indicates that the issue requires a reproducer or will be closed after 7 days labels Feb 22, 2023
@eskatos
Copy link
Member

eskatos commented Feb 22, 2023

Thank you for providing a valid reproducer.

The issue is in the backlog of the relevant team and is prioritized by them.

@abstratt abstratt self-assigned this Feb 23, 2023
@abstratt abstratt added this to the 8.2 RC1 milestone Feb 23, 2023
@abstratt abstratt modified the milestones: 8.2 RC1, 8.3 RC1 Apr 18, 2023
@abstratt abstratt assigned abstratt and unassigned abstratt Apr 18, 2023
@abstratt abstratt modified the milestones: 8.3 RC1, 8.4 RC1 Jul 3, 2023
@abstratt abstratt added the 👋 team-triage Issues that need to be triaged by a specific team label Jul 24, 2023
@mlopatkin mlopatkin added @configuration-cache and removed 👋 team-triage Issues that need to be triaged by a specific team labels Jul 25, 2023
@lptr lptr removed the in:execution-engine incremental, up-to-date, overlapping outputs label Aug 11, 2023
@abstratt abstratt modified the milestones: 8.4 RC1, 8.5 RC1 Aug 28, 2023
@abstratt abstratt modified the milestones: 8.5 RC1, 8.6 RC1 Oct 23, 2023
@abstratt abstratt modified the milestones: 8.6 RC1, 8.7 RC1 Dec 14, 2023
@bamboo bamboo modified the milestones: 8.7 RC1, 8.8 RC1 Feb 7, 2024
@abstratt abstratt modified the milestones: 8.8 RC1, 8.9 RC1 Apr 1, 2024
@bamboo bamboo removed this from the 8.9 RC1 milestone May 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
a:bug @configuration-cache in:scheduler execution plan, task graph, work lease, project lock
Projects
None yet
Development

No branches or pull requests

7 participants