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

LFDT-Panurus / panurus / 36811774432
85%

Build:
DEFAULT BRANCH: main
Ran 01 Oct 2026 04:07AM UTC
Jobs 0
Files 0
Run time –
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

pending completion
36811774432

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)
Source Files on build 36811774432
Detailed source file information is not available for this build.
  • Back to Repo
  • Github Actions Build #36811774432
  • 3b59639a on github
  • Prev Build on main (#36692392983)
  • Next Build on main (#36875267860)
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