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

feat: configure verify and exec commands to emit metrics #9013

Merged

Conversation

renzodavid9
Copy link
Contributor

@renzodavid9 renzodavid9 commented Aug 10, 2023

Description
This PR configures the verify and exec commands to start emitting metrics when are used. Right now the logic to make a command to emit metrics is related with the logic that decides if a command should show the Skaffold survey.

Follow-up work
Will follow-up with a PR to track the skaffold render command.

@codecov
Copy link

codecov bot commented Aug 10, 2023

Codecov Report

Merging #9013 (3d642c5) into main (290280e) will decrease coverage by 6.86%.
Report is 999 commits behind head on main.
The diff coverage is 49.90%.

@@            Coverage Diff             @@
##             main    #9013      +/-   ##
==========================================
- Coverage   70.48%   63.62%   -6.86%     
==========================================
  Files         515      624     +109     
  Lines       23150    31934    +8784     
==========================================
+ Hits        16317    20319    +4002     
- Misses       5776    10085    +4309     
- Partials     1057     1530     +473     
Files Changed Coverage Δ
cmd/skaffold/app/cmd/completion.go 13.04% <0.00%> (-1.25%) ⬇️
cmd/skaffold/app/cmd/config/list.go 65.21% <ø> (ø)
cmd/skaffold/app/cmd/config/set.go 88.72% <ø> (ø)
cmd/skaffold/app/cmd/config/util.go 54.28% <ø> (ø)
cmd/skaffold/app/cmd/credits.go 100.00% <ø> (ø)
cmd/skaffold/app/cmd/credits/export.go 0.00% <0.00%> (ø)
cmd/skaffold/app/cmd/deploy.go 40.90% <0.00%> (-12.94%) ⬇️
cmd/skaffold/app/cmd/generate_pipeline.go 60.00% <ø> (ø)
cmd/skaffold/app/cmd/inspect_modules.go 65.00% <ø> (ø)
cmd/skaffold/app/cmd/inspect_profiles.go 66.66% <ø> (ø)
... and 40 more

... and 416 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@renzodavid9 renzodavid9 marked this pull request as ready for review August 14, 2023 15:06
@renzodavid9 renzodavid9 changed the title feat: configure render, verify, and exec commands to emit metrics feat: configure verify and exec commands to emit metrics Aug 14, 2023
@renzodavid9 renzodavid9 merged commit fddbd1c into GoogleContainerTools:main Aug 14, 2023
13 checks passed
renzodavid9 added a commit that referenced this pull request Sep 7, 2023
* feat: configure render, verify, and exec commands to emit metrics

* fix: remove render command from tracking due to corrupted output data
renzodavid9 added a commit that referenced this pull request Sep 8, 2023
* feat: configure verify and exec commands to emit metrics (#9013)

* feat: configure render, verify, and exec commands to emit metrics

* fix: remove render command from tracking due to corrupted output data

* feat: enable skaffold render to track telemetry (#9020)

* feat: making survey, update, and tracking messages to print to stderr instead of stdout

* feat: enable `skaffold render` to track telemetry

* feat: remove tests checking if a stadout is set, now we are using stderr

* feat: make stderr used to print survey, update, and metricts promp, coloreable to keep same behaviour as stdin

* feat: removing IsStdout function and related tests

* fix: change baseRef to point to v2.6 release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants