Skip to content
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

Add python client unit testing to the CI #5591

Merged
merged 4 commits into from
Apr 11, 2023

Conversation

debermudez
Copy link
Contributor

No description provided.

@debermudez debermudez force-pushed the dbermudez-add-client-testing-to-ci branch 3 times, most recently from a69e95d to 8716b4a Compare April 10, 2023 20:20
@debermudez debermudez force-pushed the dbermudez-add-client-testing-to-ci branch from 8716b4a to 3e16059 Compare April 11, 2023 17:34
@@ -205,6 +205,10 @@ RUN mkdir qa
COPY qa/L0_sdk qa/L0_sdk
COPY qa/L0_client_build_variants qa/L0_client_build_variants

# Create a directory for all the python client tests to enable unit testing
RUN mkdir -p qa/python_client_unit_tests/
COPY --from=sdk_build /workspace/client/src/python/library/tests/* qa/python_client_unit_tests/
Copy link
Contributor

Choose a reason for hiding this comment

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

Nit: To make this consistent with the previous COPY commands and prevent COPY from being called multiple times on each file in the directory, you may want to update this line to:
COPY --from=sdk_build /workspace/client/src/python/library/tests qa/python_client_unit_tests

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I wasnt sure if dockerfiles worked exactly like unix commands.
In unix, that grabs the directory plus contents. I only want the contents

@dyastremsky
Copy link
Contributor

dyastremsky commented Apr 11, 2023

Great work on these! More unit tests are great.

As a general comment, we need to be careful about including additional files in the SDK container that we ship. These are pretty small files, but we want to keep the containers as small as possible.

We could look at other approaches. For example, this is really just copying files from the client repo to the SDK container. It'd probably be easy to create a placeholder test in server/qa that does a minimal clone of the client repo to copy just these files and runs this test.

Also, if I'm reading your other PR right, these tests happen in the QA container anyway, right? I may be missing something, but I don't think copying them into the SDK container will run correctly.

@debermudez debermudez merged commit 11008c5 into main Apr 11, 2023
2 checks passed
@debermudez debermudez deleted the dbermudez-add-client-testing-to-ci branch April 11, 2023 21:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants