Skip to content

ci(build): run the write watch tests when WriteWatchBacking.cpp changes - #13997

Merged
adriadam10 merged 2 commits into
boykopovar:mainfrom
MarcZX10:ci/write-watch-backing-gate
Nov 8, 2026
Merged

adriadam10 merged 2 commits into
boykopovar:mainfrom
MarcZX10:ci/write-watch-backing-gate

Conversation

@MarcZX10

@MarcZX10 MarcZX10 commented Oct 31, 2026 •

Copy link
Copy Markdown
Contributor

What

The write-watch job builds every target of core/libs/tests/write_watch, which includes write_watch_backing_tests, compiled from core/libs/tests/WriteWatchBacking.cpp (added by 1f1da4b). The eligibility gate in .github/workflows/build.yml listed only core/libs/tests/WriteWatch.cpp, so a pull request that changed only the backing test skipped the job.

  • 76efb71ca2 ci(build): adds core/libs/tests/WriteWatchBacking.cpp to the write-watch gate (one line).
  • 37d0c58f3d test(tools): pins the gate for the backing test in tools/tests/test_build_eligibility.py.

The register-context gate was checked as well. Its test compiles only RegisterContext.cpp, and the libc headers that file includes are under core/libs/prx/libc/, which the gate already lists. No change there.

The write-watch check fails on main until #13220 merges: core/libs/tests/write_watch/CMakeLists.txt registers two test names twice, so the macOS write-watch configure stops. This PR does not change that file.

Tested

Linux, Python 3.11.2, Node v20.19.2, on upstream/main 73f4f7e06e:

  • The gate script extracted from build.yml and run under Node with mocked GitHub calls. On upstream/main, core/libs/tests/WriteWatchBacking.cpp gives write-watch=false. On this branch (37d0c58f3d) it gives write-watch=true. The other paths give the same result as before.
  • python3 tools/tests/test_build_eligibility.py: 11 tests, OK.
  • Negative control: build.yml restored from upstream/main with the new test in place gives FAILED (failures=1), with False is not True for core/libs/tests/WriteWatchBacking.cpp. The WriteWatch.cpp subtest still passes.
  • python3 tools/check_conventions.py --base upstream/main: all conventions checks passed.
  • git diff --check upstream/main: clean. build.yml parses as YAML.

Not run: the hosted GitHub Actions runs (the gate takes effect on a real pull request run) and the C++ build and CTest (no C++ changed).

Checklist

  • Based on current main; no other open PR implements the same functions
  • One topic per PR; follow-ups go in a new PR
  • No comments in code except technical debt
  • Unimplemented paths throw (NotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file
  • No notes, investigation .md files or images added to the repository (attach them to this PR)
  • New third-party code is a submodule built from source
  • Generic behaviour, not specific to one title
  • Depends on: test(libc): register the macOS write watch fault tests once #13220
  • Fixes: none
  • Unblocks: none
  • GPUs tested: n/a
  • AI-assisted: yes

@github-actions github-actions Bot added the ci .github label Oct 31, 2026
@github-actions

github-actions Bot commented Oct 31, 2026 •

Copy link
Copy Markdown

Some comparisons could not be completed because a pull request conflicts with the base branch. Review these shared files manually before concluding that there is no overlap.

Pull request Shared files not compared
PR 14906 .github/workflows/build.yml
PR 15153 .github/workflows/build.yml

@maskym

maskym commented Nov 1, 2026

Copy link
Copy Markdown
Contributor

Windows result for head e5ef798fa8, merged alone into main f2d874c1fd (the PR's Tested section names no Windows run).

Host: Windows 11 26300, Python 3.13.5.

python -m unittest tools.tests.test_build_eligibility: OK, three runs. Not run on a PS5.

AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine.

@github-actions github-actions Bot added the needs rebase Conflicts with main, rebase needed label Nov 2, 2026
The write-watch job builds every target of core/libs/tests/write_watch,
including write_watch_backing_tests, which is compiled from
core/libs/tests/WriteWatchBacking.cpp. The eligibility gate only listed
WriteWatch.cpp, so a pull request that changed only the backing test
skipped the job. Running the gate on upstream/main reports
write-watch=false for that file.

Add the backing test to the write-watch gate.
The eligibility harness covered the write-watch gate for a file under
write_watch/ and for WriteWatch.cpp, but not for the backing test that
the write-watch job also builds. Without the gate entry the backing test
gives write-watch=False.
@MarcZX10
MarcZX10 force-pushed the ci/write-watch-backing-gate branch from e5ef798 to 8f95722 Compare November 4, 2026 11:37
@github-actions github-actions Bot removed the needs rebase Conflicts with main, rebase needed label Nov 4, 2026
@adriadam10 adriadam10 self-assigned this Nov 6, 2026
@adriadam10
adriadam10 merged commit c2ea254 into boykopovar:main Nov 8, 2026
62 of 66 checks passed
@adriadam10

Copy link
Copy Markdown
Collaborator

Checked the gate against write_watch/CMakeLists.txt (write_watch_backing_tests builds from WriteWatchBacking.cpp), the new test fails without the build.yml line, and the write-watch, eligibility and conventions checks are green on this head; the only non-green job was a Windows run that timed out without a failure log, unrelated to this diff; merged.

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

Labels

ci .github

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants