mirror of
https://github.com/MobileGL-Dev/MobileGL
synced 2026-11-24 02:02:15 +09:00
[CI] (.github/workflows): run the validation branch in the split CI shape
This commit is contained in:
1 parent
25c984927d
commit
b48145ced5
2 files changed
+16
-14
No files matched your search
@@ -11,6 +11,7 @@ on:
|
|||||||
# someone remembering to dispatch the workflow by hand.
|
# someone remembering to dispatch the workflow by hand.
|
||||||
- feat/disaggregated
|
- feat/disaggregated
|
||||||
- codex/fix-github-ci
|
- codex/fix-github-ci
|
||||||
|
- ci/round-30min
|
||||||
- cleanup
|
- cleanup
|
||||||
# A push that only touches these paths changes nothing this workflow builds or replays. The
|
# A push that only touches these paths changes nothing this workflow builds or replays. The
|
||||||
# Test workflow keeps running for docs: it hosts the doc citation lint. The Android build
|
# Test workflow keeps running for docs: it hosts the doc citation lint. The Android build
|
||||||
@@ -73,7 +74,7 @@ jobs:
|
|||||||
CCACHE_MAXSIZE: 1500M
|
CCACHE_MAXSIZE: 1500M
|
||||||
CCACHE_NOHASHDIR: "true"
|
CCACHE_NOHASHDIR: "true"
|
||||||
MOBILEGL_CMAKE_COMPILER_LAUNCHER: ccache
|
MOBILEGL_CMAKE_COMPILER_LAUNCHER: ccache
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -301,7 +302,7 @@ jobs:
|
|||||||
name: trace case matrix
|
name: trace case matrix
|
||||||
runs-on: ubuntu-26.04
|
runs-on: ubuntu-26.04
|
||||||
env:
|
env:
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
# How much replay one emulator job aims for, in seconds as the duration hints count them.
|
# How much replay one emulator job aims for, in seconds as the duration hints count them.
|
||||||
# A (lane, transport, backend) cell is cut into as many shards as that takes, and its
|
# A (lane, transport, backend) cell is cut into as many shards as that takes, and its
|
||||||
# cases are spread so the shards of a cell come out even (tools/trace_replay/trace_cases.py,
|
# cases are spread so the shards of a cell come out even (tools/trace_replay/trace_cases.py,
|
||||||
@@ -786,7 +787,7 @@ jobs:
|
|||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
env:
|
env:
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
|
|||||||
+12
-11
@@ -11,6 +11,7 @@ on:
|
|||||||
# someone remembering to dispatch the workflow by hand.
|
# someone remembering to dispatch the workflow by hand.
|
||||||
- feat/disaggregated
|
- feat/disaggregated
|
||||||
- codex/fix-github-ci
|
- codex/fix-github-ci
|
||||||
|
- ci/round-30min
|
||||||
- cleanup
|
- cleanup
|
||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
@@ -46,7 +47,7 @@ jobs:
|
|||||||
build-type: ${{ steps.configure.outputs.build-type }}
|
build-type: ${{ steps.configure.outputs.build-type }}
|
||||||
env:
|
env:
|
||||||
BUILD_DIR: build-linux
|
BUILD_DIR: build-linux
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
CCACHE_BASEDIR: ${{ github.workspace }}
|
CCACHE_BASEDIR: ${{ github.workspace }}
|
||||||
CCACHE_COMPRESS: "true"
|
CCACHE_COMPRESS: "true"
|
||||||
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
CCACHE_DIR: ${{ github.workspace }}/.ccache
|
||||||
@@ -389,7 +390,7 @@ jobs:
|
|||||||
# Initialize()'s glslang table prewarm. The retrace legs keep it: they replay real apps.
|
# Initialize()'s glslang table prewarm. The retrace legs keep it: they replay real apps.
|
||||||
env:
|
env:
|
||||||
MOBILEGL_DISABLE_SHADER_PREWARM: "1"
|
MOBILEGL_DISABLE_SHADER_PREWARM: "1"
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -471,7 +472,7 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include: ${{ fromJSON((github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && '[{"lane":"monolith-control","transport":"monolith"},{"lane":"inproc-acceptance","transport":"inproc"}]' || '[{"lane":"monolith-control","transport":"monolith"}]') }}
|
include: ${{ fromJSON((github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && '[{"lane":"monolith-control","transport":"monolith"},{"lane":"inproc-acceptance","transport":"inproc"}]' || '[{"lane":"monolith-control","transport":"monolith"}]') }}
|
||||||
env:
|
env:
|
||||||
# Short-lived test processes skip the glslang prewarm, as in the test job.
|
# Short-lived test processes skip the glslang prewarm, as in the test job.
|
||||||
MOBILEGL_DISABLE_SHADER_PREWARM: "1"
|
MOBILEGL_DISABLE_SHADER_PREWARM: "1"
|
||||||
@@ -479,7 +480,7 @@ jobs:
|
|||||||
MOBILEGL_IPC_ROLE_SPLIT_STATE: "1"
|
MOBILEGL_IPC_ROLE_SPLIT_STATE: "1"
|
||||||
MOBILEGL_IPC_STRICT_ERRORS: "1"
|
MOBILEGL_IPC_STRICT_ERRORS: "1"
|
||||||
MOBILEGL_IPC_RUN_AHEAD: "1"
|
MOBILEGL_IPC_RUN_AHEAD: "1"
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -1169,7 +1170,7 @@ jobs:
|
|||||||
name: build guard (split reuse)
|
name: build guard (split reuse)
|
||||||
runs-on: ubuntu-26.04
|
runs-on: ubuntu-26.04
|
||||||
timeout-minutes: 150
|
timeout-minutes: 150
|
||||||
if: ${{ github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup' }}
|
if: ${{ github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup' }}
|
||||||
# Consumers read only its outputs, and any verdict but 'identical' (none at all included)
|
# Consumers read only its outputs, and any verdict but 'identical' (none at all included)
|
||||||
# keeps both builds.
|
# keeps both builds.
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
@@ -1178,7 +1179,7 @@ jobs:
|
|||||||
image: ${{ steps.guard.outputs.image }}
|
image: ${{ steps.guard.outputs.image }}
|
||||||
compiler: ${{ steps.guard.outputs.compiler }}
|
compiler: ${{ steps.guard.outputs.compiler }}
|
||||||
env:
|
env:
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
# Every step may fail without failing the job: a setup step that failed leaves a configure
|
# Every step may fail without failing the job: a setup step that failed leaves a configure
|
||||||
# that fails, which the guard reports as 'unknown'.
|
# that fails, which the guard reports as 'unknown'.
|
||||||
@@ -1550,7 +1551,7 @@ jobs:
|
|||||||
SPLIT_REUSE: ${{ needs.build-guard.outputs.verdict == 'identical' && 'true' || 'false' }}
|
SPLIT_REUSE: ${{ needs.build-guard.outputs.verdict == 'identical' && 'true' || 'false' }}
|
||||||
SPLIT_BUILD_DIR: ${{ needs.build-guard.outputs.verdict == 'identical' && 'build-linux' || 'build-split' }}
|
SPLIT_BUILD_DIR: ${{ needs.build-guard.outputs.verdict == 'identical' && 'build-linux' || 'build-split' }}
|
||||||
SPLIT_RUNTIME: ${{ needs.build-guard.outputs.verdict == 'identical' && 'mobilegl-linux-runtime' || 'mobilegl-linux-runtime-split' }}
|
SPLIT_RUNTIME: ${{ needs.build-guard.outputs.verdict == 'identical' && 'mobilegl-linux-runtime' || 'mobilegl-linux-runtime-split' }}
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -1895,7 +1896,7 @@ jobs:
|
|||||||
SPLIT_REUSE: ${{ needs.build-guard.outputs.verdict == 'identical' && 'true' || 'false' }}
|
SPLIT_REUSE: ${{ needs.build-guard.outputs.verdict == 'identical' && 'true' || 'false' }}
|
||||||
SPLIT_BUILD_DIR: ${{ needs.build-guard.outputs.verdict == 'identical' && 'build-linux' || 'build-split' }}
|
SPLIT_BUILD_DIR: ${{ needs.build-guard.outputs.verdict == 'identical' && 'build-linux' || 'build-split' }}
|
||||||
SPLIT_RUNTIME: ${{ needs.build-guard.outputs.verdict == 'identical' && 'mobilegl-linux-runtime' || 'mobilegl-linux-runtime-split' }}
|
SPLIT_RUNTIME: ${{ needs.build-guard.outputs.verdict == 'identical' && 'mobilegl-linux-runtime' || 'mobilegl-linux-runtime-split' }}
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -2800,7 +2801,7 @@ jobs:
|
|||||||
name: trace case matrix
|
name: trace case matrix
|
||||||
runs-on: ubuntu-26.04
|
runs-on: ubuntu-26.04
|
||||||
env:
|
env:
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
# How many jobs replay one (lane, transport, backend) cell of the Linux retrace lanes. Each
|
# How many jobs replay one (lane, transport, backend) cell of the Linux retrace lanes. Each
|
||||||
# job replays its share of the cell's cases one after another; a cell with little to
|
# job replays its share of the cell's cases one after another; a cell with little to
|
||||||
# replay gets fewer jobs (tools/trace_replay/trace_cases.py, shard_matrix).
|
# replay gets fewer jobs (tools/trace_replay/trace_cases.py, shard_matrix).
|
||||||
@@ -3125,7 +3126,7 @@ jobs:
|
|||||||
actions: write
|
actions: write
|
||||||
contents: read
|
contents: read
|
||||||
env:
|
env:
|
||||||
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
MOBILEGL_CI_DISAGGREGATED: ${{ (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && 'ON' || 'OFF' }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- name: Checkout repo
|
- name: Checkout repo
|
||||||
@@ -3574,7 +3575,7 @@ jobs:
|
|||||||
- build-linux-monolith-control
|
- build-linux-monolith-control
|
||||||
- build-retrace
|
- build-retrace
|
||||||
- trace-cases
|
- trace-cases
|
||||||
if: ${{ !cancelled() && (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'cleanup') && needs.build-linux-monolith-control.result == 'success' && needs.build-retrace.result == 'success' && needs.trace-cases.result == 'success' }}
|
if: ${{ !cancelled() && (github.ref_name == 'dev' || github.ref_name == 'feat/disaggregated' || github.ref_name == 'codex/fix-github-ci' || github.ref_name == 'ci/round-30min' || github.ref_name == 'cleanup') && needs.build-linux-monolith-control.result == 'success' && needs.build-retrace.result == 'success' && needs.trace-cases.result == 'success' }}
|
||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
|
|||||||
Reference in new issue
Block a user