Skip to content

test(integrations): pass the initiator in the GitHub admin-role connect cases - #1699

Merged
Makisuo merged 1 commit into
mainfrom
fix/github-connect-test-initiator
Oct 22, 2026
Merged

Makisuo merged 1 commit into
mainfrom
fix/github-connect-test-initiator

Conversation

@Makisuo

@Makisuo Makisuo commented Oct 22, 2026 •

Copy link
Copy Markdown
Collaborator

Main's Tests (@maple/backend-3-of-3) lane is red since #1685: all six completeConnect with the installation listed for the user and … cases fail with expected [] to deeply equal [ '/user/memberships/orgs/octo' ].

#1675 made completeConnect require the signed-in initiator; the admin-role cases added in #1685 still pass three arguments, so OAuthState.consume dies on initiator.orgId before any membership request is made. packages/backend excludes *.test.ts from typecheck, so only the test run noticed.

The fix passes INITIATOR, as every other case in the file does.

Verified: GithubConnectService.test.ts 28/28 locally (6 failing before).

🤖 Generated with Claude Code


View with [code]smith Autofix with [code]smith
Need help on this PR? Tag @codesmith-bot with what you need.

…ct cases

#1675 made completeConnect require the signed-in initiator; the admin-role
cases from #1685 still called it with three arguments, so every case died
on initiator.orgId before reaching the membership check. Backend test files
are outside typecheck, so only the test run caught it.
@maple-review-bot

maple-review-bot Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Maple review

🟢 Confidence 10/10 · safe to merge
A one-argument test fix matching the four-arg completeConnect calls already in the file; nothing else changes.
no findings · tests covered · risk low

Passes the missing INITIATOR argument in the single completeConnect call behind the six table-driven admin-role cases, fixing the red backend test lane. Safe to merge.

  • The admin-role connect cases now pass INITIATOR to completeConnect
What was checked
  • INITIATOR is the file's shared org_test/user_1 fixture (GithubConnectService.test.ts:55)
  • Every other completeConnect call in the file already passes the initiator fourth (lines 190, 209, 311, 318)
  • One call site covers all six adminCases via the for loop, so nothing else stayed unfixed

8a40588 · Updated on every push. Reply "won't fix" to dismiss a finding, or mention @maple-review-bot to ask about one.

@coderabbitai

coderabbitai Bot commented Oct 22, 2026

Copy link
Copy Markdown

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 12 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used all 4 included reviews currently available.

Learn how review limits work.

Review configuration:

⚙️ Run configuration
  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: dff811c9-4104-4747-b745-db4f23d3416a
📥 Commits

Reviewing files that changed from the base of the PR and between 23c97ea and 8a40588.

📒 Files selected for processing: 1
  • packages/backend/src/services/integrations/vcs/vendor/github/__tests__/GithubConnectService.test.ts
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@Makisuo
Makisuo merged commit 2263bf8 into main Oct 22, 2026
27 checks passed
@Makisuo
Makisuo deleted the fix/github-connect-test-initiator branch October 22, 2026 18:00
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