Skip to content

Remove old, unused generate SVG airflowctl pre-commit and fix width #52457

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

Merged

Conversation

potiuk
Copy link
Member

@potiuk potiuk commented Jun 29, 2025

The command was duplicated - an old version of it was also defined using cli folder that does not exist any more. Also column width is fixed when generating the help files which will make it independent from where the generation is run.


^ 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 airflow-core/newsfragments.

@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch labels Jun 29, 2025
@potiuk potiuk force-pushed the remove-old-unused-generate-svg-pre-commit branch from fe141ac to 1ac0f8d Compare June 29, 2025 13:07
@potiuk potiuk requested a review from ashb as a code owner June 29, 2025 13:07
@potiuk potiuk changed the title Remove old, unused generate SVG airflowctl pre-commit Remove old, unused generate SVG airflowctl pre-commit and fix width Jun 29, 2025
@potiuk
Copy link
Member Author

potiuk commented Jun 29, 2025

Also fixed column width

@potiuk potiuk force-pushed the remove-old-unused-generate-svg-pre-commit branch from 1ac0f8d to 92af3eb Compare June 29, 2025 13:47
@potiuk potiuk requested review from bugraoz93 and kaxil as code owners June 29, 2025 13:47
@potiuk
Copy link
Member Author

potiuk commented Jun 29, 2025

Had to do a bit more to make a "fixed' width now - regardless if run locally or in CI ...

The command was duplicated - an old version of it was also defined
using cli folder that does not exist any more. Also column width
is fixed when generating the help files which will make it
independent from where the generation is run.
@potiuk potiuk force-pushed the remove-old-unused-generate-svg-pre-commit branch from 92af3eb to 8b48e7a Compare June 29, 2025 13:55
@potiuk
Copy link
Member Author

potiuk commented Jun 29, 2025

@bugraoz93 -> now the help images will be fixed at "80" character long - this way no matter who generates them, hashes and images should be the same.

BTW. Would not you like to add rich and rich-ctl to airflow-ctl ? The help output is way better if you do and with rich you can add so much better feedback with colors.

@potiuk potiuk merged commit ae2d81f into apache:main Jun 29, 2025
97 checks passed
@potiuk potiuk deleted the remove-old-unused-generate-svg-pre-commit branch June 29, 2025 14:24
Copy link

Backport failed to create: v3-0-test. View the failure log Run details

Status Branch Result
v3-0-test Commit Link

You can attempt to backport this manually by running:

cherry_picker ae2d81f v3-0-test

This should apply the commit to the v3-0-test branch and leave the commit in conflict state marking
the files that need manual conflict resolution.

After you have resolved the conflicts, you can continue the backport process by running:

cherry_picker --continue

@bugraoz93
Copy link
Contributor

@bugraoz93 -> now the help images will be fixed at "80" character long - this way no matter who generates them, hashes and images should be the same.

BTW. Would not you like to add rich and rich-ctl to airflow-ctl ? The help output is way better if you do and with rich you can add so much better feedback with colors.

Many thanks, Jarek, for this change! Just found time to answer properly. Indeed, I have plans to add rich and rich-ctl to the help output. I will first handle JSON output rather than datamodels and then will move on to help output to make it prettier :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:dev-tools backport-to-v3-0-test Mark PR with this label to backport to v3-0-test branch
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants