Skip to content
This repository was archived by the owner on Nov 3, 2023. It is now read-only.

Enhance version command #89

Merged
merged 3 commits into from
Sep 13, 2021
Merged

Conversation

dhiltgen
Copy link
Contributor

@dhiltgen dhiltgen commented Apr 1, 2021

This improves the version command to report both client and builder
version information.

Closes #88

Without builder running:

Client:  v0.1.3-1-g2372be6-dirty
Builder: no builder pods are running

With builder running:

Client:  v0.1.3-1-g2372be6-dirty
Builder: buildkitd github.com/moby/buildkit v0.7.2 22e230744171b4442101731951bbbecf97796ea5

@dhiltgen dhiltgen force-pushed the better_version branch 2 times, most recently from 1a54dcf to 369aaa0 Compare May 19, 2021 21:20
@codecov-commenter
Copy link

codecov-commenter commented May 19, 2021

Codecov Report

Merging #89 (11ec9d4) into main (ac94d82) will increase coverage by 1.30%.
The diff coverage is 77.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main      #89      +/-   ##
==========================================
+ Coverage   63.82%   65.13%   +1.30%     
==========================================
  Files          40       40              
  Lines        2737     2825      +88     
==========================================
+ Hits         1747     1840      +93     
+ Misses        779      761      -18     
- Partials      211      224      +13     
Flag Coverage Δ
integration-tests 61.95% <77.55%> (+1.41%) ⬆️
unit-tests 9.69% <0.00%> (-0.32%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
pkg/driver/driver.go 38.46% <ø> (ø)
pkg/driver/kubernetes/podchooser/podchooser.go 59.01% <33.33%> (-3.49%) ⬇️
pkg/cmd/version.go 72.41% <68.00%> (+34.91%) ⬆️
pkg/driver/kubernetes/driver.go 66.29% <74.35%> (+2.21%) ⬆️
integration/common/basesuites.go 92.10% <100.00%> (+0.92%) ⬆️
integration/common/runners.go 100.00% <100.00%> (ø)
pkg/cmd/ls.go 72.41% <100.00%> (+41.37%) ⬆️
pkg/cmd/root.go 100.00% <100.00%> (ø)
pkg/driver/kubernetes/authprovider.go 67.79% <0.00%> (-1.85%) ⬇️
pkg/platformutil/parse.go 34.09% <0.00%> (+6.81%) ⬆️
... and 2 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ac94d82...11ec9d4. Read the comment docs.

dhiltgen and others added 2 commits September 10, 2021 10:10
This improves the version command to report both client and builder
version information.
if err != nil {
return "", err
}
// TODO how to timeout if something goes bad...?
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does remotecommand not support using a context?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for asking the question - digging a bit deeper, yes, it looks like it's possible on the Request object. I'll update it.

@dhiltgen dhiltgen merged commit 3cdb096 into vmware-archive:main Sep 13, 2021
@dhiltgen dhiltgen deleted the better_version branch September 13, 2021 21:00
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Enhance version command to report more information
4 participants