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

build(markupsafe): update markupsafe pinning for Airflow compatibility #4388

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

set5think
Copy link
Contributor

@set5think set5think commented Mar 11, 2022

Airflow 2.0.2 - 2.2.2 has a pin on markupsafe as >=1.1.1,<2.0 because
of a bug shipped in markupsafe 2.0.x, preventing the ability to
integrate datahub and airflow.

This patch changes the pinnings to match Airflow.

Checklist

  • The PR conforms to DataHub's Contributing Guideline (particularly Commit Message Format)
  • Links to related issues (if applicable)
  • Tests for the changes have been added/updated (if applicable)
  • Docs related to the changes have been added/updated (if applicable)

@@ -51,7 +51,8 @@ def get_long_description():
# Markupsafe breaking change broke Jinja and some other libs
# Pinning it to a version which works even though we are not using explicitly
Copy link
Contributor Author

Choose a reason for hiding this comment

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

probably worth removing these comments, but I thought I'd get some feedback on this change first.

Copy link
Contributor

Choose a reason for hiding this comment

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

Doesn't the new constraint allow for versions newer than 2.0.1 ? The original comment here seems to indicate that versions newer than 2.0.1 will break Jinja and other libs.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yea, let me go ahead and just pin it to 2.0.1; The reason I swapped it to what Airflow uses is because I believe the markupsafe breaking change issue is resolved on 2.0.1 and has been pushed off to 2.1.0, based on pallets/markupsafe#286 and pallets/markupsafe#283. Either way, I'll keep it pinned at 2.0.1. Thanks!

@github-actions
Copy link

github-actions bot commented Mar 11, 2022

Unit Test Results (build & test)

  91 files    91 suites   9m 29s ⏱️
595 tests 543 ✔️ 52 💤 0

Results for commit 6774f26.

♻️ This comment has been updated with latest results.

@github-actions
Copy link

github-actions bot commented Mar 11, 2022

Unit Test Results (metadata ingestion)

       4 files         4 suites   43m 4s ⏱️
   360 tests    360 ✔️   0 💤 0
1 332 runs  1 301 ✔️ 31 💤 0

Results for commit 6774f26.

♻️ This comment has been updated with latest results.

@set5think
Copy link
Contributor Author

The failures on this PR don't seem related to the change, as some other pull requests are failing for the same reasons. Could someone provide assistance on this?

Airflow 2.0.2 - 2.2.2 has a pin on markupsafe as >=1.1.1,<2.0 because
of a bug shipped in markupsafe 2.0.x, preventing the ability to
integrate datahub and airflow.

This patch changes the pinnings to match Airflow.
Copy link
Contributor

@shirshanka shirshanka left a comment

Choose a reason for hiding this comment

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

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants