• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

kubernetes-sigs / inference-perf / 42968074923
87%

Build:
DEFAULT BRANCH: main
Ran 11 Nov 2026 06:00AM UTC
Jobs 1
Files 141
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

11 Nov 2026 05:47AM UTC coverage: 86.401% (-0.006%) from 86.407%
42968074923

push

github

web-flow
Add type-escape ratchet (#1043)

Fixes #867

Old: `Any`, `cast(`, `# type: ignore` and an `ignore_errors` style
`[[tool.mypy.overrides]]` block satisfy `mypy --strict` and nothing
counts them. A bare `# type: ignore` passes.
New: `pdm run validate` fails when the total of any one under
`inference_perf/` and `tests/` is higher than on `main`. A bare `# type:
ignore` is a mypy error.

Changes:
* `scripts/check_type_escapes.py` counts `Any`, `cast(` and `# type:
ignore` by token, and the modules under any `[[tool.mypy.overrides]]`
block in `pyproject.toml` that sets more than `ignore_missing_imports`,
in the working tree and on `main`. It fails when a total rises. `main`
is read through git at check time, the way
`scripts/check_coverage_regression.py` reads its baseline, so no count
is committed.
* The base is where the branch left `main`, or the tip of `main` in a
shallow checkout. An `upstream` remote is used ahead of `origin`.
`--base` names another commit.
* The four kinds are compared apart. A new escape lands only with one of
the same kind removed.
* `check:type-escapes` pdm script, run in `validate`.
* `enable_error_code = ["ignore-without-code"]` in `[tool.mypy]`.
* The 14 bare ignores in `tests/required/loadgen/test_load_generator.py`
name `arg-type` or `union-attr`.

Other changes:
* `type-check` covers the new script.
* AGENTS.md names the ratchet.

The ratchet is on totals, not per file. With `main` as the baseline no
slack outlives a merge, and a moved or split file costs nothing.

ANN401 is left out. It flags 471 existing sites and the ratchet already
fails a new `Any`.

Example failure:
```
Type escapes vs main (8ed8b4f541df):
  Any           1413 -> 1414
  cast(         134 -> 134
  type: ignore  143 -> 143
  mypy override 0 -> 0

Any rose. Files that changed:
  inference_perf/__init__.py: 0 -> 1
```

`pdm run validate` and `pdm run pytest tests/test_check_type_escapes.py
tests/test_pdm_scripts.py tests/required/loadgen/test_load_generato... (continued)

13736 of 15898 relevant lines covered (86.4%)

0.86 hits per line

Coverage Regressions

Lines Coverage ∆ File
1
79.17
-1.04% inference_perf/datagen/base.py
Jobs
ID Job ID Ran Files Coverage
1 42968074923.1 11 Nov 2026 06:00AM UTC 141
86.4
GitHub Action Run
Source Files on build 42968074923
  • Tree
  • List 141
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #42968074923
  • aeb5aa09 on github
  • Prev Build on main (#42967863938)
  • Next Build on main (#43069413293)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc