build: a build attempt before the worktree setup fills build/<preset> with vcpkg_installed, and the seed then keeps the tree cold

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

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

Research direction

Start with justfile and the JustfileWiringTest test named in the issue. Check the dry run for configure and test-auth-unit to confirm _build-inputs runs before _vcpkg-mingw, while _proto-current remains after it. Run the ordering test, then verify the cold-build notice and seed behavior described in the issue; done when the ordering test passes and the stated fresh-worktree sequence seeds the tree.

Written by the indexing model from the issue text.

Description

bug

Evidence at 86f1ef4a7

  • justfile:81: configure depends on _vcpkg-mingw before _build-inputs, so the vcpkg install writes build/<preset>/vcpkg_installed
    before the worktree input check runs. justfile test-auth-unit has the same order.
  • tools/seed_build_tree.py keeps any non-empty build/<preset> (the already has content branch of seed): a tree with only
    vcpkg_installed and no CMakeCache.txt is kept, so the setup does not seed it.
  • A worktree (cmake-rest-2886, from 09c2738ca) whose first build attempt ran before just worktree-setup: the seed record at
    2026-11-26T04:56:40Z reads kept, reason build/mingw-release already has content; left as it is. Its first build then compiled
    333 objects (cmake --build --preset mingw-release: objects_compiled 333, ccache_hits 176, ccache_misses 157, duration 63 s, from
    the gate's slot-build record).

Not shown

  • How many worktrees have hit this order. The evidence is one worktree.
  • Whether just build in a fresh worktree is the only way the directory fills before setup.

Falsifier

A fresh worktree where a build attempt before the setup leaves build/<preset>/vcpkg_installed and the setup then reports kept.
After the fix the same sequence must leave no vcpkg_installed and the setup must report seeded.

Work

  1. Test first, red at 86f1ef4a7: the configure dry run puts the worktree input check after the vcpkg install (JustfileWiringTest,
    test_the_worktree_inputs_are_checked_before_vcpkg_installs_into_the_build_tree).
  2. Reorder configure and test-auth-unit: the input check before _vcpkg-mingw. _proto-current stays after vcpkg, where its protoc
    is.
  3. A cold build says so: _cold-notice prints one line before any work when build/<preset>/CMakeCache.txt is missing, from the last
    seed record for the worktree (seed_build_tree.py --cold-notice; J1135).
  4. Mutant: put _build-inputs back after _vcpkg-mingw. The ordering test must fail.
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.