yuxiqian / migration-test

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Flink CDC MigrationTestUtils

DataStream Migration Test Pipeline Migration Test

Pipeline Jobs

Preparation

  1. Install Ruby (macOS has embedded it by default)
  2. (Optional) Run gem install terminal-table for better display

Compile snapshot CDC versions

  1. Set CDC_SOURCE_HOME to the root directory of the Flink CDC git repository
  2. Run ruby prepare_libs.rb to download released / compile snapshot CDC versions

Run migration tests

  1. Enter conf/ and run docker compose up -d to start up test containers
  2. Set FLINK_HOME to the home directory of Flink
  3. Run ruby run_migration_test.rb to start testing

Result

The migration result will be displayed in the console like this:

+--------------------------------------------------------------------+
|                       Migration Test Result                        |
+--------------+-------+-------+-------+--------------+--------------+
|              | 3.0.0 | 3.0.1 | 3.1.0 | 3.1-SNAPSHOT | 3.2-SNAPSHOT |
| 3.0.0        | ❓    | ❓    | ❌    | ✅           | ✅           |
| 3.0.1        |       | ❓    | ❌    | ✅           | ✅           |
| 3.1.0        |       |       | ✅    | ❌           | ❌           |
| 3.1-SNAPSHOT |       |       |       | ✅           | ✅           |
| 3.2-SNAPSHOT |       |       |       |              | ✅           |
+--------------+-------+-------+-------+--------------+--------------+

DataStream Jobs

See datastream/README.md.

About


Languages

Language:Ruby 74.9%Language:Java 18.0%Language:YAML 7.1%