CI-esta
Get your pull requests green sooner and spend less on GitHub Actions. CI-esta runs the checks your change needs, reuses passing results where it can, and splits the remaining tests across workers.
Free and open source under Apache 2.0. It runs in your existing workflows on hosted or self-hosted runners. You pay your usual runner costs.
Try it on one pull request
Paste this into your coding agent from the root of your repository:
Set up CI-esta in this repository. Fetch https://ci-esta.readthedocs.io/en/latest/agent-setup.md and follow it.
Your agent opens a pull request with the workflow changes and measurements. You can review which checks ran, how long you waited, and how much runner time they used.
Quickstart · Adoption guide · GitHub Actions reference
What happens on your next push?
| When you… | CI-esta can… |
|---|---|
| Edit one function | Follow its dependencies and select the affected Python or Bun tests. |
| Push again after a passing run | Reuse a successful check when the recorded inputs and scope match. |
| Push a fix after a red run | Re-run the tests that failed first, even when your fix does not touch them, and answer from one small batch if they still fail. |
| Change code covered only by unit tests | Skip unrelated lanes. A lane is a group of checks, such as database integration tests, that CI can run or reuse independently. |
| Install the same dependencies repeatedly | Restore a matching environment, check it and sync it with your lockfile. |
| Wait on the last slow shard | Use recorded test durations to balance work across parallel workers. |
The PR report shows what ran, what was reused and which job kept you waiting. Scheduled full runs exercise the complete suite.
Follow a change through CI
Suppose you change how checkout rounds a discount. CI follows the changed code to the pricing and checkout tests. A database integration lane runs if its tests depend on the change. On your next push, a lane can reuse its earlier pass when its inputs still match. The PR report shows what ran again and why.
Where can CI be 10× faster and cost one-tenth as much?
On three unchanged nights, CI-esta gave a browser workflow its verdict in 38–41 seconds. Running its full checkpoint on those same commits took 15–16 minutes. Across the three pairs that is 24× faster at 1/12 the estimated runner cost, including the jobs that decide what to run. See the six runs and cost calculation.
When a change did need the browsers, the team cut the workflow from 14m 56s to 5m 30s. All 16 journeys passed exactly once in both runs. The faster build and balanced shards cost an estimated 0.6¢ more per run. See the PR benchmark · Read the Django monorepo case study.
Runner setup and diagnostics · All actions · Contribute · License
Go deeper
- Select affected tests
- Reuse passing checks
- Plan independent lanes
- Cache environments
- Balance test shards
- Read the PR report
Detailed adoption reference — action recipes, execution profiles, benchmarks and evidence checks.
Project quality checks
Reviewed duplication debt · Counts from the committed baselines.
| Accepted pairs | Remaining | Retired | Dismissed |
|---|---|---|---|
| Functions | 0 | 20 | 0 |
| Models | Not initialized | — | — |
Accepted backlog · Weekly audit
Retired means a side was removed, or (functions only) the judge now finds the pair separate. It is not a count of refactors. Dismissals stay separate; an uninitialized model baseline is unknown.
✅ 1 contract · 110/110 cases · 3/3 mutants caught · 106 histories
| Cases passed | Mutants caught | ||
|---|---|---|---|
| ✅ | merged-pr-evidence merged_pr/test_merged_pr_contract.py::test_merged_pr106 histories (6 witnesses, 100 samples, seed 17) · every action covered · Quint 0.33.1 |
110/110 | 3/3 |
🧪 3 mutants (planted fake bugs), all caught
| Contract | Mutant | Caught by | At | |
|---|---|---|---|---|
merged-pr-evidence |
open-admission |
Admit an unmerged PR as though it merged after validation | witness-contractOpenTestsamples: 1/100 diverge |
state 5, after stage() |
merged-pr-evidence |
older-green |
Select the oldest successful run instead of the last admitted run | witness-contractLastTestsamples: 0/100 diverge |
state 7, after stage() |
merged-pr-evidence |
dropped-publication |
Lose the admitted observation during history publication | witness-contractRecoveryTestsamples: 0/100 diverge |
state 11, after publish() |
What merged-pr-evidence says
Actions, and the code each one drives:
init: New HTTP boundary and real collector/historypush: GitHub changes PR headstart: GitHub admits a producer runpassGate: GitHub records successful gate completionfinish: GitHub completes producerupload: GitHub exposes measured-only artifactexpire: GitHub expires artifactclosePR: GitHub closes without mergingmerge: GitHub records merge cutoffstage: MergedPRTimingCollector.stagepublish: publish_promotioncrash: Discard local staging; keep published historyinspect: Read staged source and published observations without mutationautomatic: Use automatic discovery with whole-workflow completion before merge
Invariant safety, checked while sampling histories.
Witnesses, scenarios replayed exactly as written: contractRecoveryTest, contractOpenTest, contractLastTest, contractInvalidTest, contractAutomaticTest, contractAutomaticLateTest.
Bounds: seed 17 · max_samples 500 · max_steps 35 · n_traces 100.
Witness contractRecoveryTest, step by step: the observation the model starts from, then what it expects each action to change.
| State | Action | Model expects |
|---|---|---|
0 |
init() |
{ published: Set(), staged: 0 } |
1 |
start() |
unchanged |
2 |
passGate(r=1) |
unchanged |
3 |
merge() |
unchanged |
4 |
stage() |
unchanged |
5 |
finish(r=1, value='success') |
unchanged |
6 |
upload(r=1, value='valid') |
unchanged |
7 |
stage() |
staged: 0 → 1 |
8 |
crash() |
staged: 1 → 0 |
9 |
stage() |
staged: 0 → 1 |
10 |
expire(r=1) |
unchanged |
11 |
publish() |
published: Set() → Set(1) |
12 |
publish() |
unchanged |
13 |
inspect() |
unchanged |
Generated by pytest-quint-connect from contract receipts; what a passing run proves.
Metadata
Release files for ci-esta 1.30.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| ci_esta-1.30.0.tar.gz | 1.2 MB | With provenance | Details for ci_esta-1.30.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ci_esta-1.30.0-py3-none-any.whl | Python 3 | none | any | Details for ci_esta-1.30.0-py3-none-any.whl |
Total release size: 1.7 MB
Release files / ci_esta-1.30.0.tar.gz
| Download URL | ci_esta-1.30.0.tar.gz |
|---|---|
| Size | 1.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
b21694659631504bd480a0eb74c7c9af0f0ecf1ae34eddf86e60bdfa057b8169
|
|
BLAKE2b-256 checksum How to use checksums |
def5a634eb2a7ab97905bebdeecc7f18e69cb3c7b4f28af541e3d36c423d15c6
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logRelease files / ci_esta-1.30.0-py3-none-any.whl
| Download URL | ci_esta-1.30.0-py3-none-any.whl |
|---|---|
| Size | 490.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b7ef50ebb054822d27802e5f5c4c1241ea1fe262ce5f5910c4f04de9dbf60709
|
|
BLAKE2b-256 checksum How to use checksums |
597da87f74e2a3b6217c3d185a5247bb7c4ec10521e077dbe5ade18b6eb676d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logSecurity for ci-esta 1.30.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for ci_esta-1.30.0.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 20, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.