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

Fix uwsgi crash on startup #4415

Merged
merged 4 commits into from
Jun 19, 2024
Merged

Fix uwsgi crash on startup #4415

merged 4 commits into from
Jun 19, 2024

Conversation

sergei-maertens
Copy link
Member

Noticed that our test env was down after the lxml/xmlsec upgrade and stumbled on xmlsec/python-xmlsec#320 as the same issue.

The fix is not to downgrade the libraries, but instead manage the environment in which uwsgi is being built better.

The OIDC cache is obsolete, but there are still migrations
pointing to it, so instead we can point it to the solo
cache instead.
An attempt to fix the xmlsec version error, to no avail,
but being on the latest patch *shouldn't* be a problem.

Validated locally with docker-compose that it at
least properly starts up.
The package is required when building lxml/xmlsec from source,
but as of the latest releases, binary wheels can be installed.

However, if this package is installed while uwsgi is being
built/installed, this causes version mismatch problems. See
xmlsec/python-xmlsec#320
Follow up from the Dockerfile patch before - this should
be sufficient to install dependencies on CI with binary
wheels, while keeping the package layout a bit closer to
the Dockerfile.
Copy link

codecov bot commented Jun 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 96.49%. Comparing base (bcac0ed) to head (6882bd2).
Report is 685 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #4415   +/-   ##
=======================================
  Coverage   96.49%   96.49%           
=======================================
  Files         719      719           
  Lines       23688    23689    +1     
  Branches     2799     2799           
=======================================
+ Hits        22858    22859    +1     
  Misses        562      562           
  Partials      268      268           

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

@sergei-maertens sergei-maertens merged commit 1e9b1a9 into master Jun 19, 2024
30 checks passed
@sergei-maertens sergei-maertens deleted the hotfix/uwsgi-crash branch June 19, 2024 10:24
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.

1 participant