CI & DevEx: eliminate path-filter blind spots, enforce strict workflow linting, and align local tooling

未关闭
#799 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
18/100
Issue 类型
重构
描述清晰度
基本清楚
活跃度
活跃
技术栈
cmake, github-actions, powershell, python, yaml

调研方向

Start with .github/workflows/runtime.yml, ci.yml, no-game-data.yml, jactionlint.yml and .github/dependabot.yml, then runtime/CMakePresets.json and scripts/build_runtime.ps1. The work is split across four linked PRs (#800 to #803) that depend on each other, so it is already claimed and sequenced. Done means the listed PRs merge with CI green and jactionlint passing the default profile.

由索引模型根据 Issue 内容生成。

描述

Follow-up to #418 addressing four gaps left after the first CI round:

  1. Path-filter & test-discovery blind spots: .github/workflows/runtime.yml currently uses a paths: allow-list, so adding a new vendored C++ library under third_party/ or helper under scripts/ silently skips Runtime. Meanwhile ci.yml only globs top-level tests/test_*.py and hardcodes tests/test_viewer_streaming.cjs, so tests added in new subdirectories or .cjs files would be skipped silently. Also aligns concurrency (PR-only cancellation + unique non-PR groups matching 78e6c90) across runtime.yml, no-game-data.yml, and jactionlint.yml.
  2. Strict workflow & Dependabot hygiene: All workflows now declare timeout-minutes and concurrency, leaving only 3 jactionlint --profile default findings (runtime.yml pipeline without pipefail + missing 7-day cooldowns in dependabot.yml). Fixing those lets us promote jactionlint.yml to profile: default and add weekly grouped pip (tests/requirements.txt) and nuget (tools/rpf9dump, tests/Rpf9DumpDiagnostics) Dependabot updates.
  3. CI / local runtime alignment: Share runtime/CMakePresets.json (windows-ninja, linux-ninja) between runtime.yml and scripts/build_runtime.ps1 (plus -Test switch) so local builds use the same Ninja + LEONIDA_D3D12_SHIM_TESTS=ON flags as CI without requiring sccache, and align runtime.yml's linux-gpu-tools job from llvm-18 to llvm-21 to match ci.yml and docs/testing.md.
  4. Single-command local verification: Add stdlib-only scripts/run_checks.py (with unit tests) mirroring CI's checks locally, and update CONTRIBUTING.md to document tests/requirements.txt, Rpf9DumpDiagnostics, header-only Vulkan-Headers, and jactionlint.
Consequences & trade-offs
  • Switching runtime.yml to paths-ignore: means future unknown directories run Runtime by default (safe-by-default) while still skipping docs, tests, viewer, and assets PRs.
  • dependabot.yml adds weekly grouped pip and nuget PRs capped at open-pull-requests-limit: 1 with a 7-day release cooldown.
  • docs/testing.md is intentionally left untouched in this batch.
PRs
  • #800 — CI: use deny-list path filtering in Runtime and generalize test discovery (base: main)
  • #801 — CI: promote jactionlint to default profile and add Dependabot cooldowns and pip/NuGet updates (depends on #800)
  • #802 — CI: share runtime CMakePresets across local/CI builds and upgrade Runtime Linux job to LLVM 21 (depends on #801)
  • #803 — DevEx: add local CI check runner script and update contributor guide (independent, base: main)
主要语言
Python
星标
14.9k
派生
1.2k
平均合并
1 小时 58 分钟
30 天内合并 PR
40

环境准备

这个项目没有提供开发容器、Dockerfile 或贡献指南,环境需要你自己搭建:先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

ItsNotRexed/Leonida 的其他 Issue

查看 ItsNotRexed/Leonida 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。