-
Notifications
You must be signed in to change notification settings - Fork 118
Development workflow documentation for the current state of the world. #20
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The main things I'd want when looking at dev docs are 1) how to build it, and 2) how to run the tests. From the user docs, I'd expect to get 3) how to run it.
I think we cover 1 and 3 but not fully 2 yet
order to prepare the environment for running the integration tests, the `pre-integration-test` step must be run in Maven | ||
on the `resource-managers/kubernetes/integration-tests` module: | ||
|
||
build/mvn pre-integration-test -Pkubernetes -Pkubernetes-integration-tests -pl resource-managers/kubernetes/integration-tests -am |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
once this pre-integration-test profile is run, how do I run the tests themselves? just the k8s ones
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This depends so I wasn't sure how to include it. If just running from the command line, there should be just a maven command for it - this follows the general maven semantics but needing to specify each of the suites means that if we add, rename, or delete suites, we would have to adjust the docs accordingly.
If running in IntelliJ, before running any test in IntelliJ, if any code changes the pre-integration-test has to be run. From there it's just using JUnit to run the test classes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe then just a message afterwards saying something like "now run your tests normally, either on the command line with maven or through an IDE like IntelliJ"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,45 @@ | |||
--- | |||
layout: global | |||
title: Spark on Kubernetes Development |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
at the bottom of the page we should link to the user docs for how to use it as a natural continuation from the dev setup docs
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
…te-incremental' into k8s-dev-docs
build/mvn pre-integration-test -Pkubernetes -Pkubernetes-integration-tests -pl resource-managers/kubernetes/integration-tests -am | ||
|
||
Afterwards, the integration tests can be executed with Maven or your IDE. Note that when running tests from an IDE, the | ||
`pre-integration-test` phase must be run every time the core Kubernetes code changes. When running tests from the |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
by "core Kubernetes code" here you mean the spark-kubernetes integration, not the upstream kubernetes.io code right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should say Spark code in general since people can make changes to core as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good pending a clarification around "core kubernetes code"
Do we also want to link the proposal, kubernetes/kubernetes#34377 and the JIRA here? |
@foxish good idea but I think just the JIRA will suffice since the proposal is attached to it. |
Sounds good. Rest LGTM. |
@aash addressed clarification, good to merge? |
#20) * Development workflow documentation for the current state of the world. * Address comments. * Clarified code change and added ticket link
#20) * Development workflow documentation for the current state of the world. * Address comments. * Clarified code change and added ticket link
#20) * Development workflow documentation for the current state of the world. * Address comments. * Clarified code change and added ticket link
apache-spark-on-k8s#20) * Development workflow documentation for the current state of the world. * Address comments. * Clarified code change and added ticket link
apache-spark-on-k8s#20) * Development workflow documentation for the current state of the world. * Address comments. * Clarified code change and added ticket link
Note the modules section and the integration tests section isn't too much of a concern since we're changing those pretty soon anyways, at least ideally. The current state of how to run integration tests isn't great and we should be looking into improving that.