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

poetry: add auth-app extra to githubkit #552

Merged
merged 3 commits into from
Mar 18, 2024

Conversation

harryfinbow
Copy link
Contributor

Using GitHub App authentication causes the worker to crash on startup with following error:
RuntimeError: JWT support for GitHub APP should be installed with 'pip install githubkit[auth-app]'

Adding the auth-app extra to the githubkit Python package fixes this by allowing the worker to authenticate to GitHub using both token and app auth.

@harryfinbow harryfinbow requested a review from a team as a code owner March 15, 2024 16:52
Copy link
Contributor

@tcarmet tcarmet left a comment

Choose a reason for hiding this comment

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

Hello @harryfinbow and thank you for your contribution!

Indeed we ended up not using yet the app authentication method and forgot to install the extra package.

The changes LGTM therefore approving the PR.

Won't be able to merge as is though as I see some CI builds are currently failing, I'll have a proper look at it next week to see if I can help move this change forward.

Cheers! And thanks again ❤️

@codecov-commenter
Copy link

codecov-commenter commented Mar 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 85.96%. Comparing base (6d0e6e4) to head (ed26c7f).

Additional details and impacted files
@@             Coverage Diff             @@
##             main     #552       +/-   ##
===========================================
+ Coverage   67.71%   85.96%   +18.24%     
===========================================
  Files          31       31               
  Lines        1211     1211               
===========================================
+ Hits          820     1041      +221     
+ Misses        391      170      -221     
Flag Coverage Δ
api 67.71% <ø> (ø)
unit 70.93% <ø> (?)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

tcarmet added a commit that referenced this pull request Mar 18, 2024
To help move #552 forward, which is currently facing an issue with the
`crontab` package when running `poetry install` within a docker
container:

- Upgrading poetry version to 1.7.1
- Upgrade setuptools to 69.2.0
@tcarmet
Copy link
Contributor

tcarmet commented Mar 18, 2024

Was able to get a successful build but had failures due to the fact that PR coming from open source contributions do not have permissions to push on ghcr under the ghcr.io/scality/runnner-manager namespace:

ERROR: failed to solve: failed to push ghcr.io/scality/runner-manager:dff956ffbd0aae0d1072f2bf8c53a635c52e74ca: unexpected status from POST request to https://ghcr.io/v2/scality/runner-manager/blobs/uploads/: 403 Forbidden
Error: buildx failed with: ERROR: failed to solve: failed to push ghcr.io/scality/runner-manager:dff956ffbd0aae0d1072f2bf8c53a635c52e74ca: unexpected status from POST request to https://ghcr.io/v2/scality/runner-manager/blobs/uploads/: 403 Forbidden

Which is fine and given the workflow configuration, expected. So we are good to merge 🚀

Thanks again for your contribution @harryfinbow!

@tcarmet tcarmet merged commit 13d7daf into scality:main Mar 18, 2024
9 of 11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants