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

Fix unit tests in airflow plugin #3024

Merged
merged 2 commits into from
Dec 30, 2024
Merged

Fix unit tests in airflow plugin #3024

merged 2 commits into from
Dec 30, 2024

Conversation

pingsutw
Copy link
Member

@pingsutw pingsutw commented Dec 28, 2024

Tracking issue

NA

Why are the changes needed?

apache-airflow-providers-google has a new release 12.0.0, apache-airflow is not compatible with it

What changes were proposed in this pull request?

set uppoer-bound in the setup.py

How was this patch tested?

unit tests

Setup process

Screenshots

Check all the applicable boxes

  • I updated the documentation accordingly.
  • All new and existing tests passed.
  • All commits are signed-off.

Summary by Bito

Added version constraint in setup.py to resolve compatibility issues between apache-airflow and apache-airflow-providers-google package. The change prevents usage of apache-airflow-providers-google versions 12.0.0 and above to maintain system stability and prevent potential runtime issues due to incompatible package versions.

Unit tests added: False

Estimated effort to review (1-5, lower is better): 1

@flyte-bot
Copy link
Contributor

flyte-bot commented Dec 28, 2024

Code Review Agent Run #21fa33

Actionable Suggestions - 1
  • plugins/flytekit-airflow/setup.py - 1
    • Missing comma in dependency list · Line 9-9
Review Details
  • Files reviewed - 1 · Commit Range: 8836edb..8836edb
    • plugins/flytekit-airflow/setup.py
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful

AI Code Review powered by Bito Logo

@flyte-bot
Copy link
Contributor

Changelist by Bito

This pull request implements the following key changes.

Key Change Files Impacted
Bug Fix - Dependency Version Constraint Fix

setup.py - Added upper bound constraint for apache-airflow-providers-google package

@@ -6,6 +6,7 @@

plugin_requires = [
"apache-airflow",
"apache-airflow-providers-google<12.0.0"
Copy link
Contributor

Choose a reason for hiding this comment

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

Missing comma in dependency list

Consider adding a comma after apache-airflow-providers-google<12.0.0 to maintain proper syntax in the plugin_requires list.

Code suggestion
Check the AI-generated fix before applying
Suggested change
"apache-airflow-providers-google<12.0.0"
"apache-airflow-providers-google<12.0.0",

Code Review Run #21fa33


Is this a valid issue, or was it incorrectly flagged by the Agent?

  • it was incorrectly flagged

Signed-off-by: Kevin Su <[email protected]>
@flyte-bot
Copy link
Contributor

flyte-bot commented Dec 28, 2024

Code Review Agent Run #fe9592

Actionable Suggestions - 0
Review Details
  • Files reviewed - 1 · Commit Range: 8836edb..a349ade
    • plugins/flytekit-airflow/setup.py
  • Files skipped - 0
  • Tools
    • Whispers (Secret Scanner) - ✔︎ Successful
    • Detect-secrets (Secret Scanner) - ✔︎ Successful
    • MyPy (Static Code Analysis) - ✔︎ Successful
    • Astral Ruff (Static Code Analysis) - ✔︎ Successful

AI Code Review powered by Bito Logo

@pingsutw pingsutw merged commit 60fa417 into master Dec 30, 2024
102 checks passed
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.

4 participants