executable bit not being set with (--remote_download_minimal or --remote_download_toplevel) and --define=apple.experimental.tree_artifact_outputs=1 #16754
Labels
P1
I'll work on this now. (Assignee required)
team-Remote-Exec
Issues and PRs for the Execution (Remote) team
type: bug
Description of the bug:
Prior to this commit: dfccbf9, our iOS app was getting the executable bit set, as it should. After that commit, the app no longer has the executable bit set. This only happens using either
--remote_download_minimal
or--remote_download_toplevel
.There may be a correlation to this flag:
--define=apple.experimental.tree_artifact_outputs=1
. (see repro steps)What's the simplest, easiest way to reproduce this bug? Please provide a minimal example if possible.
incremental-alley.zip
Between trials below, be sure to
bazel clean
and when going from Works -> Doesn't work and back, be sure torm -rf ~/.bazel_cache_incremental_alley
Works as expected:
bazel build :IncrementalAlley-iOS
bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.ipa
to/private/var/tmp/_bazel_user/3af7db76104a2df6189bfd78bfcdce2e/execroot/__main__/bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.zip
and unzipls -l bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/Payload/IncrementalAlley-iOS.app/IncrementalAlley-iOS
Observe something like the following (notice the executable bits set):
Works as expected:
bazel build :IncrementalAlley-iOS
bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.ipa
to/private/var/tmp/_bazel_user/3af7db76104a2df6189bfd78bfcdce2e/execroot/__main__/bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.zip
and unzipls -l bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/Payload/IncrementalAlley-iOS.app/IncrementalAlley-iOS
Observe something like the following (notice the executable bits set):
Works as expected:
bazel build :IncrementalAlley-iOS
bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.ipa
to/private/var/tmp/_bazel_user/3af7db76104a2df6189bfd78bfcdce2e/execroot/__main__/bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.zip
and unzipls -l bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.app/IncrementalAlley-iOS
Observe something like the following (notice the executable bits set) (also notice that the write flag is no longer set):
Does not work as expected:
bazel build :IncrementalAlley-iOS
bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.ipa
to/private/var/tmp/_bazel_user/3af7db76104a2df6189bfd78bfcdce2e/execroot/__main__/bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.zip
and unzipls -l bazel-out/applebin_ios-ios_sim_arm64-fastbuild-ST-9c82d69884d3/bin/Modules/iOSApp/IncrementalAlley-iOS.app/IncrementalAlley-iOS
Observe something like the following (notice the executable bits are not set):
Which operating system are you running Bazel on?
macOS Ventura 13.0
What is the output of
bazel info release
?2022/11/11 15:34:12 Using unreleased version at commit b8d0e26 INFO: Invocation ID: 8a3b1297-1269-45f1-8ed9-87a8abe14154 development version
If
bazel info release
returnsdevelopment version
or(@non-git)
, tell us how you built Bazel.Using bazelisk
What's the output of
git remote get-url origin; git rev-parse master; git rev-parse HEAD
?Have you found anything relevant by searching the web?
Not really. There are some issues regarding executable bits like this one: #12137 but it didn't seem exactly relevant.
Any other information, logs, or outputs that you want to share?
No response
The text was updated successfully, but these errors were encountered: