The GitHub Actions job "Tests AMD" on airflow.git/add-colors-to-airflowctl-help 
has succeeded.
Run started by GitHub user potiuk (triggered by potiuk).

Head commit for run:
efa4178fb21633440a6cfcc1397f9731dda0d10b / Jarek Potiuk <[email protected]>
Add colors to airflowctl help output

This PR adds colors to the SVG files showing airflowctl output.

It turns out that rich-argparse has a built-in functionality to
generate previews, all we had to do is to add special "--preview"
hidden flag to all parsers we created.

This enabled running `airflowctl assets --preview out_file.svg".
Additional issue was that when generating the preview from the
pre-commit, terminal was disabled, because commit hooks run
without the terminal. That's why we had to enable pseudo-terminal
allocation in the command that executes shell prek hooks inside
breeze container to get colors generated by prek hook.

Finally - better diagnostic was added to the script that generates
hashes and decides whether to regenerate images. You can also now
pass the commands you generate as parameters to the script inside
container and you can pass `--skip-hash-check` flag to be able to
force generation of the image without manually modifying hashes.

Report URL: https://github.com/apache/airflow/actions/runs/17230846275

With regards,
GitHub Actions via GitBox


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to