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

dcdpr / jp / 25066517393
66%

Build:
DEFAULT BRANCH: main
Ran 28 Apr 2026 05:03PM UTC
Jobs 1
Files 292
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

28 Apr 2026 04:59PM UTC coverage: 64.165% (+0.03%) from 64.14%
25066517393

push

github

web-flow
fix(config): Detect `extends` cycles and enforce a depth cap (#582)

Previously, a configuration file that extended itself — directly or
through a chain of files — would recurse indefinitely, eventually
overflowing the stack. There was no guard against this.

A DFS ancestor stack (`ExtendsStack`) is now threaded through the
`extends` loading helpers. Before recursing into each extended file its
canonicalized path is pushed onto the stack; on return it is popped. If
the same path appears twice on the stack a cycle is detected and
`Error::ExtendsCycle` is returned immediately. A hard depth cap
(`MAX_EXTENDS_DEPTH = 255`) acts as a safety net for the corner case
where path canonicalization fails and lets two logically identical paths
compare unequal; that path yields `Error::ExtendsDepthExceeded`.

Diamond-shaped extension graphs (where two files both extend a shared
third file) are explicitly allowed: a shared dependency only appears on
the ancestor stack while it is actively being traversed, so encountering
it a second time via a different branch does not trigger a false cycle.

Signed-off-by: Jean Mertz <git@jeanmertz.com>

53 of 60 new or added lines in 2 files covered. (88.33%)

23424 of 36506 relevant lines covered (64.16%)

192.13 hits per line

Uncovered Changes

Lines Coverage ∆ File
7
0.0
crates/jp_config/src/error.rs
Jobs
ID Job ID Ran Files Coverage
1 25066517393.1 28 Apr 2026 05:03PM UTC 292
64.16
GitHub Action Run
Source Files on build 25066517393
  • Tree
  • List 292
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #25066517393
  • 7a5bf995 on github
  • Prev Build on main (#25065990654)
  • Next Build on main (#25073111287)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc