Skip to content

CI/build adjustments#3599

Merged
istio-merge-robot merged 25 commits intomasterfrom
costin-build0218
Feb 21, 2018
Merged

CI/build adjustments#3599
istio-merge-robot merged 25 commits intomasterfrom
costin-build0218

Conversation

@costinm
Copy link
Copy Markdown
Contributor

@costinm costinm commented Feb 18, 2018

  • pull master
  • go 1.10 was released
  • pilot tests capturing junit-style test result (thanks @nmittler for converting to std tests)
  • pilot test also using the recommended release style ( istio-system ) and fixed ns so it's easy
    to re-run and test after (only used in circleci, new target). The new target also works manually.
  • adjusted the pilot labels to allow upgrade tests ( will install istio.yaml first ). Currently pilot
    tests are not compatible with normal istio configs.

@costinm costinm requested review from a team and ldemailly February 18, 2018 19:36
Copy link
Copy Markdown
Member

@ldemailly ldemailly left a comment

Choose a reason for hiding this comment

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

thx for tackling this, see below:

Comment thread .circleci/config.yml Outdated
sudo chown -R circleci /go
mkdir -p /home/circleci/logs
- checkout
- run: make git/master
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 ?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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 ?

Comment thread Makefile Outdated

# 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:
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

try/modify to make it work the existing 'pull' target line 180

Comment thread istio.VERSION
@@ -1,13 +1,13 @@
# DO NOT EDIT THIS FILE MANUALLY instead use
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

revert this (maybe we can put it in gitignore or some way to not change the one from source tree when we use it)

@costinm costinm requested a review from a team February 19, 2018 05:13
@costinm costinm requested a review from a team February 19, 2018 05:41
Comment thread .circleci/config.yml Outdated
- checkout
- run: make submodule-sync
- run: make init
- run: git.pullmaster
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Comment thread bin/init.sh
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 -'
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

add -f while at it (#3231)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

I'll leave it for a specific fix, not sure how it interact with the wget ( or why we even have wget ).

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Also there is a tar extraction, cleanup - seems better as a separate PR.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

if you're changing the curl command options please add f to curl options / why not?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

( -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)

Comment thread bin/init.sh
${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"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

please put the echo before the command not after so we know what it's doing/how it fails (#3231)

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Ok.

Comment thread tests/istio.mk Outdated
--ns istio-system \
--logtostderr \
-n istio-test \
${TESTOPTS} No newline at end of file
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

pro tip: set your editor to always have a last newline

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

added.

Comment thread .circleci/config.yml Outdated
- checkout
- run: make submodule-sync
- run: make init
- run: make git.pullmaster
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

still different order...

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Done

@costinm
Copy link
Copy Markdown
Contributor Author

costinm commented Feb 20, 2018

/retest

@costinm
Copy link
Copy Markdown
Contributor Author

costinm commented Feb 21, 2018

/retest

Comment thread .gitignore
install/kubernetes/istio.yaml
samples/bookinfo/consul/bookinfo.sidecars.yaml
samples/bookinfo/eureka/bookinfo.sidecars.yaml
istio.VERSION
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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

Copy link
Copy Markdown
Member

@ldemailly ldemailly left a comment

Choose a reason for hiding this comment

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

looks like you have an accidental change to vendor submodule, please revert that (I guess that's what jnr was worried about)

Comment thread Makefile
# 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
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

do you need a git fetch then now ? also maybe update the comment (pull == fetch + merge ) part

@ldemailly
Copy link
Copy Markdown
Member

ldemailly commented Feb 21, 2018

looks like the vendor change is from #3214 so maybe if this is ready to go we can fix it as part of this PR

edit: fixed the vendor on master 57a9d1a

@ldemailly
Copy link
Copy Markdown
Member

can you make pull and update the PR, I want to confirm it won't have any vendor changes

@costinm
Copy link
Copy Markdown
Contributor Author

costinm commented Feb 21, 2018 via email

@ldemailly
Copy link
Copy Markdown
Member

the errors are getting fixed in mandar's pr #3638

/lgtm

but will need to / retest once that's fixed

@istio-merge-robot
Copy link
Copy Markdown

[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.

Details Needs approval from an approver in each of these OWNERS Files:

You can indicate your approval by writing /approve in a comment
You can cancel your approval by writing /approve cancel in a comment

@ldemailly
Copy link
Copy Markdown
Member

/test istio-presubmit
/test istio-pilot-e2e

@istio-merge-robot
Copy link
Copy Markdown

/test all [submit-queue is verifying that this PR is safe to merge]

@istio-merge-robot
Copy link
Copy Markdown

Automatic merge from submit-queue.

@istio-merge-robot istio-merge-robot merged commit 3cd34d8 into master Feb 21, 2018
@ldemailly ldemailly deleted the costin-build0218 branch February 21, 2018 10:00
PetrMc pushed a commit to PetrMc/istio that referenced this pull request Jan 14, 2026
[solo-io/istio merge job] Nightly merge of upstream into master-solo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants