Repository navigation
Conversation
… on the suite F11 points the operator's LLM_INTERNAL_GATEWAY_NAME at a missing Gateway and checks the internal endpoint goes RoutePending, then RouteNotAccepted, while the external endpoint stays Ready, then heals once the read value is restored. llm_journeys.operator is the only code that patches a Deployment; it refuses targets where operator_reconfig_allowed is false. preflight now GETs each configured JWKS URL (operator LLM_OIDC_JWKS_URL, key-manager LLM_KEYCLOAK_URL plus the realm certs path, console OIDC_KEYS_URL) from one short-lived journey- probe pod, deleted before preflight returns. make profile-check leaves the check out and stays read-only. collect-diagnostics.sh writes results/diagnostics/ after every suite run: component logs (current and previous), events, model, route and policy objects, Argo CD Applications and the provisioning record, every call bounded by a timeout and never reading a Secret. run-suite.sh clears the directory before pytest, runs the collector after pytest whatever it returned, only for a context the suite's local-kind guard accepts, and never lets the collector change the run status. make test-auth, test-model-scope, usage-e2e and usage-forgery-check now run integration-up when profile-check fails, then F4, F8, F10+F12 and F14 through the suite. Every suite run holds a per-checkout lock (llm_journeys.runlock) so a second run fails at once instead of reinstalling helpers under the first. The dev operator manifest and the usage tracer move to the shared nebari-gateway.
|
📄 Docs preview for |
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.
Slice 8: F11, and the dev test targets run the suite
F11 (endpoint conditions report a broken gateway and heal) joins the integration tier.
make test-auth,test-model-scope,usage-e2eandusage-forgery-checknow run their features through the journey suite on the integration profile. Every suite run checks the configured JWKS URLs from one probe pod before any test runs, and leaves a diagnostics directory behind.Design: CI that enforces the features we offer (integration and user journey tiers), phase 1. The spec and plan are kept locally; this PR is Slice 8 of 13.
Contracts touched: in
docs/architecture/contracts.md:LLM_INTERNAL_GATEWAY_NAME, with F11 as its one writer outside provisioningnebari-gateway)preflightas its first consumerpreflightmakes, noted in theTargetentryDepends on: nothing open (based on
mainafter #290).What changes
F11 (
journeys/test_zz_gateway_failure.py,llm_journeys/operator.py):LLM_INTERNAL_GATEWAY_NAMEat a Gateway that does not exist. The internal endpoint condition must goRoutePending, thenRouteNotAccepted, whileExternalEndpointReadystays True.internal_gateway_nameis the only suite code that patches a Deployment. It refuses any target whereoperator_reconfig_allowedis false (kind-dev only), restores in afinallyand waits for each rollout. F11 runs last.JWKS check in
preflight(llm_journeys/preflight.py). One short-livedjourney-probe pod GETs each configured JWKS URL:LLM_OIDC_JWKS_URLLLM_KEYCLOAK_URLplus/realms/<realm>/protocol/openid-connect/certs, built askey-manager/cmd/main.gobuilds itOIDC_KEYS_URLThe pod is deleted before
preflightreturns. Three outcomes have three distinct messages: pod not ready, non-200 (with a pointer at the Keycloak base path), and no HTTP answer.make profile-checkleaves the check out and stays read-only. The check uses a probe pod because the pack images are distroless and cannot be exec'd into.Diagnostics (
tests/journeys/collect-diagnostics.sh,run-suite.sh):results/diagnostics/gets:kubectlcall names the context and a timeout, and has a watchdog, so the run ends within the bound the script printsMake targets (
dev/Makefile):integration-upwhenprofile-checkfails, then their features: F4, F8, F10 and F12, F14.llm_journeys.runlock, anflockthe kernel releases however the run ends). A second run fails at once instead of reinstallingnebari_journeysunder the first.dev/manifests/operator.yamland the usage tracer move tonebari-gateway. The old scripts and the second Gateway go in the next slice.LeaseHeldmessage. A run killed with SIGKILL leaves the session Lease held for up to 15 minutes. The message now gives the expiry time, says the holder may be a killed run, and points atmake -C dev integration-upfor a run killed inside F11.Validation
CI does not run the journey tiers yet; these were run locally against the dev cluster (kind, full integration profile, OpenMeter on).
cd tests/journeys && pixi run pytest tests_lib -W errorrun-suite.test.sh,collect-diagnostics.test.sh,dev/tests/profile-check-branch.test.shmake -C dev integration-test FEATURES=F11nebari-gatewaymake -C dev integration-test FEATURES=F2,F4,F5,F6,F7,F8,F9,F10,F11,F12,F14journey-pods leftkubectl exec deploy/llm-key-manager -- sh -c trueshnot found, sopreflightuses a probe podls -R tests/journeys/results/diagnostics/applications.yamlabsent on kind-dev (no Argo CD)integration-testwhile one runskill -9during F11, then the next runLeaseHelduntil the lease expires, thenpreflightnames the setting;make integration-uprestores; next run passesmake deploy: the four targetsintegration-up, then only its features; exit 0make usage-e2e && make usage-tracer;make deploy && ./run-dev.shmainafter #290:make integration-up,make integration-test FEATURES=F4,F11journey-pods left