@mergifyio/ci-core
v2026.12.5
Published
Shared core for Mergify Test Engine's test framework plugins
Readme
@mergifyio/ci-core
Internal shared core for Mergify's test-framework reporters.
This package is not intended for direct consumption. It is consumed by the published framework reporters:
@mergifyio/vitest— Vitest reporter.@mergifyio/playwright— Playwright reporter.@mergifyio/jest— Jest reporter.@mergifyio/mocha— Mocha plugin.
It provides reporter-agnostic helpers for span assembly, the session the
reporters drive (the quarantine, flaky detection, Fail First), and the
shared TestCaseResult / TestRunSession types.
CI detection and every backend call — quarantine, flaky-detection context, and
the OTLP trace upload — run in Rust, through the
@mergifyio/ci-native binding, so they are shared with
pytest-mergify rather than reimplemented per language.
Spans are built as plain records and handed to the run's session in that
binding, which adds the CI attributes and the run's id, uploads them as OTLP
and words what the terminal says about it. There is no OpenTelemetry SDK: this
package has exactly one runtime dependency, the binding. Same design as
pytest-mergify and rspec-mergify, so span shape cannot drift between the
clients.
API stability is not guaranteed across minor versions — breaking changes
land without deprecation cycles. Pin the consuming package (@mergifyio/vitest,
@mergifyio/playwright, @mergifyio/jest or @mergifyio/mocha) instead.
