Skip to content
This repository has been archived by the owner on Apr 3, 2023. It is now read-only.

Fix failing integration test "Test Simple Example, Build with Older Xcode" #88

Open
cgrindel opened this issue Nov 4, 2021 · 0 comments
Labels
bug Something isn't working

Comments

@cgrindel
Copy link
Owner

cgrindel commented Nov 4, 2021

Description

The test started failing in CI around Nov 3, 2021. It works on my dev machine (macOS). For now, the test has been disabled.

Error

 error: terminated(128): DEVELOPER_DIR=/Applications/Xcode_12.4.app/Contents/Developer __CF_USER_TEXT_ENCODING=0x1F5:0:0 TMPDIR=/var/folders/24/8k48jl6d249_n_qfxwsl6xvm0000gn/T/ _=bazel-out/host/bin/external/build_bazel_rules_swift/tools/worker/worker GIT_SSH_COMMAND=ssh -oBatchMode=yes *** XCODE_VERSION_OVERRIDE=12.4.0.12D4e SDKROOT=/Applications/Xcode_12.4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX11.1.sdk SHLVL=1 PATH=/private/var/tmp/_bazel_runner/4bd0d8640a6b3aa42285e35d21688dd6/sandbox/darwin-sandbox/204/execroot/simple_example/external/cgrindel_rules_spm_local_config/spm_utilities:/usr/gnu/bin:/usr/local/bin:/bin:/usr/bin:. GIT_TERMINAL_PROMPT=0 git -C /private/var/tmp/_bazel_runner/4bd0d8640a6b3aa42285e35d21688dd6/sandbox/darwin-sandbox/204/execroot/simple_example/bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/repositories/swift-log-df1c07b5 remote update -p output:
 unable to restore state from /private/var/tmp/_bazel_runner/4bd0d8640a6b3aa42285e35d21688dd6/sandbox/darwin-sandbox/204/execroot/simple_example/bazel-out/darwin-fastbuild/bin/external/swift_pkgs/spm_build/workspace-state.json; missingKey("path")
     fatal: not a git repository (or any of the parent directories): .git

Initial Thoughts

  • I think that it might be related to this SPM issue: swiftlang/swift-package-manager@f2dd6ce
  • Actually, it looks like this is happening because a git operation is trying to happen during a compile. This should not happen. Instead, the fetch should have retrieved the repository during the loading phase.
  • If the problem is that the version of SPM that fetched the repo is different from the one compiling, which can happen because the fetch happens in loading which is a sibling operation to the toolchain resolution, then we need to figure out a way to use the correct version. The question is why does this not fail on my dev machine?
@cgrindel cgrindel added the bug Something isn't working label Nov 4, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant