Skip to content

[Cloud Run] System Packages #1610

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

Merged
merged 10 commits into from
Oct 11, 2019
Merged

[Cloud Run] System Packages #1610

merged 10 commits into from
Oct 11, 2019

Conversation

averikitsch
Copy link
Contributor

No description provided.

@averikitsch averikitsch requested a review from a team October 8, 2019 22:08
@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Oct 8, 2019
@averikitsch
Copy link
Contributor Author

This is reliant on graphviz being installed. I need to figure out how to add that to the testing env.

@kurtisvg
Copy link
Contributor

kurtisvg commented Oct 9, 2019

You'll need to either update the kokoro script to install it, or get it inside the container.

@averikitsch
Copy link
Contributor Author

Adding it to the container. Will re-run the tests once the testing container has been updated.

@averikitsch averikitsch added the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2019
@kokoro-team kokoro-team removed the kokoro:force-run Add this label to force Kokoro to re-run the tests. label Oct 9, 2019
@averikitsch
Copy link
Contributor Author

@kurtisvg ready for review now

Copy link
Contributor

@kurtisvg kurtisvg left a comment

Choose a reason for hiding this comment

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

LGTM, one nit - are you sure you need to shade the jar?

</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
Copy link
Contributor

Choose a reason for hiding this comment

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

Why do we need to shade this package?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

That's how the Spark framework recommends creating an uber-jar in order to run the application.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Would you recommend not using it?

Copy link
Contributor

Choose a reason for hiding this comment

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

It seems odd to me - shading doesn't just add the dependencies, it remaps them all. Usually this is to avoid conflicts between dependencies. Normally, I would expect creating an uber-jar to use something like this.

Look at the SparkJava docs, i don't see anything about creating an uber-jar. The only reference I can find is this tutorial, which doesn't seem to be official documentation.

So it seems like shading might be unnecessary, but I don't know enough about Spark to say definitely.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks for explaining your thoughts. I've looked more into it and have removed the shade.

Copy link
Contributor

Choose a reason for hiding this comment

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

👍

@averikitsch averikitsch merged commit 7a7d297 into master Oct 11, 2019
@averikitsch averikitsch deleted the packages branch October 11, 2019 15:57
bradmiro pushed a commit that referenced this pull request Dec 2, 2019
* draft

* Update comments/linting

* Add test and lint

* remove print

* fix linting

* Fix lint

* Remove shaded
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla: yes This human has signed the Contributor License Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants