Skip to content

Add support for gevent#6372

Open
skiedude wants to merge 11 commits into
StackStorm:masterfrom
skiedude:eventlet_death
Open

Add support for gevent#6372
skiedude wants to merge 11 commits into
StackStorm:masterfrom
skiedude:eventlet_death

Conversation

@skiedude

Copy link
Copy Markdown
Contributor

No description provided.

nzlosh and others added 7 commits February 19, 2026 08:53
* Bump pip and setuptools and switch from setup.py to pip install

* Add gevent to requirements, bumps for compatibility and regenerate requirement files.

* Display which components fail unit tests.

* Add checks for eventlet code in monkey patch
@pull-request-size pull-request-size Bot added the size/XXL PR that changes 1000+ lines. You should absolutely split your PR into several. label Mar 26, 2026
@guzzijones

Copy link
Copy Markdown
Contributor

looks like you have some failing unit tests

skiedude and others added 3 commits July 17, 2026 10:21
- Took upstream's CI image bumps (py3.10, mongo 8.2, rabbitmq 4.2) in .circleci/config.yml
- Merged Makefile: kept setuptools_scm/python -m build (needed for gevent's setuptools pin), took upstream's $(PYBIN) consistency
- fixed-requirements.txt: kept gevent/eventlet/greenlet/gunicorn pins, dropped unused flex, picked up importlib_resources/importlib_metadata
- Regenerated all per-component requirements.txt via make requirements
- Regenerated lockfiles/st2.lock via pants generate-lockfiles --resolve=st2
- st2client httpclient.py: resolved shlex.quote alias naming
- test_service_setup_log_level_filtering.py: kept concurrency.sleep() abstraction, took upstream's SIGTERM/8s timeout flakiness fix
gevent = None

CONCURRENCY_LIBRARY = "eventlet"
CONCURRENCY_LIBRARY = os.environ.get("ST2_CONCURRENCY_LIBRARY", "eventlet")

@skiedude skiedude Jul 24, 2026

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

@nzlosh @guzzijones right now I have the utility as an envvar in order to swap between eventlet/gevent, with defaulting to eventlent.

Now that all the tests are passing (existing functionality using eventlet), I will change that to gevent to be the default (whole purpose of this PR).

But any feedback or alternate ideas on how to manage this vs what this is doing now?

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

Labels

size/XXL PR that changes 1000+ lines. You should absolutely split your PR into several.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants