-
Notifications
You must be signed in to change notification settings - Fork 97
Description
I'm trying to update the schema for a custom ping that we developed for a Normandy study (telemetry/dnssec-study-v1). I want to test my changes and ensure that they're not breaking the schema. However, I'm having trouble getting the tests to run in Docker.
I'm on a 2018 Macbook Pro running Catalina. When I run mps-build followed by mps-test, the tests hang on "Collecting 0 items." To investigate further, I modified mps-test to replace --entrypoint=pytest with --entrypoint=/bin/bash. This shelled me into a container, so I then ran pytest -s -v to see if any errors would get printed. This seems to be the problem causing the tests to hang:
jnius.JavaException: JVM exception occurred: com/mozilla/telemetry/ingestion/sink/config/SinkConfig java.lang.NoClassDefFoundError
Interestingly, if I simply remove the --volume "$(pwd)":/app flag from mps-test, the dependency seems to appear in the container in target/ingestion-sink-0.1-SNAPSHOT.jar and target/ingestion-sink-0.1-SNAPSHOT.lib. When I run pytest -s -v again, the tests work.
Anyone have insight into why the ingestion-sink JAR is not copied over to the container when I run mps-test?