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 handling removal of dependencies #42967

Merged
merged 1 commit into from
Oct 13, 2024
Merged

Fix handling removal of dependencies #42967

merged 1 commit into from
Oct 13, 2024

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Oct 13, 2024

There was a problem with CI image builds when cache has been disabled - they still used "pre-cached" main version (unlike PROD builds). This PR synchronizes the behaviour between CI and PROD builds.

For removing dependencies, you need to set both:

  • disable docker cache label
  • incerase DEPENDENCIES_EPOCH_NUMBER in Dockerfile.ci

Comments and documentation in both places has been updated to reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible labels that could be used during the build.
The description grew from a small number of labels to a "wall of text" that was difficult to read. This PR reformats it in the form of table that makes it far easier to see actions that the maintainer can do and what labels should be set for each of them.


^ 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 potiuk added the disable image cache Disables cache when buidling CI images label Oct 13, 2024
@potiuk potiuk force-pushed the fix-dependencies-removal branch from 0c8543d to 84ab6e3 Compare October 13, 2024 00:37
@potiuk potiuk marked this pull request as ready for review October 13, 2024 00:40
@potiuk
Copy link
Member Author

potiuk commented Oct 13, 2024

This is needed to properly test #42963 - complete package removal did not work properly ('--disable-airflow-repo-cacheand--docker-cache` flag have not been properly passed.

@potiuk potiuk force-pushed the fix-dependencies-removal branch 2 times, most recently from 0251c47 to 7db2090 Compare October 13, 2024 00:53
@potiuk potiuk force-pushed the fix-dependencies-removal branch 3 times, most recently from a8fec2d to f79f3be Compare October 13, 2024 02:02
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
@potiuk potiuk force-pushed the fix-dependencies-removal branch from f79f3be to 5f0ba31 Compare October 13, 2024 02:05
@potiuk potiuk merged commit 51f4302 into main Oct 13, 2024
75 checks passed
kunaljubce pushed a commit to kunaljubce/airflow that referenced this pull request Oct 13, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
pavansharma36 pushed a commit to pavansharma36/airflow that referenced this pull request Oct 14, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
R7L208 pushed a commit to R7L208/airflow that referenced this pull request Oct 17, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
harjeevanmaan pushed a commit to harjeevanmaan/airflow that referenced this pull request Oct 23, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
PaulKobow7536 pushed a commit to PaulKobow7536/airflow that referenced this pull request Oct 24, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
@potiuk potiuk deleted the fix-dependencies-removal branch November 1, 2024 13:12
ellisms pushed a commit to ellisms/airflow that referenced this pull request Nov 13, 2024
There was a problem with CI image builds when cache has been
disabled - they still used "pre-cached" main version (unlike
PROD builds). This PR synchronizes the behaviour between CI
and PROD builds.

For removing dependencies, you need to set both:

* `disable docker cache` label
* incerase DEPENDENCIES_EPOCH_NUMBER in `Dockerfile.ci`

Comments and documentation in both places has been updated to
reflect it.

Since documentation for labels has been updated,
Part of this PR is to improve the description of possible
labels that could be used during the build.
The description grew from a small number of labels to a
"wall of text" that was difficult to read. This PR reformats it in the
form of table that makes it far easier to see actions that the
maintainer can do and what labels should be set for each of them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools disable image cache Disables cache when buidling CI images
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants