Skip to content

Create directory fido-mds-cache in runtime phase - #513

Merged
emlun merged 1 commit into
mainfrom
gradle-create-mds-cache-dir
Sep 21, 2026
Merged

emlun merged 1 commit into
mainfrom
gradle-create-mds-cache-dir

Conversation

@emlun

@emlun emlun commented Sep 18, 2026

Copy link
Copy Markdown
Member

Before this, ./gradlew clean integrationTest fails because the fido-mds-cache directory does not exist. This is because the mkdirs() statement in the integrationTest task configuration executes in the configuration phase, while the clean task executes in the runtime phase and deletes the directory after the mkdirs() statement has created it (or it already existed). Putting the mkdirs() statement in a separate prerequisite task ensures that it executes after the clean task but before the integrationTest task (unless the user explicitly runs ./gradlew makeMdsCacheDir clean integrationTest, but that's on them in that case).

Before this, `./gradlew clean integrationTest` fails because the
`fido-mds-cache` directory does not exist. This is because the `mkdirs()`
statement in the `integrationTest` task configuration executes in the
configuration phase, while the `clean` task executes in the runtime phase and
deletes the directory after the `mkdirs()` statement has created it (or it
already existed). Putting the `mkdirs()` statement in a separate prerequisite
task ensures that it executes after the `clean` task but before the
`integrationTest` task (unless the user explicitly runs `./gradlew
makeMdsCacheDir clean integrationTest`, but that's on them in that case).
@github-actions

Copy link
Copy Markdown

Test Results

   288 files     288 suites   7m 16s ⏱️
 2 648 tests  2 640 ✅  8 💤 0 ❌
14 736 runs  14 688 ✅ 48 💤 0 ❌

Results for commit d0f6c0f.

@emlun
emlun merged commit d22ee39 into main Sep 21, 2026
18 checks passed
@emlun
emlun deleted the gradle-create-mds-cache-dir branch September 21, 2026 08:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants