Repository navigation
ci(build): run the write watch tests when WriteWatchBacking.cpp changes - #13997
Merged
Merged
Conversation
Contributor
|
Windows result for head Host: Windows 11 26300, Python 3.13.5.
AI-assisted: yes (Claude Code), the runs and the numbers above are from this machine. |
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
force-pushed
the
ci/write-watch-backing-gate
branch
from
November 4, 2026 11:37
e5ef798 to
8f95722
Compare
Collaborator
|
Checked the gate against |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The write-watch job builds every target of
core/libs/tests/write_watch, which includeswrite_watch_backing_tests, compiled fromcore/libs/tests/WriteWatchBacking.cpp(added by 1f1da4b). The eligibility gate in.github/workflows/build.ymllisted onlycore/libs/tests/WriteWatch.cpp, so a pull request that changed only the backing test skipped the job.76efb71ca2ci(build): addscore/libs/tests/WriteWatchBacking.cppto the write-watch gate (one line).37d0c58f3dtest(tools): pins the gate for the backing test intools/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 undercore/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.txtregisters 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/main73f4f7e06e:build.ymland run under Node with mocked GitHub calls. Onupstream/main,core/libs/tests/WriteWatchBacking.cppgiveswrite-watch=false. On this branch (37d0c58f3d) it giveswrite-watch=true. The other paths give the same result as before.python3 tools/tests/test_build_eligibility.py: 11 tests, OK.build.ymlrestored fromupstream/mainwith the new test in place givesFAILED (failures=1), withFalse is not Trueforcore/libs/tests/WriteWatchBacking.cpp. TheWriteWatch.cppsubtest still passes.python3 tools/check_conventions.py --base upstream/main: all conventions checks passed.git diff --check upstream/main: clean.build.ymlparses 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
main; no other open PR implements the same functionsNotImplemented_nid_no_patch); silent stubs are listed under Silent stubs in their library's technical debt file.mdfiles or images added to the repository (attach them to this PR)