Skip to content

mod-wsgi-test-app compatible with mod_wsgi 6.0.0#829

Open
lukaszachy wants to merge 1 commit into
sclorg:masterfrom
lukaszachy:modsgi-6-compat
Open

mod-wsgi-test-app compatible with mod_wsgi 6.0.0#829
lukaszachy wants to merge 1 commit into
sclorg:masterfrom
lukaszachy:modsgi-6-compat

Conversation

@lukaszachy
Copy link
Copy Markdown

@lukaszachy lukaszachy commented Jun 2, 2026

Keep it working with older mod_wsgi

There is another mod_wsgi example micropipenv-requirements-test-app but that has mod_wsgi frozen to 5.0.1

@frenzymadness
Copy link
Copy Markdown
Member

[test][test-pytest]

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Jun 2, 2026

Testing Farm results

namecomposearchstatusstarted (UTC)timelogs
Fedora - PyTest - 3.13-minimalFedora-latestx86_64✅ passed03.06.2026 11:41:288min 47stest pipeline
CentOS Stream 9 - PyTest - 3.9-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 11:49:2615min 24stest pipeline
Fedora - PyTest - 3.13Fedora-latestx86_64✅ passed02.06.2026 08:19:3815min 59stest pipeline
CentOS Stream 10 - PyTest - 3.13CentOS-Stream-10x86_64✅ passed03.06.2026 12:29:0517min 44stest pipeline
CentOS Stream 10 - PyTest - 3.12CentOS-Stream-10x86_64✅ passed03.06.2026 12:34:1416min 48stest pipeline
CentOS Stream 9 - 3.14CentOS-Stream-9x86_64✅ passed02.06.2026 08:19:3821min 38stest pipeline
Fedora - 3.14Fedora-latestx86_64✅ passed03.06.2026 12:08:4018min 38stest pipeline
CentOS Stream 9 - PyTest - 3.12-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 12:21:4014min 19stest pipeline
CentOS Stream 9 - 3.11-minimalCentOS-Stream-9x86_64✅ passed02.06.2026 08:38:0820min 9stest pipeline
RHEL8 - PyTest - 3.11RHEL-8.10.0-Nightlyx86_64✅ passed02.06.2026 08:19:4050min 40stest pipeline
RHEL10 - Unsubscribed host - 3.12-minimalRHEL-10.2-Nightlyx86_64✅ passed02.06.2026 08:19:3854min 31stest pipeline
RHEL9 - PyTest - 3.14-minimalRHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 08:19:3756min 47stest pipeline
RHEL9 - 3.12-minimalRHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:32:1634min 56stest pipeline
RHEL8 - 3.12RHEL-8.10.0-Nightlyx86_64✅ passed02.06.2026 08:19:3856min 30stest pipeline
RHEL8 - 3.11-minimalRHEL-8.10.0-Nightlyx86_64✅ passed02.06.2026 08:19:3758min 32stest pipeline
RHEL9 - Unsubscribed host - 3.9RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:57:4933min 41stest pipeline
RHEL9 - 3.14-minimalRHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:27:0932min 11stest pipeline
RHEL10 - Unsubscribed host - PyTest - 3.12-minimalRHEL-10.2-Nightlyx86_64✅ passed03.06.2026 12:17:4220min 46stest pipeline
CentOS Stream 10 - 3.13CentOS-Stream-10x86_64✅ passed02.06.2026 08:59:0821min 57stest pipeline
RHEL8 - PyTest - 3.12-minimalRHEL-8.10.0-Nightlyx86_64✅ passed03.06.2026 12:02:3027min 56stest pipeline
RHEL9 - PyTest - 3.11RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 08:19:381h 3min 20stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.12RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 12:05:4537min 53stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.11RHEL-9.8.0-Nightlyx86_64❌ error02.06.2026 08:19:381h 4min 25stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.14RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 08:19:381h 6min 10stest pipeline
RHEL9 - PyTest - 3.12-minimalRHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 08:42:1445min 32stest pipeline
RHEL9 - PyTest - 3.14RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 12:01:2041min 5stest pipeline
CentOS Stream 9 - PyTest - 3.11-minimalCentOS-Stream-9x86_64✅ passed02.06.2026 09:20:0115min 43stest pipeline
CentOS Stream 10 - PyTest - 3.13-minimalCentOS-Stream-10x86_64✅ passed03.06.2026 12:01:1915min 29stest pipeline
Fedora - 3.14-minimalFedora-latestx86_64✅ passed03.06.2026 12:26:5314min 53stest pipeline
RHEL9 - PyTest - 3.12RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:27:0628min 25stest pipeline
Fedora - PyTest - 3.14-minimalFedora-latestx86_64✅ passed03.06.2026 11:27:079min 59stest pipeline
CentOS Stream 9 - 3.9CentOS-Stream-9x86_64✅ passed03.06.2026 11:57:5121min 56stest pipeline
CentOS Stream 9 - 3.9-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 11:56:1319min 51stest pipeline
CentOS Stream 9 - PyTest - 3.12CentOS-Stream-9x86_64✅ passed03.06.2026 12:17:4418min 28stest pipeline
Fedora - PyTest - 3.14Fedora-latestx86_64✅ passed02.06.2026 09:28:3515min 49stest pipeline
RHEL9 - Unsubscribed host - 3.11RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 09:12:0832min 9stest pipeline
RHEL9 - Unsubscribed host - 3.14RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:27:0732min 56stest pipeline
RHEL8 - PyTest - 3.12RHEL-8.10.0-Nightlyx86_64✅ passed03.06.2026 11:38:1622min 51stest pipeline
RHEL9 - Unsubscribed host - 3.12-minimalRHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 12:01:3034min 1stest pipeline
CentOS Stream 10 - PyTest - 3.12-minimalCentOS-Stream-10x86_64✅ passed03.06.2026 11:27:0713min 53stest pipeline
Fedora - 3.13Fedora-latestx86_64✅ passed02.06.2026 09:36:2519min 52stest pipeline
RHEL9 - PyTest - 3.9RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:27:0628min 52stest pipeline
RHEL8 - 3.12-minimalRHEL-8.10.0-Nightlyx86_64✅ passed03.06.2026 11:27:0726min 3stest pipeline
RHEL9 - 3.9RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:41:1739min 34stest pipeline
CentOS Stream 9 - 3.11CentOS-Stream-9x86_64❌ error02.06.2026 09:37:5021min 54stest pipeline
CentOS Stream 9 - 3.12CentOS-Stream-9x86_64✅ passed03.06.2026 12:22:0123min 11stest pipeline
CentOS Stream 9 - 3.12-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 11:27:0920min 20stest pipeline
Fedora - 3.13-minimalFedora-latestx86_64✅ passed03.06.2026 12:20:1215min 55stest pipeline
CentOS Stream 9 - PyTest - 3.11CentOS-Stream-9x86_64✅ passed02.06.2026 09:45:0317min 39stest pipeline
RHEL8 - PyTest - 3.11-minimalRHEL-8.10.0-Nightlyx86_64✅ passed02.06.2026 09:42:2621min 23stest pipeline
CentOS Stream 10 - 3.12-minimalCentOS-Stream-10x86_64✅ passed03.06.2026 12:26:1118min 15stest pipeline
RHEL8 - 3.11RHEL-8.10.0-Nightlyx86_64✅ passed02.06.2026 09:42:5427min 6stest pipeline
RHEL9 - 3.12RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 09:34:5835min 37stest pipeline
CentOS Stream 10 - PyTest - 3.14-minimalCentOS-Stream-10x86_64✅ passed03.06.2026 11:57:2712min 39stest pipeline
RHEL9 - 3.14RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 09:39:1433min 49stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.12-minimalRHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 11:58:3127min 39stest pipeline
RHEL9 - Unsubscribed host - 3.12RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 12:02:4034min 11stest pipeline
RHEL10 - 3.12-minimalRHEL-10.2-Nightlyx86_64✅ passed02.06.2026 09:46:3527min 17stest pipeline
CentOS Stream 9 - PyTest - 3.9CentOS-Stream-9x86_64✅ passed03.06.2026 12:01:4018min 14stest pipeline
CentOS Stream 9 - PyTest - 3.14-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 12:07:4816min 28stest pipeline
CentOS Stream 10 - 3.12CentOS-Stream-10x86_64✅ passed02.06.2026 09:55:0421min 39stest pipeline
RHEL10 - Unsubscribed host - PyTest - 3.14-minimalRHEL-10.2-Nightlyx86_64❌ error03.06.2026 11:27:0620min 35stest pipeline
RHEL9 - 3.11RHEL-9.8.0-Nightlyx86_64✅ passed02.06.2026 09:44:3532min 32stest pipeline
CentOS Stream 10 - 3.14-minimalCentOS-Stream-10x86_64✅ passed02.06.2026 09:58:4619min 41stest pipeline
CentOS Stream 9 - 3.14-minimalCentOS-Stream-9x86_64✅ passed03.06.2026 12:11:5320min 9stest pipeline
RHEL9 - Unsubscribed host - 3.14-minimalRHEL-9.8.0-Nightlyx86_64❌ error03.06.2026 10:22:2828min 58stest pipeline
RHEL10 - 3.14-minimalRHEL-10.2-Nightlyx86_64✅ passed02.06.2026 10:02:0028min 18stest pipeline
RHEL10 - Unsubscribed host - 3.14-minimalRHEL-10.2-Nightlyx86_64✅ passed02.06.2026 10:03:2328min 53stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.14-minimalRHEL-9.8.0-Nightlyx86_64❌ error03.06.2026 11:27:0627min 31stest pipeline
RHEL10 - PyTest - 3.14-minimalRHEL-10.2-Nightlyx86_64✅ passed02.06.2026 10:04:5228min 37stest pipeline
CentOS Stream 9 - PyTest - 3.14CentOS-Stream-9x86_64✅ passed03.06.2026 12:16:3619min 32stest pipeline
RHEL10 - PyTest - 3.12-minimalRHEL-10.2-Nightlyx86_64✅ passed03.06.2026 10:24:0522min 14stest pipeline
RHEL9 - Unsubscribed host - PyTest - 3.9RHEL-9.8.0-Nightlyx86_64✅ passed03.06.2026 12:01:5437min 26stest pipeline

@lukaszachy
Copy link
Copy Markdown
Author

Failure in RHEL9 - Unsubscribed host - PyTest - 3.11 isn't related to this change

@frenzymadness
Copy link
Copy Markdown
Member

Failure in RHEL9 - Unsubscribed host - PyTest - 3.11 isn't related to this change

And 3.11 is not supported anymore.

@frenzymadness
Copy link
Copy Markdown
Member

@phracek, what to do in cases like this when failed jobs in CI don't work as links to logs?

@phracek
Copy link
Copy Markdown
Member

phracek commented Jun 2, 2026

C9S stream 3.11 is failing here:

[PASSED] for 'locale-test-app' test_application_enable_init_wrapper (00:00:04)
 [FAILED] for 'pipenv-test-app' run_s2i_build ()
 [PASSED] for 'pipenv-and-micropipenv-should-fail-test-app' run_s2i_build ()
[notice] A new release of pip available: 22.3.1 -> 26.1.2
[notice] To update, run: python3.11 -m pip install --upgrade pip
---> Installing dependencies via pipenv ...
Courtesy Notice:
Pipenv found itself running within a virtual environment,  so it will 
automatically use that environment, instead of  creating its own for any 
project. You can set
PIPENV_IGNORE_VIRTUALENVS=1 to force pipenv to ignore that environment and 
create  its own instead.
You can set PIPENV_VERBOSITY=-1 to suppress this warning.
Installing dependencies from Pipfile.lock (63c7a0)...
Looking in indexes: https://pypi.python.org/simple
Obtaining file:///opt/app-root/src (from -r 
/tmp/pipenv-5798bq3s-requirements/pipenv-_pr2vb_8-reqs.txt (line 1))
  Installing build dependencies: started
  Installing build dependencies: finished with status 'done'
  Checking if build backend supports build_editable: started
  Checking if build backend supports build_editable: finished with status 'done'
  Getting requirements to build editable: started
  Getting requirements to build editable: finished with status 'done'
ERROR: Exception:
Traceback (most recent call last):
  File 
"/opt/app-root/src/.local/venvs/pipenv/lib/python3.11/site-packages/pipenv/patch
ed/pip/_internal/cli/base_command.py", line 109, in _run_wrapper
    status = _inner_run()
             ^^^^^^^^^^^^
  File 
"/opt/app-root/src/.local/venvs/pipenv/lib/python3.11/site-packages/pip

@phracek
Copy link
Copy Markdown
Member

phracek commented Jun 3, 2026

Python-3.11 EOL was merged #828 .

Let's re-test it again.

[test][test-pytest]

Keep it working with older mod_wsgi
@phracek
Copy link
Copy Markdown
Member

phracek commented Jun 3, 2026

[test][test-pytest]

@phracek phracek self-requested a review June 3, 2026 11:09
Copy link
Copy Markdown
Member

@phracek phracek left a comment

Choose a reason for hiding this comment

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

LGTM

@phracek
Copy link
Copy Markdown
Member

phracek commented Jun 3, 2026

The failures are caused by this test:

Running test test_from_dockerfile_minimal (starting at 2026-06-03 11:50:58+00:00) ... 
-----------------------------------------------

[INFO] Test from Dockerfile

Using this Dockerfile:
FROM ubi9/python-314-minimal:3.14-minimal

ENV UPGRADE_PIP_TO_LATEST=1

# Add application sources to a directory that the assemble script expects them
# and set permissions so that the container runs without root access
USER 0
ADD app-src /tmp/src
RUN /usr/bin/fix-permissions /tmp/src
# Install packages necessary for compiling uwsgi from source
# pkgconfig(python-3.14) is provided by both python3-devel in c9s
# and python3.14-devel in UBI8.
RUN microdnf install -y gcc "pkgconfig(python-3.14)" which
USER 1001

# Install the dependencies
RUN /usr/libexec/s2i/assemble

# Set the default command for the resulting image
CMD /usr/libexec/s2i/run
Copying local folder: /root/sclorg/s2i-python-container/3.14-minimal/test/uwsgi-test-app -> app-src.
Building 'myapp' image using docker build
STEP 1/9: FROM ubi9/python-314-minimal:3.14-minimal
STEP 2/9: ENV UPGRADE_PIP_TO_LATEST=1
--> e1b175e34fb2
STEP 3/9: USER 0
--> 293ca36a0490
STEP 4/9: ADD app-src /tmp/src
--> 0bc35b76049b
STEP 5/9: RUN /usr/bin/fix-permissions /tmp/src
--> 444cfe2b85f8
STEP 6/9: RUN microdnf install -y gcc "pkgconfig(python-3.14)" which

(microdnf:1): librhsm-WARNING **: 11:51:01.471: Found 0 entitlement certificates

(microdnf:1): librhsm-WARNING **: 11:51:01.473: Found 0 entitlement certificates
Downloading metadata...
Downloading metadata...
Downloading metadata...
error: No package matches 'pkgconfig(python-3.14)'
Error: building at STEP "RUN microdnf install -y gcc "pkgconfig(python-3.14)" which": while running runtime: exit status 1

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.

3 participants