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

[backport][release_2.1] Preserve timestamps when unstreaming dirs (#966) #1058

Merged
merged 1 commit into from May 4, 2022

Conversation

Shrews
Copy link
Contributor

@Shrews Shrews commented May 4, 2022

Backport of PR #966

(cherry picked from commit 203ef43)

Preserve timestamps when unstreaming dirs

Connect ansible#964
That fixes the linked issue with the limitation (discovered by the test) that we might miss a 2 second delta or less. This assumes the computer clock is perfectly synced on the machines that do the compressing and extracting.
Nonetheless, I think this opens up an option for AWX to get the job done. I show a demo in the test with the very_old.txt file, where I artificially set the mod and access time to 1 day in the past. It seems like that would work for the AWX use case, assuming that the two computers agree on the day, which doesn't sound like an unreasonable demand.
Ping @jbradberry

Reviewed-by: Jeff Bradberry <None>
Reviewed-by: David Shrewsbury <None>
Reviewed-by: Alan Rominger <arominge@redhat.com>
Reviewed-by: None <None>
(cherry picked from commit 203ef43)
@Shrews Shrews requested a review from a team as a code owner May 4, 2022 14:07
@Shrews Shrews merged commit 3d2d1a5 into ansible:release_2.1 May 4, 2022
@Shrews Shrews deleted the backport/release_2.1/pr966 branch May 4, 2022 14:24
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

Successfully merging this pull request may close these issues.

None yet

3 participants