Commit Graph
1945 Commits
Author SHA1 Message Date
Martin Vogel eecf5ea1aa Merge main into fix/issue-2120 for the release batch
Conflict in internal/cbm/result_compact.c: main (#2543) added the variants copy and this branch the decl_namespace copy at the same place in cr_walk_def; both kept.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-09 01:56:47 +02:00
Martin Vogel c202539e21 Merge pull request #2514 from DeusData/fix/issue-1278-override-v3
Fix explicit overrides through non-redeclaring ancestors
2026-10-09 01:54:58 +02:00
Martin Vogel 2c4c7843f3 Merge pull request #2497 from DeusData/fix/issue-686-fiber-group-v2
fix(extract): preserve Go router group prefixes
2026-10-09 01:54:53 +02:00
Martin Vogel 79b29fc897 Merge pull request #2543 from DeusData/fix/c-typedefs-macros-enumerators
fix(extract): C typedefs become nodes; macros and enumerators get their own QNs
2026-10-09 01:54:47 +02:00
Martin Vogel d1088fd535 Merge pull request #2561 from DeusData/fix/sqlite-wal-query-open-race
fix(store): one process-wide section for a query connection's first access
2026-10-09 01:54:41 +02:00
Martin Vogel 92b2dd13d7 Merge pull request #2493 from DeusData/fix/list-projects-empty-sort
fix: avoid null arguments for empty project and edge buffers
2026-10-08 01:48:52 +02:00
Martin Vogel 03193fd22c Merge pull request #2491 from DeusData/fix/search-code-match-root-check
fix(mcp): keep search matches within the resolved project root
2026-10-08 01:43:48 +02:00
Martin Vogel ea2a8f185f Merge main into fix/c-typedefs-macros-enumerators for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-08 01:31:33 +02:00
Martin Vogel 1b581f1ba3 Merge pull request #2346 from DeusData/feat/cross-repo-status
feat(cross-repo): report run status and skipped legacy stores (#2133)
2026-10-08 01:31:14 +02:00
Martin Vogel ec47e40833 Merge pull request #2340 from DeusData/fix/issue-2078
fix(extraction): parse every file as if its last line were terminated (#2078)
2026-10-08 00:52:16 +02:00
Martin Vogel 60f62538ab Merge pull request #2490 from DeusData/fix/workspace-manifest-resolved-entries
fix(workspace): classify manifest entries in their resolved form
2026-10-08 00:41:53 +02:00
Martin Vogel 1696ef5863 Merge pull request #2549 from DeusData/ci/asan-uar-off-by-default
test: keep ASan stack-use-after-return off outside the diag lane
2026-10-08 00:22:28 +02:00
Martin Vogel 1aabc40af1 Merge pull request #2465 from DeusData/fix/laravel-array-invokable-handlers
fix(routes): HANDLES for Laravel array and invokable controller actions
2026-10-08 00:03:09 +02:00
Martin Vogel 279cd73a90 Merge pull request #2476 from DeusData/fix/ui-index-start-resolved-root
fix(ui): index job carries the resolved root; status body sized for it
2026-10-07 23:41:58 +02:00
Martin Vogel c828105d1e fix(extract): write C variants in graph_buffer's schema
Main's graph_buffer.c ("Definition variants") records a definition's
variant spans as [{"file_path","start_line","end_line"}], and the
test-impact engine reads that schema to find every TEST(...) branch of one
test. This branch's extractor wrote [{"start","end"}]. On the merge with
main, graph_buffer's same-QN merge found a non-empty variants list it could
not read and dropped every span, the definition's own included. The engine
then no longer found the second #if branch of TEST(alpha_uses_lib), so
test_impact_engine_variant_tests_are_one_test reported suite alpha
UNMAPPED, in CI on macOS and Windows and locally.

The extractor now writes the shared schema, with the file path
JSON-escaped. The C-preprocessor-only gate and the one-carrier rule are
unchanged, and the variants assertions use the shared format.

test_impact_engine, extraction, pipeline, graph_buffer and
conditional_variants: 857 passed.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 22:16:36 +02:00
Martin Vogel f9ce38658b fix(store): one process-wide section for a query connection's first access
On an idle WAL database (no connection open, -shm reset) the first read of a
new connection runs WAL recovery: walIndexRecover rebuilds the shared
wal-index header under SQLite's write lock. A second connection of the same
process opening at that moment reads that header lock-free at the start of
walTryBeginRead, before it takes its read lock. Across processes SQLite's
file locks order the two; between the daemon's request threads nothing did.
TSan reported exactly that pair three times in CI (2026-10-06 on #2458's
tsan-arm leg, 2026-10-07 twice on #2348's macOS leg), from concurrent
index_repository requests reading the project record through
cbm_store_open_path_query.

cbm_store_open_path_query now opens and probes the database (the plain
read-only open, its first read, and the immutable fallback) inside
SQLITE_MUTEX_STATIC_APP1, the process-wide mutex SQLite reserves for the
application. The probe is one sqlite_master read, so the section is short;
the queries that follow run outside it, as before.

Regression test store_query_first_access_is_one_process_section: a test
seam holds one opener inside the section, and sqlite3_mutex_try on the
section's mutex must then report SQLITE_BUSY. It fails without the lock
(try returns SQLITE_OK) and passes with it. SQLite's Windows build reports
BUSY from sqlite3_mutex_try unconditionally, so the failing case is shown on
POSIX; the locking code is the same on every platform.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 19:20:08 +02:00
Martin Vogel c4d6453b6d test(extract): an anonymous C typedef aggregate is one definition
Regression test for the merge with #2458: with its extract_class_def case restored, typedef struct { int count; } Tally; yields two Class defs named Tally (count_defs_named == 2, RED at test_extraction.c:1129); with the case removed it is one Class, one count field, one Shade enum, and no variants list (extraction 432 passed).

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:53:30 +02:00
Martin Vogel ea2e36aa74 Merge main into fix/issue-2078 for the release batch
Conflict in tests/test_parse_coverage.c: this branch's #2078 tests and main's #1967 line-count test (#2336) were both appended before the suite; both kept, every TEST still registered.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:43:45 +02:00
Martin Vogel 5e596c73d7 Merge main into fix/issue-686-fiber-group-v2 for the release batch
Conflict in internal/cbm/extract_calls.c with main's #1146 slashless Laravel routes (#2471): both helper sets kept (this branch's route_prefix_compose/route_path_with_prefix, main's php_plain_string_value/php_first_arg_value/php_group_array_prefix). At the call site main's slashless-URI step runs first, then this branch's shared route_path_with_group_prefix replaces main's inline #952 composition (identical composition and guard), then main's string-action handler rule.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:35:37 +02:00
Martin Vogel 625f8a6211 Merge main into fix/laravel-array-invokable-handlers for the release batch
Conflict in tests/test_edge_types_probe.c: both sides added a self-contained helper + tests before the Rails test (this branch: et_handles_exact_routes and the class-handler tests; main/#2471: et_route_set_exact and the slashless-route tests) and their RUN_TEST lines; both blocks kept whole, this branch's first.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:34:30 +02:00
Martin Vogel d050fcae35 Merge main into fix/c-typedefs-macros-enumerators for the release batch
Conflicts: internal/cbm/extract_defs.c includes (union of both sides); src/pipeline/registry.c keeps main's lang-aware index_under_name call, and the fence comment combines both facts (Rust cfg twins are variants of one QN; a C macro's #macro QN never reaches the registry).
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:28:07 +02:00
Martin Vogel bf93f0b7c3 Merge pull request #2471 from DeusData/fix/laravel-slashless-route-paths
fix(routes): mint Laravel routes written without a leading slash
2026-10-07 18:24:13 +02:00
Martin Vogel d19cab8592 Merge pull request #2461 from DeusData/fix/issue-1171
fix(artifact): write and detect artifacts through wide paths on Windows (#1171)
2026-10-07 18:24:05 +02:00
Martin Vogel 731f624f7c Merge pull request #2336 from DeusData/fix/issue-1967
fix(coverage): one line counter for a source buffer (#1967)
2026-10-07 18:23:59 +02:00
Martin Vogel 6514472dbd Merge pull request #2323 from DeusData/fix/issue-1717
fix(daemon): explain foreign-owned cache ancestors and warn on network filesystems (#1717)
2026-10-07 18:23:53 +02:00
Martin Vogel 2400c77c41 Merge pull request #2258 from DeusData/distill/1245-websocket-route-suffixes
fix(routes): register FastAPI and Starlette WebSocket decorators
2026-10-07 18:23:46 +02:00
Martin Vogel fe63114808 Merge main into fix/search-code-match-root-check for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:23:10 +02:00
Martin Vogel 487a1b702e Merge main into fix/issue-2120 for the release batch
Conflict in internal/cbm/cbm.h resolved by keeping both added CBMDefinition fields: decl_namespace (this branch) and the test-definition role/spans (main).

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:21:45 +02:00
Martin Vogel 6473c9ac0f Merge main into ci/asan-uar-off-by-default for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:52 +02:00
Martin Vogel 19b13ba0ec Merge main into fix/issue-1278-override-v3 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:39 +02:00
Martin Vogel 8517ee5e75 Merge main into fix/list-projects-empty-sort for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:26 +02:00
Martin Vogel 1d0a9de434 Merge main into fix/issue-686-fiber-group-v2 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:26 +02:00
Martin Vogel 1d7c807136 Merge main into fix/workspace-manifest-resolved-entries for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:14 +02:00
Martin Vogel 7312f96bab Merge main into fix/ui-index-start-resolved-root for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:20:00 +02:00
Martin Vogel a10582e0d5 Merge main into fix/laravel-array-invokable-handlers for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:19:48 +02:00
Martin Vogel 515670bff8 Merge main into feat/cross-repo-status for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:19:35 +02:00
Martin Vogel af015311be Merge main into fix/issue-2078 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 18:19:35 +02:00
Martin Vogel b95d628b72 Merge main into fix/laravel-slashless-route-paths for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 02:20:18 +02:00
Martin Vogel 4cea83d385 Merge main into fix/issue-1171 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 02:20:18 +02:00
Martin Vogel 7688f4b7b3 Merge main into fix/issue-1967 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 01:53:57 +02:00
Martin Vogel 6ea6d90bd4 Merge main into fix/issue-1717 for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 01:53:57 +02:00
Martin Vogel 7ac6396efa Merge main into distill/1245-websocket-route-suffixes for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 01:42:26 +02:00
Martin Vogel a0191b554c Merge main into distill/1245-patch-decorator-route for the release batch
Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-07 01:42:26 +02:00
Martin Vogel a2242e10f8 test(test-impact): the Git fixture waits for Git, no quiet timeout decides
The Git facts fixture ran every Git command with a 10 s quiet timeout. The
diff-driver controls run `git diff --ext-diff` / `--textconv` with a fresh
copy of the test runner as the driver; on a loaded host that copy takes over
10 s to start and finish, Git prints nothing meanwhile, and the timeout killed
it (outcome HANG). test-windows (x86_64) failed
test_git_ancestor_changes_history_and_external_driver_guards_apply that way
(controls[0]), and locally 12 concurrent runs of that test failed 8 times,
every failure HANG at ~10,020 ms. Without the quiet timeout the same run
failed 0 of 12.

The fixture now waits for Git to finish; the suite's own ceiling stays the
backstop. No fixture caller expects a hang.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 23:54:42 +02:00
Martin Vogel e775c7f511 fix(subprocess): a child that is exiting at the group check is a finished run
macOS answers ESRCH to setpgid and getpgid for our own unreaped child from
the moment it starts to exit, before waitid can report it. a5c7ae97 accepted
a child that had already exited, probed with waitid(WNOHANG|WNOWAIT); in the
window before the child is reapable that probe said "not exited", and the
spawn was reported as SPAWN_FAILED errno 3. macos-15-intel CI kept hitting it
in a different Git-backed fixture on each run; with the new diagnostics it
named itself: `git config --local core.protectNTFS false`, outcome=5 errno=3.

A child of ours that setpgid/getpgid cannot find is not running: it has
exited or is exiting. The parent now waits until it is reapable (WNOWAIT
leaves it for the supervision, which reaps it with its real exit status);
the wait ends with the child's exit. EACCES/EPERM keep the group check.

A test seam makes the parent observe the exiting state (ESRCH, not yet
reapable): subprocess_run_child_exiting_at_group_check is SPAWN_FAILED
without this change and exit status 3 with it.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 21:42:18 +02:00
Martin Vogel 35605c5f0c test(test-impact): name the failing Git facts call in the blob-batch fixtures
macos-15-intel CI fails a different Git-backed fixture on each run of this
branch (spawn ESRCH on 6a29a19c, the native inventory fixture on bb1f6238,
two test_impact_git blob-batch checks on dd598ef4: shallow_before and the
budget variants' controls), and these left nothing to attribute: the facts
open, the inventory control and the blob read returned false silently. They
pass on Apple Silicon, Linux and Windows.

The open, inventory and blob-batch failures of these fixtures now print their
stage and the Git facts error (status, exit code, diagnostic). No verdict
changes.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 19:57:37 +02:00
Martin Vogel dd598ef426 fix(test-impact): a changed code line is never a comment line
Seeding drops a hunk whose lines are all comments. The check took any line
starting with `*` for a block-comment line and any line ending in a block
comment's close for a comment, so a dereference (`*out = f(a, b, true);`)
and code with a trailing comment counted as comments and their edits seeded
nothing.

On the oracle, PR #2158 changed two `*out_* = extract_route_path_from_args(...)`
lines in scan_route_annotations. Both hunks were dropped, the function was
never a seed, and its coverage id never reached the changed set. The six
artifact_reconcile_* tests that execute it, recorded as complete coverage rows
of the merge-base map, were missed (6 per job, two jobs: the only misses
among 191 jobs). With the check fixed, all six are selected for COVERAGE
again; until now the new graph walk had reached them as STATIC only by
chance.

A line now counts as a comment only when it is nothing but comment: blank,
`//`, a block opened with nothing after its close, `*` followed by
whitespace or the end, a lone close, or the closing line of a block opened
earlier. `*name`, `**`, `*(` and code before a trailing comment are code.
When unsure the check says code, which only seeds more.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 18:07:16 +02:00
Martin Vogel fdd500f1eb test(inventory): name the failing stage of the native inventory fixture
inventory_a_native_head_verified_controls failed once on macos-15-intel CI
(`if_dependency_control() && if_native_start(&n) && if_native_dependency(&n)`)
and left nothing to attribute: every failure path of the native fixture
returned false silently. It does not reproduce on Apple Silicon (40/40 green).

The three steps are now separate checks, and each silent path prints one
line: the Git spawn failure with errno, the facts and inventory status with
their diagnostic, a differing inventory or view row, and a short prefix read.
No verdict changes.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 18:07:16 +02:00
Martin Vogel 4f709c2707 fix(test-impact): accept the owner-only DACL as Windows stores it
The pinned tree requires its private parent to be owner-only: a protected
DACL, the current user as owner, one full-access grant to that user. It
accepted only the single-entry encoding (OI|CI). cbm_mkdir_p stamps a fresh
directory with exactly that grant, but written with generic rights, and
Windows stores it as an effective entry plus an inherit-only one
(icacls: user:(F) and user:(OI)(CI)(IO)(F)). The work directory production
creates was therefore refused ("pinning HEAD failed: protected owner-only
DACL policy mismatch"), and every Windows selection ran everything.

Both encodings are now accepted: one or two entries, each an allow entry for
the current user with full access and only inheritance flags, at least one
applying to the object itself. Any other principal, deny entry, partial
mask or flag is still refused.

tree_e_windows_split_owner_dacl_is_owner_only creates the parent with
cbm_mkdir_p and pins on it (red before this change), pins on the split form
written explicitly, and is refused once the inherit-only entry names Everyone.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 05:58:39 +02:00
Martin Vogel bf7ed74f7f fix(test): start the runner again by its image path, not argv[0]
The subprocess capture probes, the runner-filter tests and the git-facts diff
probe start (or copy) the test runner itself, by argv[0]. On Windows that is
the caller's spelling: the native python scheduler (run-test-wave.py) finds
the runner by search and passes it without ".exe", and an exact spawn or copy
of that path fails. Started that way, 12 subprocess tests failed and the
runner-filter tests with them; started with ".exe", the same build passed.

tf_runner_image() returns the module path on Windows (cbm_module_path_utf8)
and argv[0] elsewhere; the three sites use it.

Signed-off-by: Martin Vogel <martin.vogel.tech@gmail.com>
2026-10-06 05:58:38 +02:00