Skip to content

Conversation

@HsiuChuanHsu
Copy link
Contributor

Description

Fixes incorrect return code check in lint_helm.py pre-commit script, ensuring Helm linting errors are properly detected.

  • Addresses issue: Helm chart version upgrade test failure due to wrong return code (res_setup.returncode) checked.
  • Corrects to check result.returncode for Helm lint command.

Changes

  • Updated scripts/ci/pre_commit/lint_helm.py:
    -- Replaced res_setup.returncode with result.returncode in lint error check.

Related PR

Replace break function in pod-launcher-rolebinding.yaml #49219


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

The pre-commit hook for Helm linting incorrectly referenced res_setup.returncode instead of result.returncode when checking for linting errors. This change corrects the variable reference to properly handle errors from the Helm lint command.
- Updated error check to use result.returncode
@boring-cyborg boring-cyborg bot added area:dev-tools backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch labels Aug 1, 2025
@jedcunningham jedcunningham removed the backport-to-v3-1-test Mark PR with this label to backport to v3-1-test branch label Aug 1, 2025
@jedcunningham jedcunningham merged commit afbdc60 into apache:main Aug 1, 2025
49 checks passed
@HsiuChuanHsu
Copy link
Contributor Author

Thanks for the review!

ferruzzi pushed a commit to aws-mwaa/upstream-to-airflow that referenced this pull request Aug 7, 2025
…54013)

The pre-commit hook for Helm linting incorrectly referenced res_setup.returncode instead of result.returncode when checking for linting errors. This change corrects the variable reference to properly handle errors from the Helm lint command.
- Updated error check to use result.returncode
fweilun pushed a commit to fweilun/airflow that referenced this pull request Aug 11, 2025
…54013)

The pre-commit hook for Helm linting incorrectly referenced res_setup.returncode instead of result.returncode when checking for linting errors. This change corrects the variable reference to properly handle errors from the Helm lint command.
- Updated error check to use result.returncode
@HsiuChuanHsu HsiuChuanHsu deleted the fix/lint-helm-chart-returncode branch September 9, 2025 22:19
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.

2 participants