You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Investigate workflow job failing on main: typecheck / typecheck #86873
🐛 Error Message:
failure: Process completed with exit code 2.
failure: Argument of type '{ policyOwnerEmail: string; makeMeAdmin: true; policyName: string; policyID: string; introSelected: { choice: "newDotManageTeam"; }; currentUserAccountIDParam: number; currentUserEmailParam: string; isSelfTourViewed: false; hasActiveAdminPolicies: false; }' is not assignable to parameter of type 'CreateWorkspaceDataOptions'.
⚠️Action Required⚠️:
🛠️ A recent merge appears to have caused a failure in the job named typecheck / typecheck.
🔍 This issue has been automatically created and labeled with Workflow Failure for investigation.
PR #86706 (merged at 12:17 UTC) added betas: OnyxEntry<Beta[]> as a required field to the BuildPolicyDataOptions type in src/libs/actions/Policy/Policy.ts. Since CreateWorkspaceDataOptions extends BuildPolicyDataOptions via Omit<BuildPolicyDataOptions, 'isSelfTourViewed'>, the betas property became required for all createWorkspace() calls.
PR #86469 (merged 36 minutes later at 12:53 UTC) added a new test in tests/actions/IOUTest/SplitTest.ts with a createWorkspace() call at line 2283 that was written against the old type signature (before betas was required). It passed CI on its own branch but broke typecheck after merging to main.
What changes do you think we should make in order to solve the problem?
Add betas: undefined, to the createWorkspace() call at tests/actions/IOUTest/SplitTest.ts:2283. This matches the exact pattern used by every other createWorkspace() call in the same file (e.g., the adjacent call at line 2062).
What alternative solutions did you explore? (Optional)
No alternatives needed — this is a straightforward missing property. The fix is a single-line addition consistent with existing test patterns in the file.
Next Steps for Contributor+ team: Reply with @MelvinBot implement this to create a draft PR, @MelvinBot <your feedback> to refine this analysis, or explain why you are rejecting Melvin's proposal.
Activity
rlinoz commentedon Apr 1, 2026
@MelvinBot can you check this please
MelvinBot commentedon Apr 1, 2026
Proposal
What is the root cause of that problem?
This is a merge race condition between two PRs:
PR #86706 (merged at 12:17 UTC) added
betas: OnyxEntry<Beta[]>as a required field to theBuildPolicyDataOptionstype insrc/libs/actions/Policy/Policy.ts. SinceCreateWorkspaceDataOptionsextendsBuildPolicyDataOptionsviaOmit<BuildPolicyDataOptions, 'isSelfTourViewed'>, thebetasproperty became required for allcreateWorkspace()calls.PR #86469 (merged 36 minutes later at 12:53 UTC) added a new test in
tests/actions/IOUTest/SplitTest.tswith acreateWorkspace()call at line 2283 that was written against the old type signature (beforebetaswas required). It passed CI on its own branch but broke typecheck after merging to main.What changes do you think we should make in order to solve the problem?
Add
betas: undefined,to thecreateWorkspace()call attests/actions/IOUTest/SplitTest.ts:2283. This matches the exact pattern used by every othercreateWorkspace()call in the same file (e.g., the adjacent call at line 2062).What alternative solutions did you explore? (Optional)
No alternatives needed — this is a straightforward missing property. The fix is a single-line addition consistent with existing test patterns in the file.
Next Steps for Contributor+ team: Reply with
@MelvinBot implement thisto create a draft PR,@MelvinBot <your feedback>to refine this analysis, or explain why you are rejecting Melvin's proposal.rlinoz commentedon Apr 1, 2026
@MelvinBot implement this
MelvinBot commentedon Apr 1, 2026
🤖 Draft PR created: #86882
Please mark it as "Ready for review" when it is ready for review.
rlinoz commentedon Apr 1, 2026
Fixed here #86878