The GitHub Actions job "Tests AMD" on airflow.git/backport-556d179-v3-1-test has succeeded. Run started by GitHub user potiuk (triggered by potiuk).
Head commit for run: 6bc2022343bcbb6812e273cb9a46f0b616edabde / Jarek Potiuk <[email protected]> [v3-1-test] Restore prek cache in a more robust way (#56796) Apparently the prek cache mechanism has been somewhat broken for a while - after we split prek to monorepo. The hash files used to determine prek-cache was different for save and restore step (the `**/` has been missing in the save cache step. Which means that we always failed to restore cache and created it from the scratch. Also, it seems that the prek cache-when prepared refers to the uv version that is pre-installed for it in case uv is not installed in the system. And it refers to the uv version when creating the virtual environments used by prek, and we first attempted to install prek and create cache, and only after we installed uv, which had a side-effect that in some cases the installed venvs referred to a missing python binary. Finally - there is a bug in prek https://github.com/j178/prek/issues/918 that pygrep cache contains reference to a non-existing python binary that should be run when pygrep runs. Also it's possible that some of the cache installed in workspace by the github worker remained, and we did not preemptively clean the cache when we attempted to restore it and failed. This PR attempts to restore the cache usage in a more robust way: * fixed cache key on save to save cache with proper name * added uv version to cache key for prek * always install uv in desired version before installing prek * if we faile to cache-hit and restore the cache, we clean-up the .cache/prek folder * we do not look at skipped hooks when installing prek and restoring or saving cache. There is very little saving on some hooks and since we are preparing the cache in "build-info" now - it's better to always use the same cache, no matter if some checks are skipped * upgraded to prek 0.2.10 that fixed the issue with pygrep cache (cherry picked from commit 556d179d35be124b81bbb7cadc1e48ac1029ecec) Co-authored-by: Jarek Potiuk <[email protected]> Report URL: https://github.com/apache/airflow/actions/runs/18619218098 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
