-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
do_not_package_if_src_was_modified spurious errors #6717
Comments
travis-ci/travis-ci#2993 logs available via email request |
I'd be fine with either reverting or ignoring on osx, it's not super critical this test runs everywhere. That we require the ability to set mtime is a good point, although the main tarbal extraction point, |
Verification is done in |
@khionu Can you give me instructions for setting up a filesystem that reproduces #6238? The change from #6257 is causing some CI problems, and I want to better understand what motivated the change. |
Stricter package change detection. This changes it so that when `cargo package` verifies that nothing has modified any source files that it hashes the files' contents instead of checking for mtime changes. mtimes are not always reliable. This also changes it so that it checks *all* files in the package file. Previously it skipped files based on search rules such as the `exclude` list. Closes #6717
do_not_package_if_src_was_modified
is failing on macos CI with:Cargo is not able to always detect a modification during packaging on low-resolution filesystems like HFS if the package is extracted and build.rs runs within 1 second.
This is caused by #6257. Previously the timestamps of the original files were in the past, but now the timestamps are all set to the extraction time.
Some options to fix:
tar
to optionally set timestamps, but ignore errors.do_not_package_if_src_was_modified
on macos.run_verify
to use a better method for detecting modifications.a. Note: I cannot reproduce Failure to package on FAT-family filesystems #6238. I tried creating various FAT partitions on Windows 8 and Windows 10, and they all seemed to be able to set file times just fine. How can I repro it?
Any thoughts/preferences?
I get about 20% failure locally. Seen recently at
The text was updated successfully, but these errors were encountered: