-
Notifications
You must be signed in to change notification settings - Fork 547
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
ci: prevent breakage when including certain commands in the PR #4751
Conversation
When Jenkins jobs are started by a comment, and if the PR contains `[skip ci]` in the description, Jenkins does not run the requested job, nor set a status for the job in the PR. This causes Mergify to add the `ok-to-test` label again, instructing a GitHub Action to add comments to start jobs in Jenkins. Once all comments have been posted, the `ok-to-test` label is removed. Mergify then notices that the jobs were not run, and adds the `ok-to-test` label again.... Endlessly looping of adding the label, commenting and removing the label as a result. By reporting the brokenness of the PR description and marking the PR as Draft, the looping is prevented. Signed-off-by: Niels de Vos <ndevos@ibm.com>
/test ci/centos/k8s-e2e-external-storage/1.28 |
In the Jenkins logs, this is reported:
|
/test ci/centos/k8s-e2e-external-storage/1.28 |
[skip ci]
in PR descriptions and prevent breakage
Possibly even in the subject of the PR, the |
/test ci/centos/k8s-e2e-external-storage/1.28 |
Yay, this now works! |
@Mergifyio queue |
🛑 The pull request has been removed from the queue
|
something is weird, all CI jobs seem to be missing in the status? |
Ah, of course I mentioned |
Signed-off-by: Niels de Vos <ndevos@ibm.com>
Pull request has been modified.
/test ci/centos/upgrade-tests-cephfs |
/test ci/centos/upgrade-tests-rbd |
/test ci/centos/k8s-e2e-external-storage/1.29 |
/test ci/centos/mini-e2e-helm/k8s-1.29 |
/test ci/centos/mini-e2e/k8s-1.29 |
/test ci/centos/k8s-e2e-external-storage/1.27 |
/test ci/centos/mini-e2e-helm/k8s-1.27 |
/test ci/centos/mini-e2e/k8s-1.27 |
/test ci/centos/k8s-e2e-external-storage/1.30 |
/test ci/centos/mini-e2e-helm/k8s-1.30 |
/test ci/centos/mini-e2e/k8s-1.30 |
/test ci/centos/k8s-e2e-external-storage/1.28 |
/test ci/centos/mini-e2e-helm/k8s-1.28 |
/test ci/centos/mini-e2e/k8s-1.28 |
@Mergifyio refresh |
✅ Pull request refreshed |
The PR description contains the unsupported |
Mergify matches `body-raw` as regular expression, but that makes it difficult (if not impossible) to match the `[` in a string. Fixes: ceph#4751 Signed-off-by: Niels de Vos <ndevos@ibm.com>
Mergify matches `body-raw` as regular expression, but that makes it difficult (if not impossible) to match the `[` in a string. Fixes: #4751 Signed-off-by: Niels de Vos <ndevos@ibm.com>
[paragraph removed due to CI blockage, see the commit description]
This causes Mergify to add the
ok-to-test
label again, instructing aGitHub Action to add comments to start jobs in Jenkins. Once all
comments have been posted, the
ok-to-test
label is removed. Mergifythen notices that the jobs were not run, and adds the
ok-to-test
labelagain.... Endlessly looping of adding the label, commenting and removing
the label as a result.
By reporting the brokenness of the PR description and marking the PR as
Draft, the looping is prevented.
See-also: #4749
skip-checks: false