Azure / Azure/azure-sdk-for-python
azure-ai-ml CommandComponent hash does not include additional_includes files/dirs
- 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`.

**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
Assessment
This issue has not been assessed yet.