Skip to content

test(smoke): distribution smoke plan COMP-kafgraph-01..14 as a suite (KG-01) - #49

Merged
kamir merged 1 commit into
mainfrom
kg-01-smoke-contract
Dec 3, 2026
Merged

kamir merged 1 commit into
mainfrom
kg-01-smoke-contract

Conversation

@kamir

@kamir kamir commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

What

The distribution's component smoke plan for KafGraph (COMP-kafgraph-01 to -14) runs as a suite in this repository and in CI. Cases KafGraph does not pass yet are skipped with the roadmap entries that make them pass.

  • test/smoke/PLAN.md: unchanged copy of the plan. Source: scalytics/LASCARIS-distribution, tag pre-consolidation-2026-11-30 (1f6fe6e67), path sao/tests/smoke/components/kafgraph/PLAN.md, blob b624f914… (git hash-object test/smoke/PLAN.md).
  • test/smoke/: its own Go module with one test per case. HTTP goes through net/http, Bolt through the official neo4j-go-driver/v5, as the plan prescribes. Without KAFGRAPH_SMOKE_HTTP_URL/KAFGRAPH_SMOKE_BOLT_URL, the suite builds ./cmd/kafgraph and starts it on free ports. KAFGRAPH_SMOKE_STRICT=1 runs every case without skips (KG-13).
  • TestPendingCasesNameOpenRoadmapEntries fails if a skipped case names an entry that is missing, done or deferred in SPEC/ROADMAP.md.
  • make test-smoke, and a CI step in ci.yml (GitHub-hosted runner).
  • SPEC/ROADMAP.md: the plan path in the goal was wrong (the sao/ prefix was missing) and the file is no longer on distribution main. New row KG-15 (see below). KG-07, KG-09 and KG-13 now also depend on KG-15: cases 04 and 12 query over Bolt.

Why the plan is a copy

On 2026-11-30 the distribution removed components/kafgraph (b9d6d0b70, v1.0.1 keep list, scalytics/LASCARIS-distribution#143) and sao/ with the plan (a46cca945) from main. The plan now exists only in history. The copy fixes the contract this release is measured against.

Result today

Case Result Skipped with
01, 02 /health, /ready 404 KG-06
03 Bolt handshake driver refused KG-15
04 dbms.components() driver refused; with a fixed handshake: unknown procedure KG-07, KG-15
05 create decision node driver refused; with a fixed handshake: 0 nodes created in summary KG-15
06 read decision node driver refused; with a fixed handshake: d is a map, not a node KG-15
07 ingest ops.agent.decisions not implementable yet: KG-11 defines the record format KG-11
08 to 10 reflection API v1 404 KG-10
11 schema lineage query driver refused; passes with a fixed handshake KG-15
12 erasure endpoint 404 KG-09, KG-15
13 kafgraph_nodes_total /metrics has Go runtime metrics only KG-08
14 browser UI pass –

make test-smoke: 14 passes, 13 skipped, the consistency test passes. With KAFGRAPH_SMOKE_STRICT=1, 13 fail as listed.

Decision needed: KG-15

The official driver offers Bolt versions as ranges (4.4 with range 2, 5.0–5.8). internal/server/bolt.go accepts only the exact value 0x00000404, so no handshake succeeds. All Bolt cases fail on that. In a throwaway copy with a range-aware handshake, 03 and 11 passed, and two more gaps showed up: no stats in the PULL summary (05), and nodes sent as maps instead of Bolt node structures (06). No entry covered this, so the PR proposes row KG-15. Merging the PR accepts the row.

Review

A reviewer with fresh context read the diff. These findings are fixed in this PR:

  • Cases 04 and 12 named only KG-07 and KG-09, although they need Bolt. pending now holds a list of entries per case.
  • The local binary reported version dev, so case 04 could never pass locally. It is now stamped like make build (git describe --tags).
  • On a failure, the server log was deleted before anyone could read it. The end of the log is now printed.
  • If the test binary crashed, the KafGraph process stayed behind. On Linux it now gets Pdeathsig.
  • Case 02 accepted any key containing "lag". It now needs a lag/*_lag key with a numeric or object value.
  • Case 10 treated unknown statuses as terminal. It now uses a fixed list of terminal states.
  • The roadmap test failed outside this repository. It now skips there.
  • Smaller fixes: free ports are distinct, created is set before the write, a trailing / in the URL is trimmed, go vet runs for test/smoke, and the setup-go cache key includes test/smoke/go.sum.

Not covered

  • The plan's implementation note expects the server to reject an UPDATE on Decision.immutable=true. It is not a numbered case and has no roadmap entry yet.
  • Case 14 checks the embedded UI by its <title>KafGraph</title>. The plan says only "knowledge-graph shell".
  • Dependabot watches only /. test/smoke/go.mod would need its own gomod entry.
  • Case 07 needs a Kafka broker. For KG-13 (all 14 cases without skips), CI needs a Kafka service. KG-11 decides how 07 queries; over Bolt, it waits on KG-15 too.
  • KG-14 still speaks of a subtree sync. On distribution main, KafGraph has been removed, so the handover is a re-add, and the distribution owner decides on it. The row is unchanged here.

Checks

make fmt-check, bash hack/license-header.sh, make docs-sync-check, make test-smoke passed locally. go list ./... at the root does not include test/smoke, so test-race, vet, lint, cover-check and govulncheck see no change. A mutation check confirmed that the consistency test reports a done entry and an unknown one.

Ref: KG-01, proposes KG-15

🤖 Generated with Claude Code

…(KG-01)

test/smoke/PLAN.md is an unchanged copy of the plan at distribution tag
pre-consolidation-2026-11-30 (sao/tests/smoke/components/kafgraph/PLAN.md);
the distribution removed it and components/kafgraph from main on
2026-11-30. test/smoke is its own module: one test per case, HTTP via
net/http, Bolt via neo4j-go-driver/v5 as the plan prescribes. Without a
target it builds and starts KafGraph locally. Cases not passing yet are
skipped with the roadmap entries that make them pass; a test fails if such
an entry is missing, done or deferred. KAFGRAPH_SMOKE_STRICT=1 runs all.

make test-smoke runs it, and CI runs it on every push and pull request.

Today 14 passes. The official driver cannot complete the Bolt handshake:
KafGraph accepts only the exact version 0x00000404, the driver offers
ranges. With a range-aware handshake 03 and 11 pass; 05 lacks summary
counters and 06 gets maps instead of nodes. ROADMAP.md proposes KG-15 for
this; KG-07, KG-09 and KG-13 depend on it. The goal names the correct
location of the plan.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@kamir
kamir merged commit 20441fe into main Dec 3, 2026
2 checks passed
@kamir
kamir deleted the kg-01-smoke-contract branch December 3, 2026 22:03
kamir added a commit that referenced this pull request Dec 3, 2026
Merged after green checks. KG-01 landed as #49 (20441fe).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant