Closed ianhi closed 1 year ago
Thanks @ianhi.
There is indeed some effort to ease right managements for all the repos in this org: https://github.com/jupyterlab-contrib/jupyterlab-contrib.github.io/discussions/46
In the meantime I have added you to be an admin on the repo, if you would like to try running the workflow again.
thanks @jtpio we are about to make a new release so I will try it out!
thakn you! that definitely helped. I was able ot run both workflows. However, there may still be permission issues with tokens. in particular when I ran the publish release workflow it ran into this issue regarding tokens:
https://github.com/jupyterlab-contrib/jupyterlab-vim/actions/runs/5719591677/job/15497830782
Traceback (most recent call last):
File "/opt/hostedtoolcache/Python/3.11.4/x64/bin/jupyter-releaser", line 8, in <module>
sys.exit(main())
^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/click/core.py", line 1157, in __call__
return self.main(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/click/core.py", line 1078, in main
rv = self.invoke(ctx)
^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/jupyter_releaser/cli.py", line 122, in invoke
super().invoke(ctx)
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/click/core.py", line 1688, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/click/core.py", line 1434, in invoke
return ctx.invoke(self.callback, **ctx.params)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/click/core.py", line 783, in invoke
return __callback(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/jupyter_releaser/cli.py", line 657, in publish_assets
lib.publish_assets(
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/jupyter_releaser/lib.py", line 362, in publish_assets
twine_token = python.get_pypi_token(release_url, python_package_path)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/jupyter_releaser/python.py", line 156, in get_pypi_token
return fetch_pypi_api_token()
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/jupyter_releaser/python.py", line 139, in fetch_pypi_api_token
r.raise_for_status()
File "/opt/hostedtoolcache/Python/3.11.4/x64/lib/python3.11/site-packages/requests/models.py", line 1021, in raise_for_status
raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 422 Client Error: Unprocessable Entity for url: https://pypi.org/_/oidc/github/mint-token
Looks like the workflow seems to be properly configured to use the PyPI trusted publisher and nmp provenance though:
ooh maybe it's that there are existings pypi and npm api keys on this repo:
I'm going to try to removing them and see if that fixes things
hmm sadly removing them did not help
https://github.com/jupyterlab-contrib/jupyterlab-vim/actions/runs/5729062563/job/15525005353
@ianhi I updated the project config on pypi.org to use the trusted publisher mechanism. It should now work.
thanks @fcollonval it works now!
https://github.com/jupyterlab-contrib/jupyterlab-vim/actions/runs/5756014352/job/15604654019
@ianhi Shall we close this issue now? Any thoughts about cutting a patch release now that #107 and #105 are in?
Any thoughts about cutting a patch release now that https://github.com/jupyterlab-contrib/jupyterlab-vim/pull/107 and https://github.com/jupyterlab-contrib/jupyterlab-vim/pull/105 are in?
Let's do it! @krassowski do you have the permissions to release? In general I think anyone with the permissions on this repo should feel free to release at any point after an improvement has been merged.
I don't think there's ever been a formal release policy, but if I had to come up with one it would err pretty far on the side of releasing often. No downstream libraries depend on us (as far as I know) and I can't see much benefit in waiting to bundle multiple changes (as there just aren't that many). So after a bug fix unless there are some related fixes soon to be merged it makes sense to release immediately.
I have started the new release actions
Thank you!
Description
It seems that non-admin users (e.g. me) cannot run the
prep_release
workflow.https://github.com/jupyterlab-contrib/jupyterlab-vim/actions/runs/5708296240
It would be good if all people with commit rights were able to run that workflow and have it succeed. Or is it possible for me to induce the bot (which seems to have permissions) to take action?
not sure who would know more about this. maybe @fcollonval and/or @jtpio seeing the conversation here: https://github.com/jupyterlab-contrib/jupyterlab-contrib.github.io/issues/42