fix(usage): prevent CI and synthetic profiles from reporting installations - #5272
Open
huangruiteng wants to merge 2 commits into
Open
huangruiteng wants to merge 2 commits into
huangruiteng wants to merge 2 commits into
Conversation
Signed-off-by: huangruiteng <14976749+huangruiteng@users.noreply.github.com>
Signed-off-by: huangruiteng <14976749+huangruiteng@users.noreply.github.com>
This branch has not been deployed
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.
CI and synthetic profile validation must not create reporting installations. Minimal profile environments currently discard
CIand telemetry opt-outs, so a fresh synthetic HOME can send a random installation ID to the default collector.Force
LOOPX_USAGE_PING=0in native profile installation, runtime and Agent tool shells, release qualification, pytest and canary subprocesses. Set it explicitly in Python CI and public smoke workflows as well. This intentionally disables collection in synthetic runs even when their parent enables it; ordinary user collection and the existing typed telemetry policy remain unchanged. Historical samples are not reclassified or deleted.The existing Python subprocess adapters own environment construction; this fix reuses the existing TypeScript opt-out contract without adding another policy owner. CLI enable/status readback remains blocked in these environments. No frontend or Lark changes are needed because the fix changes synthetic launch environments and uses the existing global override. The bounded refactor pass found no additional abstraction necessary.
Validation:
formal_installer_failed; the complete installed-profile test file passed on rerun. The initial failure's cause was not established.Commits separate runtime/CI behavior with regression coverage from bilingual documentation and the durable repair pattern. This can ship independently of #5271 and should land before increasing telemetry delivery frequency. Maintainer review and merge are required.