GenerateAppleSymbolsFile fails with permission error
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 32/100
- Issue type
- Bug
- Clarity
- Needs clarification
- Activity status
- Stale
- Domain
- build-system
Research direction
Start at apple/internal/intermediates.bzl around line 43, where actions.declare_directory is used, and reproduce the repeated CI build with +output_groups=dsym. Inspect the permissions of symbols_output and the generated .symbols path across repeated builds. Done means identifying why the declared directory becomes read-only and ensuring GenerateAppleSymbolsFile can write its output.
Written by the indexing model from the issue text.
Description
I'm running a build with +output_groups=dsym and in some conditions in CI, the build fails with the following error:
Failed to write bazel-out/applebin_ios-ios_arm64-opt-ST-55c05c3eeee9/bin/XXXXXXXXXXXX.framework-intermediates/symbols_output/0D911365-E3B1-37ED-AFC6-D4FBB0160CB1.symbols: You don’t have permission to save the file “0D911365-E3B1-37ED-AFC6-D4FBB0160CB1.symbols” in the folder “symbols_output”.
When looking at the directory, it is indeed read-only but I'm failing to understand why actions.declare_directory from https://github.com/bazelbuild/rules_apple/blob/96fa885dd8310ddc65289e590f31d1f3b25f46d9/apple/internal/intermediates.bzl#L43 fails to give the rule a directory that can be written to.
This happens when running the same build multiple times, I'll try to find a sure way to reproduce it, but would be happy to get any insight in the meantime if you have any.
- Dominant language
- Starlark
- Stars
- 600
- Forks
- 354
- Avg merge
- 2d 7h
- Merged PRs (30d)
- 8
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from bazelbuild/rules_apple
-
`ios_xctestrun_runner` skips the simulator cleanup action on early exits and signalsPossibly taken @katre claimed this 2 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 67/100
bazelbuild/rules_apple#3163 ·
Maintainers usually reply within 1 day
-
register_binary_linking_action links with the GCC coverage map format under coveragePossibly taken @TrapsterDK claimed this 6 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
bazelbuild/rules_apple#3160 ·
Maintainers usually reply within 1 day
-
Registered toolchains load //apple/internal and its dependencies in every buildMay be free again A pull request for this issue was closed without being merged. Open
Difficulty 3/5 1-2 days Newbie friendliness 30/100
bazelbuild/rules_apple#3158 ·
Maintainers usually reply within 1 day
-
Simulator cleanup is skipped when the post-action failsPossibly taken @vakhidbetrakhmadov claimed this 14 days ago. Open
Difficulty 3/5 1-2 days Newbie friendliness 58/100
bazelbuild/rules_apple#3147 ·
Maintainers usually reply within 1 day
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
bazelbuild/rules_apple#3139 ·
Maintainers usually reply within 1 day
All issues in bazelbuild/rules_apple
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
bazelbuild/apple_support#707 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 92/100
-
out-of-date
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
CachyOS/CachyOS-PKGBUILDS#2232 ·
Maintainers usually reply within 1 day
-
blast/large refactor risk/low spend-dem
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
chriskelly/MusicWall#87 · 2 comments ·
Maintainers usually reply within 1 day
-
bug
Difficulty 1/5 Under an hour Newbie friendliness 77/100