Skip to content

Commit

Permalink
Add tests to the Python build, wheel, and Mypyc packages.
Browse files Browse the repository at this point in the history
Create shared tests to be used for both unit and integration
testing, and increase the coverage of unit tests to 100%. Additionally,
before publishing the pre-release, run the shared tests against the
build version for each OS supported by the code.

The intention here is to ensure that all build packages are tested
and function correctly for all supported features.

Resolves: #577
  • Loading branch information
nycholas committed Oct 28, 2024
1 parent f5d60c5 commit d3dc6f3
Show file tree
Hide file tree
Showing 110 changed files with 5,543 additions and 5,217 deletions.
55 changes: 27 additions & 28 deletions .docker/certs/Cenobit_Root_CA.pem
Original file line number Diff line number Diff line change
@@ -1,30 +1,29 @@
-----BEGIN CERTIFICATE-----
MIIFFzCCA3+gAwIBAgIQOWWFM0qvic8JSw9z/XMW+zANBgkqhkiG9w0BAQsFADCB
ozEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTwwOgYDVQQLDDNueWNo
b2xhc0BkcmVhbWVyLmxvY2FsIChOeWNob2xhcyBPbGl2ZWlyYSBPbGl2ZWlyYSkx
QzBBBgNVBAMMOm1rY2VydCBueWNob2xhc0BkcmVhbWVyLmxvY2FsIChOeWNob2xh
cyBPbGl2ZWlyYSBPbGl2ZWlyYSkwHhcNMjEwNjE3MTMwMjQ1WhcNMzEwNjE3MTMw
MjQ1WjCBozEeMBwGA1UEChMVbWtjZXJ0IGRldmVsb3BtZW50IENBMTwwOgYDVQQL
DDNueWNob2xhc0BkcmVhbWVyLmxvY2FsIChOeWNob2xhcyBPbGl2ZWlyYSBPbGl2
ZWlyYSkxQzBBBgNVBAMMOm1rY2VydCBueWNob2xhc0BkcmVhbWVyLmxvY2FsIChO
eWNob2xhcyBPbGl2ZWlyYSBPbGl2ZWlyYSkwggGiMA0GCSqGSIb3DQEBAQUAA4IB
jwAwggGKAoIBgQC/VgcpUwHdpe05ivn12+a0q71JaCcbhrSJYXFa3zXTKjymOYS8
88iEL9X671Dwl+i9phP8bkq1E9HNgFglm9IYbZ6cfdrfc8CH2L+XnZd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Cwt9WMn8isvlMJ58dllc4TO59AgMBAAGjRTBD
MA4GA1UdDwEB/wQEAwICBDASBgNVHRMBAf8ECDAGAQH/AgEAMB0GA1UdDgQWBBSa
uvufBNBaHBL858MXfjisUs5i7TANBgkqhkiG9w0BAQsFAAOCAYEAi8TTqRBYWLlR
z5O/YO6A9qFmdO4AvTjTwc2raHJK0iSRvwVe42ZL48AFGYYmw68OJj1hQjtOttXn
Onpd7jFaHCcH2+VkGWNcP4dDWOoWxqCg2Pj2iAexQo+7Kn9hBwFYFcR8dNrGdjmk
tjpvnNGwUdzq0MFdblyCiFPofWFrJL6AVyNNfn+KnqNKdjf5M2+yMnqtqXiHyAK0
hFyuXY4LPeQXrL+kVPnKI5Wmg2104CET9G5UqoRMSFbTI00+hT4f1AlP6m8i6pP3
LQYIBJ8HhTCtZMYwmFZBZtLiv9rc4keGq22hBpPb2WnC8aDUw7WDkFxebVE4mdIa
xL8OTEkNjyEY4bGlOWSVcrImN9KouRo6x5Jzb7PyFOhglemtZirYL/nM9henqmlM
cgc41/ApvvK949JgLjhZjXaWkg3iG6jemUM79jkdF/FCk1MIRbPiJEU4L5OYGk90
hL/aQquSD9AfCpBOkioz8ennjewnZW2xqGCoYpmq2OF+pkRXYIb+
-----END CERTIFICATE-----
4 changes: 2 additions & 2 deletions .docker/nginx/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,6 @@ $ openssl dhparam -out ssl/ssl-dhparam.pem 4096
See [here](https://github.com/FiloSottile/mkcert#installation) how to install mkcert.
```
$ mkcert -install
$ mkcert -key-file ssl/flask-jsonrpc.cenobit.es.key -cert-file ssl/flask-jsonrpc.cenobit.es.crt *.flask-jsonrpc.cenobit.es
$ cp -rf "$(mkcert -CAROOT)/rootCA.pem" ../certs/
$ mkcert -key-file ssl/flask-jsonrpc.cenobit.es.key -cert-file ssl/flask-jsonrpc.cenobit.es.crt '*.flask-jsonrpc.cenobit.es'
$ cp -rf "$(mkcert -CAROOT)/rootCA.pem" ../certs/Cenobit_Root_CA.pem
```
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server {
server_name async-app.flask-jsonrpc.cenobit.es;

location / {
proxy_pass http://async_app:5000/;
proxy_pass http://async-app:5000/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ server {
server_name mypyc-app.flask-jsonrpc.cenobit.es;

location / {
proxy_pass http://mypyc_app:5000/;
proxy_pass http://mypyc-app:5000/;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
Expand Down
28 changes: 0 additions & 28 deletions .docker/nginx/conf.d/mypyc-async-app.flask-jsonrpc.cenobit.es.conf

This file was deleted.

5 changes: 5 additions & 0 deletions .docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ http {

root /opt/test-static/public;
index index.html;

location /health {
default_type application/json;
return 200 '{"status": "UP"}';
}
}

include /etc/nginx/conf.d/*.conf;
Expand Down
49 changes: 24 additions & 25 deletions .docker/nginx/ssl/flask-jsonrpc.cenobit.es.crt
Original file line number Diff line number Diff line change
@@ -1,27 +1,26 @@
-----BEGIN CERTIFICATE-----
MIIEjjCCAvagAwIBAgIRAJdntdMRAvSoHdaDsHUxPPkwDQYJKoZIhvcNAQELBQAw
gaMxHjAcBgNVBAoTFW1rY2VydCBkZXZlbG9wbWVudCBDQTE8MDoGA1UECwwzbnlj
aG9sYXNAZHJlYW1lci5sb2NhbCAoTnljaG9sYXMgT2xpdmVpcmEgT2xpdmVpcmEp
MUMwQQYDVQQDDDpta2NlcnQgbnljaG9sYXNAZHJlYW1lci5sb2NhbCAoTnljaG9s
YXMgT2xpdmVpcmEgT2xpdmVpcmEpMB4XDTIzMDMyOTExMTAxOFoXDTI1MDYy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MBMGA1UdJQQMMAoGCCsGAQUFBwMBMB8G
A1UdIwQYMBaAFJq6+58E0FocEvznwxd+OKxSzmLtMCUGA1UdEQQeMByCGiouZmxh
c2stanNvbnJwYy5jZW5vYml0LmVzMA0GCSqGSIb3DQEBCwUAA4IBgQAFiP8RAjEu
RWFtBMyltqK+gUR+631BihPIo2V48ACJy2ng1LLUvzjws+S4tP3wBp1y2GdyO7tG
F4ocjmwYSVdMt2wjkVXIfpKqBA2njLNOtc+8OUgDIX3jUDqTsy82rrtcrzp/rQcE
LRz3r1RTt9Yluh8Kbakp/mtrJcS9bER2UP1dl/XNi1R575cdMX0GAVPDShPMQCeD
YaNuHMIUfCZVPbyM5Rh1McrEe/PwaFWnp6wq68fTc1bhaJeeEAZKSDbfPyNk+YTY
f4X0Uw4jsteeJDi5mN9qrurT9KiOpf0JBYsEi2DMNWGVXuRtgJd+7f3IXO7Izorw
/x7rsoxDEh/l1/A6mTb38lyNVBNbslVKOInlHDcTx83wCnTw7OJcg3zaCiLNLvs6
OR8C/u/m6xmrf+7PydAF+OTnheWG6pyaJ0Yeo5YdZYYfxFOERWMbKoNP9eRzV2b8
xrce/oGrlZOWzVOW2oULoMnxWshC1Q/6jmwhBMbajJkWQXRevz9QdNc=
-----END CERTIFICATE-----
52 changes: 26 additions & 26 deletions .docker/nginx/ssl/flask-jsonrpc.cenobit.es.key
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
-----BEGIN PRIVATE KEY-----
MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQDAzjlsHOl7sq9G
pCdeNcP9NYKfjBm6SZQviJ/xDJTFQEsQuJ9t85oWSsLI0SgAXO+o2XndrgjCE+u5
CEiRzHnTAb/OHQH4Sp3JizbXnDcRZHOp1ZJPb9XlZiQ7tGFFkm5Dah1Vh5eV1wTf
QejfiA4XoN5DY67HkAy1+TRQ7TTXu1C7cG5DMEfQ7FJaDNKHwQjPtiEoGCoWH0iR
y2Z8P0mu0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rAyLBc+nI4ng2KoAb1m5qQggf5WpRtjQQ2s23+cZE0Bd94eqTNNV8n7Fza
WfWMRn3LaZQPypeZnxZbSRvhtbXyV8CXP+r/hHNA800rWjNffvKZw/8ClOr4DDG1
35qUkFNKLpw2j2EtN379QjVaACECgYEAzyYsT2Fn2p1jPHmD/RtOveyIDeqhbWW0
TuVfVWfT/c7MPego+6DxmDaohMNHb1UFe5Aphrnin+aTVjXusWPSddRmwfFxLjCL
JMn9X33gQ2tmTvaf234IVvFnwWtqknCsP4b/qpx72J4US4JSja+ec1UMBPK7i1vx
BSPbk+wpHRkCgYAA2O30NHsdpUa7aS10M68dVkltWSG/1Psc71BaLk2s9vyGJkTa
OmdVRNx85BJIK+y/zeF5IPrqrlW9vBcWaHfK48ke2RFMwmhiBDY410+ifn/oFShV
ltKzodJ6gC+dwTY9mBJHg/td7r9TRnDX4JWhIUzlcbjn3vTVFtFFFnkkIQKBgQCh
XW8u9wXburbPKSm0RU11jYf+r0PI4G0w+GTnNtZg5HMd1nf2bE1G8W0c3rIK/AQl
WQvAM5ViUk973M9vx/7uYuMZOWedP5tksSR6+qd0XXl5EY09glQkxjC472A5ayQC
6LrIwNWIzLuqhn6geKnJ1fpi8GNAEAMUqfYmqNTuIQKBgDPoAZe7kkEW2pfK/Stg
UZMxLJmTk2c0HOL6FBOaqTvlSafKXzR31u80I2HVXaAvj8qhOrtc56DJqZYNUuYb
ubh2Ns+1lcnI/Kwlp7OT5HQu2IzVMZYxV7iqPcKXv0wiYp1h0GM4540uCukn0CeX
mm+zyaxItbYXYt1f2ttR5CKz
-----END PRIVATE KEY-----
2 changes: 1 addition & 1 deletion .github/workflows/on_update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
- name: Run tox (Style, Type checker, Security, Docs) | Python 3.12
if: ${{ matrix.platform == 'ubuntu-latest' && matrix.python-version == '3.12' }}
run: |
tox -e style,typing-mypy,typing-pyright,security-safety,security-bandit,docs -p all
tox -e style,typing-mypy,typing-pyright,security-bandit,docs -p all
- name: Run tox (Tests) | ${{ matrix.platform }}
run: |
tox -e py,py-async
8 changes: 8 additions & 0 deletions .github/workflows/pre_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,14 @@ jobs:
steps:
- name: Checkout source at ${{ matrix.platform }}
uses: actions/checkout@v4
- name: Setup Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Prepare build
run: |
pip install -U pip tomlkit
python bin/cibw-before-build.py
- name: Build wheels
uses: pypa/[email protected]
with:
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ parts/
sdist/
var/
wheels/
wheelhouse/
share/python-wheels/
*.egg-info/
.installed.cfg
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
exclude: '.git|.tox|.venv|.vscode|__pycache__|.pytest_cache|.eggs|.mypy_cache|.pytype|htmlcov|junit|htmldoc'
default_stages: [commit]
default_stages: [pre-commit]
fail_fast: true
default_language_version:
python: python3.12
Expand Down
7 changes: 4 additions & 3 deletions Dockerfile.it
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-alpine as builder
FROM python:3.12-alpine AS builder

RUN apk add --no-cache --update --virtual .build-deps \
build-base \
Expand All @@ -16,7 +16,7 @@ WORKDIR /svc
COPY requirements/tests.txt /svc/
RUN pip install pip setuptools wheel --upgrade \
&& pip wheel --wheel-dir=/svc/wheels -r tests.txt \
poetry-core>=1.0.0
&& pip install poetry-core>=1.0.0

FROM python:3.12-alpine

Expand Down Expand Up @@ -57,6 +57,7 @@ ARG VERSION=1
RUN echo "Version: ${VERSION}"

COPY .docker/* requirements/tests.txt tests/integration/*.py tests/integration/*.ini /app/
COPY tests/integration/shared/*.py tests/shared/ /app/shared/

RUN pip install pip setuptools wheel --upgrade \
&& pip install --no-index --find-links=/svc/wheels -r tests.txt \
Expand All @@ -74,4 +75,4 @@ RUN pip install pip setuptools wheel --upgrade \

USER flask_user

CMD ./wait-for.sh ${SITE_DOMAIN}:${SITE_PORT} -t 600 -- pytest --junitxml=test-results/junit.xml
CMD ./wait-for.sh ${SITE_DOMAIN}:${SITE_PORT} -t 600 -- pytest -n auto --junitxml=test-results/junit.xml
6 changes: 2 additions & 4 deletions Dockerfile.local
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM python:3.12-alpine as builder
FROM python:3.12-alpine AS builder

RUN apk add --no-cache --update --virtual .build-deps \
build-base \
Expand Down Expand Up @@ -77,6 +77,4 @@ USER flask_user
ARG VERSION=1
RUN echo "Version: ${VERSION}"

COPY .docker/* /app/
COPY tests/test_apps/app/__init__.py /app/app.py
COPY tests/test_apps/async_app/__init__.py /app/async_app.py
COPY .docker/* tests/test_apps/ /app/
2 changes: 1 addition & 1 deletion Dockerfile.py310.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN set -ex \
&& pip install -r requirements/base.txt \
&& pip install -r requirements/style.txt \
&& pip install -r requirements/tests.txt \
poetry-core>=1.0.0 \
&& pip install poetry-core>=1.0.0 \
&& apk del .build-deps \
&& addgroup -S kuchulu \
&& adduser \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.py311.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN set -ex \
&& pip install -r requirements/base.txt \
&& pip install -r requirements/style.txt \
&& pip install -r requirements/tests.txt \
poetry-core>=1.0.0 \
&& pip install poetry-core>=1.0.0 \
&& apk del .build-deps \
&& addgroup -S kuchulu \
&& adduser \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.py312.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN set -ex \
&& pip install -r requirements/base.txt \
&& pip install -r requirements/style.txt \
&& pip install -r requirements/tests.txt \
poetry-core>=1.0.0 \
&& pip install poetry-core>=1.0.0 \
&& apk del .build-deps \
&& addgroup -S kuchulu \
&& adduser \
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile.py39.test
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ RUN set -ex \
&& pip install -r requirements/base.txt \
&& pip install -r requirements/style.txt \
&& pip install -r requirements/tests.txt \
poetry-core>=1.0.0 \
&& pip install poetry-core>=1.0.0 \
&& apk del .build-deps \
&& addgroup -S kuchulu \
&& adduser \
Expand Down
2 changes: 1 addition & 1 deletion MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ graft docs
prune docs/_build
graft examples
graft tests
global-exclude *~ *.py[cod] *.so *.swp *.editorconfig __pycache__
global-exclude *~ *.py[cod] *.so *.swp *.editorconfig __pycache__ .tox **/.tox venv .venv .venv.* **/venv **/.venv **/.venv.*
3 changes: 2 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ all: clean test

clean:
@find {src,examples,tests} -regex ".*\.\(so\|pyc\)" | xargs rm -rf
@find {src,examples,tests} -name "__pycache__" -o -name ".coverage" -o -name ".tox" -o -name ".pytest_cache" -o -name ".ruff_cache" -o -name ".pkg" -o -name ".tmp" | xargs rm -rf
@find {src,examples,tests} -name "__pycache__" -o -name ".coverage" -o -name "junit" -o -name "coverage.lcov" -o -name "htmlcov" -o -name ".tox" -o -name ".pytest_cache" -o -name ".ruff_cache" -o -name ".pkg" -o -name ".tmp" | xargs rm -rf
@rm -rf .coverage coverage.* .eggs/ .mypy_cache/ .pytype/ .ruff_cache/ .pytest_cache/ .tox/ src/*.egg-info/ htmlcov/ junit/ htmldoc/ build/ dist/ wheelhouse/

style:
Expand All @@ -33,6 +33,7 @@ release: test
@python -m pip install --upgrade -r requirements/cbuild.txt
@python -m build
@MYPYC_ENABLE=1 python setup.py bdist_wheel
@cibuildwheel

publish-test: release
@python -m pip install --upgrade twine
Expand Down
Loading

0 comments on commit d3dc6f3

Please sign in to comment.