Skip to content

JDK contents extracted with wrong modification timestamps #408

@sdedic

Description

@sdedic

Description:
setup-java action for Zulu JDK garbles timestamps of the installed files. This may cause issues in up-to-date and dependency checking, if an application depends directly or indirectly on JDK library classes, e.g. tool APIs. It is often assumed that dependencies (in this case jars or jmods from the JDK) must be older than compiled code linked to those dependencies in order to consider that compiled code up-to-date.

Task version:
v3

Platform:

  • Ubuntu 20.4.5

Runner type:

  • Hosted

Repro steps:
Investigated here: apache/netbeans#4921 ; according to the logs, the extracted JDK contents bears the time-of-installation timesamp:

2022-11-15T11:50:59.9471865Z -rw-r--r--+ 1 runner docker 18348414 Nov 15 11:50 tools.jar

This is the action invocation, with the ls logged immediately after.

Expected behavior:
Installed JDK files should retain timestamps as they are stored in the installation archive.

Actual behavior:
Installed JDK files get all modification stamp from the time JDK was installed on the builder machine.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions