Azure / Azure/azure-sdk-for-python

azure-ai-ml CommandComponent hash does not include additional_includes files/dirs

Aperta
#40,165 3 commenti 0 reazioni 2 assegnatari Rivendicata da @achauhan-scc Vedi su GitHub
Client customer-reported feature-request Machine Learning needs-team-attention Service Attention
Lingua principale
Python
Stelle
5.6k
Fork
3.4k
Merge medio
2g
PR unite (30g)
217

Descrizione

**Is your feature request related to a problem? Please describe.**
The hash for determining a components uniqueness does not include the additional includes. I have a scenario where I don't use the `code` property and only use `additional_includes` as I only want to upload a subset of my code. When I submit an experiment job to an AML workspace using local components the code changes are not detected, so the job runs with an older version of the code.

**Describe the solution you'd like**
Inside `_cache_utils.py` parse the files / directories listed under `additional_includes`.

![Image](https://github.com/user-attachments/assets/e00a1df9-7a75-49c5-9440-f6525a1d85f7)

**Describe alternatives you've considered**
As a work around I figured out I can include a random uuid in the tags section. This forces an upload every time. If I have time I could compute the hash on the `additional_includes` file/directories and add that as a tag to still use the caching mechanism.

**Additional context**
Add any other context or screenshots about the feature request here.

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.