Skip to content
This repository has been archived by the owner on Jun 14, 2018. It is now read-only.

Enable config for release artifacts #1063

Closed
wants to merge 1 commit into from

Conversation

sebastienvas
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Aug 18, 2017

Codecov Report

Merging #1063 into master will increase coverage by 1.93%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master    #1063      +/-   ##
==========================================
+ Coverage   70.13%   72.06%   +1.93%     
==========================================
  Files          52       50       -2     
  Lines        6127     6126       -1     
==========================================
+ Hits         4297     4415     +118     
+ Misses       1630     1503     -127     
- Partials      200      208       +8
Impacted Files Coverage Δ
proxy/envoy/resources.go 84.17% <0%> (-1.86%) ⬇️
proxy/envoy/discovery.go 68.28% <0%> (-1.84%) ⬇️
model/validation.go 85.94% <0%> (-0.07%) ⬇️
test/mock/config.go 0% <0%> (ø) ⬆️
adapter/config/memory/controller.go 100% <0%> (ø) ⬆️
platform/consul/net.go
platform/kube/register.go
proxy/envoy/egress.go 91.66% <0%> (+0.14%) ⬆️
proxy/envoy/ingress.go 76% <0%> (+0.19%) ⬆️
platform/kube/inject/initializer.go 64.84% <0%> (+0.66%) ⬆️
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 5e1e0b1...3cf1937. Read the comment docs.

bin/init.sh Outdated
@@ -9,7 +19,7 @@ if [ $PDIR != "$GOPATH/src/istio.io/pilot" ]; then
fi

# Building and testing with Bazel
bazel build //...
bazel build ${bazel_build_args[@]} //...
Copy link
Contributor

Choose a reason for hiding this comment

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

If you really need to customize bazel build, then I suggest remove this line from this script.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removing and building where ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure what you meant here.

bin/push-docker Outdated

while [[ $# -gt 0 ]]; do
case "$1" in
-tag) tags="$2"; shift ;;
-hub) hubs="$2"; shift ;;
-config) bazel_build_args+=(--config="$2"); shift ;;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we call it bazelconfig or something more specific than "config"?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@@ -7,19 +7,22 @@
set -o errexit
set -o nounset
set -o pipefail
set -ex
Copy link
Contributor

Choose a reason for hiding this comment

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

why? that's same as options above

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I ll remove it, this was just for debugging to print the commands.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

tools/bazel.rc Outdated
@@ -2,5 +2,8 @@
build --verbose_failures
test --test_output=errors

# Release Build
build:release -c opt
Copy link
Contributor

Choose a reason for hiding this comment

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

does -c opt even have any effect on golang?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

From @ldemailly it does !

Copy link
Contributor

Choose a reason for hiding this comment

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

what changes in the go binary?

Copy link
Member

Choose a reason for hiding this comment

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

the 2x benefits I measured is with envoy (c++) but I expect debug to be -gcflags="-N -l" and opt to be without those and thus make a difference, not sure the bazel go rules do do that (we should check, but even if they don't today, having 2 or more config will be useful in the future)

Copy link
Contributor

Choose a reason for hiding this comment

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

yes, envoy is special. let's first check if there's any difference with rules_go. if not, then we can't even use bazel to accomplish optimized build.

Copy link
Member

@ldemailly ldemailly Aug 18, 2017

Choose a reason for hiding this comment

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

I asked in bazelbuild/rules_go#741 but we should use this config seb is adding anyway, to change the default/compiled in behavior of kube-inject / to select the optimized sidecar images for instance

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wish I had known that before starting.

case ${arg} in
c) INIT_ARGS+=(-config ${OPTARG});;
Copy link
Contributor

Choose a reason for hiding this comment

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

can we avoid mysterious short flags and use same flag as above?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done

@istio-merge-robot
Copy link

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
We suggest the following additional approver: rshriram

Assign the PR to them by writing /assign @rshriram in a comment when ready.

The full list of commands accepted by this bot can be found here.

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

@sebastienvas
Copy link
Contributor Author

Closing this as this is does not have any impact on the artifacts.

@ldemailly ldemailly reopened this Aug 22, 2017
@ldemailly
Copy link
Member

it will in next bazel: see bazelbuild/rules_go#743

@kyessenov
Copy link
Contributor

keep the PR open until rules_go releases the support.

@ldemailly
Copy link
Member

or we could just get it in and it'll get benefits automatically once bazel side changes - whichever works for you

@sebastienvas
Copy link
Contributor Author

closing this as I just force pushed to this branch and lost the code for this :(

@ldemailly
Copy link
Member

the bazel change is in, can we at least keep this for early part of 0.3

@ldemailly ldemailly reopened this Aug 28, 2017
@sebastienvas
Copy link
Contributor Author

we can but I lost the code, so I have to it all over again.

@ldemailly
Copy link
Member

@ldemailly
Copy link
Member

or use the reflog to recover the code ?
(but we can close this if you prefer - and just leave the issue)

@sebastienvas
Copy link
Contributor Author

sebastienvas commented Aug 29, 2017 via email

@ldemailly
Copy link
Member

ldemailly commented Aug 29, 2017

you can do "git reflog" and see your local history and go back to any point in that history
using git reset using the id on the left

screen shot 2017-08-29 at 8 56 26 am

@sebastienvas
Copy link
Contributor Author

it's gone!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants