Repository navigation
Remove stale Python integration test - #108
Closed
hankbobtheresearchoor wants to merge 4 commits into
Closed
hankbobtheresearchoor wants to merge 4 commits into
hankbobtheresearchoor wants to merge 4 commits into
Conversation
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
|
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
Gajesh2007
added a commit
that referenced
this pull request
Aug 14, 2026
Gajesh2007
added a commit
that referenced
this pull request
Aug 14, 2026
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)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Removes
tests/integration_test.pywhich is superseded by the coordinator's Go-based integration tests incoordinator/internal/api/.Why remove
integration_test.gocovers provider protocol flow (register, challenge, heartbeat, inference) with Go simulated providers — same assertions, no binary build requiredfullstack_integration_test.gotests real vllm-mlx backends (gated behindLIVE_FULLSTACK_TEST=1)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 codemain.gowiring (env vars, Postgres, billing) is not tested here either — noEIGENINFERENCE_DATABASE_URLis set, so it hits the samestore.NewMemory()fallback as every other testfrom eigeninference import EigenInference— that's a dependency boundary the SDK's own test suite should ownNo test coverage is lost that isn't already covered elsewhere in the coordinator's Go test suite.