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

Tried to create a temporary file ... but this file already exists in state reproducibility tests #18

Open
alien-brother opened this issue May 26, 2024 · 0 comments

Comments

@alien-brother
Copy link

v0.3.2, Windows 11

If a plugin fails state reproducibility tests, clap-validator can report the following:

<time> [ERROR] thread 'main' panicked at 'Tried to create a temporary file at 'C:\Users\<user>\AppData\Local\Temp\clap-validator\<plugin>\state-reproducibility-basic\state-expected', but this file already exists. This is a bug in clap-validator.': src\tests.rs:185

plus, state-reproducibility-null-cookies would be reported as CRASHED: exit code: 101.

It seems that state-reproducibility-null-cookies is trying to use the folder state-reproducibility-basic and fails if state-reproducibility-basic already failed during this run. Running only state-reproducibility-null-cookies with a plugin that fails the test confirms this:

   - state-reproducibility-null-cookies: The exact same test as state-
       reproducibility-basic, but with all cookies in the parameter events set
       to null pointers. The plugin should handle this in the same way as the
       other test case.
     FAILED: Re-saving the loaded state resulted in a different
       state file. Expected: 'C:\Users\<user>\AppData\Local\Temp\clap-
       validator\<plugin>\state-reproducibility-basic\state-
       expected'. Actual: 'C:\Users\<user>\AppData\Local\Temp\clap-
       validator\<plugin>\state-reproducibility-basic\state-
       actual'.
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