-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Cirrus: Skip deep testing on branches #7926
Cirrus: Skip deep testing on branches #7926
Conversation
Previous to this commit, the entire suite of CI tasks run in a PR, run again for every merge (a.k.a. branch push). This wastes time and resources with substantively overlapping testing. The primary reason to test on branch-push, is providing coverage for merge-semantics. In other words, problems introduced due to the sequence of PR merging. For this purpose, the vast majority of problems can be caught quickly by a small subset of automated tests. If deeper debugging is necessary, then opening a test-PR is a small price to ask for the enormous amount of time/resource savings with more limited branch-push testing. Signed-off-by: Chris Evich <cevich@redhat.com>
e73a931
to
81c0bb4
Compare
Perhaps I'm the only one... or perhaps I'm just ignorant... but the use of "branches" here seems really confusing to me. Maybe it's a Cirrus-ism or Github-ism? To me—and this assumes that I'm understanding this correctly—it would make more sense to label this as "Skip deep testing on merge action" or "on post-merge". Or have I missed something? To put it another way: I want our team to have a subset of people familiar-enough with Cirrus to be able to understand and review these PRs, but without being utter SMEs like you. I think the term "branch" makes sense to SMEs but not us dabblers. Can we have terminology that makes sense to both groups? |
@edsantiago I respect your motivation here. Really it's a "branch-push" that triggers a build (a.k.a. "job" or "run of all the tests"). Contrast this with Tag-push or a PR-push triggering events. A branch-push could happen because of a PR merge or because someone manually ran So my hesitation to use the term "post-merge" is avoiding any ambiguity confusion WRT the other terms (PR-push and Tag-push) and other actions which could trigger testing. |
Almost forgot: Cirrus has support for cron-triggered branch jobs as well. So there's another way branch testing can happen. |
Thanks Ed. |
Reflecting a bit more on this, I can see the desire to skip remote integration testing on post-merge, but I would think a nightly cron job would be low-impact and we might want as much testing as we can get. I'm not saying we should enable that right now, but if we do want to, would it be possible to selectively enable all tests via cron? Maybe some way to pass an envariable to |
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.
/lgtm
/hold
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: cevich, edsantiago The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
/hold cancel |
@edsantiago yes, Note: Contrary to the docs, |
Previous to this commit, the entire suite of CI tasks run in a PR, run
again for every merge (a.k.a. branch push). This wastes time and
resources with substantively overlapping testing. The primary reason
to test on branch-push, is providing coverage for merge-semantics.
In other words, problems introduced due to the sequence of PR merging.
For this purpose, the vast majority of problems can be caught quickly by
a small subset of automated tests. If deeper debugging is necessary,
then opening a test-PR is a small price to ask for the enormous amount
of time/resource savings with more limited branch-push testing.
Signed-off-by: Chris Evich cevich@redhat.com