Skip to content
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: Simplify only_if/skip + optimize multiarch #14438

Merged
merged 1 commit into from Jun 7, 2022

Conversation

cevich
Copy link
Member

@cevich cevich commented May 31, 2022

Depends on: #14437

Using both the 'skip' and 'only_if' features at the same time may be
hard for maintainers to decipher. Consolidate them into only_if since
that bypasses creation of the task all together - meaning there are
fewer tasks for a developer to scroll through.

Since the multiarch Cirrus-Cron build no-longer depends on the direct
"build-ability" from the current repo. state, it can be further
optimized. When operating in this context, avoid running many/most
other tasks, depending instead only on ext_svc_check.

Does this PR introduce a user-facing change?

None

@openshift-ci openshift-ci bot added do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. release-note-none labels May 31, 2022
@cevich
Copy link
Member Author

cevich commented May 31, 2022

Examples of tasks created (ignore failed status):

@cevich cevich changed the title [CI:DOCS] Cirrus: Simplify only_if/skip + optimize multiarch [CI:BUILD] Cirrus: Simplify only_if/skip + optimize multiarch May 31, 2022
@cevich cevich changed the title [CI:BUILD] Cirrus: Simplify only_if/skip + optimize multiarch Cirrus: Simplify only_if/skip + optimize multiarch May 31, 2022
@cevich cevich force-pushed the replace_skips branch 3 times, most recently from 2b7a1a7 to 5091eeb Compare May 31, 2022 19:47
@cevich cevich marked this pull request as ready for review May 31, 2022 19:49
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label May 31, 2022
@cevich cevich changed the title Cirrus: Simplify only_if/skip + optimize multiarch [WIP] Cirrus: Simplify only_if/skip + optimize multiarch Jun 1, 2022
@openshift-ci openshift-ci bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 1, 2022
@cevich
Copy link
Member Author

cevich commented Jun 1, 2022

Re-WIPing this, found a problem that needs fixing.

@cevich cevich marked this pull request as draft June 1, 2022 16:45
@cevich cevich force-pushed the replace_skips branch 2 times, most recently from 26c34e1 to 82da89c Compare June 1, 2022 17:09
@cevich
Copy link
Member Author

cevich commented Jun 1, 2022

Force-push: Rebased, added exclusion of all integration-level tasks running on branches where they're less useful. Also added documentation for the various runtime contexts & modes.

@cevich cevich force-pushed the replace_skips branch 3 times, most recently from f8cfae9 to 94d78ff Compare June 2, 2022 18:03
@cevich
Copy link
Member Author

cevich commented Jun 2, 2022

Force-push: Updated docs.

@cevich cevich changed the title [WIP] Cirrus: Simplify only_if/skip + optimize multiarch [WIP] 'testing: bump to v9.8.7' Cirrus: Simplify only_if/skip + optimize multiarch Jun 7, 2022
@cevich cevich changed the title [WIP] 'testing: bump to v9.8.7' Cirrus: Simplify only_if/skip + optimize multiarch [WIP] [CI:DOCS] Cirrus: Simplify only_if/skip + optimize multiarch Jun 7, 2022
@cevich cevich changed the title [WIP] [CI:DOCS] Cirrus: Simplify only_if/skip + optimize multiarch [WIP] [CI:BUILD] Cirrus: Simplify only_if/skip + optimize multiarch Jun 7, 2022
@cevich cevich force-pushed the replace_skips branch 2 times, most recently from 3d0d412 to d82556d Compare June 7, 2022 15:30
@cevich cevich changed the title [WIP] [CI:BUILD] Cirrus: Simplify only_if/skip + optimize multiarch [WIP] Cirrus: Simplify only_if/skip + optimize multiarch Jun 7, 2022
@cevich cevich force-pushed the replace_skips branch 2 times, most recently from 81cd653 to 9705414 Compare June 7, 2022 15:38
Using both the 'skip' and 'only_if' features at the same time may be
hard for maintainers to decipher.  Consolidate them into `only_if` since
that bypasses creation of the task all together - meaning there are
potentially fewer tasks for a developer to scroll through.

Since the `multiarch` Cirrus-Cron build no-longer depends on the direct
"build-ability" from the current repo. state, it can be further
optimized.  When operating in this context, avoid running many/most
other tasks, depending instead only on `ext_svc_check`.

Finally, add a simple document describing the various runtime contexts
along with the list of expected tasks.  Reference this prominently right
in front of every `only_if` so it's impossible for a maintainer to miss.

Signed-off-by: Chris Evich <cevich@redhat.com>
@cevich
Copy link
Member Author

cevich commented Jun 7, 2022

Latest contexts and runtime tests:

  • Regular PR
  • PR w/ "release" or "bump" in title. - "Optional release task" is present
  • [CI:DOCS] PR. - Minimal build + verify + docs checks
  • [CI:BUILD] PR - All build + Verify + optional multiarch image test build
  • Branch build - cannot accurately simulate (I tried)
  • "multiarch" Cirrus-Cron build - cannot accurately simulate (also tried)
  • New TAG build - cannot accurately simulate (try failed)

@cevich cevich changed the title [WIP] Cirrus: Simplify only_if/skip + optimize multiarch Cirrus: Simplify only_if/skip + optimize multiarch Jun 7, 2022
@cevich cevich marked this pull request as ready for review June 7, 2022 15:51
@openshift-ci openshift-ci bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jun 7, 2022
@baude
Copy link
Member

baude commented Jun 7, 2022

/hold
/lgtm

@openshift-ci openshift-ci bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 7, 2022
@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Jun 7, 2022
@rhatdan
Copy link
Member

rhatdan commented Jun 7, 2022

/approve
/hold cancel

@openshift-ci openshift-ci bot removed the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Jun 7, 2022
@openshift-ci
Copy link
Contributor

openshift-ci bot commented Jun 7, 2022

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: cevich, rhatdan

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 /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 7, 2022
@openshift-merge-robot openshift-merge-robot merged commit 3274496 into containers:main Jun 7, 2022
@cevich cevich deleted the replace_skips branch April 18, 2023 14:46
@github-actions github-actions bot added the locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. label Aug 30, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. lgtm Indicates that a PR is ready to be merged. locked - please file new issue/PR Assist humans wanting to comment on an old issue or PR with locked comments. release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants