-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371978: tools/jar/ReproducibleJar.java fails on XFS #28367
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
/issue JDK-8371978 |
|
❗ This change is not yet ready to be integrated. |
|
@sendaoYan This issue is referenced in the PR title - it will now be updated. |
|
@sendaoYan The following label will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command. |
|
Hello @sendaoYan, the failure here is because the extracted date/time on the directory does not match the one in the JAR file's entry for that directory (due to the underlying filesystem). Would it be possible to see which part of the JDK code is setting this date on that directory to the Unix epoch time? I haven't had a chance to go over the JAR tool's code in detail. |
The JAR file's entry save the correct date/time. 'jar --extract' create the directory through method The linux system call utimes get the correct 64bit modified date/time, but the file system only support 32bit data/time. So the system call utimes set the directory to the Unix epoch time. |
Hi all,
Test tools/jar/ReproducibleJar.java fails when running on a file system that only supports to 2038(e.g. XFS).
Before this PR, test check if the input test time after "2038-01-19T03:14:07Z" and the extracted time created by jar is equal to "2038-01-19T03:14:07Z", then test will skip that check.
But the extraced time created by jar equal to "1970-01-01T00:00:00Z" actually. I think the extracted time set to unix epoch time is acceptable, so this PR fix the test make test check skip when the extracted time is unix epoch time.
Change has been verified locally on XFS file system and ext4 file system.
Progress
Issue
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/28367/head:pull/28367$ git checkout pull/28367Update a local copy of the PR:
$ git checkout pull/28367$ git pull https://git.openjdk.org/jdk.git pull/28367/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 28367View PR using the GUI difftool:
$ git pr show -t 28367Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/28367.diff
Using Webrev
Link to Webrev Comment