You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by GitBox <gi...@apache.org> on 2021/07/23 05:11:48 UTC
[GitHub] [druid] jon-wei opened a new pull request #11487: Fix integration test credential resource path handling
jon-wei opened a new pull request #11487:
URL: https://github.com/apache/druid/pull/11487
This PR fixes an issue with the integration test `copy_resources.sh` script.
The "install druid jars" portion was removing the `$SHARED_DIR/docker` directory, which wipes out the `$SHARED_DIR/docker/extensions` and `$SHARED_DIR/docker/credentials` directories created just before, which leads to issues later in the script when copying resources to the `$SHARED_DIR/docker/credentials/` dir.
This PR has:
- [x] been self-reviewed.
- [ ] added documentation for new or modified features or behaviors.
- [ ] added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
- [ ] added or updated version, license, or notice information in [licenses.yaml](https://github.com/apache/druid/blob/master/dev/license.md)
- [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
- [ ] added unit tests or modified existing tests to cover new code paths, ensuring the threshold for [code coverage](https://github.com/apache/druid/blob/master/dev/code-review/code-coverage.md) is met.
- [x] added integration tests.
- [ ] been tested in a test Druid cluster.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a change in pull request #11487: Fix integration test credential resource path handling
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on a change in pull request #11487:
URL: https://github.com/apache/druid/pull/11487#discussion_r675470905
##########
File path: integration-tests/script/copy_resources.sh
##########
@@ -14,13 +14,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+echo "Copying integration test resources."
+
set -e
# setup client keystore
./docker/tls/generate-client-certs-and-keystores.sh
rm -rf docker/client_tls
cp -r client_tls docker/client_tls
+# install druid jars
+rm -rf $SHARED_DIR/docker
Review comment:
```
Warning:
The JKS keystore uses a proprietary format. It is recommended to migrate to PKCS12 which is an industry standard format using "keytool -importkeystore -srckeystore intermediate_ca_client.jks -destkeystore intermediate_ca_client.jks -deststoretype pkcs12".
cp: cannot create directory '/home/travis/shared/docker': No such file or directory
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 merged pull request #11487: Fix integration test credential resource path handling
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 merged pull request #11487:
URL: https://github.com/apache/druid/pull/11487
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on pull request #11487: Fix integration test credential resource path handling
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on pull request #11487:
URL: https://github.com/apache/druid/pull/11487#issuecomment-887264493
Thanks, @jon-wei for fixing this. I have merged the PR.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a change in pull request #11487: Fix integration test credential resource path handling
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on a change in pull request #11487:
URL: https://github.com/apache/druid/pull/11487#discussion_r676386061
##########
File path: integration-tests/script/copy_resources.sh
##########
@@ -14,13 +14,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+echo "Copying integration test resources."
+
set -e
# setup client keystore
./docker/tls/generate-client-certs-and-keystores.sh
rm -rf docker/client_tls
cp -r client_tls docker/client_tls
+# install druid jars
+rm -rf $SHARED_DIR/docker
+cp -R docker $SHARED_DIR/docker
Review comment:
```suggestion
rm -rf $SHARED_DIR/docker
mkdir -p $SHARED_DIR
cp -R docker $SHARED_DIR/docker
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org
[GitHub] [druid] abhishekagarwal87 commented on a change in pull request #11487: Fix integration test credential resource path handling
Posted by GitBox <gi...@apache.org>.
abhishekagarwal87 commented on a change in pull request #11487:
URL: https://github.com/apache/druid/pull/11487#discussion_r675470721
##########
File path: integration-tests/script/copy_resources.sh
##########
@@ -14,13 +14,20 @@
# See the License for the specific language governing permissions and
# limitations under the License.
+echo "Copying integration test resources."
+
set -e
# setup client keystore
./docker/tls/generate-client-certs-and-keystores.sh
rm -rf docker/client_tls
cp -r client_tls docker/client_tls
+# install druid jars
+rm -rf $SHARED_DIR/docker
Review comment:
CI failures look legit.
We also need to run `mkdir -p $SHARED_DIR` so that $SHARED_DIR is present. It's probably already created on everyone's machine who has ever run IT tests :)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org