From 2d10f66efc5951404a4806219699a3439aa319c0 Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 22 Oct 2025 16:01:49 +0200 Subject: [PATCH 1/2] fix "The operation was canceled." for android talk Signed-off-by: Marcel Hibbe --- config/workflows/analysis.yml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/config/workflows/analysis.yml b/config/workflows/analysis.yml index ae87a05..256caa8 100644 --- a/config/workflows/analysis.yml +++ b/config/workflows/analysis.yml @@ -68,10 +68,13 @@ jobs: - name: Run analysis wrapper env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + # Memory that is set in jvmargs must be wisely chosen. + # E.g. with -Xmx5g and -Xmx1g android talk builds always failed with "The operation was canceled". -Xmx3g seems to work so far. run: | mkdir -p "$HOME/.gradle" { - echo "org.gradle.jvmargs=-Xmx5g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" + echo "org.gradle.jvmargs=-Xmx3g -XX:+HeapDumpOnOutOfMemoryError -Dfile.encoding=UTF-8 -XX:+UseParallelGC -XX:MaxMetaspaceSize=1g" echo "org.gradle.configureondemand=true" echo "kapt.incremental.apt=true" } > "$HOME/.gradle/gradle.properties" From 51a40b1eb99eb52f9892a84eff81f54119b9a6ec Mon Sep 17 00:00:00 2001 From: Marcel Hibbe Date: Wed, 22 Oct 2025 16:14:50 +0200 Subject: [PATCH 2/2] Revert timeout for analysis workflow. It was just a try to resolve the "The operation was canceled." error. Apparently, this was not the fix so i revert. Signed-off-by: Marcel Hibbe --- config/workflows/analysis.yml | 1 - 1 file changed, 1 deletion(-) diff --git a/config/workflows/analysis.yml b/config/workflows/analysis.yml index 256caa8..4c11928 100644 --- a/config/workflows/analysis.yml +++ b/config/workflows/analysis.yml @@ -27,7 +27,6 @@ concurrency: jobs: analysis: runs-on: ubuntu-latest - timeout-minutes: 60 steps: - name: Disabled on forks if: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.repo.full_name != github.repository }}