Open VonnyJap opened 9 months ago
@kumada626 @y-oksaku Are you aware of any recent changes that might cause this regression?
@sagar1312 was able in the past to run a PR sync on the local development environment to start a PR job from upstream Github repository. This is useful in most cases when we are investigating user issues pertaining to PR trigger.
I have performed some investigations and I could not find any related works on the screwdriver-cd/ui
that might have caused this regression.
One solution that I have in mind: Upon running PR sync, apart from creating the PR related jobs, an event should be immediately created if there is a path to a job caused by a PR trigger.
Please share your thoughts. Thank you!
@VonnyJap Unfortunately, I'm not aware of any recent changes that would cause this regression. However, I have confirmed that if chainPR is not set in the pipeline, PR cards will appear in that procedure. https://cd.screwdriver.cd/pipelines/12983/pulls
@kumada626 Thanks for your findings. So I think the current implementation of PR sync just does not handle the case of chainPR as intended. In this case, I should edit the current description to reflect the updated issue. I think chainPR and the normal PR should have the same behavior after the PR sync, which in this case, should show the card and trigger an event.
I agree to chainPR and normal PR should have the same behavior after the PR sync. However, whether the event should be triggered is debatable. In the normal PR case, PR cards is appeared but event is not triggered. So I assume that the user does not expect that pressing the sync button will generate an event and initiate a build. Even in the case of chainPR, I think it would be better show the card but not trigger an event.
What happened: Pipeline 12980 was newly created and chain-pr-example repo has PR on it and the screwdriver config is annotated with
screwdriver.cd/chainPR: true
.Did a pr sync
Jobs were created as I looked into the API call https://api.screwdriver.cd/v4/pipelines/12980/jobs The response
But PRs tab showed empty.
But this is not a problem with normal PR without the
screwdriver.cd/chainPR: true
annotation. Please see some of the findings in below thread.What you expected to happen: There should be event displayed as card under the PR tab for chainPR scenario.
How to reproduce it: