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

Đang mở
#799 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
18/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
cmake, github-actions, powershell, python, yaml

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

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)
Ngôn ngữ chính
Python
Star
14.9k
Fork
1.2k
Merge trung bình
1 giờ 58 phút
Pull request đã merge (30 ngày)
40

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của ItsNotRexed/Leonida

Tất cả issue của ItsNotRexed/Leonida

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.