Repository navigation
Make Prow the only pull request gate; Actions keeps releases and publishing - #1093
Merged
Merged
Conversation
…ishing No workflow starts on pull_request any more except macos.yaml (needs a macOS runner) and the goreleaser dry-run. ci.yaml, e2e.yaml and infrastructure-templates-e2e.yaml start only by manual dispatch, as the fallback when the Prow cluster is unavailable. images.yaml, infrastructure-examples.yaml and the split workflows keep their publishing triggers. Two Prow jobs take over what the removed triggers covered: pull-railgrid-images builds the provider images a PR touched and the infrastructure example apps, and pull-railgrid-e2e-infrastructure-templates runs the kro template suite. The split dry-run on pull requests is not ported.
pull-railgrid-images and pull-railgrid-e2e-infrastructure-templates no longer use run_if_changed: like the other jobs they start on every non-docs pull request and job.sh narrows the work to what the PR touched. Add pull-railgrid-split, the dry run split-*.yaml did on pull requests.
Contributor
Author
|
/approve |
Contributor
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: mjudeikis The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
GitHub Actions stops validating pull requests. Prow (
/.prow.yaml) is the gate; Actions keeps releases, image/chart publishing, the mirror splits and the CI image.ci.yaml,e2e.yamlmain, manualinfrastructure-templates-e2e.yamlmain, manualimages.yamlinfrastructure-examples.yamlmain, manualmain, manual (publishes:latest)split-*.yaml(6)main, manualmain, manualmacos.yamlmaingoreleaser.yamlci-image.yaml,tilt-e2e.yamlEvery check those workflows ran on pull requests now has a Prow job. Like the existing ones, all three are required and start on every pull request that is not docs-only (no
optional, norun_if_changed); each narrows its work insidejob.shto what the PR touched, as the workflows' path filters did, and succeeds at once when that is nothing.images.yamlprovider images,infrastructure-examples.yamlpull-railgrid-imagesinfrastructure-templates-e2e.yamlpull-railgrid-e2e-infrastructure-templatessplit-*.yamldry runpull-railgrid-splitThings to know
mainany more. Tide tests a PR against the currentmainbefore merging, so that run repeated a result Prow already had.ci.yamlon pushes tomain. It is now refreshed only by a manual CI run onmain; the macOS job restores the last entry and downloads the difference.hack/ci/test_workflows.pynow fails if any workflow other thanmacos.yamlandgoreleaser.yamlstarts onpull_request, or if a Prow job is optional or path-triggered.Verification
python3 -m unittest discover -s hack/ci(34 tests) and actionlint on every workflow pass..prow.yamlpasses Prowcheckconfigagainst the config in railgrid/ops.images(built the two images and both example apps a test diff selected),split(split the one touched subtree, skipped the rest), and the skip path ofe2e-infrastructure-templates.hack/ci/, so here all three do their full work: ten images, six splits, and the kro template suite, which has not run on Prow before.