tests that read build/mingw-release skip without it: BuiltFilesTest, the identity-literal tests, the distribution signing test (the TOOLS seed depends on them)

Open
#2,894 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
52/100
Issue type
Bug
Clarity
Clearly specified
Activity status
Active
Tech stack
cmake, python

Research direction

Start with the three named files: tools/tests/test_pe_version_info.py, tools/tests/test_build_identity_literal.py, and tools/tests/test_build_distribution.py; trace what each reads under build/mingw-release and how its skip is triggered. Check .claude/skills/merge-fold/fold.sh and issue #2892 for the sequencing and TOOLS setup. Done when the relevant assertions run without a built tree and the TOOLS fold can use --gen-extern without treating skipped checks as passing.

Written by the indexing model from the issue text.

Description

backlog

Evidence at 0502d28fef72a2d0460424e97929306ecf88b639

What the tree says, at the release tip:

  • tools/tests/test_pe_version_info.py:518-526: BuiltFilesTest reads the files just build made (build/mingw-release/bin) and
    skips when they are absent (line 526).
  • tools/tests/test_build_identity_literal.py:64, :71, :93 and :108: the identity-literal tests skip when the built tree is
    stale, missing, or of another commit (build/mingw-release).
  • tools/tests/test_build_distribution.py:235-238: a test skips unless osslsigncode and three files of
    build/mingw-release/bin are present.
  • .claude/skills/merge-fold/fold.sh (the setup by class) keeps the full seed for TOOLS, because a TOOLS plan selects these tests
    and they skip without a built tree; a skip there would fold a red as green.

Not shown

  • Whether each of these assertions can run on fixtures (a built DLL's identity literal is read from the file; a fixture would
    need the same bytes).
  • Whether any test other than these three reads build/ by path (a scan of the pytest files was not made here).

Falsifier

After the change, one of the three test files, run with no build/mingw-release in the tree, reports a skip of an assertion
that the change claims to make; or a TOOLS fold with the setup of --gen-extern passes while one of the three would fail on a
DLL whose identity literal is changed.

Work

Test first, each item:

  1. For each of the three files, a test that fails today: run with no built tree, the assertion runs (not a skip). The fixture
    or the built file the test reads is the input.
  2. Change each test to read its input from a fixture that the test writes (the identity literal of a DLL, the distribution
    signature check), or to build what it needs when just build has made it; no skip for an absent built tree.
  3. When the three run without a built tree, the TOOLS setup in fold.sh goes to --gen-extern, as DOCS has it.

Sequenced after #2892. Suggested owner: nevr-runtime-one or nevr-runtime-two (not assigned in this issue).

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.