From 8b1e2923341fc31f549deb28a96e55f91a56d741 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Tue, 23 Sep 2025 13:38:31 -0700 Subject: [PATCH 01/12] Enable repo cache on PV Experiment repo cache to accelerate coblat CI BUG=b/407051026 --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index 97598b3d746bb..a4d911a5a7918 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -19,7 +19,7 @@ runs: run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH shell: bash - name: Generate gclient file - run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' https://github.com/${{ github.repository }} + run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} shell: bash - name: Set target OS for Android if: ${{ contains(matrix.platform, 'android') }} From a604a563003b14cba955f0eb65496715355930a0 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 24 Sep 2025 16:34:00 -0700 Subject: [PATCH 02/12] Run presubmit on chrobalt-linux-runner-with-cache --- .github/workflows/linearize_main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linearize_main.yaml b/.github/workflows/linearize_main.yaml index edfaa4152ae74..83ba4477129f9 100644 --- a/.github/workflows/linearize_main.yaml +++ b/.github/workflows/linearize_main.yaml @@ -10,7 +10,7 @@ permissions: read-all jobs: trigger_linearize: - runs-on: [self-hosted, chrobalt-linux-runner] + runs-on: [self-hosted, chrobalt-linux-runner-with-cache] permissions: contents: write steps: From 0f1c16d7a835046688d69f69b19da6431d94e6ac Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Tue, 30 Sep 2025 13:45:33 -0700 Subject: [PATCH 03/12] Update action.yaml Explicitly add lock timeout --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index a4d911a5a7918..ec2ef87c44347 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -19,7 +19,7 @@ runs: run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH shell: bash - name: Generate gclient file - run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} + run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git --lock_timeout=600 https://github.com/${{ github.repository }} shell: bash - name: Set target OS for Android if: ${{ contains(matrix.platform, 'android') }} From a4c712ab4d34042bc3432e6316437a6f64eeef98 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Tue, 30 Sep 2025 14:00:05 -0700 Subject: [PATCH 04/12] Update action.yaml --lock_timeout=600 should be added to gclient sync. --- .github/actions/depot_tools/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index ec2ef87c44347..7d9453c347b31 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -19,7 +19,7 @@ runs: run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH shell: bash - name: Generate gclient file - run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git --lock_timeout=600 https://github.com/${{ github.repository }} + run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} shell: bash - name: Set target OS for Android if: ${{ contains(matrix.platform, 'android') }} @@ -29,7 +29,7 @@ runs: shell: bash - name: gclient sync if: inputs.run_sync == 'true' - run: gclient sync -v --shallow --no-history -r ${{ github.sha }} + run: gclient sync -v --shallow --no-history --lock_timeout=600 -r ${{ github.sha }} shell: bash - name: Disable Chromium client side build telemetry run: build_telemetry opt-out From 81f15e145c4d213ac4b722c2a8ecfbc86a47bddf Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:04:23 -0700 Subject: [PATCH 05/12] Update action.yaml Tweak the job number to mitigate the lock error. --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index 7d9453c347b31..a04978599bc8a 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -19,7 +19,7 @@ runs: run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH shell: bash - name: Generate gclient file - run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} + run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --jobs=1 --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} shell: bash - name: Set target OS for Android if: ${{ contains(matrix.platform, 'android') }} From 9c602bcda04e5869f6c99283cc01d7efd25ec251 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 11:27:38 -0700 Subject: [PATCH 06/12] Update action.yaml Move the --jobs=1 to the `gclient sync` command --- .github/actions/depot_tools/action.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index a04978599bc8a..934588fd2afd4 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -19,7 +19,7 @@ runs: run: echo "$GITHUB_WORKSPACE/depot_tools" >> $GITHUB_PATH shell: bash - name: Generate gclient file - run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --jobs=1 --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} + run: gclient config --name=src --custom-var=download_remoteexec_cfg=True --custom-var='rbe_instance="projects/cobalt-actions-prod/instances/default_instance"' --cache-dir=/gclient-sync-cache/git https://github.com/${{ github.repository }} shell: bash - name: Set target OS for Android if: ${{ contains(matrix.platform, 'android') }} @@ -29,7 +29,7 @@ runs: shell: bash - name: gclient sync if: inputs.run_sync == 'true' - run: gclient sync -v --shallow --no-history --lock_timeout=600 -r ${{ github.sha }} + run: gclient sync -v --shallow --no-history --lock_timeout=600 --jobs=1 -r ${{ github.sha }} shell: bash - name: Disable Chromium client side build telemetry run: build_telemetry opt-out From e4614db5e5117ba7f1ce60e0a9d43c0a4212f757 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 13:54:27 -0700 Subject: [PATCH 07/12] Update action.yaml Check the gclient cache folder after gclient sync. --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index 934588fd2afd4..2750e72ef9027 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -29,7 +29,7 @@ runs: shell: bash - name: gclient sync if: inputs.run_sync == 'true' - run: gclient sync -v --shallow --no-history --lock_timeout=600 --jobs=1 -r ${{ github.sha }} + run: gclient sync -v --shallow --no-history --lock_timeout=600 --jobs=1 -r ${{ github.sha }} && ls -l /gclient-sync-cache/git shell: bash - name: Disable Chromium client side build telemetry run: build_telemetry opt-out From 7670365a9c149b16d4054c1480afca4fa43655d0 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:04:23 -0700 Subject: [PATCH 08/12] Fix the typo in the runner name Should be chrobalt-runner-linux-with-cache. --- .github/workflows/linearize_main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linearize_main.yaml b/.github/workflows/linearize_main.yaml index 83ba4477129f9..7930672ff4868 100644 --- a/.github/workflows/linearize_main.yaml +++ b/.github/workflows/linearize_main.yaml @@ -10,7 +10,7 @@ permissions: read-all jobs: trigger_linearize: - runs-on: [self-hosted, chrobalt-linux-runner-with-cache] + runs-on: [self-hosted, chrobalt-runner-linux-with-cache] permissions: contents: write steps: From 7d9dbcad6bc62cf8473ab7a7db4014666117754c Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 14:49:27 -0700 Subject: [PATCH 09/12] Update linearize_main.yaml Try chrobalt-runner-linux-with-cache runner. --- .github/workflows/linearize_main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linearize_main.yaml b/.github/workflows/linearize_main.yaml index edfaa4152ae74..7930672ff4868 100644 --- a/.github/workflows/linearize_main.yaml +++ b/.github/workflows/linearize_main.yaml @@ -10,7 +10,7 @@ permissions: read-all jobs: trigger_linearize: - runs-on: [self-hosted, chrobalt-linux-runner] + runs-on: [self-hosted, chrobalt-runner-linux-with-cache] permissions: contents: write steps: From eb0000cc06c27f0d72a7df00a4e800153e51b752 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 15:31:59 -0700 Subject: [PATCH 10/12] Update action.yaml Rerun the presubmit. --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index 2750e72ef9027..9a4654d798861 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -29,7 +29,7 @@ runs: shell: bash - name: gclient sync if: inputs.run_sync == 'true' - run: gclient sync -v --shallow --no-history --lock_timeout=600 --jobs=1 -r ${{ github.sha }} && ls -l /gclient-sync-cache/git + run: gclient sync -v --shallow --no-history --lock_timeout=601 --jobs=1 -r ${{ github.sha }} && ls -l /gclient-sync-cache/git shell: bash - name: Disable Chromium client side build telemetry run: build_telemetry opt-out From 3ce5b4a0b6255500e2f03552307d8b6309ea4cc4 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 17:18:24 -0700 Subject: [PATCH 11/12] Update linearize_main.yaml Should use the label not the pod name. --- .github/workflows/linearize_main.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linearize_main.yaml b/.github/workflows/linearize_main.yaml index 7930672ff4868..83ba4477129f9 100644 --- a/.github/workflows/linearize_main.yaml +++ b/.github/workflows/linearize_main.yaml @@ -10,7 +10,7 @@ permissions: read-all jobs: trigger_linearize: - runs-on: [self-hosted, chrobalt-runner-linux-with-cache] + runs-on: [self-hosted, chrobalt-linux-runner-with-cache] permissions: contents: write steps: From 2f7309a844e4dbcfafeaf67be1e233e6f1ae3857 Mon Sep 17 00:00:00 2001 From: Xinan Lin <65635777+linxinan-chops@users.noreply.github.com> Date: Wed, 1 Oct 2025 18:38:46 -0700 Subject: [PATCH 12/12] Update action.yaml try presubmit again --- .github/actions/depot_tools/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/depot_tools/action.yaml b/.github/actions/depot_tools/action.yaml index 9a4654d798861..e88148f724e67 100644 --- a/.github/actions/depot_tools/action.yaml +++ b/.github/actions/depot_tools/action.yaml @@ -29,7 +29,7 @@ runs: shell: bash - name: gclient sync if: inputs.run_sync == 'true' - run: gclient sync -v --shallow --no-history --lock_timeout=601 --jobs=1 -r ${{ github.sha }} && ls -l /gclient-sync-cache/git + run: gclient sync -v --shallow --no-history --lock_timeout=700 --jobs=1 -r ${{ github.sha }} && ls -l /gclient-sync-cache/git shell: bash - name: Disable Chromium client side build telemetry run: build_telemetry opt-out