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

lsm / neokai / 25337281501 / 23
82%
dev: 82%

Build:
DEFAULT BRANCH: dev
Ran 04 May 2026 06:56PM UTC
Files 305
Run time 16s
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

04 May 2026 06:53PM UTC coverage: 20.02% (-0.006%) from 20.026%
25337281501.23

push

github

web-flow
Fix template hash to include gate poll and prevent future drift (#1780)

* Refactor template hash to use exhaustive JSON serialization and include gate poll

The template hash function was missing gate `poll` fields, causing the seeder
to not detect drift when poll config was added to built-in templates. Refactor
both gate and channel serialization from hand-crafted pipe-delimited strings
to deterministic JSON.stringify, which automatically captures all structural
fields. Going forward, adding new fields to Gate/GatePoll/Channel types will
not require separate hash function updates.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Canonicalize gate field ordering and check key serialization

Sort gate fields by name before hashing (restoring the sort that was lost
in the refactor) and add explicit serializeCheck() to produce deterministic
key ordering for check objects, avoiding reliance on JS object key
insertion order from imported JSON.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Hash full scripts and normalize single-target channel to

Two fixes from review feedback:

1. Hash full gate and poll script source instead of 64-char prefix, so
   edits beyond the prefix trigger drift detection.
2. Normalize single-element channel `to` arrays to strings, matching
   runtime behavior where `to: "Reviewer"` and `to: ["Reviewer"]` are
   equivalent.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Use locale-independent comparator for gate field sorting

Replace localeCompare with plain less-than/greater-than comparison to
ensure deterministic hash values across environments with different
locale settings.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>

* Add total-order comparator for gate field sorting with tie-breaking

Sort gate fields by name, then type, then serialized check to ensure
deterministic ordering even when field names are duplicated (not enforced
by runtime validation). Extracts compareStrings... (continued)

17242 of 86125 relevant lines covered (20.02%)

10.4 hits per line

Source Files on job daemon-online-git - 25337281501.23
  • Tree
  • List 305
  • Changed 1
  • Source Changed 1
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 25337281501
  • 36c874ff on github
  • Prev Job for on dev (#25324755337.2)
  • Next Job for on dev (#25345966202.9)
  • Delete
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