You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jobs@airflow.apache.org by GitBox <gi...@apache.org> on 2026/04/17 17:12:07 UTC
[GH] (airflow/error-codes-with-static-checks): Workflow run "Tests" failed!
The GitHub Actions job "Tests" on airflow.git/error-codes-with-static-checks has failed.
Run started by GitHub user omkar-foss (triggered by omkar-foss).
Head commit for run:
f9c60fddaf65d2a89868bb08698c9963df690b85 / Omkar P <45...@users.noreply.github.com>
Add error codes mapping with doc pages generation and static check
This adds AirflowEnumeratedException providing a way for devs
to specify error code (AERR) while raising exceptions. These AERRs
are mapped in yaml providing info about the error to users via docs,
as a new doc page is generated for each error code in the yaml.
This also adds a static check that validates raises for
AirflowEnumeratedException and all its subclasses. Supporting tests
also added for this static check.
Entire story can be thought of as follows:
- airflow dev identifies an error case and raises a new enumerated
exception in code with new error code (say AERRNEW01)
- dev then adds AERRNEW01 to error mapping yml with required info
- dev runs breeze build-docs that generates a new page for AERRNEW01
- in case dev misses adding AERRNEW01 to error mapping yml or doesnt
specify error_code in raise then static check will catch it
Signed-off-by: Omkar P <45...@users.noreply.github.com>
Report URL: https://github.com/apache/airflow/actions/runs/24574115293
With regards,
GitHub Actions via GitBox
---------------------------------------------------------------------
To unsubscribe, e-mail: jobs-unsubscribe@airflow.apache.org
For additional commands, e-mail: jobs-help@airflow.apache.org