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

Adds workflow_dag engine_config column #209

Merged
merged 5 commits into from
Jul 26, 2022

Conversation

saurav-c
Copy link
Contributor

@saurav-c saurav-c commented Jul 13, 2022

Describe your changes and why you are making these changes

This PR adds an engine_config column to the workflow_dag table. This is necessary to store important information for mapping an Aqueduct workflow to the native concepts of the 3rd-party engine the workflow is set to run on, such as Airflow.

Related issue number (if any)

ENG-1243

Checklist before requesting a review

  • I have created a descriptive PR title. The PR title should complete the sentence "This PR...".
  • I have performed a self-review of my code.
  • I have included a small demo of the changes. For the UI, this would be a screenshot or a Loom video.
  • If this is a new feature, I have added unit tests and integration tests.
  • I have run the integration tests locally and they are passing.
  • I have run the linter script locally (See python3 scripts/run_linters.py -h for usage).
  • All features on the UI continue to work correctly.
  • Added one of the following CI labels:
    • run_integration_test: Runs integration tests
    • skip_integration_test: Skips integration tests (Should be used when changes are ONLY documentation/UI)

Test

I tested this schema change by creating a workflow (and workflow_dag) before applying the schema change. Then, I applied the schema change and confirmed that the new column was created. After this, I tested that the WorkflowDagReader was able to successfully read the engine_config column.

@saurav-c saurav-c changed the title Adds workflow_dag engine_config column [1/N] Adds workflow_dag engine_config column Jul 13, 2022
@saurav-c saurav-c force-pushed the eng-1276-add-backend-support-for-connecting-to-airflow branch from d90961a to 15f5939 Compare July 14, 2022 23:20
Base automatically changed from eng-1276-add-backend-support-for-connecting-to-airflow to main July 14, 2022 23:32
@saurav-c saurav-c force-pushed the 03-eng-1243-add-engine-config-col-to-workflow-dag branch 3 times, most recently from c985837 to f1ed136 Compare July 21, 2022 17:41
@saurav-c saurav-c changed the title [1/N] Adds workflow_dag engine_config column Adds workflow_dag engine_config column Jul 21, 2022
@saurav-c saurav-c changed the base branch from main to eng-1392-refactor-python-operator-entrypoints July 21, 2022 17:42
Base automatically changed from eng-1392-refactor-python-operator-entrypoints to main July 21, 2022 17:48
@saurav-c saurav-c force-pushed the 03-eng-1243-add-engine-config-col-to-workflow-dag branch 4 times, most recently from 6345003 to ef78cd5 Compare July 22, 2022 19:27
@saurav-c saurav-c requested review from likawind and cw75 July 22, 2022 21:38
@saurav-c saurav-c added the run_integration_test Triggers integration tests label Jul 22, 2022
@saurav-c saurav-c force-pushed the 03-eng-1243-add-engine-config-col-to-workflow-dag branch 2 times, most recently from 3ca8c68 to 92114b5 Compare July 25, 2022 20:46
@saurav-c saurav-c changed the base branch from main to eng-1435-allow-user-to-specify-s3-creds-airflow July 25, 2022 20:47
Copy link
Contributor

@likawind likawind left a comment

Choose a reason for hiding this comment

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

The test plan looks very solid!

@@ -29,7 +29,7 @@ import (
)

const (
RequiredSchemaVersion = 8
Copy link
Contributor

Choose a reason for hiding this comment

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

wow where is this field used? I'm surprised that nothing has been broken so far

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well this was more important in the enterprise project. Here once we modify the install_local and packaging scripts, we know that the next release will be running the correct schema version.

We do have a check here https://github.com/aqueducthq/aqueduct/blob/main/src/golang/cmd/server/server/aqueduct_server.go#L118 just to confirm.

Base automatically changed from eng-1435-allow-user-to-specify-s3-creds-airflow to main July 26, 2022 20:49
@saurav-c saurav-c force-pushed the 03-eng-1243-add-engine-config-col-to-workflow-dag branch from 92114b5 to de41446 Compare July 26, 2022 20:50
@saurav-c saurav-c merged commit d42c12e into main Jul 26, 2022
@saurav-c saurav-c deleted the 03-eng-1243-add-engine-config-col-to-workflow-dag branch July 26, 2022 21:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run_integration_test Triggers integration tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants