Skip to content

Upgrade to Bazel 0.12.0#481

Closed
pauldraper wants to merge 1 commit into
bazel-contrib:masterfrom
lucidsoftware:pauldraper-bazel-upgrade
Closed

Upgrade to Bazel 0.12.0#481
pauldraper wants to merge 1 commit into
bazel-contrib:masterfrom
lucidsoftware:pauldraper-bazel-upgrade

Conversation

@pauldraper

Copy link
Copy Markdown

No description provided.

@pauldraper

Copy link
Copy Markdown
Author

Failing on test_scala_library_expect_failure_on_missing_direct_java. Looks like we're losing the label.

@ittaiz

ittaiz commented Apr 13, 2018

Copy link
Copy Markdown
Contributor

This is strange. @tomlu @cushon any chance you can take a look? I think this is related to the SJD changes though the odd thing here is that AFAICT we are creating the ijar here when we compile java files. https://github.com/bazelbuild/rules_scala/blob/master/scala/scala.bzl#L321

@cushon

cushon commented Apr 13, 2018

Copy link
Copy Markdown
Contributor

ijars created by java_common.compile do not currently get stamped, and we can't fix that until the label is passed in to the API. This is partially what is being discussed in https://groups.google.com/forum/#!topic/bazel-discuss/mt2llfwzmac.

@ittaiz

ittaiz commented Apr 14, 2018 via email

Copy link
Copy Markdown
Contributor

@johnynek

Copy link
Copy Markdown
Contributor

looks like the test for strict deps needs to be updated. It failed.

@ittaiz

ittaiz commented Apr 24, 2018 via email

Copy link
Copy Markdown
Contributor

@ittaiz

ittaiz commented Apr 29, 2018

Copy link
Copy Markdown
Contributor

ok, the situation here is a bit complicated.
Bazel 0.12.0 indeed broke strict-deps add_dep support for code that doesn't use ijar (for example if you use the current scala_import or the filegroup from maven_jar)
internally we've worked around it by having a script iterate the log and take various hints to fix the suggestions but this is heavily based on internal assumptions.
The solution for most issues (except for exports) will probably come from: https://docs.google.com/document/d/1ubah6phuvWnugShtVgSQnaopQ1BtKtNxQASVwGZA7k0/edit?usp=sharing

I think the pragamatic approach here is to loosen the assertion in the test so that it covers strict-deps error but not the add_deps message until the above is implemented and supported in rules_scala.
This will allow to move forward with rules_scala's CI versions.

WDYT?

cc @natansil @or-shachar for thoughts as well

@natansil

Copy link
Copy Markdown
Contributor

@ittaiz I'm fine with loosening the tests. it's just the java ones right?
I suppose an issue should be opened that states the add_deps message tests should be re-instated once the solution is implemented in bazel itself.

@johnynek

Copy link
Copy Markdown
Contributor

Note, we are using the rules with bazel 0.12 at Stripe. No issues that I know of yet.

@jjudd

jjudd commented Apr 29, 2018

Copy link
Copy Markdown
Contributor

Lucid has also been running on 0.12 without issue. Strict/unused dep recommendations did break for us, so we changed all of our java_imports to scala_imports and are running off the work done in this branch: #487

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants