-
Notifications
You must be signed in to change notification settings - Fork 89
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Automatically PR to update poetry lockfile #2023
Conversation
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #2023 +/- ##
=======================================
Coverage 80.69% 80.69%
=======================================
Files 104 104
Lines 11622 11622
Branches 2910 2910
=======================================
Hits 9378 9378
Misses 1701 1701
Partials 543 543 ☔ View full report in Codecov by Sentry. |
perhaps ironically, it looks like the tests are failing because |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome! thanks @sneakers-the-rat !
we'll see if it works! wasn't able to test it myself because yno github actions hard to test except for running them as actions. |
I expect we will. Since this is using the default |
@pkalita-lbl lets fix it in v2 ya? I can never get CI stuff right on the first time lol |
Aah ...good point @pkalita-lbl , the solution to that is:
So |
Yes, of course. My apologies I didn't see that new PR when I had commented here.
Moreover that person won't be able to review or merge that PR.
I haven't heard of a general account before. Are there GitHub docs you can share on that? |
Ya ya lets make a bot user :) we'll need it for linkml-runtime eventually too, no? |
@hrshdhgd |
Aah! That makes sense. |
Following: #2002
See #2002 (comment) which links to some of the conversation and prior issues (that i'll also link at the bottom for the sake of recordkeeping)
This action runs an action once a week (or on demand) to create a pull request updating the lockfile.
The body of the PR will look something like this (eg. for the current state of the repo):
this forces our development environment to be within a week of what ppl would experience if they were to install linkml with pip (which will install the most recent version of all packages matching the version spec in
pyproject.toml
). Note how it is updatingpydantic
here which we have kept locked at1.10.14
by sheer force of not updating the lockfile (see 1925 and 1957).The
create-pull-request
action will keep updating the same pull request if it is not merged by the time the next run happens, so we won't stack up a bunch of lockfile PRs. We can set these up to automatically merge if all tests pass if we try this out for awhile and decide that would be a good idea - that could be something we set up as an additional step after themain
tests, since it looks like the github branch protections-based automerge needs to be explicitly enabled for each PR, which makes sense. I figured we might as well get the manual version going first before we try and automate that since inevitably there will be some kinks to work out.I'm also not sure if i need to do more to configure the token, but i suppose we will see on first run
also sorry if i keep making new labels and that's not wanted - i set the PR to use the
poetry
label so that we can quickly see all the PRs made by this action, distinct from the more generaldevops
label which includes all devops stuff. i can change that and delete the label if we don't like that.Prior related issues:
linkml-runtime
release v1.6.1 is broken, and it's impacting the rest of the supply chain (e.g.bmt
toolkit) #1749