Call for contributions: tests and tools (lavapipe replay tests, frame capture, sanitizer failures)

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

维护者通常 1 天内回复

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
54/100
Issue 类型
功能
描述清晰度
基本清楚
活跃度
活跃
技术栈
cpp, github-actions, python
领域
testing, tooling

调研方向

Choose one contribution before starting and comment on this issue to coordinate. For export coverage, read core/libs/tests/GuestKernelBarrierInitBounds.cpp, select a library with many exports and few tests, and add an edge case such as a null pointer, bad handle, or zero size; done means the focused test passes with ctest. For a sanitizer failure, inspect .github/sanitizer-known-failures.txt and follow the build steps in docs/dev/BUILD.md; fix one listed cause and remove its entry.

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

描述

area: tools-ci enhancement help wanted medium

Call for contributions: tests and tools

Why

The project has no console and the CI has no GPU, so the tests are what keeps the CPU side honest. Three open pieces make them better, and none needs a game.

What to pick
  1. Replay tests on lavapipe (#206). tools/lavapipe_skip.txt lists 39 skipped tests; the replay tests among them are skipped because the renderer's device selection refuses lavapipe: it requires VK_EXT_image_view_min_lod and a subgroup size of 32 or 64 (core/kyty/graphics/presentation/window/vulkanWindow.cpp). Make selection accept lavapipe for the replay tests, with shaders unchanged on GPUs that have wave32 or wave64, and shrink the skip list. Discussion and constraints are in #206.
  2. Frame capture from the Kyty driver (#212). agc_frame_replay replays a recorded frame offline and tools/frame_replay_compare.py compares two replays, but the recorder (FrameRecorder, APS5_FRAME_CAPTURE) belongs to the previous driver. Record captures from the Kyty driver so a rendering bug can become an offline test. Discussion in #212.
  3. Sanitizer failures. .github/sanitizer-known-failures.txt lists 16 tests that fail under ThreadSanitizer or AddressSanitizer, each with its cause. Most of the AddressSanitizer ones stop because the ASan build moves the guest arena out of the range the tests assume (fixed guest addresses, arena checks): making the tests, or the arena placement, ASan-aware removes many lines at once. Pick one, fix it, and remove its line.
  4. The progress scanner. tools/progress.py fails on AnyKyty with "is not a source tree" because it still reads the removed core/shader tree for its shader numbers, and its workflows only run on main. Make the library scan work on its own (and on AnyKyty), and keep the pull-request report (--compare). It is the tool the calls above use for their counts.
  5. Export coverage. Libraries with large export counts but few tests: pick one and add tests for its edge cases (null pointers, bad handles, zero sizes), following core/libs/tests/GuestKernelBarrierInitBounds.cpp.
Expected result

Fewer skipped tests, one more way to turn a field report into a repeatable case, fewer known failures, and a scanner that works on the current line.

How to test without our games

The pieces above are the tests themselves. Use tools/lavapipe_tests.sh for the lavapipe list, ctest for the rest, the sanitizer builds described in docs/dev/BUILD.md, and a small Python test for the scanner.

Difficulty

Medium; good first issue for the export coverage and for the simplest sanitizer failures.

Who to ask

Ask in this issue, or in #206 and #212 for those two pieces.

Rules that apply to every call
  • Comment on the issue before you start, so two people do not do the same work. One topic per pull request, against AnyKyty.
  • Conventional Commits (fix(libkernel): ..., feat(libScePad): ..., test(...), docs: ...). No comments in code. Nothing specific to one title: no title IDs, no data taken from a game, no per-title branches.
  • Every export either does exactly what it should or throws: an unimplemented export calls NotImplemented_nid_no_patch(__func__). A silent stub is allowed only when it unblocks a title and only affects the UI; list it under "Silent stubs" in the library's file in docs/dev/debt/ through a fragment (docs/dev/debt/changes/<branch>.md, see docs/dev/TechnicalDebt.md).
  • Say where a behaviour comes from: public SDK headers and documentation, a published reverse-engineering write-up, or your own analysis of your own console's system modules. Do not post or attach firmware files, system modules or game files.
  • Each test finishes in 30 s on the CI runners. python3 tools/check_conventions.py --base origin/AnyKyty must pass before you push.
  • Build and test: docs/dev/START_HERE.md and docs/dev/BUILD.md. CI runs the library tests on GitHub's runners (no GPU, no game) on Linux and Windows.
主要语言
C++
星标
214
派生
7
平均合并
7 小时 53 分钟
30 天内合并 PR
280

环境准备

从这里开始

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

simnJS/AnyPS5 的其他 Issue

查看 simnJS/AnyPS5 的全部 Issue

相似的 Issue

更多 C++ Issue

把新 issue 发到你的邮箱

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