Skip to content

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 ;-)

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:

  1. permission policy matrices for administrators, instructors, and students;
  2. notebook preprocessing and reconstruction round trips;
  3. submission matching, resubmission, due dates, and grade aggregation;
  4. handler contracts, including multipart fetch/create/submit;
  5. path traversal and upload validation in the Jupyter Server bridge;
  6. executor failure, timeout, queue, and persistence behavior;
  7. 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.toml for the Python package;
  • bitsygrader.__version__;
  • package.json for the frontend;
  • executors/systemd/pyproject.toml for the executor;
  • uv.lock after workspace metadata changes.

The current repository contains version drift between several of these locations, so verify every artifact explicitly before the next release.