Skip to content

test: fix CI on Linux, Windows and Node 26 - #4

Merged
gmaclennan merged 1 commit into
mainfrom
test/cross-platform-ci
Oct 23, 2026
Merged

gmaclennan merged 1 commit into
mainfrom
test/cross-platform-ci

Conversation

@gmaclennan

Copy link
Copy Markdown
Member

CI has failed on every platform but macOS arm64 since before the move to digidem. Three causes.

The render test compared PNG byte hashes generated on macOS arm64. resvg builds for other platforms differ by a few anti-aliased edge pixels in a handful of the 390 renders, at worst a mean of about 0.1 levels out of 255 (a different icon differs by about 90). The test now decodes each render and compares it with a committed macOS PNG, allowing a mean difference of 1. The reference renders are of the CC BY-NC default icons, noted in the README; they aren't in the npm package.

The e2e teardown closed the project but not the MapeoManager, so Windows couldn't delete the open client.db.

Node 26 fails at install: @comapeo/core 7.6.1 depends on better-sqlite3 11, which has no Node 26 build and doesn't compile against its V8. Node 26 is out of the matrix and the required checks until core moves on.

Compare icon renders with the committed macOS PNGs within a tolerance, since resvg builds for other platforms differ by a few anti-aliased pixels. Close the MapeoManager in e2e teardown so Windows can delete client.db. Drop Node 26 from CI until core moves off better-sqlite3 11.
@socket-security

Copy link
Copy Markdown

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​types/​pngjs@​6.0.51001007080100
Addedpngjs@​7.0.010010010080100

View full report

@codecov

codecov Bot commented Oct 23, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.10%. Comparing base (5eff42e) to head (6c7b020).

Additional details and impacted files
@@            Coverage Diff             @@
##             main       #4      +/-   ##
==========================================
+ Coverage   97.62%   98.10%   +0.47%     
==========================================
  Files          10       10              
  Lines         632      632              
  Branches       91       91              
==========================================
+ Hits          617      620       +3     
+ Misses         15       12       -3     
Flag Coverage Δ
Linux 97.62% <ø> (?)
Windows 96.83% <ø> (?)
macOS 97.62% <ø> (ø)
node-22 97.62% <ø> (ø)
node-24 97.62% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@gmaclennan
gmaclennan merged commit 4f003e4 into main Oct 23, 2026
12 checks passed
@gmaclennan
gmaclennan deleted the test/cross-platform-ci branch October 23, 2026 21:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant