Metadata-Version: 2.4
Name: metabole
Version: 0.1.0
Summary: Certified regression skipping for hardware simulation
Home-page: https://github.com/zenedgex/metabole-releases
Author: ZenEdgeX
License: LicenseRef-ZenEdgeX-Metabole
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: POSIX :: Linux
Classifier: Framework :: Pytest
Classifier: Topic :: Scientific/Engineering :: Electronic Design Automation (EDA)
Classifier: License :: Other/Proprietary License
Requires-Python: >=3.9
Description-Content-Type: text/markdown
License-File: LICENSE
Provides-Extra: sign
Requires-Dist: cryptography>=41; extra == "sign"
Provides-Extra: s3
Requires-Dist: boto3>=1.28; extra == "s3"
Dynamic: author
Dynamic: classifier
Dynamic: description
Dynamic: description-content-type
Dynamic: home-page
Dynamic: license
Dynamic: license-file
Dynamic: provides-extra
Dynamic: requires-python
Dynamic: summary

# Metabole

Rerun only the simulation tests a change can affect. Every skipped test gets a signed
certificate showing why its previous result still holds. Patent pending.

- Works with cocotb regressions through pytest (cocotb-test or the cocotb runner), and with any
  simulator or Makefile flow through a command wrapper.
- Never reuses a failing result. Start in shadow mode: every test runs as usual, and Metabole
  reports which runs it would have reused and whether any would have been wrong.
- Results are kept in a store you control (a directory, a CI cache or S3).

## Install

```
pip install metabole
```

## Try it in shadow mode

```
pytest --metabole=shadow --metabole-store=.metabole/store
```

Any other flow:

```
metabole run --mode shadow --test-id uart_smoke --result out/uart_smoke.xml \
  -f rtl/files.f -- make sim TEST=uart_smoke
```

Run your regression twice. The summary shows how many runs would have been reused and how much
simulation time that saves. When you are satisfied, switch to `--metabole=on`.

## Licence

Free for open-source projects, including their public CI, and free to evaluate for 90 days. See
the LICENSE file in the package. Commercial licences: hello@zenedgex.in

By ZenEdgeX.
