1- # Model Change Detector
1+ # Data Pipeline Orchestrator
22
3- [ ![ Build Status] ( https://travis-ci.com/PageUpPeopleOrg/model-change-detector .svg?branch=master )] ( https://travis-ci.com/PageUpPeopleOrg/model-change-detector )
3+ [ ![ Build Status] ( https://travis-ci.com/PageUpPeopleOrg/data-pipeline-orchestrator .svg?branch=master )] ( https://travis-ci.com/PageUpPeopleOrg/data-pipeline-orchestrator )
44
55A utility that persists state of a data pipeline execution and uses them to detect changes in models.
66
77## Usage
88
99```
10- $ python -m mcd [options] {db-connection-string} <command> [command-parameters]
10+ $ python -m dpo [options] {db-connection-string} <command> [command-parameters]
1111```
1212
1313- ` options ` include:
@@ -34,8 +34,8 @@ $ python -m mcd [options] {db-connection-string} <command> [command-parameters]
3434To get help, use:
3535
3636```
37- $ python -m mcd --help
38- $ python -m mcd <command> --help
37+ $ python -m dpo --help
38+ $ python -m dpo <command> --help
3939```
4040
4141### Usage Example
@@ -44,18 +44,18 @@ $ python -m mcd <command> --help
4444$ pipenv install
4545$ pipenv shell
4646
47- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname init-execution
47+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname init-execution
4848
49- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
49+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname get-last-successful-execution
50+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname get-execution-last-updated-timestamp id-as-returned-by-get-last-successful-execution-command
5151
52- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
52+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command load ./relative/path/to/load/models **/*.json
53+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command load
5454
55- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
55+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname persist-models id-as-retured-by-init-command transform C:/absolute/path/to/transform/models group1/*.csv ./group2/**/*.sql
56+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname compare-models id-as-retured-by-get-last-successful-execution-command id-as-retured-by-init-command transform
5757
58- $ python -m mcd postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
58+ $ python -m dpo postgresql+psycopg2://user:password@host:port/dbname complete-execution id-as-retured-by-init-command
5959```
6060
6161## Prerequisites
@@ -90,9 +90,9 @@ To activate a virtual environment, run the following command:
9090$ pipenv shell
9191```
9292
93- ### Using MCD
93+ ### Using DPO
9494
95- Once the virtual environment has been activated, please refer to [ usage] ( #Usage ) for how to use MCD .
95+ Once the virtual environment has been activated, please refer to [ usage] ( #Usage ) for how to use DPO .
9696
9797## Testing
9898
@@ -103,17 +103,23 @@ To run integration tests locally, it is highly recommended that [Docker](https:/
103103To run unit tests, run the following command:
104104
105105```
106- $ python pytest
106+ $ pytest
107107```
108108
109109### Integration Tests
110110
111- To run integration tests, please ensure the following information is configured correctly:
111+ Before running integration tests, please ensure the following information is configured correctly:
112112
113- - ` tests/integration/test_integration.sh:9 `
113+ - ` tests/integration/test_integration.sh:7 `
114114
115115Please ensure that the database connection string points to a valid PostgreSQL instance with valid parameters.
116116
117+ To run integration tests, run the following command:
118+
119+ ```
120+ $ ./tests/integration/test_integration.sh
121+ ```
122+
117123#### Docker
118124
119125If Docker is installed, running tests is as simple as running the following commands:
0 commit comments