Skip to content

Fix ts-compile-lint-simple-auth-manager-ui prek hook#64310

Merged
pierrejeambrun merged 2 commits intoapache:mainfrom
astronomer:fix/simple-auth-manager-ui-prek-hook
Mar 30, 2026
Merged

Fix ts-compile-lint-simple-auth-manager-ui prek hook#64310
pierrejeambrun merged 2 commits intoapache:mainfrom
astronomer:fix/simple-auth-manager-ui-prek-hook

Conversation

@pierrejeambrun
Copy link
Copy Markdown
Member

@pierrejeambrun pierrejeambrun commented Mar 27, 2026

The hook was silently failing due to two issues:

  • Used AIRFLOW_ROOT_PATH instead of AIRFLOW_CORE_ROOT_PATH for relative path computation, causing file matching to fail silently.
  • The minimatch pnpm override forced all minimatch to v10+, breaking eslint-plugin-react which requires minimatch v3 (default export as function). Aligned overrides with the main UI's version-range-aware approach.

Was generative AI tooling used to co-author this PR?
  • Yes (please specify the tool below)

Generated-by: [Cursor] following the guidelines


  • Read the Pull Request Guidelines for more information. Note: commit author/co-author name and email in commits become permanently public when merged.
  • For fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
  • When adding dependency, check compliance with the ASF 3rd Party License Policy.
  • For significant user-facing changes create newsfragment: {pr_number}.significant.rst, in airflow-core/newsfragments. You can add this file in a follow-up commit after the PR is created so you know the PR number.

@pierrejeambrun
Copy link
Copy Markdown
Member Author

Now that the hook is actually running CI should fail. I realized that the hook was silently failing while working on #64303 that fixes the linting errors.

@pierrejeambrun pierrejeambrun force-pushed the fix/simple-auth-manager-ui-prek-hook branch from d597ae9 to f62b468 Compare March 27, 2026 20:46
The hook was silently failing due to two issues:
- Used AIRFLOW_ROOT_PATH instead of AIRFLOW_CORE_ROOT_PATH for relative
  path computation, causing file matching to fail silently.
- The minimatch pnpm override forced all minimatch to v10+, breaking
  eslint-plugin-react which requires minimatch v3 (default export as
  function). Aligned overrides with the main UI's version-range-aware
  approach.
@pierrejeambrun pierrejeambrun force-pushed the fix/simple-auth-manager-ui-prek-hook branch from f62b468 to 93b2f1a Compare March 30, 2026 14:04
@pierrejeambrun pierrejeambrun merged commit 0022f42 into apache:main Mar 30, 2026
147 checks passed
@pierrejeambrun pierrejeambrun deleted the fix/simple-auth-manager-ui-prek-hook branch March 30, 2026 16:27
Subham-KRLX pushed a commit to Subham-KRLX/airflow that referenced this pull request Apr 3, 2026
* Fix ts-compile-lint-simple-auth-manager-ui prek hook

The hook was silently failing due to two issues:
- Used AIRFLOW_ROOT_PATH instead of AIRFLOW_CORE_ROOT_PATH for relative
  path computation, causing file matching to fail silently.
- The minimatch pnpm override forced all minimatch to v10+, breaking
  eslint-plugin-react which requires minimatch v3 (default export as
  function). Aligned overrides with the main UI's version-range-aware
  approach.

* Fix static checks
Suraj-kumar00 pushed a commit to Suraj-kumar00/airflow that referenced this pull request Apr 7, 2026
* Fix ts-compile-lint-simple-auth-manager-ui prek hook

The hook was silently failing due to two issues:
- Used AIRFLOW_ROOT_PATH instead of AIRFLOW_CORE_ROOT_PATH for relative
  path computation, causing file matching to fail silently.
- The minimatch pnpm override forced all minimatch to v10+, breaking
  eslint-plugin-react which requires minimatch v3 (default export as
  function). Aligned overrides with the main UI's version-range-aware
  approach.

* Fix static checks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area:API Airflow's REST/HTTP API area:dev-tools

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants