Skip to content

fix: split preview profile literal so CI can type-check it - #5

Merged
nunomaduro merged 1 commit into
dev-null-sh:productionfrom
acairns:fix/ci-type-check-timeout
Oct 29, 2026
Merged

nunomaduro merged 1 commit into
dev-null-sh:productionfrom
acairns:fix/ci-type-check-timeout

Conversation

@acairns

@acairns acairns commented Oct 29, 2026 •

Copy link
Copy Markdown
Contributor

Tests have been failing on production since "fix: keystrokes". The build stops before any test runs:

PreviewWorkspace.swift:442:24: error: the compiler is unable to type-check this expression in reasonable time

The profile route in the preview store returned one big [String: Any] literal with a closure inside it. The Swift on the CI runner gives up on it. Newer Swift builds it fine, which is why it passes locally.

This splits the literal into typed lets (buckets, badges, activity, achievements, body). Same data, same keys. The code is DEBUG-only preview code.

swift test passes locally. A green run here confirms the fix.

@acairns

acairns commented Oct 29, 2026

Copy link
Copy Markdown
Contributor Author

Ran the workflow on my fork while this one waits for approval. It's green on the same macos-15 runner: https://github.com/acairns/mac-os-app/pull/2/checks

@nunomaduro
nunomaduro merged commit b0e193a into dev-null-sh:production Oct 29, 2026
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.

2 participants