Stop using auto#7024
Conversation
Codecov ReportBase: 75.41% // Head: 76.21% // Increases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## maint #7024 +/- ##
==========================================
+ Coverage 75.41% 76.21% +0.79%
==========================================
Files 354 354
Lines 58751 58750 -1
Branches 6613 6613
==========================================
+ Hits 44310 44779 +469
+ Misses 14427 13957 -470
Partials 14 14
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
|
since we need now to wait for |
|
@yarikoptic Commenting-script added; you can see it in action in the latest PRs in the test repo linked above. |
|
ok, now we just need to wait for @nedbat to improve |
|
note: @jwodder, I have updated description to close more issue and become TODOs instead of shortcomings (already addressed) |
|
4 @jwodder and FTR, to mitigate the issue of changelog commit pushed from github actions I have added yarikoptic-gitmate user with Write permissions to this repo and added GITMATE_GITHUB_TOKEN secret so workflow could use that token instead of default one to push. |
|
@yarikoptic Do you want workflows to run on the changelog-creation commit? I thought you were concerned about running them on snippet-creation commits for the |
|
Would it not be safe to rerun |
|
@yarikoptic The workflow won't run again once the "CHANGELOG-missing" label is removed, but there's a slight chance that, after the snippet is pushed, a new workflow run might start before the first workflow removes the label. |
|
good observation! My thinking is: we can then removed label before pushing the snippet. But then if snippet push fails - we would end up without the snippet and label, which would be odd... but probably it would be also as odd if now push of snippet fails and we do not have label removed. So IMHO it would be ok to just swap to steps in the order so we would completely avoid such a race condition. Am I missing any potential drawback/side-effect @jwodder? |
|
@yarikoptic I can't think of any drawbacks. Should I update |
I think you can do right in this one and we will merge it altogether to give it a shot. |
|
@yarikoptic Steps swapped. Do you also want |
Thank you!
I don't care much but may be let's do for both for consistency? |
|
@yarikoptic Done: a73411a. |
|
Thank you @jwodder ! So I will proceed with merge and we will try it out |
|
FWIW new scriv https://pypi.org/project/scriv/0.17.0/ was released hours back and the change is The github_release command now only considers the top-most entry in the changelog. You can use the --all option to continue the old behavior of making or updating GitHub releases for all of the entries. so I do not think we need any tune up to this PR. |
…E_ one after datalad#7024 we got release workflow erroring out with + python3 tools/ci/release-comment.py datalad datalad 0.17.6 changelog.d/pr-6997.md changelog.d/pr-7009.md changelog.d/pr-7011.md changelog.d/pr-7024.md changelog.d/pr-7028.md changelog.d/pr-7036.md changelog.d/pr-7037.md changelog.d/pr-7039.md changelog.d/pr-7041.md Traceback (most recent call last): File "/home/runner/work/datalad/datalad/tools/ci/release-comment.py", line 160, in <module> main() File "/home/runner/work/datalad/datalad/tools/ci/release-comment.py", line 148, in main rc.comment_on_pr(prnum) File "/home/runner/work/datalad/datalad/tools/ci/release-comment.py", line 108, in comment_on_pr self.comment_on_issueoid( File "/home/runner/work/datalad/datalad/tools/ci/release-comment.py", line 123, in comment_on_issueoid r.raise_for_status() File "/opt/hostedtoolcache/Python/3.10.6/x64/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: [40](https://github.com/datalad/datalad/actions/runs/3084869492/jobs/4987517315#step:7:41)1 Client Error: Unauthorized for url: https://api.github.com/repos/datalad/datalad/issues/6997/comments Error: Process completed with exit code 1. so may be it was not the best [decision](datalad#7024 (comment)) to use dedicated (but likely more limited in scopes) yarikoptic-gitmate token. I think it would be good to just revert to use that generic token instead of trying to figure out the scope and assigning a "better" gitmate one.
|
PR released in |
Closes #7016. See https://github.com/jwodder/pr-merge-release-test for a test of the workflow in action.
Closes #6856 , Closes #6918
TODOs:
github-releaseonly for the most recent release nedbat/scriv#57 -- was tested to work - we just need scriv release