TransitiveInterfaceChange returns before it checks anything, and has since 0b35878 #53

Open
opened 2026-11-27 09:24:48 +00:00 by jorijnvdgraaf · 0 comments

Summary

tests/TransitiveInterfaceChange/main.cpp opens main() with return 0; (:114), so the test passes in a few milliseconds without building anything. The line came in with 0b35878 ("test change", 2026-08-05), a one-line commit with no message body.

It is the regression test of #26. Its three cases:

  • a primary module interface unit (export module Widget;, no partitions) that imports another configuration's module gets one external edge to that module's BMI;
  • two modules of one configuration, the importing one declared first, are built in the order they import each other, four times from scratch, since the failure was a race;
  • end to end, a member added to a class in a library's module recompiles the other library's primary interface unit that imports it, that module's implementation unit and the consumer's unit, and the program agrees on the layout.

tests/IncrementalInterfaceChange covers the case one step shorter, a consumer's unit importing the changed module itself (#27).

With the line removed, the test passes on 578a1da (6.4.2), three runs out of three, in about 10.4 s each, under the 60 s default timeout.

Line numbers refer to 578a1da (6.4.2).

Proposal

Remove the line. If it went in because the test failed or took too long at the time, that is worth writing down here first.

## Summary `tests/TransitiveInterfaceChange/main.cpp` opens `main()` with `return 0;` (`:114`), so the test passes in a few milliseconds without building anything. The line came in with 0b35878 ("test change", 2026-08-05), a one-line commit with no message body. It is the regression test of #26. Its three cases: - a primary module interface unit (`export module Widget;`, no partitions) that imports another configuration's module gets one external edge to that module's BMI; - two modules of one configuration, the importing one declared first, are built in the order they import each other, four times from scratch, since the failure was a race; - end to end, a member added to a class in a library's module recompiles the other library's primary interface unit that imports it, that module's implementation unit and the consumer's unit, and the program agrees on the layout. `tests/IncrementalInterfaceChange` covers the case one step shorter, a consumer's unit importing the changed module itself (#27). With the line removed, the test passes on `578a1da` (6.4.2), three runs out of three, in about 10.4 s each, under the 60 s default timeout. Line numbers refer to `578a1da` (6.4.2). ## Proposal Remove the line. If it went in because the test failed or took too long at the time, that is worth writing down here first.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
Catcrafts/Crafter.Build#53
No description provided.