Skip to content

feat: implement getversionsasync in mock - #1140

Merged
msrouchou merged 10 commits into
mainfrom
feat-implement-getversionsasync-in-mock
Sep 11, 2026
Merged

feat: implement getversionsasync in mock#1140
msrouchou merged 10 commits into
mainfrom
feat-implement-getversionsasync-in-mock

Conversation

@FBSALOMON

Copy link
Copy Markdown
Contributor

Implement GetVersionsAsync in MergeRequestClient to be able to add comments and threads into reviews.
Add Comment, Discussion, Versions mock tests
Simplify CreateMergeRequestAsync:

  1. Waiting for the Merge Requests to be 'mergable' this avoid return them while the DIFF Versions are still empty this was causing a lot of retries.
  2. Remove the Push into the main branch and Creating a Branch at the same time, this would sometimes return a CONFLICT when it should not.

@FBSALOMON
FBSALOMON requested a review from a team as a code owner September 10, 2026 17:36
@FBSALOMON
FBSALOMON requested review from msrouchou and removed request for a team September 10, 2026 17:36
Comment thread NGitLab.Mock/Clients/MergeRequestClient.cs
Comment thread NGitLab.Mock/MergeRequest.cs
Comment on lines +490 to +492
// INVESTIGATION SCAFFOLDING: `operationName` (optional, so existing call sites are unaffected) identifies
// which of the ~30 call sites is retrying, since the shared test output otherwise interleaves indistinguishable
// "RetryUntilAsync {n}..." lines from concurrent/sequential polls (e.g. branch-readiness vs. mergeable-status).

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment seems relevant to a coding session and not interesting for the end user ? wither we rework the comment or remove it

@msrouchou
msrouchou enabled auto-merge (squash) September 11, 2026 14:22
@msrouchou
msrouchou merged commit c4f3daf into main Sep 11, 2026
8 checks passed
@msrouchou
msrouchou deleted the feat-implement-getversionsasync-in-mock branch September 11, 2026 14:38
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