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

Better and more complete cleanup for CI jobs #38152

Merged
merged 1 commit into from
Mar 14, 2024
Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Mar 14, 2024

Some of the recent refactors caused a problem that mypy jobs started to return errors likely resulting from a bad cache volume remaining after the jobs completed.

This PR extracts cleanup step to a separate, composite action and uses this action everywhere, including pruning docker including all containers and volumes to avoid the issue.


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

Copy link
Collaborator

@aritra24 aritra24 left a comment

Choose a reason for hiding this comment

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

Looks good to me

Some of the recent refactors caused a problem that mypy jobs
started to return errors likely resulting from a bad cache volume
remaining after the jobs completed.

This PR extracts cleanup step to a separate, composite action and
uses this action everywhere, including pruning docker including
all containers and volumes to avoid the issue.
@potiuk potiuk force-pushed the better-cleanup-for-ci branch from a84dd8f to 0488340 Compare March 14, 2024 15:20
@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

Actually - we have to leave the old code - because it is needed to handle some "spilled" checkout problems and the shared action cannot be run before checkout - so we have chicken-egg problem :( .. This version is a more complete fix.

@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

Looks like the cleanup works - at least all MyPy tests passed in this build - which is good sign.

@potiuk
Copy link
Member Author

potiuk commented Mar 14, 2024

The ARM CI failure might be ignored - it's not relevant for the fix here.

@potiuk potiuk merged commit 9e97433 into main Mar 14, 2024
89 of 94 checks passed
@potiuk potiuk deleted the better-cleanup-for-ci branch October 1, 2024 08:15
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.

4 participants