📧✨ Beautiful email. For everyone.
fix: stabilize Nix checks and macOS release notarization
Paul Koeck05f23f4b00b7
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 5848db8..10f9137 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -128,6 +128,14 @@ jobs:env:CERTUM_CERTIFICATE_SHA1: ${{ secrets.CERTUM_CERTIFICATE_SHA1 }}run: ./.github/scripts/verify-windows-signatures.ps1+ - name: Work around Apple ticket service HTTP/3 failures+ if: runner.os == 'macOS'+ shell: bash+ run: |+ # Force HTTPS over TCP on this disposable runner until the upstream network issue is fixed.+ # https://github.com/actions/runner-images/issues/14924+ echo "block return out quick proto udp from any to any port 443" | sudo pfctl -f -+ sudo pfctl -E- name: Sign, notarize and package macOS appif: runner.os == 'macOS'env:diff --git a/tests/imap-index.test.ts b/tests/imap-index.test.tsindex 471548d..146c164 100644--- a/tests/imap-index.test.ts+++ b/tests/imap-index.test.ts@@ -501,10 +501,9 @@ describe('SQLite metadata index', () => {}})- it('answers conversation pages quickly on a large mailbox', async () => {+ it('pages and searches a large mailbox using indexed queries', async () => {const sync = new SqliteMetadataIndex(join(directory, 'large.sqlite'))const [inbox, archive] = sync.syncMailboxes('a', [folder('INBOX'), folder('Archive')])- const started = performance.now()for (let start = 0; start < 50_000; start += 500) {const batch: NewMessage[] = []for (let uid = start + 1; uid <= start + 500; uid++)@@ -516,7 +515,6 @@ describe('SQLite metadata index', () => {)sync.upsertMessages('a', batch)}- const built = performance.now()const page = sync.conversations('a', { mailboxIds: [inbox!.id] }, { limit: 50 })const next = sync.conversations('a',@@ -530,7 +528,6 @@ describe('SQLite metadata index', () => {},)const unread = sync.conversations('a', { unseen: true }, { limit: 50 })- const done = performance.now()expect(page.items).toHaveLength(50)expect(page.total).toBe(10_000)expect(next.items[0]!.latest.receivedAt < page.items.at(-1)!.latest.receivedAt).toBe(true)@@ -542,9 +539,7 @@ describe('SQLite metadata index', () => {)const searched = sync.conversations('a', { ids: ids.map((m) => m.id) }, { limit: 50 })expect(searched.items).toHaveLength(50)- // Generous bounds keep CI stable; typical runs are several times faster.- expect(built - started).toBeLessThan(10_000)- expect(done - built).toBeLessThan(1_500)+ // Query plans catch full-scan regressions without depending on build-host speed.for (const filter of [{ mailboxIds: [inbox!.id] },{ mailboxIds: [inbox!.id, archive!.id] },