-
Notifications
You must be signed in to change notification settings - Fork 9
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
PR jobs are not being triggered for branches that target other PRs #1044
Comments
@j-rivero Have we considered having a |
Ugh. Yep, the new design which specifies in yaml file which are the target platforms for the corresponding branches can not work with this model of PR pointing to other places than branches listed in the yaml file.
Yep, in fact we were doing something similar with the old I'll discuss with the infra team the topic to see if there is any solution that does not imply having to store the value in 10 different repositories across 3-4 branches on it. Meantime I think that the workaround is going to be to manually call the CI jobs and report results in the comments. |
@nuclearsandwich suggested a possible solution: we can use the branch name to indicate the final base branch that you are targeting with PRs not directly targeting stable branches. Particularly we can include a prefix in the form: Example:
Should be trivial to make the current |
From our VC conversation, this is not convenient for developers because it's easy to forget that we have to follow the specific branch naming pattern when creating a PR train or creating a suggestion PR when reviewing another PR. We discussed the possibility of parsing the major version from CMakelists to figure out the base branch, but that may not be possible if the tool that generates the should not be reading the code for various reasons. @j-rivero can you verify this? Another option is to determine the major version by looking at the last release tag that can be reached from the base branch (i.e using |
There is a fundamental problem assuming that parsing the There is also a problem with the implementation: we have a chicken and egg problem here since we are launching CI on a given platform since we have the platform-CI job watching that branch specifically (i.e: the
The chicken-and-egg problem here appears again, these git operations needs to happen somewhere and after them we would need to call the right platform job. Nothing impossible, just not trivial. |
@azeey proposed that we tried to include the branch in the PR summary. That should be possible using that feature of the github plugin. I'll give it a try. |
Looking deeply into this, I think that we found the configuration to skip the CI inserting a message in the commit or body but did not find a way of setting up triggering based on a regexp on the body of the PR message. Alternatively we could potentially react on PR tags, so we could have something like
|
From time to time, we break down a task into a series of smaller PRs and target each PR to the branch of the next PR. We also sometimes create PRs as suggestions for changes in another PR when comments are difficult to convey all the changes required by the reviewer. These workflows seem to be currently broken because the
pr_any
jobs have a branch whitelist that includes only the stable branches in each repo. For example, https://build.osrfoundation.org/job/sdformat-ci-pr_any-focal-amd64/ is configured to trigger only for PRs targettingsdf12
andsdf13
, so it didn't run for gazebosim/sdformat#1341 which targets gazebosim/sdformat#1339 which targetssdf13
.The text was updated successfully, but these errors were encountered: