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

cmd/go: test failing to initialize build cache #30914

Closed
katiehockman opened this issue Mar 18, 2019 · 4 comments
Closed

cmd/go: test failing to initialize build cache #30914

katiehockman opened this issue Mar 18, 2019 · 4 comments
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin Testing An issue that has been verified to require only test changes, not just a test failure.

Comments

@katiehockman
Copy link
Contributor

cmd/go tests are failing for darwin-arm64-mn4m2zdaios and darwin-arm-mg912baios builds

lldb: running program
2019/03/18 20:16:58 failed to initialize build cache at /private/var/folders/qq/qxn86k813bn9fjxydm095rxw0000gp/T/workdir-host-darwin-amd64-zenly-ios/go/pkg/obj/go-build: mkdir /private/var/folders/qq: operation not permitted
FAIL	cmd/go	117.729s

Seems somewhat related to #29523

https://build.golang.org/log/e556301592beb290f2a21aafacf76f4176552ab1
https://build.golang.org/log/2bb2f1740aec8d028fa98073bc4c0d3810842d33

Though I'm not convinced that it's related, the failures started after 47e42cd was merged

/cc @bcmills @ianlancetaylor

@katiehockman katiehockman added Testing An issue that has been verified to require only test changes, not just a test failure. OS-Darwin labels Mar 18, 2019
@ianlancetaylor
Copy link
Contributor

CC @bradfitz @dmitshur

@dmitshur dmitshur added the NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. label Mar 19, 2019
@dmitshur
Copy link
Contributor

Another possible cause is CL 167087, the CL that changed the default value of GO111MODULE to 'on'. It was 3 commits earlier, and there are no test results for it for those 2 builders.

It could be related to symlinks and the temporary directory on Darwin. I.e., os.TempDir() is usually something like /var/folders/b8/66r1c5856mqds1mrf2tjtq8w0000gn/T/ but /var is a symlink to /private/var.

@bradfitz bradfitz added the mobile Android, iOS, and x/mobile label Mar 19, 2019
@bradfitz
Copy link
Contributor

@eliasnaur has been working on these.

@gopherbot
Copy link

Change https://golang.org/cl/168557 mentions this issue: misc/ios: don't override GOCACHE on the device

@golang golang locked and limited conversation to collaborators Mar 20, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
FrozenDueToAge mobile Android, iOS, and x/mobile NeedsInvestigation Someone must examine and confirm this is a valid issue and not a duplicate of an existing one. OS-Darwin Testing An issue that has been verified to require only test changes, not just a test failure.
Projects
None yet
Development

No branches or pull requests

6 participants