Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release #1005

Merged
merged 2 commits into from
Sep 13, 2023
Merged

Release #1005

merged 2 commits into from
Sep 13, 2023

Conversation

JulesFaucherre
Copy link
Contributor

No description provided.

loderunner and others added 2 commits September 5, 2023 20:22
* Revert "revert: "feat: Put back telemetry" (#1001)"

This reverts commit a516872.

* fix: Fix runner token telemetry event

* fix: Allow runner commands to run their PersistentPreRun

With cobra, when you define a PersistentPreRun in a child command, you
overwrite all the command's parents PersistentPreRun. When introducing
telemetry, we used the PersistentPreRun to send the events, this made
the runner commands not call the PersistentPreRun in
cmd/runner/runner.go which defines the 'opts.r' value. In the commands
the 'opts.r' was nil, thus causing nil pointer deference panic.

This commit uses the PreRunE to send the telemetry event instead of the
PersistentPreRun to avoid this issue.
@JulesFaucherre JulesFaucherre requested review from a team as code owners September 7, 2023 11:39
@abdelDriowya abdelDriowya merged commit 68d2c20 into main Sep 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants