Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
2b6a00d
fix: scope codegraph batch complexity targets to file paths
carlos-alm Jul 5, 2026
b28051a
fix: exclude parameters and interface/type members from dead-role cla…
carlos-alm Jul 5, 2026
17fbcba
fix: credit import-type usages as exports consumers
carlos-alm Jul 5, 2026
26918bb
fix: prevent fn-impact/query crash when -f/--file is passed
carlos-alm Jul 5, 2026
be6432c
fix: correct exported-symbol detection for literal and object-literal…
carlos-alm Jul 5, 2026
4ead840
fix: exclude primitive type keywords from ast --kind string matching
carlos-alm Jul 5, 2026
f6326bf
fix: resolve call edges through renamed import specifiers
carlos-alm Jul 5, 2026
590f560
fix: couple file_hashes updates with edge regeneration in incremental…
carlos-alm Jul 5, 2026
d3ea4a4
fix: compare signature-change diffs using new-file line ranges
carlos-alm Jul 5, 2026
c306812
feat: add environment doctor check for stale native binary and missin…
carlos-alm Jul 5, 2026
8bb5893
fix: eliminate non-deterministic ordering in community detection
carlos-alm Jul 6, 2026
46037b1
fix: sync update-graph.sh hook extension allowlist with EXTENSIONS
carlos-alm Jul 6, 2026
6a84cf9
fix: recompute directory structure metrics for affected directories o…
carlos-alm Jul 6, 2026
8d936d1
refactor: register hardcoded execFileSync/execSync maxBuffer values i…
carlos-alm Jul 6, 2026
11c84be
fix: gate blast-radius check on newly introduced risk, not pre-existi…
carlos-alm Jul 6, 2026
963301a
fix: gate identifier-argument dynamic call edges on callback-acceptin…
carlos-alm Jul 6, 2026
3e8035d
fix: gate Array.from's callback arg by position, not just callee name
carlos-alm Jul 6, 2026
879635e
fix: scope reexportedSymbols to actually-named re-export specifiers
carlos-alm Jul 6, 2026
0fe9fc3
fix: stop CFG block/edge count from overriding AST-derived cyclomatic…
carlos-alm Jul 6, 2026
ccf3c19
fix: backfill edges.technique for incrementally-inserted calls edges
carlos-alm Jul 6, 2026
d5b1162
fix: wrap remote embedding JSON parse failure in EngineError
carlos-alm Jul 6, 2026
8971017
refactor: extract shared platform-default-path helper in config.ts
carlos-alm Jul 6, 2026
056c5e4
refactor: decompose loadConfig and related high-effort functions in c…
carlos-alm Jul 6, 2026
0738171
refactor: decompose findDbPath and openRepo in db/connection.ts (docs…
carlos-alm Jul 6, 2026
6f2423c
refactor: dedupe busy/locked error detection into isBusyOrLockedError
carlos-alm Jul 6, 2026
4c02378
fix: log statSync failures in findDbPath instead of silently swallowi…
carlos-alm Jul 6, 2026
0698e16
test: add direct unit coverage for closeDbPair/closeDbPairDeferred/cl…
carlos-alm Jul 6, 2026
4ac3b99
fix: correct blast-radius/fn-impact computation for line-shifted decl…
carlos-alm Jul 6, 2026
6767f09
feat: wire points-to solver max-iterations cap through DEFAULTS.analy…
carlos-alm Jul 6, 2026
5f6f30a
refactor: route console.log calls in domain/search through logger
carlos-alm Jul 6, 2026
b479318
refactor: reduce cyclomatic complexity of computeDeltaModularityDirected
carlos-alm Jul 6, 2026
c39ac40
refactor: unify impact-level rendering format between audit and fn-im…
carlos-alm Jul 6, 2026
067674f
refactor: dedupe computeSavings via pct helper and persist partial to…
carlos-alm Jul 6, 2026
f6807b4
fix: add main.rs driver to rust dynamic tracer fixture
carlos-alm Jul 6, 2026
1c07a54
fix: scope diff file-header detection to between-hunk positions
carlos-alm Jul 6, 2026
bf82aa2
fix: update titan-grind's dead-symbol script for current roles --json…
carlos-alm Jul 6, 2026
cd02d27
fix: thread configured busyTimeoutMs through remaining read-only quer…
carlos-alm Jul 6, 2026
980b5dc
fix: resolve computed string-literal keys in object-literal extractio…
carlos-alm Jul 6, 2026
4a873a3
fix: add same-class bare-call fallback to incremental rebuild path (d…
carlos-alm Jul 6, 2026
8f3348a
fix: unify Object.defineProperty accessor fallback kind-filtering bet…
carlos-alm Jul 6, 2026
acf804c
refactor: share chunked statement-cache primitive between builder and…
carlos-alm Jul 6, 2026
986c851
refactor: cache prepared statements in applyEdgeTechniquesAfterNative…
carlos-alm Jul 6, 2026
71e9174
fix: replace fixed-depth directory-proximity check with symmetric dis…
carlos-alm Jul 6, 2026
d2935cc
refactor: remove unreachable Partition delta-computation interface me…
carlos-alm Jul 6, 2026
6515186
fix: emit reference edges for function identifiers used as object-lit…
carlos-alm Jul 6, 2026
30c491a
refactor: unify call-ref and tests rendering format between audit and…
carlos-alm Jul 6, 2026
9db911b
fix: classify destructured bindings as constant, not function (docs c…
carlos-alm Jul 6, 2026
70559fc
refactor: adopt timeMedian in remaining benchmark timing loops
carlos-alm Jul 6, 2026
822e0eb
refactor: decompose runPerfBenchmarks in token-benchmark.ts
carlos-alm Jul 6, 2026
fcdfe7d
fix: attribute liveness to Lua functions assigned to global/builtin i…
carlos-alm Jul 6, 2026
ee6362c
refactor: extract shared sedi() helper for tracer scripts
carlos-alm Jul 6, 2026
eec2292
fix: resolve merge conflicts with main
carlos-alm Jul 8, 2026
d978e7a
fix: align tracer source placement, use non-executable shebang (#1915)
carlos-alm Jul 8, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 8 additions & 19 deletions tests/benchmarks/resolution/tracer/go-tracer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ fi
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT

source "$(dirname "${BASH_SOURCE[0]}")/tracer-common.sh"

cp "$FIXTURE_DIR"/*.go "$TMP_DIR/"

# Create go.mod
Expand Down Expand Up @@ -135,28 +137,15 @@ for gofile in "$TMP_DIR"/*.go; do

# Use sed to inject traceCall() after function opening braces
# Match: func ... { at end of line -> add traceCall() on next line
# Use portable sed -i: GNU sed uses -i alone, BSD sed (macOS) requires -i ''
if sed --version 2>/dev/null | grep -q GNU; then
sed -i -E 's/^(func [^{]*\{)\s*$/\1\n\ttraceCall()/' "$gofile"
else
sed -i '' -E 's/^(func [^{]*\{)\s*$/\1\n\ttraceCall()/' "$gofile"
fi
sedi -E 's/^(func [^{]*\{)\s*$/\1\n\ttraceCall()/' "$gofile"
done

# Inject defer dumpTrace() at start of main()
if sed --version 2>/dev/null | grep -q GNU; then
sed -i -E '/^func main\(\)\s*\{/{
a\ defer dumpTrace()
}' "$TMP_DIR/main.go"
# Suppress any os.Exit calls that would skip deferred dumpTrace
sed -i 's/os\.Exit(/\/\/ os.Exit(/g' "$TMP_DIR/main.go"
else
sed -i '' -E '/^func main\(\)\s*\{/{
a\ defer dumpTrace()
}' "$TMP_DIR/main.go"
# Suppress any os.Exit calls that would skip deferred dumpTrace
sed -i '' 's/os\.Exit(/\/\/ os.Exit(/g' "$TMP_DIR/main.go"
fi
sedi -E '/^func main\(\)\s*\{/{
a\ defer dumpTrace()
}' "$TMP_DIR/main.go"
# Suppress any os.Exit calls that would skip deferred dumpTrace
sedi 's/os\.Exit(/\/\/ os.Exit(/g' "$TMP_DIR/main.go"

# Redirect fmt.Print* to stderr so only JSON goes to stdout
cat >> "$TMP_DIR/trace_support.go" <<'REDIRECT'
Expand Down
40 changes: 9 additions & 31 deletions tests/benchmarks/resolution/tracer/jvm-tracer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,7 @@ esac
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT

# Portable sed -i (GNU vs BSD)
sedi() {
if sed --version 2>/dev/null | grep -q GNU; then
sed -i "$@"
else
sed -i '' "$@"
fi
}
source "$(dirname "${BASH_SOURCE[0]}")/tracer-common.sh"

# Copy fixture files
case "$LANG" in
Expand Down Expand Up @@ -147,34 +140,19 @@ case "$LANG" in
[[ "$base" == "CallTracer.java" ]] && continue
# Add CallTracer.traceCall() after method opening braces
# Match lines like: public void method(...) {
# Use portable sed -i: GNU sed uses -i alone, BSD sed (macOS) requires -i ''
# The first sed pass matches all method/constructor opening braces,
# so a second pass is unnecessary (it would double-inject traceCall).
if sed --version 2>/dev/null | grep -q GNU; then
sed -i -E '/\)\s*\{$/{
/class |interface /!{
a\ CallTracer.traceCall();
}
}' "$javafile"
else
sed -i '' -E '/\)\s*\{$/{
/class |interface /!{
a\ CallTracer.traceCall();
}
}' "$javafile"
fi
sedi -E '/\)\s*\{$/{
/class |interface /!{
a\ CallTracer.traceCall();
}
}' "$javafile"
done

# Add dump call at end of main
if sed --version 2>/dev/null | grep -q GNU; then
sed -i '/public static void main/,/\}/ {
/^\s*\}/ i\ CallTracer.dump();
}' "$TMP_DIR/Main.java" 2>/dev/null || true
else
sed -i '' '/public static void main/,/\}/ {
/^\s*\}/ i\ CallTracer.dump();
}' "$TMP_DIR/Main.java" 2>/dev/null || true
fi
sedi '/public static void main/,/\}/ {
/^\s*\}/ i\ CallTracer.dump();
}' "$TMP_DIR/Main.java" 2>/dev/null || true

# Compile and run
cd "$TMP_DIR"
Expand Down
9 changes: 1 addition & 8 deletions tests/benchmarks/resolution/tracer/native-tracer.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,14 +29,7 @@ FIXTURE_DIR="$(cd "$FIXTURE_DIR" && pwd)"
TMP_DIR="$(mktemp -d)"
trap 'rm -rf "$TMP_DIR"' EXIT

# Portable sed -i (GNU vs BSD)
sedi() {
if sed --version 2>/dev/null | grep -q GNU; then
sed -i "$@"
else
sed -i '' "$@"
fi
}
source "$(dirname "${BASH_SOURCE[0]}")/tracer-common.sh"

empty_result() {
local reason="${1:-toolchain not available}"
Expand Down
18 changes: 18 additions & 0 deletions tests/benchmarks/resolution/tracer/tracer-common.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
# shellcheck shell=bash
# Shared helpers for the dynamic call tracer scripts in this directory.
# Each tracer (native-tracer.sh, jvm-tracer.sh, go-tracer.sh, ...) is spawned
# as its own subprocess by run-tracer.mjs, so sharing logic between them means
# sourcing this file rather than importing a function — source it with a path
# relative to the caller's own location so it resolves regardless of the
# invoking process's working directory:
#
# source "$(dirname "${BASH_SOURCE[0]}")/tracer-common.sh"

# Portable sed -i (GNU vs BSD)
sedi() {
if sed --version 2>/dev/null | grep -q GNU; then
sed -i "$@"
else
sed -i '' "$@"
fi
}
Loading