Fix container startup crash caused by honcho 1.1.0 + setuptools 82.x incompatibility#529
Merged
Fix container startup crash caused by honcho 1.1.0 + setuptools 82.x incompatibility#529
Conversation
…rch APIs Co-authored-by: fr4nc1sc0-r4m0n <215478872+fr4nc1sc0-r4m0n@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix tests that are currently failing
Fix container startup crash caused by honcho 1.1.0 + setuptools 82.x incompatibility
Mar 4, 2026
xrmx
reviewed
Mar 5, 2026
| 'class': 'logging.StreamHandler', | ||
| 'formatter': "json" if "ENABLE_JSON_LOGGING" in os.environ else "console", | ||
| }, | ||
| 'elasticapm': { |
Member
There was a problem hiding this comment.
Copilot is right that this is deprecated but I would like to not change behavior
Contributor
There was a problem hiding this comment.
@copilot take into account this comment #529 (comment)
Contributor
Author
There was a problem hiding this comment.
Restored the elasticapm handler and updated the opbeans logger to use ['console', 'elasticapm'] again in commit 6636788. The original logging behavior is preserved.
Co-authored-by: fr4nc1sc0-r4m0n <215478872+fr4nc1sc0-r4m0n@users.noreply.github.com>
Contributor
Author
|
Just as a heads up, I was blocked by some firewall rules while working on your feedback. Expand below for details. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
xrmx
approved these changes
Mar 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
honcho 1.1.0importsfrom pkg_resources import iter_entry_points, which fails withModuleNotFoundErroraftersetuptools 82.0.0removedpkg_resourcesfrom the venv. Since the Dockerfile runspip install -U pip setuptools, fresh builds started getting setuptools 82.x and the container exited with code 1 immediately on startup.Changes
requirements.txt:honcho 1.1.0→2.0.0— v2 usesimportlib.metadatainstead ofpkg_resourcesopbeans/settings.py:structlog.threadlocal.wrap_dict(dict)withcontext_class=dict+ addstructlog.contextvars.merge_contextvarsprocessor (modern structlog API since 21.2.0)elasticapm.contrib.django.handlers.LoggingHandlerto preserve original logging behaviorUSE_L10N = True(dropped in Django 5.0)opbeans/tasks.py: Replaceexcept TransportError as e: if e.status_code == 404withexcept NotFoundError—TransportError.status_codedoesn't exist in elasticsearch-py 8.xopbeans/__init__.py: Removedefault_app_config(ignored since Django 3.2, removed in 5.0)Original prompt
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.