dstandish opened a new pull request, #64124: URL: https://github.com/apache/airflow/pull/64124
The `Compile / format / lint UI` pre-commit hook runs `pnpm install --frozen-lockfile` on every invocation, even when `package.json` and `pnpm-lock.yaml` haven't changed. This is the main source of slowness in the hook. This PR adds a hash-based guard: SHA256 of `package.json` + `pnpm-lock.yaml` is stored in `.build/ui/pnpm-install-hash.txt` (consistent with the caching pattern already used in `compile_ui_assets.py`). When the hash matches and `node_modules/` exists, `pnpm install` is skipped entirely, saving ~10–30s per commit for contributors who frequently touch UI files. --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Sonnet 4.6 Generated-by: Claude Sonnet 4.6 following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
