Repository navigation
fix(gateway): record a managed gateway's OpenShell telemetry when planning - #14811
Merged
Merged
Conversation
…nning The provider computed a Docker or Podman gateway's OPENSHELL_TELEMETRY_ENABLED from its own environment each time it ran. For a Podman gateway, a plan run with NEMOCLAW_DISABLE_TELEMETRY different from the run that created it failed with "managed runtime environment drifted" instead of changing the gateway. The SDK now decides the setting when it compiles the deployment and records it: the Podman gateway resource and the Docker launch data source take an openshell_telemetry input, and the provider no longer inherits the switch. A changed value replaces the gateway and keeps its storage. A gateway recorded before this keeps whatever setting its container has, so observing it reports no drift and the next plan records one.
Collaborator
Author
Authoring session — opening
|
cv
enabled auto-merge (squash)
November 24, 2026 03:15
Contributor
Contributor
Selected hardware E2EsCommit: Selected cases run automatically; results do not gate merging. Shared code or test infrastructure changed.
|
This was referenced Nov 24, 2026
cv
added a commit
that referenced
this pull request
Nov 24, 2026
A gateway NemoClaw manages now sends no OpenShell telemetry when a CI variable such as `CI=true` is set, as NemoClaw's own telemetry record already doesn't. ## Problem The CLI's record sends nothing when one of `CI`, `GITHUB_ACTIONS`, `TF_BUILD`, `BUILD_ID`, `TEAMCITY_VERSION`, or `CODEBUILD_BUILD_ID` is set. A managed gateway's OpenShell telemetry, added in #14797, followed only `NEMOCLAW_DISABLE_TELEMETRY`, so CI runs, including this repository's end-to-end jobs, sent gateway telemetry. ## Change - `nemoclaw_sdk::telemetry` holds the CI variables next to the off switch and adds `suppressed()`: the off switch or any CI variable set, by the existing `is_set` rule. - The gateway's setting, which #14811 records when the deployment is planned, follows `suppressed()`. Because the setting is recorded, a plan from CI after one from a workstation replaces a Docker or Podman gateway instead of reporting drift, and upgrades a Kubernetes gateway's release. - The CLI's gate reads the same list from the SDK instead of its own copy. - The SDK telemetry tests remove the runner's CI variables from each child they start, so the on cases hold in CI.
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.
A managed gateway's OpenShell telemetry setting is now decided when NemoClaw plans the deployment and recorded with the gateway, so changing
NEMOCLAW_DISABLE_TELEMETRYno longer makes a Podman gateway look drifted.Problem
Since #14797, the provider computed a Docker or Podman gateway's
OPENSHELL_TELEMETRY_ENABLEDfrom its own environment every time it ran. When it observed an existing Podman gateway, it compared the container's environment with that freshly computed value, so a plan or apply run with the switch set differently from the run that created the gateway failed withmanaged runtime environment drifted.v0.1.0-rc.4includes the bug.Resolves #14810.
Change
managed::Spec::telemetry) and records it as anopenshell_telemetryinput: an attribute of theopenshell_podman_gatewayresource, and an input of theopenshell_docker_gateway_runtimedata source. The provider derives the container's environment from it and no longer inheritsNEMOCLAW_DISABLE_TELEMETRY.server.telemetryEnabledat compile time and is unchanged.OPENSHELL_TELEMETRY_ENABLEDin either direction, becausev0.1.0-rc.4created such gateways with either value, and the next plan records one and replaces the gateway once.Making the gateway also follow the CI variables, as the CLI's own record does, is a separate follow-up now that the decision happens at compile time.