The GitHub Actions job "Tests AMD" on airflow.git/restore-prek-cache has failed. Run started by GitHub user potiuk (triggered by potiuk).
Head commit for run: 5e255d5e177ed948a74f3267a4974207d60ed26f / Jarek Potiuk <[email protected]> Restore prek cache in a more robust way 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. 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 * 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 Report URL: https://github.com/apache/airflow/actions/runs/18611914777 With regards, GitHub Actions via GitBox --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
