Skip to content
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

Add releaser CI scripts #217

Merged
merged 6 commits into from
Feb 6, 2024
Merged

Conversation

trungleduc
Copy link
Member

No description provided.

Copy link
Contributor

github-actions bot commented Nov 7, 2023

Binder 👈 Launch a Binder on branch trungleduc/voila-gridstack/add-releaser

@trungleduc
Copy link
Member Author

@martinRenou could you add bot tokens to the repo?

@martinRenou
Copy link
Member

That is a good question 😅

I guess I can't. I don't have rights on the voila-gridstack's PyPI package. Also I don't recall setting up this bot account, maybe @jtpio did?

@trungleduc
Copy link
Member Author

IIRC you added https://github.com/voila-bot credentials to QuantStack's 1Password. But we still need to wait for Jeremy anyway to add the bot to voila-gridstack's PyPI

@trungleduc
Copy link
Member Author

@martinRenou let's merge this PR and release gridstack with our tokens?

@martinRenou
Copy link
Member

Yes! Sounds good for now. I think Jeremy did set up the account voila-dashboards/voila#1298

@jtpio
Copy link
Member

jtpio commented Nov 13, 2023

I don't have manage access to voila-gridstack on PyPI unfortunately. Maybe some of the other maintainers have?

image

But with the latest releaser workflows you can now use the PyPI trusted publisher instead of the bot to indicate a release is issued from a specific workflow. This needs to be configured on PyPI by someone with manage access.

- name: Finalize Release
id: finalize-release
env:
PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jtpio
Copy link
Member

jtpio commented Nov 14, 2023

@trungleduc @martinRenou does any of you have manage access on the PyPI project to configure the trusted publishers? Or should we request access from another maintainer of the package?

@trungleduc
Copy link
Member Author

I don't have the manage access to this project.

@jtpio
Copy link
Member

jtpio commented Nov 24, 2023

I don't have the manage access to this project.

Pinging some other maintainers listed on https://pypi.org/project/voila-gridstack/, in case some of them do have more rights: @hbcarlos @JohanMabille @SylvainCorlay @maartenbreddels

@maartenbreddels
Copy link
Member

Sorry, I checked, and I cannot.

@trungleduc
Copy link
Member Author

@jtpio let's use the good old token for now?

@jtpio
Copy link
Member

jtpio commented Nov 24, 2023

@jtpio let's use the good old token for now?

Which token? The voila-bot does not have access to https://pypi.org/project/voila-gridstack. And we also need "Manage" access to add the bot...

@jtpio
Copy link
Member

jtpio commented Nov 24, 2023

I guess the only way forward for now if we're stuck is to continue making releases from the fork.

Hopefully we'll get more access soon so we can make releases from the repo.

@trungleduc
Copy link
Member Author

I can add mine to the repo while waiting for the bot

@trungleduc
Copy link
Member Author

@martinRenou @jtpio should we release the update?

@martinRenou
Copy link
Member

I do have rights now it seems, will setup the trusted publishers logic

@martinRenou
Copy link
Member

Done!

@jtpio
Copy link
Member

jtpio commented Feb 2, 2024

Ah nice. So maybe we can remove the PYPI_TOKEN from the workflow now, as suggested above in #217 (review) ?

Copy link
Member

@martinRenou martinRenou left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@martinRenou martinRenou merged commit b99a21a into voila-dashboards:main Feb 6, 2024
8 checks passed
@@ -28,7 +28,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install jupyter_packaging jupyterlab
python -m pip install jupyter_packaging "jupyterlab==4.0.12"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is the reason for pinning on a particular version?

Should there be a comment to explain why, when we look at it again in the future?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

JupyterLab 4.1 is breaking galata tests here and there.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What does "breaking" mean? Is it snapshots mismatch? Galata runtime error? Something else?

Copy link
Member Author

@trungleduc trungleduc Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Galata timeout

Copy link
Member Author

@trungleduc trungleduc Feb 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I opted for a quick solution to unblock the release process, which we are quite late

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good to me. Maintaining the tooling around JupyterLab plugins can be painful, and it should not go in the way of getting things done.

Let's debug this separately.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure thanks.

Would you mind posting more information about that "Galata timeout", here or in #220?

Wondering whether this should be fixed upstream in JupyterLab. I also noticed some changes related to the use of Galata downstream (for example in jupyterlite/jupyterlite#1263), so it could be useful to have this information somewhere.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All the await calls to click on an element have the timeout error.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Bumping Galata to 5.1.0 fixes the issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants