Conversation
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mboersma The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
If we are doing this, we need to add a CI check to make sure the CI-runtime generated code doesn't differ from the committed generated code. |
Good point--I'll work on adding that. |
/hold |
Codecov Report
@@ Coverage Diff @@
## master #449 +/- ##
=======================================
Coverage 53.43% 53.43%
=======================================
Files 95 95
Lines 14391 14391
=======================================
Hits 7690 7690
Misses 6038 6038
Partials 663 663 |
@CecileRobertMichon Is there a way to exclude the autogenerated files from the |
Yes, we can add any pkg we want skipped in https://github.com/Azure/aks-engine/blob/master/scripts/ginkgo.coverage.sh#L28-L29 |
You can only skip entire packages with go cover tools, so I took the approach of giving the generated files a naming pattern and then stripping their results from the coverage file based on that. Seemed less disruptive than putting them in separate packages or working with Edit: nevermind, that didn't seem to work--codecov counted those files anyway. I added an |
f5d7a9e
to
0c02bb3
Compare
Keeping these files in the repository will help with vendoring and should make the package "go get"-able.
This should ensure go-bindata files are kept up to date.
0c02bb3
to
ef427fa
Compare
/hold cancel |
* build: commit generated code files Keeping these files in the repository will help with vendoring and should make the package "go get"-able. * build: ignore generated files in code coverage * build: add "make validate-generated" target This should ensure go-bindata files are kept up to date. * fix: replace script with simpler git commands * fix: revise git diff command for generated file check
Reason for Change:
Keeping these generated files in the repository will help with vendoring and should make aks-engine "go get"-able. Since
make build
already callsmake generate
as a subtask, I don't think keeping them up to date will be onerous.Issue Fixed:
Fixes #286
Requirements:
Notes: