Azure / Azure/azure-sdk-for-python

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

Open
#40,165 3 comments 0 reactions 2 assignees Claimed by @achauhan-scc View on GitHub
Client customer-reported feature-request Machine Learning needs-team-attention Service Attention
Dominant language
Python
Stars
5.6k
Forks
3.4k
Avg merge
1d 21h
Merged PRs (30d)
193

Description

**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.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.