test-changed and the fold never compile a combat binding into nevr_runtime: a binding .cpp's map row has no build id

Open
#2,872 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, cpp

Research direction

Start with the failing source mapping test in tools/internal/testmap, then trace how tools/cmd/test-map derives build ids from the build trees. Check how cmake/NevrRuntimeBindings.cmake adds binding sources to nevr_runtime and whether other sources share the gap. Done when the generator maps these sources to build, regenerated rows include build for the bindings, and the affected test passes.

Written by the indexing model from the issue text.

Description

A change to a combat binding (src/runtime/combat/bindings/*.cpp) is never compiled into nevr_runtime by just test-changed or by the fold's gate. A binding that no longer compiles therefore reaches the release line green. That happened at batch 178: #2837's binding includes a header that had moved (#2871).

Evidence at release/v6.20.0 492e4620e

  • The map row of src/runtime/combat/bindings/match_control_messages.cpp (tools/test_map/components/src~runtime~combat~bindings.jsonl) lists:
    • gtest:test_match_control_messages_binding;
    • go:cmd/standards-audit, go:cmd/test-map;
    • several pytest wiring checks.
      It does not list build.
  • test_match_control_messages_binding includes the binding's .cpp whole. Its target compiles it, but under the test's own flags, not as part of nevr_runtime.
  • #2837's builder measured it: after just test-changed, build/mingw-release/src/runtime/CMakeFiles/nevr_runtime.dir/combat/bindings/ was empty. Only just build compiled match_control_messages.cpp.obj.
  • The fold runs just build only when test-changed -n lists build (AGENTS.md "Builds", the fold's fixed set). Batch 178's record says "plan lists no build".
  • #2837 was replayed onto a base where aa3cb84fe had moved runtime/combat/match_control_rules.h. Its include at src/runtime/combat/bindings/match_control_messages.cpp:34 names the old path, and the fold did not compile it.

Not shown

  • Why the map gives a binding no build id. The generator (tools/cmd/test-map) decides it from the build trees; not read yet.
  • Whether other files compiled only into nevr_runtime have the same gap.

Falsifier

just test-changed -n on a branch that changes only a binding .cpp lists build.

Work

  1. Test first, in tools/internal/testmap: a file that is a source of the nevr_runtime target (the bindings among them, through cmake/NevrRuntimeBindings.cmake) maps to build. It is red today for a binding .cpp.
  2. Fix the generator, regenerate the rows, and check the bindings' rows list build.
  3. List any other kind of file compiled only into a target no test builds, and give it the same rule.
Dominant language
C++
Stars
3
Forks
5
Avg merge
4h 37m
Merged PRs (30d)
524

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from EchoTools/nevr-runtime

All issues in EchoTools/nevr-runtime

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.