Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

register toolchain only for container exec and use it in py*_image #1173

Merged
merged 12 commits into from
Oct 4, 2019

Conversation

nlopezgi
Copy link
Contributor

@nlopezgi nlopezgi commented Oct 2, 2019

The python toolchain we are registering for execution inside the container seems to be messing up with execution outside the container as documented here https://github.com/bazelbuild/rules_docker#known-issues-1. target_compatible_with should now be supported on all targets, so restricting our toolchain using target_compatible_with should make this error go away.
See #1105

@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 2, 2019

/gcbrun

@@ -6,7 +6,7 @@ buildifier:
# are enabled except:
# rule-impl-return, uninitialized, return-value, rule-impl-return
# TODO (suvanjan): Re-enable once issues are fixed.
warnings: "attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,confusing-name,constant-glob,ctx-actions,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,function-docstring,git-repository,http-archive,integer-division,load,load-on-top,module-docstring,name-conventions,native-build,native-package,no-effect,out-of-order-load,output-group,package-name,package-on-top,positional-args,redefined-variable,repository-name,same-origin-load,string-iteration,unreachable,unsorted-dict-items,unused-variable"
warnings: "attr-cfg,attr-license,attr-non-empty,attr-output-default,attr-single-file,confusing-name,constant-glob,ctx-actions,ctx-args,depset-iteration,depset-union,dict-concatenation,duplicated-name,filetype,function-docstring,git-repository,http-archive,integer-division,load,load-on-top,module-docstring,name-conventions,native-build,native-package,no-effect,out-of-order-load,output-group,package-name,package-on-top,redefined-variable,repository-name,same-origin-load,string-iteration,unreachable,unsorted-dict-items,unused-variable"
Copy link
Contributor Author

@nlopezgi nlopezgi Oct 2, 2019

Choose a reason for hiding this comment

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

removed "positional-args" due to bazelbuild/buildtools#726

@k8s-ci-robot k8s-ci-robot added size/L and removed size/M labels Oct 2, 2019
@nlopezgi nlopezgi force-pushed the fixPyToolchainError branch 8 times, most recently from 18d24f2 to 78ec016 Compare October 2, 2019 20:49
@nlopezgi nlopezgi force-pushed the fixPyToolchainError branch from 78ec016 to 7476ef4 Compare October 2, 2019 20:55
@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 2, 2019

/gcbrun

@nlopezgi nlopezgi changed the title register toolchain only for container exec and use it in pyX_image [DO NOT REVIEW YET] - register toolchain only for container exec and use it in pyX_image Oct 2, 2019
@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@nlopezgi nlopezgi force-pushed the fixPyToolchainError branch 3 times, most recently from 47fd167 to 7daefb5 Compare October 3, 2019 16:57
@nlopezgi nlopezgi force-pushed the fixPyToolchainError branch from 7daefb5 to 61b959d Compare October 3, 2019 17:01
@nlopezgi nlopezgi changed the title [DO NOT REVIEW YET] - register toolchain only for container exec and use it in pyX_image register toolchain only for container exec and use it in py*_image Oct 3, 2019
@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@nlopezgi nlopezgi requested a review from brandjon October 3, 2019 17:09
@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@nlopezgi nlopezgi force-pushed the fixPyToolchainError branch from a42ff6c to 9cff262 Compare October 3, 2019 18:12
@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@nlopezgi
Copy link
Contributor Author

nlopezgi commented Oct 3, 2019

/gcbrun

@k8s-ci-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: nlopezgi, smukherj1

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@nlopezgi nlopezgi merged commit b5e5506 into bazelbuild:master Oct 4, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants