pytorch / test-infra

This repository hosts code that supports the testing infrastructure for the PyTorch organization. For example, this repo hosts the logic to track disabled tests and slow tests, as well as our continuation integration jobs HUD/dashboard.
https://hud.pytorch.org/
Other
83 stars 83 forks source link

Add default package hash to cache key #5821

Closed ahmadsharif1 closed 1 month ago

ahmadsharif1 commented 1 month ago

Without this there would be cache collisions of different default-packages. i.e. the symptom I was seeing was the cache would restore my conda environment but without the packages.

I tested it here with torchcodec https://github.com/pytorch/torchcodec/pull/298

https://github.com/pytorch/torchcodec/actions/runs/11523232397/job/32081186451?pr=298

And it seems to be working fine.

Example the cache key contains the package hashes:

image
vercel[bot] commented 1 month ago

@ahmadsharif1 is attempting to deploy a commit to the Meta Open Source Team on Vercel.

A member of the Team first needs to authorize it.

vercel[bot] commented 1 month ago

The latest updates on your projects. Learn more about Vercel for Git ↗︎

1 Skipped Deployment | Name | Status | Preview | Comments | Updated (UTC) | | :--- | :----- | :------ | :------- | :------ | | **torchci** | ⬜️ Ignored ([Inspect](https://vercel.com/fbopensource/torchci/39q6YRaejD4YuJUT754MFA9EXC8W)) | [Visit Preview](https://torchci-git-fork-ahmadsharif1-updatekey-fbopensource.vercel.app) | | Oct 25, 2024 6:37pm |