Contributing
Thanks for your interest in uds-takserver. Bug reports, feature requests, and pull requests are all welcome.
This project follows the Contributor Covenant 2.1. Report conduct violations through the private channel in Security Policy, the same way as a vulnerability. Do not open a public issue for one.
Reporting bugs and requesting features
Section titled “Reporting bugs and requesting features”Open an issue at https://github.com/jonathanagustin/uds-takserver/issues. Search the existing issues first, since yours may already be there.
For a bug, include:
- the commit or package version you deployed
- the cluster (for example the
k3d-core-slim-devbundle) and its architecture - what you ran, what you expected, and what happened
- relevant logs, for example from
uds run actions:debug-outputoruds zarf tools kubectl logs -n takserver <pod>
For a feature request, describe the problem you want solved and how you would use the result.
Do not report security vulnerabilities in a public issue. Follow Security Policy instead.
Contribution process
Section titled “Contribution process”- Fork the repository and create a branch from
main. - Make your change, with tests and documentation (see below).
- Run the lint checks and the tests that cover your change.
- Open a pull request against
mainand fill in the template. - CI runs lint, CodeQL, dependency review, and the k3d install test (see CI workflows). All required checks must pass.
- The maintainer reviews the pull request. When it is approved and green, it is squash-merged, so the pull request title becomes the commit message on
main.
Release Please builds the changelog and the release pull requests from the merged titles. Leave CHANGELOG.md and the version numbers for that pull request.
Requirements for a pull request
Section titled “Requirements for a pull request”-
Title. Use Conventional Commits, for example
feat: ...,fix: ...,docs: ...,ci: ..., orchore: .... The Commitlint workflow checks it. -
Lint.
hk check --allmust pass. It runs yamllint, shellcheck, hadolint, actionlint, codespell, Helm lint and template checks, Zarf lint, gitleaks, and the key-material check (seehk.pkl).uds run lint:allruns the shared YAML, shell, Zarf, Helm, and license-header checks. All tools are pinned inmise.toml;mise installinstalls them. -
License headers. New source files carry the SPDX header used across the repository:
Copyright 2026 uds-takserver authorsSPDX-License-Identifier: GPL-3.0-only -
No secrets. Never commit private keys, keystores, passwords, or enrolled certificates. Certificates are generated at deploy time (ADR 2).
-
Pinned dependencies. Pin images and GitHub Actions by digest or full commit SHA, with the version in a comment. Renovate keeps them current.
-
Documentation. Update the README,
docs/, or an ADR inadr/when behavior, configuration, or a design decision changes. The docs site is built from those files by the Docs workflow. A new page underdocs/also needs an entry indocs-site/scripts/sync-docs.mjsand the sidebar indocs-site/astro.config.mjs. Runnpm ci && npm run buildindocs-site/to check it: a broken internal link fails the build.npm testthere runs the browser checks against that build. Install the browser once withnpx playwright install chromium.
Coding standards
Section titled “Coding standards”Task-oriented documentation belongs in docs/how-to/. Copy
docs/how-to/_template.md, name the new page for its
task without a leading underscore, and keep the template’s sections. These
pages are discovered automatically by the docs sync and How-to sidebar; the
template stays out of the published site. Existing reference pages keep their
URLs when a how-to guide is added.
- Shell scripts use strict mode (
set -euo pipefail) and pass shellcheck. - YAML passes yamllint with
.yamllint. - Dockerfiles pass hadolint with
.hadolint.yaml. - The Pepr module in
pepr/is TypeScript withstrictmode on. - Helm charts pass
helm lintand render withhelm template. - Keep UDS policy exemptions and NetworkPolicy allow rules as narrow as possible, and explain any new one in the pull request.
Policy: new functionality comes with automated tests. A pull request that adds a feature or fixes a bug adds or updates a test that would fail without the change. If a change can’t reasonably be tested, say why in the pull request.
Where tests live:
| Kind | Location | How to run |
|---|---|---|
| Pepr module unit tests | pepr/capabilities/*.test.ts |
cd pepr && npm ci && npm test |
| Deployment checks (pods, mesh, policy, gateways) | tasks/test.yaml |
uds run test-install |
| Marti API smoke tests | tests/api-smoke.sh |
part of uds run test-install |
| Browser and SSO tests (Playwright) | tests/*.spec.ts |
part of uds run test-install |
| Docs site browser tests | docs-site/tests/*.spec.ts |
cd docs-site && npm ci && npm run build && npx playwright install chromium && npm test |
| Upgrade tests | tests/upgrade*.py, tests/upgrade.sh |
uds run test-upgrade |
| Python and shell unit tests | tests/test_*.py, tests/test_*.sh |
python3 -B -m unittest discover -s tests -p 'test_*.py', and bash tests/test_<name>.sh. test_package_values.py needs the UDS CLI and bash pepr/build.sh first |
| Full Core checks (monitoring, logging, Falco, Portal, backup and restore) | test:full-core in tasks/test.yaml, tests/backup-restore.sh |
uds run test-full-core |
| Benchmark harness | bench/, tests/test_bench.py |
the Benchmark workflow. See Benchmarks |
uds run test-install builds the package, deploys k3d-core-slim-dev and the test bundle, and runs the whole suite. The same suite runs in the Test workflow on every pull request that changes code.
Coverage
Section titled “Coverage”The Unit tests workflow (.github/workflows/unit-tests.yaml) measures coverage on every pull request and on main, and writes it to the job summary:
- Pepr module:
cd pepr && npm ci && npm run test:coverageuses Node’s built-in coverage. Every file inpepr/capabilities/must stay at 100% of lines, branches and functions. That covers the five capabilities and their helpers. The run fails below 100%, or if no test loads a capability file.pepr/pepr.ts, which only registers the capabilities withPeprModule, isn’t measured. - Python upgrade helpers:
coverage.pymeasurestests/upgrade-baseline.pyandtests/upgrade-stream.pyundertests/test_upgrade_*.py(66% of lines and branches combined when this was added). The parts that aren’t covered callgit,ghand the cluster, and the upgrade job exercises them.
The shell scripts, Helm templates and the TAK and CloudTAK behavior are tested by the deployment suite on a real cluster. That suite isn’t instrumented for coverage.
Demo videos
Section titled “Demo videos”The two videos in the README come from the Demo workflow (.github/workflows/demo.yaml). Pull requests that touch demo/ or tests/demo/ run it as a check, and nothing is published.
One run records everything from the same cluster:
- The two videos.
demo-deploy.mp4anddemo-operate-and-trust.mp4. - One short clip per chapter. For example
demo-clip-airgap.mp4. The doc pages show these. - Stills for the docs. The video recordings and the browser walkthroughs save the stills as they record, so a still cannot show a different version than the video.
The run shows the release in .release-please-manifest.json. It stamps that version on the package and the bundle, and it checks the published package for that version. Record after the release workflow has published it. The upgrade chapter runs last. It installs the release before that one on a new cluster, then upgrades it to this run’s bundle (demo/upgrade.sh).
To update everything after a release:
- Run the Demo workflow by hand from
mainwithatakon. To record exactly the release, setapp_refto its tag, for examplev0.7.2. The last jobs put the videos and clips on the fixeddemorelease and sign them, so the download links stay valid across package releases. - Run
uds run demo-sync-assets --set DEMO_RUN_ID=<run id>. It copies the posters and stills intodocs-site/public/demo/and rewrites the README chapter lists and lengths. - Update the README players by hand. GitHub only plays a video in a page when it was uploaded through its web editor, and there is no API for that. Download the two videos from the
demorelease, drag them into the README editor, and paste the newuser-attachmentsURLs intoREADME.md. - Open a pull request with the changes.
The doc pages link a clip as a poster image: [](https://github.com/jonathanagustin/uds-takserver/releases/download/demo/demo-clip-airgap.mp4). GitHub shows the poster, which links to the clip. The docs site turns the same line into a player.
License
Section titled “License”By contributing, you agree that your contributions are licensed under the GPL-3.0-only license of this repository.