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

Download error when running two integration tests at once #131

Open
nafg opened this issue Nov 29, 2022 · 0 comments
Open

Download error when running two integration tests at once #131

nafg opened this issue Nov 29, 2022 · 0 comments

Comments

@nafg
Copy link

nafg commented Nov 29, 2022

nafg/mill-bundler#2 was failing with

millbundler.test.downloadMillTestVersion java.nio.file.FileAlreadyExistsException: /home/runner/.cache/mill/download/0.10.9
    java.base/sun.nio.fs.UnixCopyFile.move(UnixCopyFile.java:449)
    java.base/sun.nio.fs.UnixFileSystemProvider.move(UnixFileSystemProvider.java:267)
    java.base/java.nio.file.Files.move(Files.java:1432)
    os.move$.apply(FileOps.scala:96)
    de.tobiasroeser.mill.integrationtest.MillIntegrationTestModule.$anonfun$downloadMillTestVersion$2(MillIntegrationTestModule.scala:352)
    mill.define.Task$TraverseCtx.evaluate(Task.scala:380)

(https://github.com/nafg/mill-bundler/actions/runs/3570059736/jobs/6000664632#step:5:114)

The solution was to use --jobs 1 for downloadMillTestVersion

diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 0e93b68..04abcb6 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -27,7 +27,9 @@ jobs:
           apps: mill
 
       - name: Test
-        run: mill --no-server _.test
+        run: |
+          mill --no-server --jobs 1 __.downloadMillTestVersion 
+          mill --no-server --jobs 0 _.test
 
   publish:
     runs-on: ubuntu-latest
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant