Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 19 additions & 2 deletions .github/workflows/coverage-ut.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,16 @@ name: MatrixOne UT Coverage
on:
workflow_call:
inputs:
runner_label:
description: "Runner label for UT coverage; defaults to the existing Guangzhou runner"
required: false
type: string
default: "amd64-mo-guangzhou-2xlarge16"
go_proxy:
description: "Go module proxy chain reachable from the selected runner"
required: false
type: string
default: "http://goproxy.goproxy.svc.cluster.local,https://goproxy.cn,https://proxy.golang.org"
cache_seed:
description: "Opt-in host-ut-v1 cache canary; keep disabled until end-to-end cost is measured"
required: false
Expand Down Expand Up @@ -145,7 +155,7 @@ jobs:
# Preserve the Guangzhou network path and capacity used by main's
# external Aliyun/QCloud coverage UT. This is intentionally larger than
# the UT-only minimum while we validate the external-storage timeout fix.
runs-on: amd64-mo-guangzhou-2xlarge16
runs-on: ${{ inputs.runner_label }}
# The cache-enabled failure path has 305m of step limits: 20m for the
# two checkouts, 20m cache seeding, 190m coverage, 15m Go/Python setup,
# 5m cache status, and 55m for failure reports, artifacts, final status,
Expand All @@ -156,6 +166,13 @@ jobs:
# test.
timeout-minutes: 310
steps:
- name: Install CS runner build dependencies
if: ${{ startsWith(inputs.runner_label, 'cs-') }}
timeout-minutes: 10
run: |
set -euo pipefail
sudo apt-get update
sudo apt-get install -y build-essential pkg-config python3 python-is-python3
- name: Checkout MatrixOne source
# Low-speed limits apply after connection; proxy CONNECT/TLS stalls
# can still consume libcurl's 300s connection timeout. The 10m step
Expand Down Expand Up @@ -228,7 +245,7 @@ jobs:
timeout-minutes: 190
continue-on-error: true
env:
GOPROXY: http://goproxy.goproxy.svc.cluster.local,https://goproxy.cn,https://proxy.golang.org
GOPROXY: ${{ inputs.go_proxy }}
COVERAGE_UT_TEST_TIMEOUT_SECONDS: "3600"
# The go test package deadline below is 20m; it must leave time for
# the runner's 60m whole-suite deadline and diagnostics.
Expand Down
Loading