|
Some checks are pending
CodeQL / Analyze (javascript-typescript) (push) Waiting to run
CodeQL / Analyze (python) (push) Waiting to run
Gitleaks / gitleaks (push) Waiting to run
Publish / Classify release event (push) Waiting to run
Publish / RC guard (marker + release-PR skip) (push) Blocked by required conditions
Publish / ci (push) Blocked by required conditions
Publish / Publish to npm (push) Blocked by required conditions
Publish / Build & Push RC Docker images (push) Blocked by required conditions
Scorecard / Scorecard analysis (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-cli) (push) Waiting to run
Trivy Image Scan / Trivy (gitnexus-web) (push) Waiting to run
* test(java): compare overload resolution with javac in CI * test(conformance): share call resolution reports across tools * test(java): cover the overload conversion matrix with javac (#4057) Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> * test(java): run Java-backed fixtures in dedicated CI shards * test(java): replace handwritten resolution cases with javac comparisons * test(java): compare lambda and receiver fixtures against javac * fix(ci): restore Java test evidence and use locked toolchain commands * test(skills): fail incomplete CLI generation checks (#4056) * test(java): compare method references with javac * fix(java): resolve qualified bases and static wildcard overloads * test(java): preserve declared dollar names in compiler comparisons * fix(java): preserve distinct call targets for colliding type names * fix(conformance): resolve private nested bases and retain overload selections * fix(java): distinguish variadic overloads in the published graph * fix(java): match javac for nested types, imports and initializer calls * Move Java fixture testing out of Vitest and into compiler conformance * Verify Java graph endpoints and leave call selection to javac * Match javac for annotated bases and legal static imports * Resolve nested Java member types and clean up failed conformance fixtures * Preserve qualified Java bases across unrelated static wildcard imports * test(java): run inline source fixtures in compiler conformance * test(conformance): check fetch callers, lexical bindings and cleanup * test(java): move virtual source and text fixtures into conformance * fix(java): resolve imported member types and qualified base collisions * Match javac constructor overloads and preserve Java conformance coverage * Compare recovered Java inheritance with javac in the conformance runner * Run the Java query compilation smoke test in native conformance * Clarify Java conformance expectations and check populated suites * Write javac conformance records as UTF-8 on Windows * Compile the Java conformance tools for SonarCloud analysis * Compare Java method implementation edges with javac * Resolve fixture writers and inherited Java methods in their lexical context * Resolve qualified Java bases through their accessible type members * Match local qualified Java bases and bounded varargs identities to javac * Match Java call resolution to javac across the conformance corpus Preserve generic declaration identity, follow nested call results, and type lambda aliases and enhanced-loop variables in their declaration scopes. Report proven JDK call targets without creating workspace edges. Compare every selected source and binary call against javac and remove the twelve mismatch lists. * Compare Java recovery targets as sets and check empty destination addresses Keep repeated uses of the same declaration equivalent across graph producers while detecting missing and extra targets. Check raw destination addresses and document the source and classpath inputs to the compiler comparison. * Avoid extra native parent walks while capturing Java call facts Index lambda origins by spelling before walking lexical scopes, and only check value shadowing for qualifiers rooted in an identifier. This restores the capture traversal budget for anonymous classes while preserving javac call targets. * Refresh the Java capture fingerprint for corrected fixture comments The module captures include the revised comments and the following declarations move to earlier lines. Both emitters produce the same 4,288 capture groups when given the same fixture revision. * Preserve Java conformance assertions and use trusted fixture paths Use explicit canonical sort orders, require missing evidence to fail assertions, and keep pending query results in the replay cache. Resolve the Git executable independently of the test repository and isolate the Spring workspace per test. * Resolve inherited Java members through the scoped superclass * Reuse validated analyzer build hashes for parser cache identity * Resolve SonarCloud findings in Java resolution and compiler conformance * Align Java compiler tool packages and pin benchmark baselines to the tested merge * Honor wildcard method families and fixture ownership in Java conformance * fix(java): resolve inherited and annotation member types against javac Keep workspace links tied to import declarations and compare Java varargs overloads through comments. Make generated-project selection, method metadata checks and Java fixture ownership explicit in conformance. * fix(java): resolve bounded and imported bases during dispatch Keep the type selected from a qualified heritage clause available during overload resolution. Compare annotated bounds, inherited static imports, and String.valueOf arguments directly with javac. Detect Java fixture paths on either side of a filesystem rename. * Conform Java method visibility and wildcard lambda bounds to javac Compare method access at source positions, recognize CommonJS fixture reads, and preserve diagnostics when native conformance setup fails. * Match javac for qualified member overloads and selective call diagnostics * Track reassigned Java fixture paths at their point of use * Respect Java visibility and Node path semantics in conformance checks * Align Java graph benchmarks with compiler-verified visibility * Record the public Java record accessor in the mixed-provider benchmark * Address remaining Java conformance analysis findings Keep repository import scans sequential, simplify Java header and overload resolution, and reuse Spring conformance measurements. Preserve compiler comparison assertions and emitted fixture contents. * Match javac on nested binary names, null factories and recovered calls Preserve the qualified annotation target in workspace links. Compare valid and invalid arguments separately so an attributed recovery symbol cannot mask a failed invocation. --------- Co-authored-by: Gergo Magyar <gergomagyar0@gmail.com> |
||
|---|---|---|
| .. | ||
| c | ||
| cobol | ||
| cpp | ||
| csharp | ||
| dart | ||
| go | ||
| java | ||
| javascript | ||
| kotlin | ||
| objective-c | ||
| php | ||
| python | ||
| r | ||
| ruby | ||
| rust | ||
| swift | ||
| typescript | ||
| vue | ||
| zig | ||
| README.md | ||
Semantic rename integration fixtures
These projects exercise real indexing and the public rename tool in both modes
(dry_run: true to preview, dry_run: false to apply). The integration test and its
subprocess helper do not mock the parser, semantic resolver, registry, database,
graph, filesystem, or rename functions.
Run from gitnexus/:
npm run build
npm test -- test/integration/rename-provider-matrix
Four test files partition the sorted cases evenly so CI can distribute real indexing across its existing shards. Each case runs exactly once.
Use -t 'cpp/' (for example) to select one provider. Rebuild after production
changes: the helper loads the built application, including real parse workers.
Do not rebuild while this suite is running. The analyzer verifies that its build
does not change during indexing.
Each case contains a case.json, an independently authored before/ project,
and the complete expected after/ project. Unchanged files are included too.
Expected files are never generated by applying the implementation's edits.
For each case, the harness:
- Copies the project into an isolated temporary repository and creates a real index, registry entry, and database with PDG enabled.
- Checks indexing completeness and selects the target uniquely from persisted declarations. It asserts the specified call, access, or family edges.
- Calls
renamewithdry_run: trueand verifies that all source bytes are unchanged. - Calls
renamewithdry_run: false, checks the exact edit count and agreement with the preview, and compares every source file againstafter/. - Reindexes successful edits and checks the renamed declaration and the same graph relationships at their source positions.
Refusal cases assert their specific error and planning status and verify that both preview and apply preserve every source byte. They supplement successful cases; the suite requires successful fixtures for every supported language.
target and edge endpoints use name, file, optional kind, and optional
zero-based startLine. Add startLine when declarations share a name. An optional
expectedTargetName records an escaped graph spelling after rename, such as
@Serialize; the generic harness contains no language-specific name rules.
An optional exactOutgoing: true requires every listed source/type pair to have
exactly the target set specified in edges, rejecting extra overload or wrong-owner
edges. This applies to cold, warm-cache, and post-rename graphs.
An optional warmParseCache: true performs a second forced index before rename,
using captures cached by the cold index. It requires cache hits, zero reparsed
files and no parse workers, then verifies the same persisted target identity and
specified graph edges before public preview/apply. The C++ overload fixture uses
this path to preserve signature-specific call edges across cache serialization.
| Provider | Language behavior exercised |
|---|---|
| C | Header/definition families, function pointers, call chains, deep pointer fields |
| C++ | Overloaded free functions across headers, virtual families, deep pointer fields, language keywords |
| C# | Interface/override families, public fields, escaped overloads, named arguments |
| COBOL | Cross-program calls, paragraph chains, nested qualified data |
| Dart | Interface/override and super calls, deep fields, imports, contextual identifiers |
| Go | Structural interfaces, exported pointer fields, package import aliases, generic type shadowing |
| Java | Interface/override families, overloads, deep public fields, reserved names |
| JavaScript | Inheritance, inferred deep fields, escaped exports, aliases and shorthand |
| Kotlin | Override families, typed callable references, escaped overloads, property writes |
| Objective-C | Protocol selectors, accessors, deep chains, ivars and same-named C symbols |
| PHP | Case-insensitive methods/functions, case-sensitive properties, grouped imports |
| Python | Override families, deep fields, aliases, Unicode names, dynamic attribute safety |
| Ruby | Mixins, predicate methods, chained setters, required qualified constants |
| Rust | Trait families, borrowed field receivers, cross-file import aliases |
| Swift | Protocol/override families, deep properties, escaped names and argument labels |
| TypeScript | Constructor-proven families/chains, aliases/shorthand, structural safety refusals |
| Vue | Script/template/CSS references, components, cross-file calls, opaque raw blocks |
| Zig | Typed container fields, import aliases and call chains |
C, COBOL and Zig do not have class polymorphism matching the OO cases. Their fixtures exercise their own callable, program, or container semantics. Vue fixtures additionally cover its embedded and template name surfaces.
TypeScript's structurally typed parameters do not prove a receiver's constructor: unrelated objects can satisfy the same annotation. Open-parameter refusal cases remain unchanged, alongside successful constructor-proven cases. These fixtures are targeted regression coverage, not a claim of complete IDE refactoring parity.
C++ permits restrict as an identifier (C++ keyword table,
GCC's explicit clarification).
The successful type fixture exercises this spelling. The vendored tree-sitter
grammar currently parses an unparenthesized int restrict(...) declarator as a
C-style type qualifier, so the separate function fixture expects parse_error
and unchanged sources. The parser limitation remains fail-closed.