From 47cf46e007b0ee40a52e1903fe283b8a367c7e2f Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Fri, 31 Jul 2026 09:32:10 -0300 Subject: [PATCH 1/2] [macos-runner] Guard checkout against hanging on prompts or a stalled clone git clone froze for 9+ minutes on one run with no clear cause. Set GIT_TERMINAL_PROMPT=0 so it fails fast instead of hanging if credential auth ever goes wrong, and abort via http.lowSpeedLimit/lowSpeedTime if the transfer genuinely stalls instead of just being slow. --- .gitea/workflows/beta.yml | 3 ++- .gitea/workflows/release.yml | 3 ++- .gitea/workflows/test.yml | 3 ++- 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.gitea/workflows/beta.yml b/.gitea/workflows/beta.yml index d4ba822..2cc5240 100644 --- a/.gitea/workflows/beta.yml +++ b/.gitea/workflows/beta.yml @@ -24,9 +24,10 @@ jobs: steps: - name: Checkout run: | + export GIT_TERMINAL_PROMPT=0 REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" - git clone "$AUTH_URL" . + git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git checkout "${{ gitea.sha }}" - name: Set build number diff --git a/.gitea/workflows/release.yml b/.gitea/workflows/release.yml index 9a672be..e5ac71a 100644 --- a/.gitea/workflows/release.yml +++ b/.gitea/workflows/release.yml @@ -24,9 +24,10 @@ jobs: steps: - name: Checkout run: | + export GIT_TERMINAL_PROMPT=0 REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" - git clone "$AUTH_URL" . + git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git checkout "${{ gitea.sha }}" - name: Verify ASC secrets diff --git a/.gitea/workflows/test.yml b/.gitea/workflows/test.yml index 23c40ca..8bda2ae 100644 --- a/.gitea/workflows/test.yml +++ b/.gitea/workflows/test.yml @@ -19,9 +19,10 @@ jobs: steps: - name: Checkout run: | + export GIT_TERMINAL_PROMPT=0 REPO_URL="${{ gitea.server_url }}/${{ gitea.repository }}.git" AUTH_URL="$(echo "$REPO_URL" | sed "s#https://#https://x-access-token:${{ gitea.token }}@#")" - git clone "$AUTH_URL" . + git -c http.lowSpeedLimit=1000 -c http.lowSpeedTime=30 clone "$AUTH_URL" . git checkout "${{ gitea.sha }}" - name: Run unit tests From 3e82e6e1fece44ee8b5356a78adbc868d1360171 Mon Sep 17 00:00:00 2001 From: Daniel Arantes Loverde Date: Fri, 31 Jul 2026 09:38:29 -0300 Subject: [PATCH 2/2] [macos-runner] Force manual code signing in the assemble lane's xcargs xcodebuild ignored sigh's downloaded provisioning profile because the Xcode project's signing style is Automatic, which needs an interactive Apple ID session unavailable in headless CI. Override at build time via xcargs instead of changing the checked-in project signing settings. --- Darwin/fastlane/Fastfile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Darwin/fastlane/Fastfile b/Darwin/fastlane/Fastfile index cfc6f8f..fc38d78 100644 --- a/Darwin/fastlane/Fastfile +++ b/Darwin/fastlane/Fastfile @@ -12,7 +12,7 @@ lane :assemble do |options| sdk: "iphoneos", export_method: ENV["BITRISE_DISTRIBUTION_METHOD"] || "app-store", xcconfig: "fastlane/AppStore.xcconfig", - xcargs: "-skipPackagePluginValidation -skipMacroValidation", + xcargs: "-skipPackagePluginValidation -skipMacroValidation CODE_SIGN_STYLE=Manual CODE_SIGN_IDENTITY=\"Apple Distribution\" PROVISIONING_PROFILE_SPECIFIER=\"com.br.pedifoods.app AppStore\"", derived_data_path: "../.build/Darwin/DerivedData", output_directory: "../.build/fastlane/Darwin", skip_archive: ENV["FASTLANE_SKIP_ARCHIVE"] == "YES",