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

CI: rules_docker failing on macOS #4173

Closed
laszlocsomor opened this issue Nov 27, 2017 · 25 comments
Closed

CI: rules_docker failing on macOS #4173

laszlocsomor opened this issue Nov 27, 2017 · 25 comments
Assignees
Labels
breakage P1 I'll work on this now. (Assignee required) type: bug

Comments

@laszlocsomor
Copy link
Contributor

bazel-nightly's downstream project "rules_docker " is failing:

https://ci.bazel.io/job/Global/job/rules_docker/294/consoleFull

[variation=,node=darwin-x86_64] FAILED: Build did NOT complete successfully (75 packages loaded)
[variation=,node=darwin-x86_64] FAILED: Build did NOT complete successfully (75 packages loaded)
[variation=,node=darwin-x86_64] java.lang.RuntimeException: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://testdata:java_bin_as_lib_image e4509483ce5a4ed4ff6e50c5e4b8b8b6 (1167560220 1611918777)' (requested by nodes )
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:414)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:352)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[variation=,node=darwin-x86_64] 	at java.lang.Thread.run(Thread.java:748)
[variation=,node=darwin-x86_64] Caused by: java.lang.IllegalArgumentException: Invalid EvalException:
[variation=,node=darwin-x86_64] java.lang.NullPointerException
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.rules.java.JavaInfo.getTransitiveRuntimeJars(JavaInfo.java:213)
[variation=,node=darwin-x86_64] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[variation=,node=darwin-x86_64] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[variation=,node=darwin-x86_64] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[variation=,node=darwin-x86_64] 	at java.lang.reflect.Method.invoke(Method.java:498)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callMethod(FuncallExpression.java:297)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.eval(DotExpression.java:115)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.doEval(DotExpression.java:54)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:686)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:746)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execStatements(Eval.java:221)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIfBranch(Eval.java:62)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:188)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIf(Eval.java:119)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:204)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:747)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.skylark.SkylarkRuleConfiguredTargetUtil.buildRule(SkylarkRuleConfiguredTargetUtil.java:92)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:347)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:233)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:500)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:589)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:245)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:340)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:352)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[variation=,node=darwin-x86_64] 	at java.lang.Thread.run(Thread.java:748)
[variation=,node=darwin-x86_64] 
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException.<init>(EvalException.java:112)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException$EvalExceptionWithJavaCause.<init>(EvalException.java:209)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException$EvalExceptionWithJavaCause.<init>(EvalException.java:217)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callMethod(FuncallExpression.java:330)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.eval(DotExpression.java:115)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.doEval(DotExpression.java:54)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:686)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:746)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execStatements(Eval.java:221)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIfBranch(Eval.java:62)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:188)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIf(Eval.java:119)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:204)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:747)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.skylark.SkylarkRuleConfiguredTargetUtil.buildRule(SkylarkRuleConfiguredTargetUtil.java:92)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:347)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:233)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:500)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:589)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:245)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:340)
[variation=,node=darwin-x86_64] 	... 4 more
[variation=,node=darwin-x86_64] java.lang.RuntimeException: Unrecoverable error while evaluating node 'CONFIGURED_TARGET://testdata:java_bin_as_lib_image e4509483ce5a4ed4ff6e50c5e4b8b8b6 (1167560220 1611918777)' (requested by nodes )
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:414)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:352)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[variation=,node=darwin-x86_64] 	at java.lang.Thread.run(Thread.java:748)
[variation=,node=darwin-x86_64] Caused by: java.lang.IllegalArgumentException: Invalid EvalException:
[variation=,node=darwin-x86_64] java.lang.NullPointerException
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.rules.java.JavaInfo.getTransitiveRuntimeJars(JavaInfo.java:213)
[variation=,node=darwin-x86_64] 	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[variation=,node=darwin-x86_64] 	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[variation=,node=darwin-x86_64] 	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[variation=,node=darwin-x86_64] 	at java.lang.reflect.Method.invoke(Method.java:498)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callMethod(FuncallExpression.java:297)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.eval(DotExpression.java:115)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.doEval(DotExpression.java:54)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:686)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:746)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execStatements(Eval.java:221)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIfBranch(Eval.java:62)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:188)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIf(Eval.java:119)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:204)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:747)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.skylark.SkylarkRuleConfiguredTargetUtil.buildRule(SkylarkRuleConfiguredTargetUtil.java:92)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:347)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:233)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:500)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:589)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:245)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:340)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.concurrent.AbstractQueueVisitor$WrappedRunnable.run(AbstractQueueVisitor.java:352)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
[variation=,node=darwin-x86_64] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
[variation=,node=darwin-x86_64] 	at java.lang.Thread.run(Thread.java:748)
[variation=,node=darwin-x86_64] 
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException.<init>(EvalException.java:112)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException$EvalExceptionWithJavaCause.<init>(EvalException.java:209)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.EvalException$EvalExceptionWithJavaCause.<init>(EvalException.java:217)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callMethod(FuncallExpression.java:330)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.eval(DotExpression.java:115)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.DotExpression.doEval(DotExpression.java:54)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.evalArguments(FuncallExpression.java:686)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:746)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execStatements(Eval.java:221)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIfBranch(Eval.java:62)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:188)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execIf(Eval.java:119)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:204)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.callFunction(FuncallExpression.java:747)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.FuncallExpression.doEval(FuncallExpression.java:719)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Expression.eval(Expression.java:67)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.LValue.assignAugmented(LValue.java:177)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execAugmentedAssignment(Eval.java:57)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.execDispatch(Eval.java:185)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.Eval.exec(Eval.java:173)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.UserDefinedFunction.call(UserDefinedFunction.java:88)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.syntax.BaseFunction.call(BaseFunction.java:430)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.skylark.SkylarkRuleConfiguredTargetUtil.buildRule(SkylarkRuleConfiguredTargetUtil.java:92)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createRule(ConfiguredTargetFactory.java:347)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.analysis.ConfiguredTargetFactory.createConfiguredTarget(ConfiguredTargetFactory.java:233)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.SkyframeBuildView.createConfiguredTarget(SkyframeBuildView.java:500)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.createConfiguredTarget(ConfiguredTargetFunction.java:589)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.lib.skyframe.ConfiguredTargetFunction.compute(ConfiguredTargetFunction.java:245)
[variation=,node=darwin-x86_64] 	at com.google.devtools.build.skyframe.AbstractParallelEvaluator$Evaluate.run(AbstractParallelEvaluator.java:340)
[variation=,node=darwin-x86_64] 	... 4 more
@mattmoor
Copy link

What's going on with this?

@laszlocsomor
Copy link
Contributor Author

@mattmoor : Do you need more information? I was going to assign this bug to someone who maintains https://github.com/bazelbuild/rules_docker but I see you are one. :)

@Capstan
Copy link
Contributor

Capstan commented Nov 29, 2017

I don't think this is rules_docker's fault. It was caused in-between commits to that repo, and coincided with the most recent release of bazel. If I go back to 0.7.0, it doesn't break the same way.

@Capstan
Copy link
Contributor

Capstan commented Nov 29, 2017

This is also not MacOS-specific.

@Capstan
Copy link
Contributor

Capstan commented Nov 29, 2017

Moreover I think this was one of the cherrypicks into 0.8, since I had put a travis build of a early testing release of 0.8-rc2 and it didn't have the same problem (bazelbuild/rules_docker#214 (comment))

@Capstan
Copy link
Contributor

Capstan commented Nov 29, 2017

https://travis-ci.org/bazelbuild/rules_docker/builds/299556420 is the run against the then-testing 0.8.0 release plus my changes that succeeded.

@mattmoor
Copy link

@laszlocsomor As @Capstan indicates, this is almost certainly a Bazel 0.8 bug.

If there is a workaround in rules_docker, I'm happy to apply it, but I don't even know where to begin parsing that monstrous stack trace.

@damienmg FYI

@davido
Copy link
Contributor

davido commented Nov 30, 2017

@mattmoor As always, try to create a minimal reproducer fot this problem.

@damienmg damienmg added breakage P1 I'll work on this now. (Assignee required) Release blocker type: bug labels Nov 30, 2017
@damienmg
Copy link
Contributor

@dslomov: Can you investigate and cherrypick a fix in 0.8.1? I saw the failure on the release candidate: https://ci.bazel.io/view/Bazel%20bootstrap%20and%20maintenance/job/bazel/job/release/328/Downstream_projects/

@dslomov
Copy link
Contributor

dslomov commented Nov 30, 2017

The problematic commit in Bazel is this 7c605cf, which is old but only got released in 0.8.0. I suspect something happened is rules_docker or their dependencies to trigger this. Assigning to @iirina for triage: can we make a fix that can be cherry-picked to 0.8.0?

@dslomov dslomov assigned iirina and dslomov and unassigned dslomov Nov 30, 2017
@dslomov
Copy link
Contributor

dslomov commented Nov 30, 2017

the commit where this started to fail in rules_docker is bazelbuild/rules_docker@2bfd21e

@dslomov
Copy link
Contributor

dslomov commented Nov 30, 2017

repro is:

git clone git@github.com:bazelbuild/rules_docker.git
cd rules_docker
bazel build //...

@mattmoor
Copy link

(shameless plug) @iirina is the reviewer on the Groovy version of this PR, which needs love too :)

@mattmoor
Copy link

Ugh, CI for rules_docker is just dead. How do we avoid this in the future? Are there Bazel CI legs that can be added to test against HEAD?

What's the timeline on a fix? I'm guessing not the 0.9 RC since that cuts tomorrow... :(

@dslomov
Copy link
Contributor

dslomov commented Nov 30, 2017

We will block cutting 0.9 RC on fixing this.

@damienmg
Copy link
Contributor

damienmg commented Dec 1, 2017 via email

@dslomov
Copy link
Contributor

dslomov commented Dec 1, 2017

#4196 (see above) tracks a potential patch release.

@damienmg
Copy link
Contributor

damienmg commented Dec 1, 2017 via email

@iirina
Copy link
Contributor

iirina commented Dec 1, 2017

Hi,

I'm working on a fix. I tried to reproduce the issue with my custom bazel but ran into another error:

ERROR: /home/elenairina/testnpe/rules_docker/testdata/BUILD:131:1: ImageLayer testdata/base_with_entrypoint-layer.tar failed (Exit 1)
Traceback (most recent call last):
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/io_bazel_rules_docker/container/build_tar.py", line 23, in <module>
    from third_party.py import gflags
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/__init__.py", line 1, in <module>
    from gflags import *
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/gflags/__init__.py", line 871, in <module>
    _helpers.SPECIAL_FLAGS)
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/gflags/__init__.py", line 560, in DEFINE_string
    DEFINE(parser, name, default, help, flag_values, serializer, **args)
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/gflags/__init__.py", line 392, in DEFINE
    flag_values, module_name)
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/gflags/__init__.py", line 413, in DEFINE_flag
    fv[flag.name] = flag
  File "/home/elenairina/.cache/bazel/_bazel_elenairina/0c66a61696353126ad55bd3793c13ec8/bazel-sandbox/6324190021707892768/execroot/io_bazel_rules_docker/bazel-out/host/bin/container/build_tar.runfiles/bazel_tools/third_party/py/gflags/gflags/flagvalues.py", line 442, in __setitem__
    raise exceptions.DuplicateFlagError.from_flag(name, self)
gflags.exceptions.DuplicateFlagError: The flag 'flagfile' is defined twice. First from third_party.py.gflags.gflags, Second from third_party.py.gflags.  Description from first occurrence: Insert flag definitions from the given file into the command line.

Any thoughts how I can test that I fixed this with rules_docker?

@Capstan
Copy link
Contributor

Capstan commented Dec 1, 2017

Hm. That looks like gflags/python-gflags#9, but like gflags self-hosed. Given this is pulling from bazel_tools (i.e., the bazel you've built), perhaps there's another issue recently introduced? (e.g., 8fd0f4a)

@Capstan
Copy link
Contributor

Capstan commented Dec 1, 2017

@iirina
Copy link
Contributor

iirina commented Dec 1, 2017

@Capstan thanks! I reverted fb15f0f locally before I built bazel and I managed to build rules_docker succesfully! Fix will land anytime now.

@Capstan
Copy link
Contributor

Capstan commented Dec 1, 2017

Is there something tracking the gflags weirdness yet? (is it known outside of the rules_docker issue?)

@iirina
Copy link
Contributor

iirina commented Dec 1, 2017

Not that I know of. I will open a new bug about it now.

dslomov pushed a commit that referenced this issue Dec 1, 2017
Fixes #4173.

RELNOTES: None.
PiperOrigin-RevId: 177582228
@mattmoor
Copy link

mattmoor commented Dec 1, 2017

thanks for getting this resolved!

dslomov pushed a commit that referenced this issue Dec 4, 2017
Fixes #4173.

RELNOTES: None.
PiperOrigin-RevId: 177582228
dslomov pushed a commit that referenced this issue Dec 4, 2017
Fixes #4173.

RELNOTES: None.
PiperOrigin-RevId: 177582228
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
breakage P1 I'll work on this now. (Assignee required) type: bug
Projects
None yet
Development

No branches or pull requests

7 participants