Skip to content

Job/jobbase unification test fixtures - #177

Merged
SteRiccio merged 3 commits into
masterfrom
job/jobbase-unification-test-fixtures
Aug 27, 2026
Merged

Job/jobbase unification test fixtures#177
SteRiccio merged 3 commits into
masterfrom
job/jobbase-unification-test-fixtures

Conversation

@SteRiccio

Copy link
Copy Markdown
Member

No description provided.

SteRiccio and others added 3 commits August 27, 2026 21:20
JobBase.userUuid (and JobSerialized.userUuid) was widened from string
to string | undefined upstream in arena-core as a defensive
null-safety change. Add an early return in JobManager.onMessage() so
tsc can narrow userUuid to a definite string for the rest of the
method, instead of failing to type-check the Map lookup, the
WebSocketServer.notifyUser call, and the workers.delete() call inside
the setTimeout closure.

Fixes TS2345 errors reported against jobManager.ts:22,24,30. A job
update message always carries a userUuid in practice (every job is
created for a specific user), so this is a no-op guard rather than a
change in expected behavior.
Points at the real published JobBase unification (was verified locally
via yarn link during development; this replaces that local link with
the actual published package now that the arena-core PR has merged).
Re-verified against the published package: tsc clean, full test suite
16/16 suites, 67/67 tests passing.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@SteRiccio SteRiccio self-assigned this Aug 27, 2026
@sonarqubecloud

Copy link
Copy Markdown

@SteRiccio
SteRiccio merged commit 0e0aed8 into master Aug 27, 2026
6 checks passed
@SteRiccio
SteRiccio deleted the job/jobbase-unification-test-fixtures branch August 27, 2026 20: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