Skip to content

ci: matrix sanitized Linux jobs - #28039

Open
ulises-jeremias wants to merge 2 commits into
vlang:masterfrom
ulises-jeremias:ci/sanitized-matrix
Open

ci: matrix sanitized Linux jobs#28039
ulises-jeremias wants to merge 2 commits into
vlang:masterfrom
ulises-jeremias:ci/sanitized-matrix

Conversation

@ulises-jeremias

@ulises-jeremias ulises-jeremias commented Aug 6, 2026

Copy link
Copy Markdown
Member

Closes #27841. Part of #27835.

This is the first incremental PR for #27841 (1A matrix) — stacked base for #28040.

  • Refactor the 7 Linux sanitizer jobs in sanitized_ci.yml into a single matrix job sanitize-linux with strategy.fail-fast: false and 7 include entries: undefined-clang, undefined-gcc, address-clang, address-gcc, memory-clang, memory-clang-compiler, address-clang-without-gc.
  • Keep sanitize-address-msvc (Windows) separate as before.
  • Preserve VFLAGS, ASAN_OPTIONS, UBSAN_OPTIONS, LSAN_OPTIONS, timeout-minutes (120/150/300), concurrency.cancel-in-progress, path gates and env: SANITIZER_*_PACKAGES from ci: factor sanitizer package lists #27863.
  • No logic change — only deduplication. Job display names stay sanitize-<name> so branch protection can keep the same 8 checks (7 Linux matrix + 1 Windows).

Stack: base of #28040 (ci/sanitized-setup-v). Follow-ups for #27841: 1B setup-v + cache-apt (#28040) and 1C timeout tuning.

Validation

  • ruby -ryaml -e "YAML.load_file('.github/workflows/sanitized_ci.yml')" — YAML ok, 2 runs-on: entries.
  • git diff --check — no whitespace errors.

Fixes #27841

Refactor the 7 Linux sanitizer jobs in sanitized_ci.yml into a single
matrix job (sanitize-linux) with 7 include entries (undefined-clang/gcc,
address-clang/gcc, memory-clang, memory-clang-compiler,
address-clang-without-gc). Keep Windows sanitize-address-msvc separate.
Preserve VFLAGS/ASAN/UBSAN/LSAN, timeouts (120/150/300), path gates,
concurrency and env SANITIZER_*_PACKAGES from the factored lists
(vlang#27863). No logic change, only deduplication.

Refs vlang#27841
Use ${{ matrix.* }} in if conditions to match GitHub Actions
expression syntax (as used in tools_ci.yml). No logic change.

Refs vlang#27841
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CI: refactor Sanitized CI matrix and timeout policy

1 participant