Add script+workflow to update IREE requirement pins. #388
+208
−0
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This is a redo of #376.
This adds a new workflow that runs once a day to update all pinned IREE versions. I also looked into using Dependabot but found that it struggles with
--find-links
,--index-url
, and with there being multiplerequirements.txt
files in a repository. While I would love to not need to reinvent this wheel, I do like keeping full control over the process.This PR includes:
build_tools/update_iree_requirement_pins.py
script handles updating the pins inrequirements-iree-pinned.txt
and setting some variables inGITHUB_ENV
.github/workflows/update_iree_requirement_pins.yml
workflow runs that script then calls https://github.com/peter-evans/create-pull-request to create or update a pull request if there are local changes after running that script. The commit message and pull request body are constructed using the variables set by the script.We can adapt this approach to other update actions in other repositories like https://github.com/nod-ai/shark-ai by teaching the script(s) to update more version pins and write more output variables, then changing the pull request text to fit the new content.
Test action run: https://github.com/ScottTodd/iree-turbine/actions/runs/12776912409
Test pull request: ScottTodd#10