Repository navigation
Telo v0.116.0
Packages
| Package | Version |
|---|---|
@telorun/cli |
0.116.0 |
@telorun/analyzer |
0.116.0 |
@telorun/cel |
0.116.0 |
@telorun/ide-support |
0.116.0 |
@telorun/k8s-runner |
0.19.0 |
@telorun/kernel |
0.116.0 |
@telorun/language-server |
0.116.0 |
@telorun/runner-core |
0.18.0 |
@telorun/sdk |
0.116.0 |
@telorun/templating |
0.116.0 |
Minor
A Telo.Provider reports observed state from init(), and that status is readable in another resource's startup (compile-eval) fields. A provider has no run(), so its init() is where it becomes what it provides: it may acquire external resources there when each acquisition is an effect whose inverse releases it completely, and ctx.setStatus(...) there is no longer ERR_OBSERVED_STATE_BEFORE_START. The report is published when init() returns and discarded with an attempt that fails or defers. telo check no longer reports OBSERVED_STATE_IN_STARTUP_FIELD or OBSERVED_STATE_NEVER_RUN for a read whose target's effective capability (through extends) is Telo.Provider — except a provider declared in a with: scope, which is created when the scope opens and stays OBSERVED_STATE_IN_STARTUP_FIELD (naming the scope) in a scoped sibling's startup field; the read stays typed and closed, so a misspelled field is CEL_UNKNOWN_FIELD. Such a read is an init-order edge: the producer — or the import a resources.<Alias>.<name>.status read crosses — is initialized first, a loop of such reads is DEPENDENCY_CYCLE, and the kernel defers a reader whose producer has not initialized yet with ERR_LOCAL_REF_PENDING. Every other capability keeps the old rules, and a read whose target resolves to nothing is still refused. A kind declaring status: now publishes its reading even when its controller has no snapshot(). — analyzer, kernel, sdk
Runners serve each session a container engine of its own, so a test that starts the database it needs runs in a session exactly as it runs locally. With RUNNER_SESSION_CONTAINERS=true (default off; chart session.containers.enabled) every session gets TELO_HOST_CONTAINER_ENGINE_URL (<RUNNER_INTERNAL_URL>/v1/sessions/<id>/engine) and TELO_HOST_CONTAINER_ENGINE_TOKEN, a token minted for that session; RUNNER_INTERNAL_URL is required when the setting is on, and a runner whose backend cannot run containers refuses to boot with it. The engine answers the Docker Engine API 1.41 requests Docker.Engine sends and refuses every other one: a missing token is 401 and another session's 403; a create may carry only Image, Cmd, Entrypoint, Env, User, ExposedPorts, Labels and HostConfig.PortBindings as one 127.0.0.1 binding with an empty HostPort per exposed port, anything else being a 400 naming the field path; every container is labelled run.telo.session=<id>; a session holds at most RUNNER_SESSION_CONTAINERS_MAX (default 4) containers, a create beyond it being 429; inspect, logs, delete and list see only the session's own containers. Nothing is published on a host: inspect answers each requested binding with the address the session reaches the container at. A session's containers are removed when it stops, suspends, reaches its deadline, is deleted or changes its app set, and when the runner shuts down. The docker runner runs them as siblings on RUNNER_CHILD_NETWORK and removes every container labelled with a session at boot; the k8s runner runs them as pods under the session namespace's restricted Pod Security standard (a User that is not a numeric non-root uid[:gid] is a 400), with resources from session.containers.resources (RUNNER_SESSION_CONTAINERS_RESOURCES), owned by the session's pod and reachable only from that session through two per-session NetworkPolicies, deleted when the session ends; the chart's Role gains networkpolicies when the setting is on. A pod the Pod Security standard refuses is now reported as that refusal rather than as an unexplained 403. A k8s run session's body-fetch init container now declares the session's resources, so the chart's default resource quota no longer refuses every run session pod. — k8s-runner, runner-core
Patch
CEL inside a folded block scalar (>, >-) or a quoted or plain scalar spanning several lines is located on the characters the author wrote. Before, every node's range in such a body was shifted, so editor colouring, hover, go-to-definition, CEL diagnostics and rename landed on the wrong text. — analyzer, language-server
- @telorun/templating@0.116.0
- @telorun/cel@0.116.0
Changelogs: cli · analyzer · cel · ide-support · k8s-runner · kernel · language-server · runner-core · sdk · templating