-
Notifications
You must be signed in to change notification settings - Fork 80
Modify Scenario Test to check tagged pull requests #5422
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -98,12 +98,21 @@ await CreateTargetBranchAndExecuteTest(targetBranchName, vmrDirectory.Directory, | |||||||||||||||||||||||||||||||||
| TestRepository.VmrTestRepoName, | ||||||||||||||||||||||||||||||||||
| targetBranchName, | ||||||||||||||||||||||||||||||||||
| [$"src/{TestRepository.TestRepo1Name}/{TestFile1Name}"], | ||||||||||||||||||||||||||||||||||
| TestFilePatches); | ||||||||||||||||||||||||||||||||||
| TestFilePatches, | ||||||||||||||||||||||||||||||||||
| PullRequestCleanupOperation.Merge); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| await CheckIfPullRequestCommentExists( | ||||||||||||||||||||||||||||||||||
| TestRepository.VmrTestRepoName, | ||||||||||||||||||||||||||||||||||
| pr, | ||||||||||||||||||||||||||||||||||
| [$"https://github.com/maestro-auth-test/maestro-test1/pull/{testPrNumber}"]); | ||||||||||||||||||||||||||||||||||
| // here we're testing for a URI with () around, since that's what we write during the codeflow udpates | ||||||||||||||||||||||||||||||||||
| [$"(https://github.com/maestro-auth-test/maestro-test1/pull/{testPrNumber})"]); | ||||||||||||||||||||||||||||||||||
|
|
||||||||||||||||||||||||||||||||||
| await WaitForPullRequestComment( | ||||||||||||||||||||||||||||||||||
| TestRepository.VmrTestRepoName, | ||||||||||||||||||||||||||||||||||
| targetBranchName, | ||||||||||||||||||||||||||||||||||
| // here we test for this specific format because that's how we tag PRs after merging the forward flow | ||||||||||||||||||||||||||||||||||
|
Comment on lines
+107
to
+113
|
||||||||||||||||||||||||||||||||||
| // here we're testing for a URI with () around, since that's what we write during the codeflow udpates | |
| [$"(https://github.com/maestro-auth-test/maestro-test1/pull/{testPrNumber})"]); | |
| await WaitForPullRequestComment( | |
| TestRepository.VmrTestRepoName, | |
| targetBranchName, | |
| // here we test for this specific format because that's how we tag PRs after merging the forward flow | |
| // We expect the URI to be wrapped in parentheses here because codeflow update comments use this format. | |
| // This matches the format written by the codeflow update logic, which intentionally differs from the merge tag format below. | |
| [$"(https://github.com/maestro-auth-test/maestro-test1/pull/{testPrNumber})"]); | |
| await WaitForPullRequestComment( | |
| TestRepository.VmrTestRepoName, | |
| targetBranchName, | |
| // We expect the '- ' prefix here because merged PRs are tagged with this format after forward flow completion. | |
| // This is distinct from the codeflow update format above, and is required for correct PR tracking. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Empty catch block swallows all exceptions without logging. This should catch specific exceptions (e.g.,
ApiException) and log or rethrow unexpected errors to aid debugging test failures.