Strengthen build infrastructure, public CI workflows and automated regression harness #9

Open
opened 2026-12-06 00:19:59 +00:00 by github-bot · 0 comments
Owner

@⁠VictoryX-dev on GitHub · 2026-12-03 02:57 UTC · original

Problem

As VictoryX opens to outside contributors, build, packaging and test automation need to work smoothly on standard developer machines and GitHub Actions without relying on machine-local paths or implicit tooling.

Known Evidence

  • Observed in repository at baseline:
    • runtime/.github/workflows/ci.yml covers clippy, test-default, test-diagnostics and check on windows-latest for runtime/, while launcher/ is a separate Cargo workspace that also needs CI coverage.
    • scripts/run-regression.ps1 runs synthetic hardware regression fixtures and no-title runtime commands, but requires PowerShell 7 (pwsh) and currently writes manifests under %LOCALAPPDATA% with a hardcoded internal subfolder name.
    • scripts/dev-build.ps1 and scripts/package.ps1 work locally on Windows, and runtime/xtask enforces the static asset policy inside runtime/ (not yet across top-level folders such as launcher/ or assets/).
  • Engineering target: Reproducible single-command builds, comprehensive CI across both runtime/ and launcher/, clear flaky-test tracking and clean synthetic regression reports.

Approaches That Did Not Work

  • Switching to rust-lld.exe as the Windows linker: Saved only ~0.12 s on link-dominated rebuilds (1.28–1.31 s vs 1.41–1.43 s with link.exe), not worth maintaining a second linker configuration.
  • Sharing one CARGO_TARGET_DIR across multiple worktrees: Incremental state is keyed by source path so only registry crates (~12 s of a 37–40 s build) are shared, while Cargo locks block parallel worktree builds.
  • lto = "off" in the fast profile: Dropped BCPack AVX2 throughput by ~3× (104–121 MB/s vs 354–357 MB/s with lto = false thin-local LTO).

Relevant Source Modules

  • runtime/.github/workflows/ci.yml
  • runtime/Cargo.toml
  • launcher/Cargo.toml
  • runtime/xtask/src/policy.rs
  • runtime/xtask/src/switches.rs
  • scripts/dev-build.ps1
  • scripts/package.ps1
  • scripts/run-regression.ps1
  • docs/BUILDING.md
  • docs/DEVELOPMENT.md

Expected Contribution

  • Expand GitHub Actions CI to cover launcher/ tests/clippy alongside runtime/ and keep xtask policy running on every pull request.
  • Automate development pre-releases after every successful merge into main while keeping stable releases under manual maintainer approval, building release binaries with --remap-path-prefix so personal filesystem paths are never embedded, and bundling THIRD-PARTY-NOTICES plus third-party SDK DLLs only where explicitly permitted by their licence.
  • Extend xtask asset-policy coverage or add an equivalent repo-root check (including safe allowlisting for small plain-text SVG files under assets/).
  • Make scripts/run-regression.ps1 output location configurable via parameter and ensure WARP-compatible subsets can run cleanly in headless CI environments.
  • Resolve any TODO(infra) placeholders in docs/BUILDING.md and docs/DEVELOPMENT.md.

Acceptance Criteria

  • CI validates both runtime/ and launcher/ cleanly on windows-latest.
  • Asset-policy checks protect the whole repository without false positives on tracked documentation or SVG assets.
  • scripts/run-regression.ps1 works cleanly on a fresh clone with zero hardcoded machine paths.
**@⁠VictoryX-dev** on GitHub · 2026-12-03 02:57 UTC · [original](https://github.com/VictoryX-dev/VictoryX/issues/9) ## Problem As VictoryX opens to outside contributors, build, packaging and test automation need to work smoothly on standard developer machines and GitHub Actions without relying on machine-local paths or implicit tooling. ## Known Evidence - **Observed in repository at baseline:** - `runtime/.github/workflows/ci.yml` covers `clippy`, `test-default`, `test-diagnostics` and `check` on `windows-latest` for `runtime/`, while `launcher/` is a separate Cargo workspace that also needs CI coverage. - `scripts/run-regression.ps1` runs synthetic hardware regression fixtures and no-title runtime commands, but requires PowerShell 7 (`pwsh`) and currently writes manifests under `%LOCALAPPDATA%` with a hardcoded internal subfolder name. - `scripts/dev-build.ps1` and `scripts/package.ps1` work locally on Windows, and `runtime/xtask` enforces the static asset policy inside `runtime/` (not yet across top-level folders such as `launcher/` or `assets/`). - **Engineering target:** Reproducible single-command builds, comprehensive CI across both `runtime/` and `launcher/`, clear flaky-test tracking and clean synthetic regression reports. ## Approaches That Did Not Work - **Switching to `rust-lld.exe` as the Windows linker:** Saved only ~0.12 s on link-dominated rebuilds (`1.28–1.31 s` vs `1.41–1.43 s` with `link.exe`), not worth maintaining a second linker configuration. - **Sharing one `CARGO_TARGET_DIR` across multiple worktrees:** Incremental state is keyed by source path so only registry crates (~12 s of a 37–40 s build) are shared, while Cargo locks block parallel worktree builds. - **`lto = "off"` in the `fast` profile:** Dropped BCPack AVX2 throughput by ~3× (`104–121 MB/s` vs `354–357 MB/s` with `lto = false` thin-local LTO). ## Relevant Source Modules - `runtime/.github/workflows/ci.yml` - `runtime/Cargo.toml` - `launcher/Cargo.toml` - `runtime/xtask/src/policy.rs` - `runtime/xtask/src/switches.rs` - `scripts/dev-build.ps1` - `scripts/package.ps1` - `scripts/run-regression.ps1` - `docs/BUILDING.md` - `docs/DEVELOPMENT.md` ## Expected Contribution - Expand GitHub Actions CI to cover `launcher/` tests/clippy alongside `runtime/` and keep `xtask policy` running on every pull request. - Automate **development pre-releases** after every successful merge into `main` while keeping **stable releases** under manual maintainer approval, building release binaries with `--remap-path-prefix` so personal filesystem paths are never embedded, and bundling `THIRD-PARTY-NOTICES` plus third-party SDK DLLs only where explicitly permitted by their licence. - Extend `xtask` asset-policy coverage or add an equivalent repo-root check (including safe allowlisting for small plain-text SVG files under `assets/`). - Make `scripts/run-regression.ps1` output location configurable via parameter and ensure WARP-compatible subsets can run cleanly in headless CI environments. - Resolve any `TODO(infra)` placeholders in `docs/BUILDING.md` and `docs/DEVELOPMENT.md`. ## Acceptance Criteria - [ ] CI validates both `runtime/` and `launcher/` cleanly on `windows-latest`. - [ ] Asset-policy checks protect the whole repository without false positives on tracked documentation or SVG assets. - [ ] `scripts/run-regression.ps1` works cleanly on a fresh clone with zero hardcoded machine paths.
github-bot locked as GitHub sync and limited conversation to collaborators 2026-12-06 00:20:02 +00:00
This discussion has been locked. Commenting is limited to contributors.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
github/VictoryX-dev--VictoryX#9
No description provided.