-
Notifications
You must be signed in to change notification settings - Fork 14.5k
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
Switch tests in ci to use Python Breeze #26612
Conversation
cc: @Bowrna - not tested yet, but roughly complete. |
3a0b200
to
65bb711
Compare
Last "BIG" change to get breeze replaced completely wiht Python ! |
Did I mention -800 lines of bash code ? |
d75eb46
to
e7ec1db
Compare
ce14db5
to
a0ff5e2
Compare
a0ff5e2
to
3e2e02b
Compare
Looking for approval :) |
Very thoroughly tested for Public/Self-hosted runners. |
|
||
The images produced during the ``Build Images`` workflow of CI jobs are stored in the | ||
`GitHub Container Registry <https://github.com/orgs/apache/packages?repo_name=airflow>`_ | ||
Debugging CI Jobs in Github Actions |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added chapter on how to debug CI jobs - all the possibilities of how you can test different parts are now nicely separated out.
@@ -92,6 +92,11 @@ def free_space(verbose: bool, dry_run: bool, answer: str): | |||
) | |||
run_command(["df", "-h"], verbose=verbose, dry_run=dry_run) | |||
run_command(["docker", "logout", "ghcr.io"], verbose=verbose, dry_run=dry_run, check=False) | |||
run_command( | |||
["sudo", "rm", "-f", os.fspath(Path.home() / MSSQL_TMP_DIR_NAME)], | |||
verbose=verbose, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We cleanup MSQL local folder that is used on Self-Hosted runner here.
@@ -111,7 +116,7 @@ def resource_check(verbose: bool, dry_run: bool): | |||
HOME_DIR / ".azure", | |||
HOME_DIR / ".config/gcloud", | |||
HOME_DIR / ".docker", | |||
AIRFLOW_SOURCES_ROOT, | |||
HOME_DIR / MSSQL_TMP_DIR_NAME, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AIRFLOW_SOURCES_ROOT was duplicated.
@@ -147,8 +148,7 @@ def kubernetes_group(): | |||
K8S_CONFIGURE_CLUSTER_PROGRESS_REGEXP = r'.*airflow-python-[0-9.]+-v[0-9.].*' | |||
K8S_DEPLOY_PROGRESS_REGEXP = r'.*airflow-python-[0-9.]+-v[0-9.].*' | |||
K8S_TEST_PROGRESS_REGEXP = r'.*airflow-python-[0-9.]+-v[0-9.].*|^kubernetes_tests/.*' | |||
PERCENT_K8S_TEST_PROGRESS_REGEXP = r'^kubernetes_tests/.*\[[ \d*%]*\].*' | |||
K8S_SKIP_TRUNCATION_REGEXP = r'^kubernetes_tests/.*' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I found better ways to truncate the output (I simply check the length of the output after stripping or ANSI Colours (standard textwrap does not truncate ANSI colors and treats ANSI colors as characters)
a0a162b
to
a7c9f8d
Compare
This is the last big change in "Rewrite Breeze to Python". Fixes: apache#23538
a7c9f8d
to
9bf2d71
Compare
Re-running it one more time without resource debugging to see that the output is right. |
|
||
@property | ||
def mssql_data_volume(self) -> str: | ||
docker_filesystem = get_filesystem_type("/var/lib/docker") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is run from the host isn't it? If so this call might not get the right info in cases of Docker Desktop etc. Does that matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's actually only really used when you have tmpfs in '/var/lib/docker' (which is the case of self-hosted runners). We could likely do a better job in finding the right folder, but I think it is 'good enough' to handle the nasal on tmpfs case
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM - just one small question about mssql tmpfs volume.
Thanks! It looks big but it is not as huge as the numbers on the PR says :). |
This is the last big change in "Rewrite Breeze to Python".
Fixes: #23538
^ 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.