Ignore commented GDK table rows #2671
Loading…
Reference in a new issue
No description provided.
Delete branch "upstream-pr/2681"
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?
Imported from ivall/xcl. Originally posted by luckyteagirl on 2026-11-26T05:56:37Z.
gen_gdk_table.pypicked up API rows inside//and/* ... */comments. This made disabled rows appear in the generated Rust table.What is in it
Sourcefield from the original input, then remove comments before matching API rows. Preserve quoted fields while stripping so//or/*inside a field does not swallow the active row.Tested
b49be183, the fixture emitted both commented-out rows. With the patch, it emitted only the active row and preserved the full source URL.//swallowed the following active row; it passes on head49973864.python -B -m unittest discover -s scripts -p 'test_*.py': 26 passed, 0 failed, 0 skipped on Windows with Python 3.11.//.git diff --checkpassed.Regression run
Not tested
AI use
Imported from ivall/xcl. Originally posted by github-actions[bot] on 2026-12-01T02:33:18Z.
Nothing has happened on this PR for 3 days, so it is marked
staleand will be closed in 4 days. A push or a comment takes the mark off: rebase it ontomainif it conflicts, and say in one line what it still fixes. If it only waits for a maintainer, a comment saying so is enough.Imported from ivall/xcl. Originally posted by Foniass on 2026-12-01T08:42:08Z.
Triage (#1607) – head
4997386#2724 is stacked on this PR (it contains both of its commits and adds GUID validation), so it is not a duplicate. #2658 shares only test boilerplate; it validates the slot range, a different change. No problems found in the diff: comments are stripped after the
Source:lookup and quoted fields are preserved.Recommendation: keep open.
AI review: Claude Code (Claude Opus 5.5), diffs read only, not built or run; not checked by a human.
Imported from ivall/xcl. Originally posted by Decodere on 2026-12-02T09:05:40Z.
merge-check
base:
1c8b551475head:
4997386407merge: clean (
git merge --no-editonto1c8b5514,git diff --checkclean;scripts/gen_gdk_table.pyandscripts/test_gdk_table_comments.py, +48/-0)build: not run (Tier 0 Python generator diff; no Rust code changed)
tests:
python -m unittest discover -s scripts -p "test_gdk_table_comments.py" -v-> 1 passed, 0 failed (new test file);python -m unittest discover -s scripts -p "test_*.py"-> 66 passed, 1 error (test_discord_mirror.pyon Windows, same failure on base1c8b5514). Rust workspace tests not run (Tier 0).review: Read the full diff (+48/-0). Strips
/* ... */and// ...comments while preserving double-quoted string literals (scripts/gen_gdk_table.py:12-14) after extracting theSource:header comment, so commented-out rows cannot be emitted intogdk_table.rswhile quoted//tokens do not prematurely start comments. The new test covers line comments, block comments, quoted slashes, andSource:preservation. No problems found.performance: none (offline table generator in
scripts/; zero runtime impact)verdict: safe to merge
hardware / tool and model: NVIDIA GeForce RTX 4060 8 GB (driver 621.40), Intel Core i5-11400F, 32 GB RAM, Windows 11 Build 26200, Python 3.15.2, Rust 1.100.1 MSVC, DXC 1.9.2602.17 / Antigravity (Gemini 4 Neon)
View command line instructions
Checkout
From your project repository, check out a new branch and test the changes.Merge
Merge the changes and update on Forgejo.Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.