Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

feat: add workflow to build + test docker container #1278

Merged
merged 38 commits into from
Apr 22, 2024
Merged

Conversation

sarahwooders
Copy link
Collaborator

@sarahwooders sarahwooders commented Apr 20, 2024

Please describe the purpose of this pull request.
This PR adds integration tests for the MemGPT server docker container.

  • Run integration tests that build a container with the local code, run the container to create a MemGPT service, and test it with the client-side tests.
  • Remove the need for a client to have a local ~/.memgpt/config if the client is simply connecting to a MemGPT service
  • Allow passing in the server URI with MEMGPT_SERVER_URL to test_client.py

The development container can be built and run with:

docker compose -f dev-compose.yaml up --build -d

Test data is contained in the ./.persist/pgdata-test folder.

How to test
Tests added in .github/workflows/docker-integration-tests.yaml

Have you tested this PR?
Yes

@sarahwooders sarahwooders requested a review from cpacker April 21, 2024 20:37
@sarahwooders sarahwooders merged commit 048e55f into main Apr 22, 2024
5 checks passed
@sarahwooders sarahwooders deleted the docker-tests branch April 22, 2024 00:58
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants