Repository navigation
render: telemetry is off by default, and the deploy no longer asks - #474
Merged
Merged
Conversation
The Render template sent two install events unless SQLFLOW_TELEMETRY was off. It now sends nothing unless SQLFLOW_TELEMETRY is on (or true, 1, yes); blank, unset and any other value send nothing. The Blueprint prompt, README and compose comments say so. e2e: the main stack opts in for the telemetry section; probes check that unset, blank, off and an unknown value claim and send nothing, and the dead-collector probe opts in. run_probe guards its empty env array for macOS bash 3.2 under set -u.
The Blueprint named SQLFLOW_TELEMETRY with sync: false, so every deploy prompted for it. It is gone from render.yaml: the variable is unset and nothing is sent. Opting in means adding SQLFLOW_TELEMETRY=on to the ingest service in the dashboard, which a sync leaves alone because the Blueprint does not name it.
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
The Deploy to Render template sent two install events unless the deployer typed
offat aSQLFLOW_TELEMETRYprompt. It now sends nothing unless they opt in.Changes
render/bin/telemetry.shsends only whenSQLFLOW_TELEMETRYison,true,1oryes. Unset, blank and any other value send nothing, and the log says how to opt in.render.yamlno longer namesSQLFLOW_TELEMETRY, so the deploy does not prompt for it. To opt in, addSQLFLOW_TELEMETRY=ontosqlflow-metrics-ingestin the dashboard. A sync leaves a variable the Blueprint does not name alone.render/README.md, the root README,entrypoint.shanddocker-compose.ymlsay so. The README's line count for the script had drifted to 91; it is 97.Tests
render/test/e2e.sh:SQLFLOW_TELEMETRY=oninline for the section that checks the two events. It is not exported, so the probes after it start with the default.offandmaybeeach claim and send nothing.run_probeguards its empty env array: macOS bash 3.2 calls it unbound underset -u.Out of scope, noted: on macOS, the script died on that unbound variable and
makestill exited 0, so a failure of that kind can read as a pass locally. CI runs bash 5.Test plan
make -C render validate:render.yamlvalid against Render's schema, configs validmake -C render test: PASS, including the four new probesrender-templategreen