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

LFDT-Panurus / panurus / 36735360451 / 31
85%
main: 85%

Build:
DEFAULT BRANCH: main
Ran 30 Sep 2026 08:34PM UTC
Files 503
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

30 Sep 2026 03:15PM UTC coverage: 33.696%. First build
36735360451.31

push

github

Effi-S
fix(storage): address misc db/sql/common findings

Fixes a batch of medium/low findings from a bug-hunting review of the shared
SQL storage layer (token/services/storage/db/sql/common).

Correctness
- keystore.Put() reported success on a real value conflict: it wrapped an
  already-nil error, and wrapping nil yields nil.
- Foreign-key violations are detected from the code the driver reports through
  its own typed error (Postgres 23503, SQLITE_CONSTRAINT_FOREIGNKEY) rather
  than from the message text, whose wording is not part of any driver's
  contract and has changed across releases. A driver exposing neither accessor
  is deliberately left unclassified, which is the conservative branch in every
  caller.
- IdentityExists returns (bool, error), so a failed lookup no longer reads as
  "not found".
- tokenlock.Lock returned nil for any error that was not a unique-key
  violation, telling the caller it held a lock it did not.

Performance
- SetSpendableBySupportedTokenFormats no longer rewrites the whole Tokens table
  on every reconciliation; both updates are predicated on the flag actually
  having to change. This also fixes a latent bug: with no supported format,
  every token was marked spendable.

Robustness
- The prepared-statement cache evicts a statement that fails at execute time,
  so the next call re-prepares instead of degrading to the unprepared path
  forever. Eviction is narrow on purpose: an ordinary failure such as a
  constraint violation leaves a perfectly valid statement, and a permanent
  failure unrelated to validity would add a DEALLOCATE to every call. Only the
  two PostgreSQL states that mean the statement itself is gone qualify;
  SQLITE_SCHEMA is left out because modernc.org/sqlite prepares through
  sqlite3_prepare_v2 and SQLite re-prepares transparently instead of returning
  the code, so no real backend can reach such a branch.

Cleanup
- Use the FSC errors package instead of fmt.Errorf, wrap or log previously raw
  or d... (continued)

13861 of 41135 relevant lines covered (33.7%)

78.27 hits per line

Source Files on job itest-dlog-fabric-t2 - 36735360451.31
  • Tree
  • List 503
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 36735360451
  • 3b59639a on github
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