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

Make tag fetching when preparing providers optional. #25236

Merged
merged 2 commits into from
Jul 22, 2022

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jul 22, 2022

Tag fetching is only needed to make sure we do not generate
packages that have already been generated. However this is just
an optimisation for CI runs. There is no harm if the tags are
not refreshed and we generate the package again locally.

Tag fetching might faile in various cases - for example when
you are in corporate environment and require specific certificates
to be available or when you are working from a worktree.

After this change fetching tag will produce warning when there is
an error and instruction on how you can fetch tags manually.


^ 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.

@potiuk
Copy link
Member Author

potiuk commented Jul 22, 2022

cc: @PatrykKlimowicz

Tag fetching is only needed to make sure we do not generate
packages that have already been generated. However this is just
an optimisation for CI runs. There is no harm if the tags are
not refreshed and we generate the package again locally.

Tag fetching might faile in various cases - for example when
you are in corporate environment and require specific certificates
to be available or when you are working from a worktree.

After this change fetching tag will produce warning when there is
an error and instruction on how you can fetch tags manually.
@potiuk potiuk force-pushed the make-git-tag-refresh-optional branch from 197338c to e2977cb Compare July 22, 2022 14:43
@potiuk potiuk merged commit 1aaf206 into apache:main Jul 22, 2022
@potiuk potiuk deleted the make-git-tag-refresh-optional branch July 22, 2022 19:02
potiuk added a commit that referenced this pull request Aug 4, 2022
* Make tag fetching when preparing providers optional.

Tag fetching is only needed to make sure we do not generate
packages that have already been generated. However this is just
an optimisation for CI runs. There is no harm if the tags are
not refreshed and we generate the package again locally.

Tag fetching might faile in various cases - for example when
you are in corporate environment and require specific certificates
to be available or when you are working from a worktree.

After this change fetching tag will produce warning when there is
an error and instruction on how you can fetch tags manually.

* Update dev/provider_packages/prepare_provider_packages.py

Co-authored-by: Josh Fell <[email protected]>

Co-authored-by: Josh Fell <[email protected]>
(cherry picked from commit 1aaf206)
@potiuk potiuk added this to the Airflow 2.3.4 milestone Aug 5, 2022
@ephraimbuddy ephraimbuddy added the changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..) label Aug 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools changelog:skip Changes that should be skipped from the changelog (CI, tests, etc..)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants