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

feat: Containerize integration tests. #809

Merged
merged 6 commits into from
Dec 17, 2024
Merged

feat: Containerize integration tests. #809

merged 6 commits into from
Dec 17, 2024

Conversation

b4handjr
Copy link
Collaborator

@b4handjr b4handjr commented Dec 10, 2024

This adds the needed files to containerize the integration tests. It can be run as follows: docker compose -f tests/integration/docker-compose.yml run -it integration-tests.

Fixes: SYNC-4118

@b4handjr
Copy link
Collaborator Author

Looks like I got my branch names mixed up.

@b4handjr b4handjr requested a review from Trinaa December 10, 2024 23:07
Copy link
Contributor

@Trinaa Trinaa left a comment

Choose a reason for hiding this comment

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

Referring back to the acceptance criteria in SYNC-4118 there are some things missing in this PR:

  1. Adding a Make command
  2. Updating the CircleCI to build the container and execute the containerized tests via the make command. Also does SRE need the Docker image to be pushed if these are also running in CD?
  3. Updating the testing.md documentation.

tests/integration/Dockerfile Outdated Show resolved Hide resolved
tests/integration/Dockerfile Outdated Show resolved Hide resolved
@b4handjr
Copy link
Collaborator Author

I left the old integration test makefile command as it is easier to run specific tests that way. Passing arguments through to the docker image is painful and I haven't been able to get it to work reliably.

@@ -354,6 +329,26 @@ jobs:
paths:
- autopush-locust.tar

build-integration-test:
Copy link
Contributor

@Trinaa Trinaa Dec 13, 2024

Choose a reason for hiding this comment

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

Thank you for adding the CI stuff. It all works great locally for me! 🌟

Double checking:
I think this job needs to be added to the workflow? Can the image be re-used by the integration test job as a pre-req?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Yeah I didn't add it as I wanted to do it in a separate PR. It could be reused after it's pushed to GAR. That would allow us to use circleci layer caching too actually.

Copy link
Contributor

@Trinaa Trinaa left a comment

Choose a reason for hiding this comment

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

Approved with understanding that there is a follow-up PR coming to finish the integration with CI. Thank you @b4handjr

@b4handjr b4handjr merged commit f876304 into master Dec 17, 2024
1 check passed
@b4handjr b4handjr deleted the sync-4520 branch December 17, 2024 15:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants