Skip to content

Remove stale Python integration test - #108

Closed
hankbobtheresearchoor wants to merge 4 commits into
Layr-Labs:masterfrom
hankbobtheresearchoor:remove-stale-integration-test
Closed

hankbobtheresearchoor wants to merge 4 commits into
Layr-Labs:masterfrom
hankbobtheresearchoor:remove-stale-integration-test

Conversation

@hankbobtheresearchoor

Copy link
Copy Markdown
Contributor

Removes tests/integration_test.py which is superseded by the coordinator's Go-based integration tests in coordinator/internal/api/.

Why remove

  • Coverage duplicated: integration_test.go covers provider protocol flow (register, challenge, heartbeat, inference) with Go simulated providers — same assertions, no binary build required
  • Full-stack GPU tests: fullstack_integration_test.go tests real vllm-mlx backends (gated behind LIVE_FULLSTACK_TEST=1)
  • Stale: References old binary names (eigeninference-provider), old flags (--backend mlx-lm), and predates attestation challenges, E2E encryption, and the vllm-mlx migration — most test paths would skip or fail against current code
  • No unique coverage: Coordinator main.go wiring (env vars, Postgres, billing) is not tested here either — no EIGENINFERENCE_DATABASE_URL is set, so it hits the same store.NewMemory() fallback as every other test
  • SDK tests belong in SDK repo: Tests 4.5.x exercise from eigeninference import EigenInference — that's a dependency boundary the SDK's own test suite should own

No test coverage is lost that isn't already covered elsewhere in the coordinator's Go test suite.

Hank Bob added 4 commits May 1, 2026 14:32
Introduces scripts/e2e-runner.py, a Python orchestrator that spins up the
real coordinator binary with test-friendly configuration (in-memory store,
mock billing, no trust requirements) alongside a simulated or real
provider, and runs HTTP/WebSocket-level assertions against the live stack.

Key components:
- Coordinator class: builds and spawns coordinator with EIGENINFERENCE_MIN_TRUST=none,
  EIGENINFERENCE_BILLING_MOCK=true, and in-memory store
- SimulatedProvider: pure-Python WebSocket client speaking the full provider protocol
  (register, attestation challenge/response, heartbeat, inference request/response)
- Test framework: decorator-based test registration, pass/fail summary, signal-safe
  cleanup via atexit + signal handlers
- Test stubs: test_basic (registration + discovery), test_inference (consumer
  request routing), test_multi_provider (two providers, same model)

TODO:
- RealProvider wrapper around darkbloom serve --coordinator
- Coordination between provider challenge cycle and consumer request timing
- API key handling for consumer vs admin routes
- Python dependency management (websockets, cryptography)
This reverts commit d02074e. The Python E2E runner adds noise on top of
the existing Go integration tests (internal/api/integration_test.go +
fullstack_integration_test.go) which already cover the full coordinator
protocol surface. The cross-language orchestration doesn't buy anything
over what httptest.Server + simulated providers already provide.
@ethenotethan

tests/integration_test.py is superseded by the Go-based coordinator
integration tests at coordinator/internal/api/:

- Test coverage for coordinator protocol (register, challenge, heartbeat,
  inference) is covered by integration_test.go using httptest.Server +
  Go simulated providers — same coverage, no binary build needed
- Full-stack GPU inference is covered by fullstack_integration_test.go
  with real vllm-mlx backends (gated behind LIVE_FULLSTACK_TEST=1)
- The Python test uses stale binary names ('eigeninference-provider'),
  old flags ('--backend mlx-lm'), and predates attestation challenges,
  E2E encryption, and the vllm-mlx backend migration
- No external dependency coverage (Postgres, Stripe, etc.) is lost — the
  coordinator main.go wiring for those is trivially tested elsewhere
- The Python SDK tests (4.5.x) belong in the SDK repo, not the infra repo
@vercel

vercel Bot commented May 1, 2026

Copy link
Copy Markdown

Someone is attempting to deploy a commit to the EigenLabs Team on Vercel.

A member of the Team first needs to authorize it.

cursor Bot pushed a commit that referenced this pull request Jul 10, 2026
Re-check OwnershipGate between outbox entries; abort with partial acked_count
on steal. Resume + concurrent drain clears remainder. Docs for #107 account filter.
Gajesh2007 added a commit that referenced this pull request Aug 14, 2026
* perf(qwen36): E=256 expert-tile prefill route + fused gate_up (proposals 2.3 + 0.2)

- libs/mlx-swift -> a062aaa (Cmlx/mlx 58fab469: E=256 descriptor builder,
  Qwen route gate, AOT fail-closed, kernel tests)
- libs/mlx -> 91330f0e (source mirror of the same kernel/host changes)
- libs/mlx-swift-lm -> f505519 (fuseGateUp wiring + weightedExpertSum,
  sanitize fusion helper, MTP split exception, unit tests)
- scripts/fetch-metallib.sh: build_sorted_expert_tiles_bm32_e256 added to
  the completeness contract and post-build symbol verification.

Route remains opt-in via MLX_GATHER_QMM_EXPERT_SLICES.

* fix(mlx): gpu::eval stale command-buffer UAF — required for the expert-tile sync path (libs/mlx-swift -> Cmlx/mlx ab5e1dd9; libs/mlx -> eaee8f1c)

* perf(qwen36): trust mode for expert-tile route + preserve operator 'trust' in env projection

- libs/mlx-swift -> Cmlx/mlx 76663df5, libs/mlx -> d91e9e2f: opt-in
  MLX_GATHER_QMM_EXPERT_SLICES=trust skips the descriptor-retract stream
  drain (route stays config-gated ON/OFF; trust only refines HOW).
- GemmaOptimizationEnvironment.projection: an operator-exported 'trust'
  survives the config projection when the route is ON; config-OFF still
  overrides. StartCommand previously collapsed it to '1', which silently
  re-enabled the drain.
- Measured e2e (release, 20GB prod artifact): 8k prefill 1243 (baseline)
  -> 1364 (fused+tiles) -> 1433 tok/s (trust).

* fix(review): trust refinement — context-gated projection, launchd persistence, benchmark validator

Codex review fixes on #617:
- One source of truth with explicit contexts: GemmaOptimizationEnvironment
  gains Context (.serving honors an operator-exported trust; .retainedValidation
  is hermetic and never reads ambient env) plus daemonTrustPassthrough for the
  one legal plist entry.
- P1 launchd: LaunchAgent.passthroughEnvironment persists exactly
  MLX_GATHER_QMM_EXPERT_SLICES=trust into the service plist; config-backed
  0/1 (and any other value) stay excluded, so provider.toml remains
  authoritative for whether the route runs.
- P1 runtime-smoke: PackagedRuntimeSmoke.verifyGemmaOptimizations projects the
  retained config in .retainedValidation context, so a trust-mode parent
  (BoundedProcess merges parent env) can no longer fail SelfUpdater artifact
  verification or paged-kernel preflight.
- P2 benchmark: gemma_contbatch validator accepts safe-R1 'trust' when the
  route is on, refuses it when off, and requires one posture across phases;
  ServeRuntimePreparer's conflict guard now projects through the same getenv
  seam so a trust export is consistent, while trust-vs-config-OFF conflicts.
- Tests: projection contexts, exact-trust daemon passthrough + plist,
  hermetic smoke validation, benchmark guard trust paths, python provenance.

* chore(deps): repin dependency chain at review-fixed heads

- libs/mlx -> d3c82db01216 (darkbloom-base head; mlx#7 merged: E=256
  expert tiles + trust + gpu::eval stale command-buffer UAF fix)
- libs/mlx-swift -> 07728bf980c5 (PR #12 review fixes; Cmlx/mlx pinned
  to the same merged d3c82db01216)
- libs/mlx-swift-lm -> c287ce10b573 (PR #107 review fixes: per-layer
  quant aliasing for fused gate_up_proj + qwen3_5_text sanitize fusion)

provider-swift builds green against the new pins; targeted Gemma
config/environment tests pass.

* chore(deps): advance pins — merged mlx-swift #12 squash, gate/up policy fix on mlx-swift-lm #107

libs/mlx-swift 07728bf -> 1d452d837e20: PR #12 as merged (squash) on main
(Cmlx bump to the E=256 expert-tile route + regenerated sources + Qwen
kernel tests). Its nested Source/Cmlx/mlx pin is d3c82db01216, identical
to the libs/mlx submodule, so host C++ and metallib stay source-matched.

libs/mlx-swift-lm c287ce1 -> d644159: PR #107 head with the remaining P2
review fix — routed-expert gate/up fusion is now a per-layer decision
gated on both halves resolving to one quantization policy; heterogeneous
pairs load bit-exactly through split modules via the new
QuantizationPolicyReceiving / qwen35UnfuseSwitchGLU path.

provider-swift builds green against the new pins.

* chore(deps): advance mlx-swift-lm pin to #107 review-follow-up head

libs/mlx-swift-lm d644159 -> cd641ac: quantization aliases now bridge the
raw model.language_model.* / sanitized language_model.model.* / bare
model.* key spaces (VLM mixed-precision configs keyed on raw checkpoint
paths resolve explicit entries for both fused and kept-split expert
modules), and half-split checkpoints surface a catchable UpdateError
instead of a preconditionFailure inside throwing loadWeights. All #107
review threads resolved; provider-swift builds green.

* chore(deps): advance mlx-swift-lm pin — symmetric gate/up topology per load

libs/mlx-swift-lm cd641ac -> b6e9693: the per-layer gate/up topology now
follows each load instead of ratcheting fused->split — a homogeneous
reload on a previously heterogeneous-loaded instance restores the fused
SwitchGLU (setFused callback + qwen35SetSwitchGLUGateUpFused +
SwitchGLU.fusingGateUp). All #107 review threads resolved;
provider-swift builds green.

* chore(deps): advance mlx-swift-lm to key-space-symmetric policy candidates (d5492da)

* chore(deps): pin mlx-swift-lm at merged main (#107 5b8e6e3; includes #108, #105)
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