Skip to content

Comments

Add providers triggers CLI command in provider discovery#30999

Merged
potiuk merged 2 commits intoapache:mainfrom
astronomer:add_trigger_cmd_in_provider_discovery
May 7, 2023
Merged

Add providers triggers CLI command in provider discovery#30999
potiuk merged 2 commits intoapache:mainfrom
astronomer:add_trigger_cmd_in_provider_discovery

Conversation

@pankajastro
Copy link
Member

We added airflow providers triggers command recently. So let's add the same in verify-provider-packages since we run this run in CI so it would make sure that the command is remain healthy.


^ Add meaningful description above

Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

We added airflow providers triggers command recently.
So let's add the same in verify-provider-packages since
we run this run in CI so it would make sure that the
command is remain healthy.
@potiuk
Copy link
Member

potiuk commented May 1, 2023

OK. One thing I have not told you of what the providers test does...

is it also runs the same tests on Airflow 2.4 to test if providers of ours are installable and discoverable in 2.4 :) - and there the new triggers command is not available... This command used to have conditional removed before that handled it, so you might want to bring it back:

69babdc

This likely shoudl be done better - Ideally you should just import "airflow.version.version" and for commands that were added after the version currently installed, it should skip them from running.

@pankajastro
Copy link
Member Author

pankajastro commented May 2, 2023

@pankajastro pankajastro force-pushed the add_trigger_cmd_in_provider_discovery branch from 268eeb3 to 96f4e35 Compare May 2, 2023 11:12
@potiuk potiuk merged commit 6713fb2 into apache:main May 7, 2023
@pankajastro pankajastro deleted the add_trigger_cmd_in_provider_discovery branch July 3, 2023 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants