Skip to content

Conversation

@bosd
Copy link
Member

@bosd bosd commented Aug 12, 2025

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.

@bosd bosd added the help wanted Extra attention is needed label Aug 12, 2025
@bosd bosd force-pushed the feature/e2e-test-for-migration branch from b69e253 to 9b204cc Compare August 14, 2025 17:18
@bosd bosd force-pushed the feature/e2e-test-for-migration branch 2 times, most recently from 87ecc4a to a8650e0 Compare August 14, 2025 17:36
bosd and others added 3 commits August 14, 2025 19:38
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.
@bosd bosd force-pushed the feature/e2e-test-for-migration branch from 6110790 to 3095c3b Compare August 14, 2025 17:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

help wanted Extra attention is needed

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants