Skip to content

Investigate workflow job failing on main: typecheck / typecheck #86873

Closed

Description

@github-actions

🚨 Failure Summary 🚨:

  • 📋 Job Name: typecheck / typecheck
  • 🔧 Failure in Workflow: Process new code merged to main
  • 🔗 Triggered by PR: PR Link
  • 👤 PR Author: @rayane-d
  • 🤝 Merged by: @rlinoz
  • 🐛 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.

👀 Please look into the following:

  1. Why the PR caused the job to fail?
  2. Address any underlying issues.

🐛 We appreciate your help in squashing this bug!

Activity

  1. rlinoz commented on Apr 1, 2026

    @rlinoz
    Contributor

    @MelvinBot can you check this please

  2. MelvinBot commented on Apr 1, 2026

    @MelvinBot
    Contributor

    Proposal

    What is the root cause of that problem?

    This is a merge race condition between two PRs:

    1. 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.

    2. 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.

  3. rlinoz commented on Apr 1, 2026

    @rlinoz
    Contributor

    @MelvinBot implement this

  4. MelvinBot commented on Apr 1, 2026

    @MelvinBot
    Contributor

    🤖 Draft PR created: #86882
    Please mark it as "Ready for review" when it is ready for review.

  5. rlinoz commented on Apr 1, 2026

    @rlinoz
    Contributor

    Fixed here #86878

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions