Skip to content

Add scripts to test and generate files from proto#2316

Merged
balopat merged 10 commits intoGoogleContainerTools:masterfrom
priyawadhwa:proto-script
Jun 22, 2019
Merged

Add scripts to test and generate files from proto#2316
balopat merged 10 commits intoGoogleContainerTools:masterfrom
priyawadhwa:proto-script

Conversation

@priyawadhwa
Copy link
Copy Markdown
Contributor

This PR adds a Dockerfile which generates files from skaffold.proto and compares them to the existing files.

The dockerfile is used in generate-proto.sh, where generated files are created in a container and then copied into a local filesystem. It's also used in test-generated-proto.sh, which compares the local files to the generated ones.

@codecov
Copy link
Copy Markdown

codecov bot commented Jun 21, 2019

Codecov Report

Merging #2316 into master will increase coverage by 0.83%.
The diff coverage is 2.56%.

Impacted Files Coverage Δ
pkg/skaffold/server/proto/skaffold.pb.go 5.66% <2.56%> (+0.96%) ⬆️
cmd/skaffold/app/cmd/run.go 43.75% <0%> (-10.1%) ⬇️
pkg/skaffold/runner/runner.go 66.66% <0%> (-4.31%) ⬇️
pkg/skaffold/runner/build.go
pkg/skaffold/runner/run.go
pkg/skaffold/runner/deploy.go
pkg/skaffold/runner/build_deploy.go 52.77% <0%> (ø)
cmd/skaffold/app/cmd/dev.go 25% <0%> (+1.19%) ⬆️
pkg/skaffold/runner/dev.go 62.5% <0%> (+5.97%) ⬆️
cmd/skaffold/app/cmd/runner.go 69.23% <0%> (+17.94%) ⬆️
... and 2 more

@balopat
Copy link
Copy Markdown
Contributor

balopat commented Jun 21, 2019

Fixes #2294.

Copy link
Copy Markdown
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

this is awesome, I'm excited to have this :)
Thank you!
Just two nits otherwise LGTM!

@priyawadhwa priyawadhwa requested a review from balopat June 21, 2019 21:03
Copy link
Copy Markdown
Contributor

@balopat balopat left a comment

Choose a reason for hiding this comment

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

LGTM, looks good after fixing the boilerplate

@balopat balopat merged commit 4bdc504 into GoogleContainerTools:master Jun 22, 2019
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.

3 participants