fix: commit generated go-bindata files with "--no-compress" option#1088
fix: commit generated go-bindata files with "--no-compress" option#1088acs-bot merged 6 commits intoAzure:masterfrom
Conversation
|
/azp run pr-e2e
👍 That's awesome if the fix is something simple like that we have overlooked. |
|
For the Azure DevOps organization |
|
/azp run pr-e2e |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
Just to be clear, the only de-optimization from this change will be the storage overhead of this file in the repo? ( And also to github's backend merge conflict validation service :| ) |
yes, and the file size is not too big. so I think it's acceptable? and for the future change, we can also verify if we change the files under "parts" folder, and the real change shows in the go files too, |
436f1fb to
1d03810
Compare
|
/azp run pr-e2e |
|
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov Report
@@ Coverage Diff @@
## master #1088 +/- ##
=======================================
Coverage 74.81% 74.81%
=======================================
Files 128 128
Lines 18318 18318
=======================================
Hits 13705 13705
Misses 3829 3829
Partials 784 784 |
|
How often do we generate |
do not know how often that file would be generated :) |
|
Hi @jackfrancis @mboersma , could you please help merge this PR if no other comments? so I can do the according change in ACSRP repo. thanks. |
|
@mboersma to validate docs and E2E changes I just made |
mboersma
left a comment
There was a problem hiding this comment.
This looks good to me, although we should be willing to revert if we run into real-world race conditions again.
|
/azp run pr-e2e |
|
Azure Pipelines successfully started running 1 pipeline(s). |
| 1. Once the PR is approved and the end-to-end job has passed, the PR can now be merged into the master branch | ||
| 1. Once merged, another job is triggered to verify integrity of the master branch. This job is similar to the PR job. | ||
|
|
||
| ## Pull Requests and Generated Code |
|
It's failing the /lgtm cancel |
|
// TODO we need to add PR validation that confirms the hygiene of the source against the generated code within the fork/branch itself. Until then we can't move this forward. |
|
@jackfrancis @mboersma I took a look at the ensure-generated, I think that will protect us from the case that the generated go file not update to date. will generate the file again and pushing. |
4b0210c to
5a1dd7e
Compare
|
/azp run pr-e2e |
|
Azure Pipelines successfully started running 1 pipeline(s). |
|
@andyliuliming I'm still worried that this will create a situation that requires PRs to be rebased often in order to pass Overall it seems that This situation has happened before and it is a frustrating cycle that repels contributors. We absolutely don't want to do that—AKS Engine is better served by making it easy for people to contribute even if it means our Go packaging is slightly clumsy. I'm trying to think of ways around this but don't have any fresh ideas. |
|
Hi @mboersma I suppose each PR-e2e build in VSTS will do |
|
Even if the pipeline does merge master before running the tests, developers will still run into merge conflicts (thus requiring a rebase) every time they change one of the files that requires an update to the generated code (eg. |
"developers will still run into merge conflicts (thus requiring a rebase) every time they change one of the files that requires an update to the generated code (eg. I think the git will do the auto-merge for us if there's no real code conflict after this code change. |
|
@mboersma @CecileRobertMichon any updates? I think the reason the git could not do the auto-merge just because we do not set the no-compress option. and after this change, say if someone changed the file in the parts file. then the diff for the go code generated would be like: + code change one
- code change twoand the git will do the auto-merging for us. |
|
@andyliuliming I've granted you write access you should now be able to trigger the pipeline using |
so do go-bindata here will help projects which vendored aks-engine. and add no-compress option to go-bindata, so we will not need to rebase it everytime.
d9c249b to
a50327c
Compare
|
I do think Azure DevOps merges the branch into master before running tests, so any changes in master that haven't been incorporated into your branch will cause (I may be wrong: this chicken-egg situation is confusing.) |
|
#1255 seems to suggest that this is working |
Yes...it does. I am happy to be wrong if so. In that case I'm LGTM on this so long as we revert if it does somehow cause hassle for developers. |
+ 1 |
|
/lgtm we'll monitor this in the coming days to ensure it doesn't increase rate of master merge conflicts |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: andyliuliming, jackfrancis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
so do go-bindata here will help projects which vendored aks-engine.
and add no-compress option to go-bindata, so we will not need to rebase it everytime.
Reason for Change:
Issue Fixed:
Requirements:
Notes: