Testing and releases¶
Current state¶
Pytest is configured with unit, integration, contract, API, security, performance, authentication, database, and asyncio markers. The repository does not yet contain test modules, so establishing a test baseline is a priority. I am happy about anybody who could assist there ;-)
Recommended validation¶
uv run pytest
uv run python -m compileall -q bitsygrader executors/systemd/bitsygrader_systemd
jlpm build:lib
uv run mkdocs build --strict
High-value test areas are:
- permission policy matrices for administrators, instructors, and students;
- notebook preprocessing and reconstruction round trips;
- submission matching, resubmission, due dates, and grade aggregation;
- handler contracts, including multipart fetch/create/submit;
- path traversal and upload validation in the Jupyter Server bridge;
- executor failure, timeout, queue, and persistence behavior;
- Moodle and Canvas LTI payload parsing.
Release artifacts¶
The root package produces the bitsygrader Python distribution and bundled @bytechallenge/bitsygrader JupyterLab extension. It installs both bitsygrader and bgrader commands. Tags matching v* trigger the PyPI publishing workflow.
The bitsygrader-executor-systemd distribution is a separate workspace package under executors/systemd, with the import namespace bitsygrader_systemd; tags matching systemd-v* publish it independently.
Before publishing under the new name, configure the PyPI projects and their trusted publishers for these distribution names. Repository and documentation links target Kamuyin/bitsygrader and https://kamuyin.github.io/bitsygrader/; the GitHub repository and Pages settings must use those names as well. Existing installations should follow the upgrade instructions.
Keep these versions aligned where relevant:
pyproject.tomlfor the Python package;bitsygrader.__version__;package.jsonfor the frontend;executors/systemd/pyproject.tomlfor the executor;uv.lockafter workspace metadata changes.
The current repository contains version drift between several of these locations, so verify every artifact explicitly before the next release.