progon 0.6.25__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (64) hide show
  1. progon-0.6.25/LICENSE +21 -0
  2. progon-0.6.25/PKG-INFO +228 -0
  3. progon-0.6.25/README.md +205 -0
  4. progon-0.6.25/progon/__init__.py +19 -0
  5. progon-0.6.25/progon/__main__.py +5 -0
  6. progon-0.6.25/progon/_build.py +2 -0
  7. progon-0.6.25/progon/adapters/__init__.py +22 -0
  8. progon-0.6.25/progon/adapters/base.py +185 -0
  9. progon-0.6.25/progon/adapters/dotnet.py +554 -0
  10. progon-0.6.25/progon/adapters/dotnet_progress.awk +81 -0
  11. progon-0.6.25/progon/adapters/go.py +521 -0
  12. progon-0.6.25/progon/adapters/go_progress.awk +96 -0
  13. progon-0.6.25/progon/adapters/gomutants.py +305 -0
  14. progon-0.6.25/progon/adapters/gomutants_progress.awk +32 -0
  15. progon-0.6.25/progon/adapters/js.py +170 -0
  16. progon-0.6.25/progon/adapters/js_progress.awk +81 -0
  17. progon-0.6.25/progon/adapters/junit.py +107 -0
  18. progon-0.6.25/progon/adapters/mutation.py +207 -0
  19. progon-0.6.25/progon/adapters/mutmut.py +152 -0
  20. progon-0.6.25/progon/adapters/mutmut_locate.py +81 -0
  21. progon-0.6.25/progon/adapters/mutmut_progress.awk +28 -0
  22. progon-0.6.25/progon/adapters/python.py +376 -0
  23. progon-0.6.25/progon/adapters/python_progress.awk +106 -0
  24. progon-0.6.25/progon/adapters/shell.py +241 -0
  25. progon-0.6.25/progon/adapters/stryker_js.py +163 -0
  26. progon-0.6.25/progon/adapters/stryker_js_drop_survivors.js +24 -0
  27. progon-0.6.25/progon/adapters/stryker_js_progress.awk +20 -0
  28. progon-0.6.25/progon/adapters/stryker_net.py +311 -0
  29. progon-0.6.25/progon/adapters/stryker_net_progress.awk +34 -0
  30. progon-0.6.25/progon/archive.py +81 -0
  31. progon-0.6.25/progon/baseline.py +46 -0
  32. progon-0.6.25/progon/cli.py +1032 -0
  33. progon-0.6.25/progon/config.py +160 -0
  34. progon-0.6.25/progon/diagnostics.py +205 -0
  35. progon-0.6.25/progon/docs/adapters.md +182 -0
  36. progon-0.6.25/progon/docs/agent-runbook.md +176 -0
  37. progon-0.6.25/progon/docs/configuration.md +212 -0
  38. progon-0.6.25/progon/docs/profiles.md +801 -0
  39. progon-0.6.25/progon/docs/project-setup.md +244 -0
  40. progon-0.6.25/progon/errors.py +51 -0
  41. progon-0.6.25/progon/estimate.py +105 -0
  42. progon-0.6.25/progon/group.py +246 -0
  43. progon-0.6.25/progon/help.py +61 -0
  44. progon-0.6.25/progon/live.py +335 -0
  45. progon-0.6.25/progon/model.py +148 -0
  46. progon-0.6.25/progon/orchestrate.py +900 -0
  47. progon-0.6.25/progon/policy.py +34 -0
  48. progon-0.6.25/progon/profile.py +486 -0
  49. progon-0.6.25/progon/reach.py +139 -0
  50. progon-0.6.25/progon/script.py +494 -0
  51. progon-0.6.25/progon/server.py +709 -0
  52. progon-0.6.25/progon/since.py +256 -0
  53. progon-0.6.25/progon/snapshot.py +155 -0
  54. progon-0.6.25/progon/state.py +84 -0
  55. progon-0.6.25/progon/store.py +198 -0
  56. progon-0.6.25/progon/summary.py +513 -0
  57. progon-0.6.25/progon/targets.py +603 -0
  58. progon-0.6.25/progon.egg-info/PKG-INFO +228 -0
  59. progon-0.6.25/progon.egg-info/SOURCES.txt +62 -0
  60. progon-0.6.25/progon.egg-info/dependency_links.txt +1 -0
  61. progon-0.6.25/progon.egg-info/entry_points.txt +2 -0
  62. progon-0.6.25/progon.egg-info/top_level.txt +1 -0
  63. progon-0.6.25/pyproject.toml +44 -0
  64. progon-0.6.25/setup.cfg +4 -0
progon-0.6.25/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 rebaseandpanic
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
progon-0.6.25/PKG-INFO ADDED
@@ -0,0 +1,228 @@
1
+ Metadata-Version: 2.4
2
+ Name: progon
3
+ Version: 0.6.25
4
+ Summary: Run a project's tests on shared test VMs with one command; built for AI coding agents.
5
+ Author: rebaseandpanic
6
+ License-Expression: MIT
7
+ Project-URL: Homepage, https://github.com/rebaseandpanic/progon
8
+ Project-URL: Documentation, https://github.com/rebaseandpanic/progon/blob/main/client/docs/agent-runbook.md
9
+ Project-URL: Changelog, https://github.com/rebaseandpanic/progon/blob/main/CHANGELOG.md
10
+ Project-URL: Issues, https://github.com/rebaseandpanic/progon/issues
11
+ Keywords: testing,test-runner,ai-agents,mutation-testing,cli
12
+ Classifier: Development Status :: 4 - Beta
13
+ Classifier: Environment :: Console
14
+ Classifier: Intended Audience :: Developers
15
+ Classifier: Operating System :: POSIX
16
+ Classifier: Programming Language :: Python :: 3
17
+ Classifier: Programming Language :: Python :: 3 :: Only
18
+ Classifier: Topic :: Software Development :: Testing
19
+ Requires-Python: >=3.11
20
+ Description-Content-Type: text/markdown
21
+ License-File: LICENSE
22
+ Dynamic: license-file
23
+
24
+ # progon
25
+
26
+ progon runs a project's tests (unit, integration or mutation, in any language)
27
+ on shared test VMs with **one command**, and the agent gets back **only what it
28
+ needs**: the verdict and counters, and the failed tests with their location and
29
+ cause. No logs to read, no context wasted. Common test frameworks and mutation
30
+ tools have dedicated adapters ([supported today](#supported-today-and-planned));
31
+ anything else runs through the shell adapter, which reads the exit code, TAP or
32
+ JUnit XML.
33
+
34
+ ## Quick start
35
+
36
+ Give your agent [client/docs/agent-runbook.md](client/docs/agent-runbook.md)
37
+ (`progon help start`) and the addresses of your test VMs. It installs the
38
+ client, writes the project's profile and makes the first run.
39
+
40
+ The client alone: `uv tool install progon` or `pipx install progon` (PyPI), or
41
+ `progon.pyz` from the [latest release](https://github.com/rebaseandpanic/progon/releases/latest).
42
+
43
+ - No VMs yet: install progon-server on one, [server/docs/install.md](server/docs/install.md).
44
+ - Describe a project by hand: [client/docs/project-setup.md](client/docs/project-setup.md)
45
+ (`progon help setup`).
46
+
47
+ ## Why
48
+
49
+ progon is built for one scenario: AI agents that run tests themselves while
50
+ they develop, including mutation tests on the diff, instead of pushing and
51
+ waiting for a CI pipeline on a runner.
52
+
53
+ Doing that without progon hurts in three ways:
54
+
55
+ - **The development machine.** Test suites, databases in containers and
56
+ mutation runs need a lot of CPU, memory and disk. Several agents testing at
57
+ once on a laptop or a dev host slow it down or take it down.
58
+ - **The agent's context.** An agent that runs tests itself reads the whole
59
+ output: build logs, stack traces, thousands of passing tests. That burns
60
+ tokens and pushes the actual work out of its context.
61
+ - **Mutation runs are a black box.** A mutation tool often prints nothing
62
+ useful until it finishes, so the agent cannot tell how many mutants are done
63
+ and how many are left, and either waits blindly or polls logs.
64
+
65
+ progon's answer:
66
+
67
+ 1. Set up one or more test VMs and install progon-server on them.
68
+ 2. Each project's agent writes a declarative profile, `.progon/<project>.toml`,
69
+ once.
70
+ 3. From then on a test run is one command. progon picks a VM, sends the
71
+ source, runs the tests in a container, collects the results and cleans up.
72
+ The agent gets a short summary instead of the logs; details come only on
73
+ request, and live progress (including done/total and time left for mutation
74
+ runs) is one more command.
75
+
76
+ The context stays small, the development machine stays free, and the tests run
77
+ where there is room for them.
78
+
79
+ ## What the agent gets
80
+
81
+ - **One command runs the tests.** VM choice, source upload, the run, result
82
+ collection and cleanup happen inside; the agent does none of it by hand.
83
+ - **Only what it needs comes back.** The verdict, the counters and one line per
84
+ failed test with its location and cause. Details only on request.
85
+ - **The context stays clean.** No build logs, no thousands of passing tests, no
86
+ log polling: progress is one more command with a one-line answer.
87
+
88
+ ## How it works
89
+
90
+ Terms used below: a **kind** is one named way to run a project's tests in its
91
+ profile (`unit`, `integ`, `mutation`, ...); **narrowing** is the optional
92
+ selection after the kind (packages, filters, test ids, files); a **grant** is a
93
+ VM's reservation of CPU, memory and disk for one run; the **broker** is a
94
+ per-grant Docker API proxy through which a run starts its own containers.
95
+
96
+ - **Quotas.** Every run holds a grant for the CPU, memory and disk it asked
97
+ for; a VM admits a run only when it has room, so many agents can test at once
98
+ without overloading a VM. A run that does not fit goes to another VM or, with
99
+ `--quota-wait`, waits for room.
100
+ - **Any number of VMs, no centre.** VMs never talk to each other. The client
101
+ asks every VM in its `vm.hosts` for free room at once and takes the one with
102
+ the most; adding capacity is one more VM in that list.
103
+ - **No daemon.** progon-server is a command called over ssh; a grant whose
104
+ client died ends once its lease has passed, at the next `acquire`, `gc` or call
105
+ for that grant on that VM, and its containers, networks, volumes and workdir are removed.
106
+ - **Disk.** The server keeps a reserve free, counts the disk budgets of live
107
+ grants and refuses image preparation below a floor.
108
+ - **Locally** progon only reads git, packs the snapshot, talks ssh and parses
109
+ the downloaded reports.
110
+
111
+ ## Usage
112
+
113
+ ```
114
+ progon <project> <kind> [narrowing...] # e.g. progon api unit ./internal/search/
115
+ progon status <run> progon wait <run> progon show <run> --failed
116
+ ```
117
+
118
+ A real run of this repository's own tests:
119
+
120
+ ```
121
+ $ progon client unit tests.test_summary
122
+ run client-unit-20261126-211906-689a: client unit tests.test_summary
123
+ run client-unit-20261126-211906-689a: on vm2, grant 60c929563207485ca00ee70d3aae9b42
124
+ progon client unit: GREEN (tests.test_summary, vm2, 7s)
125
+ tests.test_summary: 40 passed, 0 failed
126
+ total: 40 passed, 0 failed in 1 suite(s)
127
+ ```
128
+
129
+ A failed test adds one line, `FAIL <suite> <test>: <first assertion line>`, and
130
+ `progon show <run> --failed` prints its details. The exit code is the verdict:
131
+ 0 green, 1 failed, 2 infrastructure or cancelled, 3 timeout, 64 usage.
132
+
133
+ ## Features
134
+
135
+ - One command per run; narrowing in the stack's own terms (packages, filters, test ids, files)
136
+ - A short summary, exit code = verdict; a run that executed no test is never green
137
+ - Details only on request: `progon show <run> --failed | --skipped | --infra`, any view as `--json`
138
+ - One-line live status, with done/total and time left for mutation runs
139
+ - Mutation on the diff (`--since`), split across VMs (`--split N|auto`) with one combined score
140
+ - `--baseline-without fix.patch`: proves the new tests fail without the fix
141
+ - Profile and targets checked before any VM is used (`progon check`)
142
+ - Fixtures (databases, queues, stubs) and `docker` / `docker compose` / `docker build` inside the run through a per-grant Docker broker
143
+ - Hardened run container: no capabilities, no network unless asked, the runner's uid
144
+ - The client is one file and updates itself from the VMs
145
+
146
+ Every key and option: [client/docs/profiles.md](client/docs/profiles.md).
147
+
148
+ ## Supported today and planned
149
+
150
+ โœ… works today ยท ๐Ÿ—“ planned. "diff" means `--since` (mutate only changed lines),
151
+ "incremental" means results are kept between runs.
152
+
153
+ | Stack | Tests | Mutation |
154
+ |---|---|---|
155
+ | Go | โœ… `go test -json` | โœ… gomutants (diff, incremental) |
156
+ | .NET | โœ… `dotnet test` on VSTest or Microsoft.Testing.Platform: xUnit, MSTest; NUnit goes through the same TRX path but has no test fixture yet ยท ๐Ÿ—“ TUnit | โœ… Stryker.NET (diff) on VSTest; `--test-runner mtp` is passed through as is ยท ๐Ÿ—“ incremental baseline |
157
+ | JS/TS | โœ… Vitest, Jest ยท ๐Ÿ—“ Node test runner, Playwright Test, Mocha, Deno, Bun | โœ… StrykerJS (diff, incremental) |
158
+ | Python | โœ… unittest, pytest ยท ๐Ÿ—“ Robot Framework | โœ… mutmut ยท ๐Ÿ—“ Cosmic Ray (diff, incremental) |
159
+ | Anything else | โœ… shell adapter: exit code, TAP or JUnit XML | โ€” |
160
+ | JVM (Java, Kotlin) | ๐Ÿ—“ Gradle, Maven (JUnit 5/6, Kotest, Spock) | ๐Ÿ—“ PIT |
161
+ | Rust | ๐Ÿ—“ cargo-nextest | ๐Ÿ—“ cargo-mutants (diff) |
162
+ | PHP | ๐Ÿ—“ PHPUnit, Pest | ๐Ÿ—“ Infection (diff) |
163
+ | Ruby | ๐Ÿ—“ RSpec, Minitest | |
164
+ | Scala | ๐Ÿ—“ sbt, Mill | ๐Ÿ—“ Stryker4s |
165
+ | Dart / Flutter | ๐Ÿ—“ `dart test`, `flutter test` | |
166
+ | C / C++ | ๐Ÿ—“ CTest, GoogleTest, Catch2 | |
167
+ | Elixir / Erlang | ๐Ÿ—“ ExUnit, Common Test | |
168
+ | Swift | ๐Ÿ—“ `swift test` | |
169
+
170
+ Also planned: disk autonomy on the VMs (eviction of unused runner images,
171
+ free-space thresholds, disk state in `status`), a pool list served by the VMs
172
+ so a client needs one address.
173
+
174
+ ## progon, CI and local runs
175
+
176
+ | | CI pipeline | Tests on the dev machine | progon |
177
+ |---|---|---|---|
178
+ | Feedback | push, then wait for a runner | immediate | immediate, one command |
179
+ | Load on the dev machine | none | all of it | none |
180
+ | What the agent reads | job logs | the whole tool output | a short summary; details on request |
181
+ | Mutation on the diff | rarely set up | possible, heavy | `--since`, `--split` across VMs |
182
+ | Progress of a long run | job log | tool output, often none for mutation | one line: done/total, time left |
183
+ | Many agents at once | runner queue | they slow each other down | quotas on shared VMs |
184
+ | Cleanup | runner | by hand | the grant cleans up after itself |
185
+
186
+ ## Requirements
187
+
188
+ - **Client:** Python 3.11+, `git`, `ssh` and `scp` with key-based access to the VMs.
189
+ - **VM:** Linux on amd64, rootful Docker at `/var/run/docker.sock` with the
190
+ compose plugin, Python 3.11+, an ssh user with Docker access (no root needed
191
+ for progon itself). BuildKit runs additionally need subordinate ids and unprivileged user namespaces.
192
+ Details: [server/docs/install.md](server/docs/install.md).
193
+
194
+ ## Limitations
195
+
196
+ - Only `linux/amd64` images and builds.
197
+ - Rootless Docker on the VM is not supported.
198
+ - progon shares VMs between trusted agents: ssh access to the server user is
199
+ the trust boundary, and Docker access is root on the host. It is not a
200
+ sandbox for untrusted code.
201
+ - There is no server-side queue: waiting for room is the client polling, up to
202
+ `--quota-wait`.
203
+
204
+ ## Documentation
205
+
206
+ | Document | For | What |
207
+ |---|---|---|
208
+ | [README.md](README.md) | everyone | this page: what progon is, how it works, features, requirements, limitations |
209
+ | [client/README.md](client/README.md) | users, tools | the `progon` CLI, output contract, `show` views, exit codes |
210
+ | [server/README.md](server/README.md) | operators, contributors | progon-server commands, state, draining a VM, the end-of-run fence |
211
+ | [client/docs/agent-runbook.md](client/docs/agent-runbook.md) | a user's agent | from nothing to a first run (`progon help start`) |
212
+ | [client/docs/project-setup.md](client/docs/project-setup.md) | a project's agent | writing `.progon/<project>.toml` (`progon help setup`) |
213
+ | [client/docs/profiles.md](client/docs/profiles.md) | everyone | full profile reference |
214
+ | [client/docs/configuration.md](client/docs/configuration.md) | users | client config: VMs, owner, environment variables, updates |
215
+ | [client/docs/model.md](client/docs/model.md) | tools | verdicts and the normalized `report.json` |
216
+ | [client/docs/adapters.md](client/docs/adapters.md) | contributors | adding a test stack or mutation tool |
217
+ | [client/docs/verification.md](client/docs/verification.md) | contributors | checking a change on real VMs |
218
+ | [server/docs/install.md](server/docs/install.md) | operators | installing progon-server on a VM |
219
+ | [server/docs/protocol.md](server/docs/protocol.md) | contributors | protocol 1 between client and server |
220
+ | [AGENTS.md](AGENTS.md) | contributors | layout, rules, build and tests of this repository |
221
+ | [CONTRIBUTING.md](CONTRIBUTING.md) | contributors | running the tests without VMs, checks, bug reports, pull requests |
222
+ | [SECURITY.md](SECURITY.md) | everyone | trust model, what a run is hardened against, reporting a vulnerability |
223
+ | [CHANGELOG.md](CHANGELOG.md) | everyone | releases of the client and the server |
224
+ | [RELEASING.md](RELEASING.md) | maintainers | versions, tags, how a release is made, release files |
225
+
226
+ ## License
227
+
228
+ MIT, see [LICENSE](LICENSE).
@@ -0,0 +1,205 @@
1
+ # progon
2
+
3
+ progon runs a project's tests (unit, integration or mutation, in any language)
4
+ on shared test VMs with **one command**, and the agent gets back **only what it
5
+ needs**: the verdict and counters, and the failed tests with their location and
6
+ cause. No logs to read, no context wasted. Common test frameworks and mutation
7
+ tools have dedicated adapters ([supported today](#supported-today-and-planned));
8
+ anything else runs through the shell adapter, which reads the exit code, TAP or
9
+ JUnit XML.
10
+
11
+ ## Quick start
12
+
13
+ Give your agent [client/docs/agent-runbook.md](client/docs/agent-runbook.md)
14
+ (`progon help start`) and the addresses of your test VMs. It installs the
15
+ client, writes the project's profile and makes the first run.
16
+
17
+ The client alone: `uv tool install progon` or `pipx install progon` (PyPI), or
18
+ `progon.pyz` from the [latest release](https://github.com/rebaseandpanic/progon/releases/latest).
19
+
20
+ - No VMs yet: install progon-server on one, [server/docs/install.md](server/docs/install.md).
21
+ - Describe a project by hand: [client/docs/project-setup.md](client/docs/project-setup.md)
22
+ (`progon help setup`).
23
+
24
+ ## Why
25
+
26
+ progon is built for one scenario: AI agents that run tests themselves while
27
+ they develop, including mutation tests on the diff, instead of pushing and
28
+ waiting for a CI pipeline on a runner.
29
+
30
+ Doing that without progon hurts in three ways:
31
+
32
+ - **The development machine.** Test suites, databases in containers and
33
+ mutation runs need a lot of CPU, memory and disk. Several agents testing at
34
+ once on a laptop or a dev host slow it down or take it down.
35
+ - **The agent's context.** An agent that runs tests itself reads the whole
36
+ output: build logs, stack traces, thousands of passing tests. That burns
37
+ tokens and pushes the actual work out of its context.
38
+ - **Mutation runs are a black box.** A mutation tool often prints nothing
39
+ useful until it finishes, so the agent cannot tell how many mutants are done
40
+ and how many are left, and either waits blindly or polls logs.
41
+
42
+ progon's answer:
43
+
44
+ 1. Set up one or more test VMs and install progon-server on them.
45
+ 2. Each project's agent writes a declarative profile, `.progon/<project>.toml`,
46
+ once.
47
+ 3. From then on a test run is one command. progon picks a VM, sends the
48
+ source, runs the tests in a container, collects the results and cleans up.
49
+ The agent gets a short summary instead of the logs; details come only on
50
+ request, and live progress (including done/total and time left for mutation
51
+ runs) is one more command.
52
+
53
+ The context stays small, the development machine stays free, and the tests run
54
+ where there is room for them.
55
+
56
+ ## What the agent gets
57
+
58
+ - **One command runs the tests.** VM choice, source upload, the run, result
59
+ collection and cleanup happen inside; the agent does none of it by hand.
60
+ - **Only what it needs comes back.** The verdict, the counters and one line per
61
+ failed test with its location and cause. Details only on request.
62
+ - **The context stays clean.** No build logs, no thousands of passing tests, no
63
+ log polling: progress is one more command with a one-line answer.
64
+
65
+ ## How it works
66
+
67
+ Terms used below: a **kind** is one named way to run a project's tests in its
68
+ profile (`unit`, `integ`, `mutation`, ...); **narrowing** is the optional
69
+ selection after the kind (packages, filters, test ids, files); a **grant** is a
70
+ VM's reservation of CPU, memory and disk for one run; the **broker** is a
71
+ per-grant Docker API proxy through which a run starts its own containers.
72
+
73
+ - **Quotas.** Every run holds a grant for the CPU, memory and disk it asked
74
+ for; a VM admits a run only when it has room, so many agents can test at once
75
+ without overloading a VM. A run that does not fit goes to another VM or, with
76
+ `--quota-wait`, waits for room.
77
+ - **Any number of VMs, no centre.** VMs never talk to each other. The client
78
+ asks every VM in its `vm.hosts` for free room at once and takes the one with
79
+ the most; adding capacity is one more VM in that list.
80
+ - **No daemon.** progon-server is a command called over ssh; a grant whose
81
+ client died ends once its lease has passed, at the next `acquire`, `gc` or call
82
+ for that grant on that VM, and its containers, networks, volumes and workdir are removed.
83
+ - **Disk.** The server keeps a reserve free, counts the disk budgets of live
84
+ grants and refuses image preparation below a floor.
85
+ - **Locally** progon only reads git, packs the snapshot, talks ssh and parses
86
+ the downloaded reports.
87
+
88
+ ## Usage
89
+
90
+ ```
91
+ progon <project> <kind> [narrowing...] # e.g. progon api unit ./internal/search/
92
+ progon status <run> progon wait <run> progon show <run> --failed
93
+ ```
94
+
95
+ A real run of this repository's own tests:
96
+
97
+ ```
98
+ $ progon client unit tests.test_summary
99
+ run client-unit-20261126-211906-689a: client unit tests.test_summary
100
+ run client-unit-20261126-211906-689a: on vm2, grant 60c929563207485ca00ee70d3aae9b42
101
+ progon client unit: GREEN (tests.test_summary, vm2, 7s)
102
+ tests.test_summary: 40 passed, 0 failed
103
+ total: 40 passed, 0 failed in 1 suite(s)
104
+ ```
105
+
106
+ A failed test adds one line, `FAIL <suite> <test>: <first assertion line>`, and
107
+ `progon show <run> --failed` prints its details. The exit code is the verdict:
108
+ 0 green, 1 failed, 2 infrastructure or cancelled, 3 timeout, 64 usage.
109
+
110
+ ## Features
111
+
112
+ - One command per run; narrowing in the stack's own terms (packages, filters, test ids, files)
113
+ - A short summary, exit code = verdict; a run that executed no test is never green
114
+ - Details only on request: `progon show <run> --failed | --skipped | --infra`, any view as `--json`
115
+ - One-line live status, with done/total and time left for mutation runs
116
+ - Mutation on the diff (`--since`), split across VMs (`--split N|auto`) with one combined score
117
+ - `--baseline-without fix.patch`: proves the new tests fail without the fix
118
+ - Profile and targets checked before any VM is used (`progon check`)
119
+ - Fixtures (databases, queues, stubs) and `docker` / `docker compose` / `docker build` inside the run through a per-grant Docker broker
120
+ - Hardened run container: no capabilities, no network unless asked, the runner's uid
121
+ - The client is one file and updates itself from the VMs
122
+
123
+ Every key and option: [client/docs/profiles.md](client/docs/profiles.md).
124
+
125
+ ## Supported today and planned
126
+
127
+ โœ… works today ยท ๐Ÿ—“ planned. "diff" means `--since` (mutate only changed lines),
128
+ "incremental" means results are kept between runs.
129
+
130
+ | Stack | Tests | Mutation |
131
+ |---|---|---|
132
+ | Go | โœ… `go test -json` | โœ… gomutants (diff, incremental) |
133
+ | .NET | โœ… `dotnet test` on VSTest or Microsoft.Testing.Platform: xUnit, MSTest; NUnit goes through the same TRX path but has no test fixture yet ยท ๐Ÿ—“ TUnit | โœ… Stryker.NET (diff) on VSTest; `--test-runner mtp` is passed through as is ยท ๐Ÿ—“ incremental baseline |
134
+ | JS/TS | โœ… Vitest, Jest ยท ๐Ÿ—“ Node test runner, Playwright Test, Mocha, Deno, Bun | โœ… StrykerJS (diff, incremental) |
135
+ | Python | โœ… unittest, pytest ยท ๐Ÿ—“ Robot Framework | โœ… mutmut ยท ๐Ÿ—“ Cosmic Ray (diff, incremental) |
136
+ | Anything else | โœ… shell adapter: exit code, TAP or JUnit XML | โ€” |
137
+ | JVM (Java, Kotlin) | ๐Ÿ—“ Gradle, Maven (JUnit 5/6, Kotest, Spock) | ๐Ÿ—“ PIT |
138
+ | Rust | ๐Ÿ—“ cargo-nextest | ๐Ÿ—“ cargo-mutants (diff) |
139
+ | PHP | ๐Ÿ—“ PHPUnit, Pest | ๐Ÿ—“ Infection (diff) |
140
+ | Ruby | ๐Ÿ—“ RSpec, Minitest | |
141
+ | Scala | ๐Ÿ—“ sbt, Mill | ๐Ÿ—“ Stryker4s |
142
+ | Dart / Flutter | ๐Ÿ—“ `dart test`, `flutter test` | |
143
+ | C / C++ | ๐Ÿ—“ CTest, GoogleTest, Catch2 | |
144
+ | Elixir / Erlang | ๐Ÿ—“ ExUnit, Common Test | |
145
+ | Swift | ๐Ÿ—“ `swift test` | |
146
+
147
+ Also planned: disk autonomy on the VMs (eviction of unused runner images,
148
+ free-space thresholds, disk state in `status`), a pool list served by the VMs
149
+ so a client needs one address.
150
+
151
+ ## progon, CI and local runs
152
+
153
+ | | CI pipeline | Tests on the dev machine | progon |
154
+ |---|---|---|---|
155
+ | Feedback | push, then wait for a runner | immediate | immediate, one command |
156
+ | Load on the dev machine | none | all of it | none |
157
+ | What the agent reads | job logs | the whole tool output | a short summary; details on request |
158
+ | Mutation on the diff | rarely set up | possible, heavy | `--since`, `--split` across VMs |
159
+ | Progress of a long run | job log | tool output, often none for mutation | one line: done/total, time left |
160
+ | Many agents at once | runner queue | they slow each other down | quotas on shared VMs |
161
+ | Cleanup | runner | by hand | the grant cleans up after itself |
162
+
163
+ ## Requirements
164
+
165
+ - **Client:** Python 3.11+, `git`, `ssh` and `scp` with key-based access to the VMs.
166
+ - **VM:** Linux on amd64, rootful Docker at `/var/run/docker.sock` with the
167
+ compose plugin, Python 3.11+, an ssh user with Docker access (no root needed
168
+ for progon itself). BuildKit runs additionally need subordinate ids and unprivileged user namespaces.
169
+ Details: [server/docs/install.md](server/docs/install.md).
170
+
171
+ ## Limitations
172
+
173
+ - Only `linux/amd64` images and builds.
174
+ - Rootless Docker on the VM is not supported.
175
+ - progon shares VMs between trusted agents: ssh access to the server user is
176
+ the trust boundary, and Docker access is root on the host. It is not a
177
+ sandbox for untrusted code.
178
+ - There is no server-side queue: waiting for room is the client polling, up to
179
+ `--quota-wait`.
180
+
181
+ ## Documentation
182
+
183
+ | Document | For | What |
184
+ |---|---|---|
185
+ | [README.md](README.md) | everyone | this page: what progon is, how it works, features, requirements, limitations |
186
+ | [client/README.md](client/README.md) | users, tools | the `progon` CLI, output contract, `show` views, exit codes |
187
+ | [server/README.md](server/README.md) | operators, contributors | progon-server commands, state, draining a VM, the end-of-run fence |
188
+ | [client/docs/agent-runbook.md](client/docs/agent-runbook.md) | a user's agent | from nothing to a first run (`progon help start`) |
189
+ | [client/docs/project-setup.md](client/docs/project-setup.md) | a project's agent | writing `.progon/<project>.toml` (`progon help setup`) |
190
+ | [client/docs/profiles.md](client/docs/profiles.md) | everyone | full profile reference |
191
+ | [client/docs/configuration.md](client/docs/configuration.md) | users | client config: VMs, owner, environment variables, updates |
192
+ | [client/docs/model.md](client/docs/model.md) | tools | verdicts and the normalized `report.json` |
193
+ | [client/docs/adapters.md](client/docs/adapters.md) | contributors | adding a test stack or mutation tool |
194
+ | [client/docs/verification.md](client/docs/verification.md) | contributors | checking a change on real VMs |
195
+ | [server/docs/install.md](server/docs/install.md) | operators | installing progon-server on a VM |
196
+ | [server/docs/protocol.md](server/docs/protocol.md) | contributors | protocol 1 between client and server |
197
+ | [AGENTS.md](AGENTS.md) | contributors | layout, rules, build and tests of this repository |
198
+ | [CONTRIBUTING.md](CONTRIBUTING.md) | contributors | running the tests without VMs, checks, bug reports, pull requests |
199
+ | [SECURITY.md](SECURITY.md) | everyone | trust model, what a run is hardened against, reporting a vulnerability |
200
+ | [CHANGELOG.md](CHANGELOG.md) | everyone | releases of the client and the server |
201
+ | [RELEASING.md](RELEASING.md) | maintainers | versions, tags, how a release is made, release files |
202
+
203
+ ## License
204
+
205
+ MIT, see [LICENSE](LICENSE).
@@ -0,0 +1,19 @@
1
+ """progon: one-command test runs on shared test VMs through progon-server."""
2
+
3
+ VERSION = "0.6.25"
4
+
5
+ # scripts/build-pyz.sh writes progon/_build.py into the pyz: the short commit and the build date.
6
+ try:
7
+ from ._build import BUILD, BUILT
8
+ except ImportError:
9
+ BUILD = BUILT = None
10
+
11
+
12
+ def build_version():
13
+ """`0.2.0+<commit> built <date>` for a pyz, plain VERSION for a checkout."""
14
+ return "%s+%s built %s" % (VERSION, BUILD, BUILT) if BUILD else VERSION
15
+
16
+
17
+ def short_version():
18
+ """`0.2.0+<commit>` for a pyz, plain VERSION for a checkout: what `progon update` compares."""
19
+ return "%s+%s" % (VERSION, BUILD) if BUILD else VERSION
@@ -0,0 +1,5 @@
1
+ import sys
2
+
3
+ from .cli import main
4
+
5
+ sys.exit(main())
@@ -0,0 +1,2 @@
1
+ BUILD = "ad6cad1"
2
+ BUILT = "2026-11-28"
@@ -0,0 +1,22 @@
1
+ """Adapter registry. A new stack or mutation tool is one module registered here."""
2
+
3
+ from ..errors import ProgonError
4
+
5
+
6
+ def _registry():
7
+ from . import dotnet, go, gomutants, js, mutmut, python, shell, stryker_js, stryker_net
8
+ adapters = (go.GoAdapter, dotnet.DotnetAdapter, python.PythonAdapter, js.JsAdapter,
9
+ gomutants.GomutantsAdapter, stryker_js.StrykerJsAdapter, stryker_net.StrykerNetAdapter,
10
+ mutmut.MutmutAdapter, shell.ShellAdapter)
11
+ return {cls.name: cls for cls in adapters}
12
+
13
+
14
+ def get_adapter(name, where="profile"):
15
+ registry = _registry()
16
+ if name not in registry:
17
+ raise ProgonError("profile", "%s: unknown adapter %r (available: %s)" % (where, name, ", ".join(sorted(registry))))
18
+ return registry[name]()
19
+
20
+
21
+ def adapter_names():
22
+ return sorted(_registry())