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

PrepareSandboxTask is missing outputs #1730

Closed
jhonnen opened this issue Aug 7, 2024 · 2 comments
Closed

PrepareSandboxTask is missing outputs #1730

jhonnen opened this issue Aug 7, 2024 · 2 comments
Labels
Milestone

Comments

@jhonnen
Copy link

jhonnen commented Aug 7, 2024

What happened?

When prepareTestSandbox is loaded FROM-CACHE, the test tasks fails because of missing input directories.

Relevant log output or stack trace

* What went wrong:
A problem was found with the configuration of task ':test' (type 'Test').
  - Type 'org.gradle.api.tasks.testing.Test' property 'jvmArgumentProviders.$4.sandboxConfigDirectory' specifies directory '<projectDir>\build\idea-sandbox\IC-2024.1\config-test' which doesn't exist.

    Reason: An input file was expected to be present but it doesn't exist.

Steps to reproduce

With build cache enabled, execute gradlew prepareTestSandbox, delete the build dir and run gradlew test.

-> build/idea-sandbox/IC-2024.1/plugins-test is correctly restored from cache, but not config-test

PrepareSandboxTask needs to declare all output directories it creates. Also it might make sense to disable caching anyway for this I/O-focused task.

Gradle IntelliJ Plugin version

2.0.0

Gradle version

8.9

Operating System

None

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

No response

@jhonnen jhonnen added the bug label Aug 7, 2024
hsz added a commit that referenced this issue Aug 7, 2024
@hsz hsz added this to the next milestone Aug 8, 2024
@hsz
Copy link
Member

hsz commented Aug 8, 2024

I have fixed that with c278056

Could you please verify if this resolves the issue on your end?
You can use the 2.0.1-SNAPSHOT snapshot release for that.

@jhonnen
Copy link
Author

jhonnen commented Aug 12, 2024

disabling caching fixed the issue 👍

@jhonnen jhonnen closed this as completed Aug 12, 2024
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

2 participants