travis-build icon indicating copy to clipboard operation
travis-build copied to clipboard

Support restoring workspace archives from another OS

Open native-api opened this issue 5 years ago • 1 comments
trafficstars

by creating any necessary directory hierarchy on the fly

https://travis-ci.community/t/introducing-workspaces/4249/9

This allows to restore absolute paths regardless of the OS.

Tested the command line on a Travis Python archive in Bionic, OSX Catalina and Windows Git Bash.


The stumbling block is currently that it's impossible to extract stuff to /home in OSX since it's an automounter mount point.

That could be fixed by altering OSX images:

  • remove/comment the /home line from /etc/auto_master in OSX images; this must be done in the image, or run sudo launchctl kill HUP system/com.apple.autofsd after changing it.

/home automount point in OSX is only used for mounting a network home dir from a LDAP service, so we don't need it anyway.


This may still fail in some unusual setups -- e.g. if root is a readonly filesystem (is this the case with Milti-arch VMs?).

native-api avatar Jun 29 '20 14:06 native-api

Any news? Looking forward to https://travis-ci.community/t/allow-to-restore-a-workspace-in-another-os/9165 and https://travis-ci.community/t/workspaces-do-not-work-nicely-with-cross-platform-builds/4461 to be fixed.

vladimiry avatar Jul 10 '20 09:07 vladimiry