feat: Add e2e test for server-to-server migration#103
Draft
Conversation
b69e253 to
9b204cc
Compare
87ecc4a to
a8650e0
Compare
This commit introduces an end-to-end test for the direct server-to-server migration feature. The key changes include: - A new e2e test script `run_migration_e2e_tests.sh` that orchestrates the test by setting up Docker containers, seeding a source database, running the migration, and verifying the target database. - The seed data script `tests/e2e/seed_database.py` has been enhanced to include a relational field (`country_id`) to test the smart import functionality. - A new verification script `tests/e2e/verify_migration_data.py` checks for the correct migration of data, including the relational field. - The CI workflow in `.github/workflows/e2e.yml` has been updated to include a new job for running these migration tests. - The documentation for the server-to-server migration has been updated to mark the feature as experimental. feat(migration): Add server-to-server migration feature - Implements a new `migrate` command for direct server-to-server data transfer. - Uses in-memory Polars DataFrames for the migration process, improving efficiency. - Fixes CSV handling for in-memory data in the importer. - Adds a comprehensive end-to-end test for the migration workflow. - Updates the test to correctly filter and verify only migrated data.
Introduces a new end-to-end test suite for advanced data migration scenarios. This commit includes: - A dedicated Docker Compose file (`docker-compose.advanced.yml`) to set up source and target Odoo environments. - A new test runner script (`run_advanced_e2e_tests.sh`) to orchestrate the test lifecycle, including database seeding, data export/import, and verification. - Seeding and verification scripts (`seed_advanced_database.py`, `verify_advanced_data.py`) for the advanced test case. - Updates to the CI workflow to include a job for running these new tests. - Necessary modifications to the application logic to support the advanced test cases.
6110790 to
3095c3b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit introduces an end-to-end test for the direct server-to-server migration feature.
The key changes include:
run_migration_e2e_tests.shthat orchestrates the test by setting up Docker containers, seeding a source database, running the migration, and verifying the target database.tests/e2e/seed_database.pyhas been enhanced to include a relational field (country_id) to test the smart import functionality.tests/e2e/verify_migration_data.pychecks for the correct migration of data, including the relational field..github/workflows/e2e.ymlhas been updated to include a new job for running these migration tests.