Skip to content

repo: ignore a generated navmesh dump and add an editorconfig - #1956

Closed
BubsMcgee wants to merge 2 commits into
ProjectLeonida:mainfrom
BubsMcgee:repo/hygiene-generated-and-editorconfig
Closed

BubsMcgee wants to merge 2 commits into
ProjectLeonida:mainfrom
BubsMcgee:repo/hygiene-generated-and-editorconfig

Conversation

@BubsMcgee

Copy link
Copy Markdown
Contributor

Two isolated repo-hygiene items from #1928 (§7 and §4); no code, no game data.

  • navmeshes.navmesh-decode.json at the repository root is the default output of tools/navmesh_decode.py
    run from the root — docs/navmesh.md sends that output to a temp directory. It is removed from tracking and
    *.navmesh-decode.json is ignored.
  • .editorconfig mirrors the existing .gitattributes (LF everywhere; CRLF for .ps1, .cmd, .bat, .sln,
    and no trailing-space trimming in Markdown). It adds no formatter and changes no existing file.

Deliberately left out of this PR: splitting tools/rdna2spirv.py, runtime/shims/d3d12_vulkan_device.cpp or
runtime/CMakeLists.txt, adding -Werror, README rewrites, and CI parallelisation. Those touch files with open
PRs or set policy and deserve their own decisions.

Tests

No runtime or translator change. Checked that nothing references the removed root file outside its own default
output path (rg navmesh-decode), that docs/navmesh.md already writes to <temp>, and that the tests/test_docs_*
suites are unaffected (no docs changed).

AI-assisted (opencode). Follow-up to #1928.

@MSedgeMC MSedgeMC left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verified: the .editorconfig line-ending rules mirror .gitattributes exactly (LF default, CRLF for .ps1/.cmd/.bat/.sln); Markdown keeps trailing spaces for hard breaks. The ignored *.navmesh-decode.json matches tools/navmesh_decode.py's documented default output name (docs/navmesh.md, tool --out help). Removing the committed generated navmeshes.navmesh-decode.json is consistent. Repo hygiene only, no game data.

@j-weiner

Copy link
Copy Markdown
Contributor

To avoid the duplicate .editorconfig additions, I rebased #1955 onto current main and expanded its .editorconfig to include the line-ending/Markdown defaults here plus the two verified BOM exceptions. Could you drop the .editorconfig hunk from #1956 and keep the generated-output ignore separate, or coordinate with the maintainer on which one lands? I have left #1956 unchanged.

@j-weiner

Copy link
Copy Markdown
Contributor

To carry over the two unique BOM exceptions from #1955, please add the following after the general rules in .editorconfig (both files are BOM-encoded):

[runtime/test/d3d12_depth_resolve_test.cpp]
charset = utf-8-bom

[runtime/test/d3d12_sparse_queue_family_test.cpp]
charset = utf-8-bom

I have rebased #1955 and expanded its .editorconfig to include the full line-ending/Markdown defaults here plus these exceptions. I will close #1955 as the duplicate so only one PR adds the file.

@BubsMcgee

Copy link
Copy Markdown
Contributor Author

Done: the .editorconfig hunk is dropped from this PR so it lands once, in #1955. What remains here is the generated-output part only:
avmeshes.navmesh-decode.json untracked and *.navmesh-decode.json ignored (the default output of ools/navmesh_decode.py run from the root; docs/navmesh.md already writes to a temp path). If #1955 would rather take that too, say so and I will close this in its favour.

@MoonEyes

Copy link
Copy Markdown
Collaborator

Hi @BubsMcgee, thanks for this pull request.

CONTRIBUTING.md asks contributors to claim their work in the coordination issue ("Coordinating who works on what", currently #1608) before opening a pull request: post claiming: <ID> there, or a one-line description if the item is not listed yet, and put the ID in the pull request. I could not find a claim from you for this one (the ID DOC-EDITORCONFIG-BASELINE appears in the pull request, but there is no claiming: line for it).

The claim matters because "it is claimed in the coordination issue by the pull request's author" is the first item on the maintainers' checklist for a mergeable pull request, and because it lets others see that the work is taken before they write it a second time.

Could you post the claim in #1608 and add the ID to the pull request description? If you already claimed it in another form, a link to your comment is enough.

AI-assisted (Claude Code, Claude Opus 5.5).

@zmasi

zmasi commented Nov 29, 2026

Copy link
Copy Markdown
Contributor

#1956 | head da8a5dc (merged cleanly onto origin/main 829530d) | Windows 11 (10.0.26200.9974), Python 3.12.10 | AI-assisted: yes

Independent Verification (Windows 11)

  • Diff & safety audit: Inspected 100% of the diff adding *.navmesh-decode.json to .gitignore and removing the tracked navmeshes.navmesh-decode.json (518 lines of generated tools/navmesh_decode.py output). python -I scripts/check_no_game_data.py .gitignore passed (rc=0).
  • Red -> Green on Windows 11 (origin/main 829530dbd0 vs #1956 + origin/main):
    • Red (origin/main): navmeshes.navmesh-decode.json is tracked at repository root and git check-ignore sample.navmesh-decode.json exits 1.
    • Green (#1956 + origin/main): navmeshes.navmesh-decode.json is deleted cleanly, and git check-ignore -v sample.navmesh-decode.json sub/test.navmesh-decode.json exits 0 matching .gitignore:50:*.navmesh-decode.json for both root and subdirectory outputs.
  • Test suites run on Windows 11:
    • python -I tests/test_navmesh_decode.py -> 17/17 passed (OK)
    • python -I tests/test_docs_repo_paths.py -> 5/5 passed (OK, confirming no documentation links or path references depend on the deleted root .navmesh-decode.json file)
    • python -I tests/test_no_game_data_workflow.py (3/3) and tests/test_ci_registration.py (18/18) -> all passed (OK).

@TheGeogeo

Copy link
Copy Markdown
Contributor

Tested da8a5dc merged (no commit) with main 0bc6e21: Python 3.12.4, Windows 11 10.0.26300, CPU only.

  • The change is repository files only (.gitignore, and the removal of the generated navmeshes.navmesh-decode.json from the root), so no test can show a red.
  • No regression: the 13 tests/test_docs_*.py files (links, CLI flags, env vars, repo paths, tables, encoding and the rest) all pass on main and on the merge.
  • No game data check passes.

AI-assisted (Claude Code).

@aslan2142

Copy link
Copy Markdown
Collaborator

Closing as superseded by #2668 (18936010d).

Since .editorconfig was already removed from this PR (tracked separately in #1955), both remaining changes (*.navmesh-decode.json in .gitignore:27 and deleting navmeshes.navmesh-decode.json) have already landed on main in #2668.

(AI-assisted review.)

@aslan2142 aslan2142 closed this Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants