Conversation
ldemailly
left a comment
There was a problem hiding this comment.
thx for tackling this, see below:
| sudo chown -R circleci /go | ||
| mkdir -p /home/circleci/logs | ||
| - checkout | ||
| - run: make git/master |
There was a problem hiding this comment.
please don't put / in a (.phony) make target
how is it different from "make pull" that's already there ? try that one ? (you can remove submodule-sync if you do make pull)
in which case/why would the just checked out source tree need a pull ?
There was a problem hiding this comment.
Re. "/" - why not ? OpenWRT uses this convention (package/foo), I don't like inventing new delimiters and the targets need to be organized a bit eventually. Replaced it with a . since we use it in few targets to avoid another bikesheding, but like / more.
Added comments - it's what you asked for, pulling the changes from master. Submodule-sync seems to sync vendor - not sure what the git pull does there, is redundant with checkout in CI (as you mentioned, we just checked out), but I assumed it's for dev using make ? I didn't put it there, the new one is pulling from master into the branch.
There was a problem hiding this comment.
x/y is a path for instance you would make bin/foo if you're target is not a real target/file, don't use a / it's just confusing. thanks for the change
yes the make pull I added for dev workflow to replace git pull and take care of the submodule part, so you're saying this new target is for CI to merge master on the PR?
maybe should be --ff-only ? somehow prow uses 'merge' but I don't know/whichever works
will it abort the build in a way that's easy to understand if the PR has conflicts ?
|
|
||
| # Pull from git master. To be used in CI or by developers, assumes the | ||
| # remote is called 'origin' (git default). Will fail on conflicts | ||
| git/master: |
There was a problem hiding this comment.
try/modify to make it work the existing 'pull' target line 180
| @@ -1,13 +1,13 @@ | |||
| # DO NOT EDIT THIS FILE MANUALLY instead use | |||
There was a problem hiding this comment.
revert this (maybe we can put it in gitignore or some way to not change the one from source tree when we use it)
| - checkout | ||
| - run: make submodule-sync | ||
| - run: make init | ||
| - run: git.pullmaster |
There was a problem hiding this comment.
you have it above the submodule-sync in the other build above; it probably should be first in case there is a vendor change in master
| if curl --version | grep Protocols | grep https; then | ||
| DOWNLOAD_COMMAND='curl -Lo -' | ||
| if curl --version | grep Protocols | grep https > /dev/null; then | ||
| DOWNLOAD_COMMAND='curl -Lso -' |
There was a problem hiding this comment.
I'll leave it for a specific fix, not sure how it interact with the wget ( or why we even have wget ).
There was a problem hiding this comment.
Also there is a tar extraction, cleanup - seems better as a separate PR.
There was a problem hiding this comment.
if you're changing the curl command options please add f to curl options / why not?
There was a problem hiding this comment.
I'm changing the curl command to make it less verbose.
I don't think -f should be used, and even if it is - I don't think it's reasonable to ask to add unrelated features/fixes to a PR.
There was a problem hiding this comment.
( -f would need to be tested, logic may need to be changed, there is also the wget stuff around - I don't want to add that complexity to this PR, and I don't think it's a P0)
| ${DOWNLOAD_COMMAND} https://storage.googleapis.com/istio-build/proxy/envoy-$PROXY.tar.gz | tar xz | ||
| cp usr/local/bin/envoy $ISTIO_GO/vendor/envoy-$PROXYVERSION | ||
| time ${DOWNLOAD_COMMAND} https://storage.googleapis.com/istio-build/proxy/envoy-$PROXY.tar.gz | tar xz | ||
| echo "Downloading envoy $PROXY using $DOWNLOAD_COMMAND" |
There was a problem hiding this comment.
please put the echo before the command not after so we know what it's doing/how it fails (#3231)
| --ns istio-system \ | ||
| --logtostderr \ | ||
| -n istio-test \ | ||
| ${TESTOPTS} No newline at end of file |
There was a problem hiding this comment.
pro tip: set your editor to always have a last newline
| - checkout | ||
| - run: make submodule-sync | ||
| - run: make init | ||
| - run: make git.pullmaster |
|
/retest |
|
/retest |
| install/kubernetes/istio.yaml | ||
| samples/bookinfo/consul/bookinfo.sidecars.yaml | ||
| samples/bookinfo/eureka/bookinfo.sidecars.yaml | ||
| istio.VERSION |
There was a problem hiding this comment.
I realize I mentioned to add it to git ignore but I am hoping it still is editable despite that - the bot still updates the proxy sha in there I think
ldemailly
left a comment
There was a problem hiding this comment.
looks like you have an accidental change to vendor submodule, please revert that (I guess that's what jnr was worried about)
| # Note: in a branch, this will get the latest from master. In master it has no effect. | ||
| # (pull == fetch + merge ) | ||
| git.pullmaster: | ||
| git merge master |
There was a problem hiding this comment.
do you need a git fetch then now ? also maybe update the comment (pull == fetch + merge ) part
|
can you |
|
Did make pull, pushed.
Re. .gitignore - I don't know how it'll impact the bot, but every developer
testing will have the
istio.VERSION updated by updateVersion.sh - and will have to remember to
revert that before
sumitting.
It can still be submitted - with "-f".
Hopefully the other PR on helm and the work to switch off updateVersion
will be done soon.
…On Tue, Feb 20, 2018 at 6:03 PM, Laurent Demailly ***@***.***> wrote:
can you make pull and update the PR, I want to confirm it won't have any
vendor changes
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#3599 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAFI6v3nFZpM7E2vPkoSQJvvKma5yVw2ks5tW3lggaJpZM4SJ0E1>
.
|
|
the errors are getting fixed in mandar's pr #3638 /lgtm but will need to / retest once that's fixed |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: ldemailly The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these OWNERS Files:
You can indicate your approval by writing |
|
/test istio-presubmit |
|
/test all [submit-queue is verifying that this PR is safe to merge] |
|
Automatic merge from submit-queue. |
[solo-io/istio merge job] Nightly merge of upstream into master-solo
to re-run and test after (only used in circleci, new target). The new target also works manually.
tests are not compatible with normal istio configs.