← Back to Pull requests

Fix argument length error for WriteSwiftDebugSettings #3173

Closed
unknown closed this pull request without merging on May 07, 2025 15:20 UTC
View on GitHub
unknown unknown commented on Apr 23, 2025 19:11 UTC
Author

Fix argument length errors by switching WriteSwiftDebugSettings to use a param file when needed.

Previously when generating a very large project with 7000+ targets:

ERROR: /private/var/tmp/_bazel_jszumski/399f2da8a1f92cab020446a488e7bec6/rules_xcodeproj.noindex/build_output_base/external/rules_xcodeproj_generated/generator/tools/rules/xcodeproj/bazel-project/BUILD:12:10: Generating bazel-project.xcodeproj Debug-swift_debug_settings.py failed: (Exit -1): universal_swift_debug_settings failed: error executing WriteSwiftDebugSettings command (from target @@rules_xcodeproj_generated//generator/tools/rules/xcodeproj/bazel-project:bazel-project) 
  (cd /private/var/tmp/_bazel_jszumski/399f2da8a1f92cab020446a488e7bec6/rules_xcodeproj.noindex/build_output_base/execroot/register && \
  exec env - \
  bazel-out/darwin_x86_64-opt-exec-macos-x86_64-min13.0-applebin_macos-ST-5b758c1c0c80/bin/external/rules_xcodeproj/tools/generators/swift_debug_settings/universal_swift_debug_settings 1 {...lots of pairs here...}
# Configuration: 794c86670c8dbf3648f6dfd018247dc9402b8c0a923a1790920ea9bf34028e6a
# Execution platform: @@internal_platforms_do_not_use//host:host
Action failed to execute: java.io.IOException: Cannot run program "/var/tmp/_bazel_jszumski/install/fd0e803cd377e5d6c999b9f309de8848/process-wrapper" (in directory "/private/var/tmp/_bazel_jszumski/399f2da8a1f92cab020446a488e7bec6/rules_xcodeproj.noindex/build_output_base/execroot/register"): error=7, Argument list too long

Diff: 188 lines (+141 / -47) across 2 files Reviewer: thiagohmcruz Review duration: 19928m
All Vouch review confidence checks passed
Residual risk 0.14 = Change Risk (0.36) × (1 − Review Confidence (0.60)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.36 · 188 lines diff across 2 files
0.36
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
0.17
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
60%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.314
Shallow Review Depth shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #3173"
general weight: 0.35
Reviewers
Assignees
Unassigned
Labels
risk: low confidence: 60.5% reviewed
Vouch Risk Breakdown
AI-powered review risk analysis
Change Risk
Change Risk · Model 1 (XGBoost)
Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
Score: 35.8% (MEDIUM) · Higher = larger blast radius
35.8%
Review Confidence
Review Confidence · Models 2 & 3
Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
Score: 60.5% · Lower = rushed or shallow review
60.5%
Residual Risk
Residual Risk · Core Equation
Residual = Change × (1 − Confidence)
Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
Score: 14.1% · Safe to merge
14.1%