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

justin-millman / Kvasir / 13086144264
99%
master: 98%

Build:
Build:
LAST BUILD BRANCH: main
DEFAULT BRANCH: master
Ran 01 Feb 2025 06:41AM UTC
Jobs 2
Files 153
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

01 Feb 2025 06:40AM UTC coverage: 98.641% (+0.002%) from 98.639%
13086144264

push

github

justin-millman
Fix Bug that Missed Detecting Nested Relations due to Memoization

This commit fixes a bug in the Translation layer whereby a certain layout led to a Relation-nested Relation not being
flagged as illegal. Specifically, the bug was triggered by the following set-up:

   1. A Relation is nested in an Aggregate 'A'
   2. A Field of type 'A' is translated successfully
   3. A Relation-type Field that has 'A' as an element is translated

Because the result of (2) is memoized, when 'A' is re-encountered during (3) we previously skipped all additional
translation and simply returned back the all the non-Relation Fields of 'A'. This memoization causes the discrepancy: if
(2) had never happened, then (3) would have correctly identified the illegal schema.

The solution is to detect when something like this is going to happen (thanks to RelationTrackers) and simply pretend
that the type's translation is not memoized. In letting the normal course of translation continue, the regular detection
path will be executed and the correct (contextually rich) exception will be raised. We know that no other errors can be
raised, since the type was translated successfully once already.

A new unit test, which failed to trigger an exception before the change, has been added.

3649 of 3760 branches covered (97.05%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

5856 of 5876 relevant lines covered (99.66%)

5146.43 hits per line

Jobs
ID Job ID Ran Files Coverage
1 Release - 13086144264.1 01 Feb 2025 06:42AM UTC 153
99.23
GitHub Action Run
2 Debug - 13086144264.2 01 Feb 2025 06:41AM UTC 153
98.38
GitHub Action Run
Source Files on build 13086144264
  • Tree
  • List 153
  • Changed 81
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • f7ed1774 on github
  • Prev Build on main (#12982610508)
  • Next Build on main (#13427266619)
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