docs links and text encoding: the two red checks of main's check job #2610
Closed
github-bot
wants to merge 1 commit from
github-bot/gh-2610 into main
AGit
pull from: github-bot/gh-2610
merge into: github:main
github:main
github:perf/darner-title-priority-ceiling
github:gh-readonly-queue/main/pr-3311-b5c45b663dbc5a9c3532bb3f307e5f81b32faefa
github:gh-readonly-queue/main/pr-3088-af22e7847ff5808f72d1a1881c24be2fafd20b54
github:gh-readonly-queue/main/pr-3123-7f3fa026a94c6646e89244f28e1ce22290361867
github:gh-readonly-queue/main/pr-3354-637baa0b77ba47222e7280b17c1a59c6a1781d57
github:gh-readonly-queue/main/pr-3365-d7a0e0196a43834813014b4bd3aa5502a8263b14
github:gh-readonly-queue/main/pr-3361-5dfe8bbd05ed12fb2f2e1718d9af77a7c5f46fd8
github:gh-readonly-queue/main/pr-3366-8da9148204e9d12c585efa9ac2b7cc1ab08c7682
github:fix/runtime-test-conservative-fixtures
github:ci/shard-semantic-linux
github:docs/fg-limit-fps-switch
github:fix/runtime-test-fixture-paths
github:fix/runtime-test-fixture-readers
github:fix/read-file-hard-link
github:fix/book-slot-heap-never-read
github:fix/depth-resolve-spv-path
github:fix/indirect-unused-batched
github:gh-pr/3358/base
github:fix/xmem-refusal-diagnostics
github:gh-pr/3357/base
github:ci/shorten-ci-time
github:fix/alias-later-queued-submissions
github:claude/gallant-sagan-aamatr
github:gh-pr/3342/base
github:gh-pr/3341/base
github:d3d12/agility-sdk-621
github:gh-pr/3293/base
github:gh-pr/3319/base
github:gh-pr/3318/base
github:gh-pr/3315/base
github:gh-pr/3313/base
github:gh-pr/3314/base
github:claude/fervent-curie-m19lnr
github:gh-pr/3216/base
github:gh-pr/3272/base
github:gh-pr/3276/base
github:gh-pr/3279/base
github:gh-pr/3257/base
github:gh-pr/3258/base
github:gh-pr/3271/base
github:codex/skip-no-hit-ray-passes
github:gh-pr/3230/base
github:gh-pr/3266/base
github:gh-pr/3247/base
github:gh-pr/3246/base
github:gh-pr/3244/base
github:claude/sharp-sagan-1jqnp3
github:t3/preserve-fsr-sdk-restart-path
github:t3/propagate-host-failure-hresult
github:t3/launcher-custom-parameters
github:t3/series-x-2160-startup
github:codex/d3d12-uncapped-simulation
github:ci/less-to-run
github:perf/native-compute-shader-forms
github:claude/blissful-franklin-ukp7ag
github:codex/full-precompile-default
github:gh-pr/3166/base
github:gh-pr/3148/base
github:gh-pr/3138/base
github:gh-pr/3106/base
github:gh-pr/3057/base
github:gh-pr/2756/base
github:gh-pr/2812/base
github:gh-pr/3032/base
github:gh-pr/2992/base
github:notes/card-time-and-plant-flicker
github:gh-pr/2986/base
github:gh-pr/3000/base
github:gh-pr/2966/base
github:gh-pr/2924/base
github:gh-pr/726/base
github:gh-pr/2761/base
github:gh-pr/2663/base
github:gh-pr/2861/base
github:gh-pr/2862/base
github:gh-pr/2820/base
github:gh-pr/2811/base
github:gh-pr/2803/base
github:rt-call-trace
github:gh-pr/2802/base
github:gh-pr/2766/base
github:perf/ahead-split
github:gh-pr/2589/base
github:gh-pr/2699/base
github:gh-pr/2696/base
github:docs/readme-runtime-proposal
github:gh-pr/1346/base
github:codex/coord-claim-check-20261124-7e48
No reviewers
Labels
Clear labels
accessibility
Barrier affecting people with disabilities
area: ci
.github/ workflows and settings
area: d3d12
The D3D12 runtime in d3d12/ (Rust: leonida.exe and its crates)
area: docs
Documentation
area: launcher
The launcher (launcher/)
area: runtime (legacy)
The earlier Vulkan runtime in runtime/
area: shader translator
The shader translator (leonida-shader, tools/rdna2spirv) and its tests
area: tools
tools/ and scripts/
area: viewer
The map viewer (viewer/)
bug
Something isn't working
dependencies
Pull requests that update a dependency file
documentation
Improvements or additions to documentation
duplicate
This issue or pull request already exists
enhancement
New feature or request
good first issue
Good for newcomers
help wanted
Extra attention is needed
invalid
This doesn't seem right
missing claim
Needs a claim in #14
needs in-game run
Changes the code a frame runs through: needs the 300 s in-game gate (docs/game_gate.md)
needs rebase
Conflicts with the base branch: rebase it on main
needs-triage
Needs maintainer evaluation before the next triage state
question
Further information is requested
ready-for-agent
Fully specified and ready for an AFK agent
submodules
Pull requests that update submodules code
wontfix
This will not be worked on
No labels
accessibility
area: ci
area: d3d12
area: docs
area: launcher
area: runtime (legacy)
area: shader translator
area: tools
area: viewer
bug
dependencies
documentation
duplicate
enhancement
good first issue
help wanted
invalid
missing claim
needs in-game run
needs rebase
needs-triage
question
ready-for-agent
submodules
wontfix
Milestone
Clear milestone
No items
No milestone
Assignees
Clear assignees
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".
No due date set.
Dependencies
No dependencies set
Reference
github/ubiquitarianism--leonida!2610
Loading…
Reference in a new issue
No description provided.
Delete branch "github-bot/gh-2610"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
@MoonEyes on GitHub · 2026-11-29 12:45 UTC · original
MoonEyes:fix/l0-docs-links-text-encoding→main· +13 −3 · 3 files · 1 commits · closed without mergingtest_docs_links: README.md keeps above "Where it stands" so the old links still land, but the checker only knew heading anchors. It now also reads explicit <a id/name> anchors (new test: test_explicit_html_anchor_is_an_anchor, red without the change). The Arabic quickstart's link to README#running-the-loader-on-linux, a section the README rewrite (a9e247cd6) moved out, now points at docs/linux.md.
test_text_encoding: scripts/windows-boot/test_crash_monitor.py:37 and :90 read stack.txt and the sentinel without encoding=; both are UTF-8 (the sentinel is written as b"original").
Tested on the current main (8fb974878): test_docs_links.py and test_text_encoding.py 21 passed (2 failed before). The crash monitor test itself runs on Windows only and was not run here.
Claude-Session: https://claude.ai/code/session_01DDMsHtPdJ5kt8t7A5i2fzu
Claimed in the coordination issue as:
Depends on:
Fixes:
What and why
Tested
GPUs tested:
AI-assisted:
Checklist
mainand merges cleanly (a conflicting pull request is labeledneeds rebase).docs/design.md, with how it was confirmed.checkjob d00de531b0@Tauwni on GitHub · 2026-11-29 12:58 UTC · original
Verdict: READY for the
test_text_encodinghalf. Thedocs_linkshalf is no longer needed on currentmain. Overlap below.Windows 10 Pro 22H2 19045.7846, CPython 3.14.6, through
scripts/run_standalone_tests.py. Headd00de531bmerged (no commit) into currentmain3535eb5c4, merges cleanly. MEASURED, 3 runs each:main3535eb5c4main+ this PRtests/test_docs_links.pytests/test_text_encoding.pytest_docs_linksis already green onmainsince #2593 landed: it restores the README link targets. So that part of this PR no longer turns anything green. It still adds explicit<a id>anchor support and its new test, which is fine on its own. On the oldermainb6bf3aa0b, both tests were red and both turn green with this PR. MEASURED, 3 runs.test_text_encodingis the still-red half:scripts/windows-boot/test_crash_monitor.py:37,90,read_text()withoutencoding=. READ IN CODE. The same item was claimed in the coordination issue as CI-CRASH-MONITOR-ENCODING, with a branch ready (claim). One of the two should land, not both.Not checked by a second agent or human yet. AI-assisted: yes (Claude Code).
@merzleckeier on GitHub · 2026-11-29 13:14 UTC · original
Independent Linux check on
3535eb5c4+d00de531bwith the project’s standalone runner (CPython 3.14.10).test_text_encodingfails on main at the two unpinned reads and passes with this PR.test_docs_linkspasses on both.The new anchor regex can also make a genuinely broken link pass. Put
<a data-id="fake"></a>inpage.mdand[link](page.md#fake)in another page. The patched checker accepts the fragment even though there is noidornameattribute. The same false acceptance happens for an anchor-looking example in an inline code span, in an HTML comment, or inside a quoted attribute value. Fenced examples were excluded correctly. I compared 10 synthetic cases with CommonMark-rendered HTML and found five false acceptances and two missed valid links.I tried
HTMLParserwith exactid/nameattributes after masking inline code and escaped opening brackets. That resolved the HTML extraction cases. The remaining encoded-fragment case also needed the existing same-pageunquote()applied to cross-page fragments. With those changes, all 10 cases matched the renderer and both project checks passed locally. This supports landing the text-encoding fix independently of the anchor work. AI-assisted with OpenAI Codex.@mabue777 on GitHub · 2026-11-29 13:51 UTC · original
VERIFY-2610, independent run (claimed in #2570).
Machine: Windows 11 Home (build 26200), Python 3.12.10. GPUs tested: n/a (no GPU tests in scope). AI-assisted: yes.
On
main(7b907de52):python -I tests/test_docs_links.py: 18 tests, FAILED (failures=1) — the README’s explicit<a id="project-status">anchor is not counted.python -I tests/test_text_encoding.py: 2 tests, FAILED (failures=1).On this head (
d00de531b):tests/test_docs_links.py: 19 tests, OK — includes the new explicit-anchor test.tests/test_text_encoding.py: 2 tests, OK.scripts/windows-boot/test_crash_monitor.pywas not run here either: it drives the CTest-built monitor and fixture binaries, and this machine has no MSVC/cmake. The change in that file is theencoding=fix thattest_text_encoding.pychecks.Hygiene:
git diff --check main...HEADclean;check_no_game_data.pyclean on all three changed files. Diff read: the changes match the description — the Arabic quickstart now linksdocs/linux.md, the checker counts explicit<a id/name>anchors, and the crash monitor reads its UTF-8 artifacts with explicit encoding.Verifies as claimed on Windows.
@fiestorra on GitHub · 2026-11-29 17:18 UTC · original
Heads-up on duplication, because two open pull requests change the same two lines of the same file.
This one sets
read_text(encoding="utf-8")inscripts/windows-boot/test_crash_monitor.py. #2616 does the same, with one difference:Both clear the same assertion (
test_every_text_file_call_pins_its_encoding), which is the one keepingcheck,stdlib-tests-linuxandmacos-pythonred onmain; whichever lands first makes the other's hunk a textual conflict on the same lines.Since this pull request also carries the docs-links part (
docs/i18n/ar/quickstart.md,tests/test_docs_links.py), the clean split is: this one takes thedocs-links fix and drops its
test_crash_monitor.pyhunk, leaving the encoding to #2616 - whoseerrors="replace"also covers a stack file whose module nameswere decoded through the code page, which is the case the test is about.
Not a claim on either: I verified #2616's head passes
tests/test_text_encoding.pyand left the decision to whoever owns the two branches.Written with an AI assistant.
@aegish-zagi on GitHub · 2026-11-29 20:25 UTC · original
VERIFY-2610 (independent verification, aegish-zagi)
d00de531b| merge state vs main: DOES NOT MERGE CLEANLY onto currentmainc2a726196— content conflict inscripts/windows-boot/test_crash_monitor.pymainhas already landed a stronger version of the same line —read_text(encoding="utf-8", errors="replace")— while this PR pins onlyencoding="utf-8".python3 -I tests/test_text_encoding.pypasses on plain currentmain, so the crash-monitor half of this PR is superseded.tests/test_docs_links.py19 tests OK;tests/test_text_encoding.py2 tests OK. On plainmainboth also pass.docs/i18n/ar/quickstart.mdlink fix and thetest_docs_links.pyadditions are not inmain; they pass on the PR head.Verdict: needs rebase — drop the
test_crash_monitor.pyhunk (already fixed onmain, in a stronger form) and keep the docs-link parts.@fiestorra on GitHub · 2026-11-30 05:41 UTC · original
Status on this machine: it does not apply, and unlike the pull requests where only the replay failed, here
merge-treefails too - GitHub could not merge this as it stands.Cherry-picking
d00de531bstops on the same file, so I could not runtests/test_docs_links.pyagainst it.What is worth saying about the change itself: the commit is "the two red checks of main's
checkjob", and it touches three files - the Arabic quickstart,tests/test_docs_links.py, andscripts/windows-boot/test_crash_monitor.py. That last one is a script with atest_prefix, not a test, andmainhas since moved under it: the file is the one that collided, so whatever fix it carried has almost certainly landed elsewhere in the meantime.What a rebase would do: it would tell us in one minute whether the fix is still needed at all. If
main'scheckjob is green today for those two checks, this pull request is obsolete rather than conflicted, and closing it is cleaner than resolving it. I could not check that from here - it needs the CI run on currentmain, which takes the workflow, not this machine.What I did not do: resolve the conflict. A conflicting script whose fix may already exist elsewhere is exactly the case where a stranger's resolution would look right and be wrong.
Written with an AI assistant.
@MoonEyes on GitHub · 2026-11-30 12:07 UTC · original
Closing my own pull request: on
mainec1d85846the link indocs/i18n/ar/quickstart.mdis right andscripts/windows-boot/test_crash_monitor.pypins its encoding. What is left is an anchor case intests/test_docs_links.pythat no page needs (checkis green onmain).AI-assisted (Claude Code). Closed at the owner's request (MoonEyes).
Pull request closed