Skip to content

ROSAENG-57139 | ci: Replace terraform-provider-rhcs unit job with pre-push-checks#80765

Merged
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
amandahla:ROSAENG-57139-pre-push-checks
Jun 22, 2026
Merged

ROSAENG-57139 | ci: Replace terraform-provider-rhcs unit job with pre-push-checks#80765
openshift-merge-bot[bot] merged 1 commit into
openshift:mainfrom
amandahla:ROSAENG-57139-pre-push-checks

Conversation

@amandahla

@amandahla amandahla commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Summary

  • Replace the unit presubmit on terraform-redhat/terraform-provider-rhcs main with pre-push-checks, running make pre-push-checks in a Dockerfile.clients image (terraform-provider-rhcs-clients).
  • Add ci/prow/pre-push-checks to branch protection required contexts for main (append-only; no other contexts removed).
  • Extend skip_if_only_changed on all main presubmits (including e2e image builds and e2e test jobs) so PRs that only change markdown or other doc-only paths do not trigger Prow jobs.

Test plan

  • make jobs WHAT=terraform-redhat/terraform-provider-rhcs
  • ci-operator checkconfig (via make jobs)
  • After merge: open a provider PR and confirm ci/prow/pre-push-checks runs and is required
  • After merge: open a docs-only provider PR and confirm presubmits are skipped
  • Swap ci/prow/unit off GitHub required checks if still listed (job removed)

Dependencies

Requires Dockerfile.clients and make pre-push-checks on terraform-redhat/terraform-provider-rhcs main (already merged).

Made with Cursor

Summary by CodeRabbit

This PR updates the CI/CD infrastructure for the terraform-redhat/terraform-provider-rhcs repository to replace the unit test job with a new pre-push-checks job and adds skip conditions for documentation-only changes across all presubmits.

Key Changes:

  1. Unit Test Job Replacement - The unit presubmit job in the main CI configuration is replaced with a new pre-push-checks job that executes make pre-push-checks within a terraform-provider-rhcs-clients container image (built from Dockerfile.clients).

  2. Branch Protection Requirement - The new ci/prow/pre-push-checks job is added as a required status check for the main branch, ensuring it must pass before merging.

  3. Skip Documentation-Only Changes - All main presubmits (including e2e image builds and e2e test jobs) are now configured to skip execution when PRs only modify documentation and metadata files. This prevents unnecessary CI runs for changes to markdown files, LICENSE, OWNERS, .goreleaser.yaml, renovate configs, and documentation directories.

The changes maintain the same validation behavior while consolidating checks into a single pre-push-checks target and reducing CI noise for documentation-only PRs. The implementation depends on Dockerfile.clients and the make pre-push-checks target already being available on the repository's main branch.

@coderabbitai

coderabbitai Bot commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: e87fdbbb-8a1c-4a5f-94e3-01f823e805cd

📥 Commits

Reviewing files that changed from the base of the PR and between 784d2c3 and e2cc22b.

📒 Files selected for processing (3)
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main.yaml
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e-presubmits.yaml
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e.yaml
✅ Files skipped from review due to trivial changes (1)
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e.yaml
🚧 Files skipped from review as they are similar to previous changes (2)
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main.yaml
  • ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e-presubmits.yaml

Walkthrough

The CI configuration for terraform-redhat/terraform-provider-rhcs replaces the unit test step (using a src container) with a pre-push-checks step backed by a new terraform-provider-rhcs-clients image built from Dockerfile.clients. Skip guards are added or widened across e2e presubmit and e2e jobs to skip expensive runs when only documentation or configuration files change. The new ci/prow/pre-push-checks check is added as a required branch-protection status for the main branch.

Changes

RHCS CI configuration refactor

Layer / File(s) Summary
Image build definition with skip guards
ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main.yaml
Replaces binary_build_commands and build_root with an images section defining the terraform-provider-rhcs-clients image sourced from Dockerfile.clients, and introduces a centralized skip_if_only_changed regex pattern.
Test step migration from unit to pre-push-checks
ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main.yaml
Removes the unit test step that ran make unit-test in the src container; replaces it with pre-push-checks configured to run make pre-push-checks in the terraform-provider-rhcs-clients image with always_run: true and the same skip filter.
E2E job skip-if-only-changed guards
ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e-presubmits.yaml, ci-operator/config/terraform-redhat/terraform-provider-rhcs/terraform-redhat-terraform-provider-rhcs-main__e2e.yaml
Adds or updates skip_if_only_changed regex across e2e presubmit and e2e jobs to skip runs when changes are limited to LICENSE, OWNERS, all *.md files, .gitignore, .goreleaser.yaml, .golang-ci.yml, renovate.json, .ci-operator.yaml, and non-source directories (docs, .github, .tekton, subsystem, examples).
Branch-protection required status check
core-services/prow/02_config/terraform-redhat/terraform-provider-rhcs/_prowconfig.yaml
Adds ci/prow/pre-push-checks to required_status_checks.contexts for the main branch, making the new pre-push-checks step a mandatory branch-protection gate.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • openshift/release#80705: Both PRs modify branch-protection required_status_checks.contexts to require additional Prow CI status contexts for the same or similar projects.

Suggested labels

rehearsals-ack, jira/valid-reference

🚥 Pre-merge checks | ✅ 15
✅ Passed checks (15 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title accurately summarizes the main change: replacing the unit job with pre-push-checks in the terraform-provider-rhcs CI configuration.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Stable And Deterministic Test Names ✅ Passed PR modifies only YAML CI/CD config files. No Ginkgo test code or test titles are introduced or modified, so this check is not applicable.
Test Structure And Quality ✅ Passed This PR contains only CI configuration changes (YAML files) with no Ginkgo test code. The custom check for Ginkgo test structure and quality is not applicable.
Microshift Test Compatibility ✅ Passed This PR modifies only CI configuration files (YAML), not Ginkgo e2e test code. No new tests with It(), Describe(), Context(), or When() are added, so the MicroShift compatibility check does not apply.
Single Node Openshift (Sno) Test Compatibility ✅ Passed This PR only modifies CI configuration files for the openshift/release repository. No new Ginkgo e2e tests are added—this check is not applicable as the PR contains zero test code changes.
Topology-Aware Scheduling Compatibility ✅ Passed This PR only modifies CI configuration files (ci-operator, Prow) that define test job workflows and build processes. It contains no deployment manifests, operator code, or controllers that would in...
Ote Binary Stdout Contract ✅ Passed PR only modifies YAML CI/CD configuration files (ci-operator and prow configs) with no executable code changes that could violate OTE Binary Stdout Contract requirements.
Ipv6 And Disconnected Network Test Compatibility ✅ Passed This PR modifies only CI/Prow YAML configuration files for terraform-provider-rhcs, not test code. The custom check applies only to new Ginkgo test additions, which are not present here.
No-Weak-Crypto ✅ Passed PR modifies only CI configuration files (YAML) with no source code changes. No weak crypto algorithms, custom crypto implementations, or non-constant-time secret comparisons are present.
Container-Privileges ✅ Passed PR modifies CI/CD configuration for terraform-provider-rhcs without introducing any container privilege escalation settings (no privileged: true, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPriv...
No-Sensitive-Data-In-Logs ✅ Passed No sensitive logging found. Changes are CI configuration updates that add job filtering and replace test steps without exposing passwords, tokens, API keys, PII, or other sensitive data.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@openshift-ci openshift-ci Bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Jun 18, 2026
@amandahla amandahla force-pushed the ROSAENG-57139-pre-push-checks branch from 9e7f743 to 784d2c3 Compare June 18, 2026 20:04
@amandahla

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@amandahla: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

Use Dockerfile.clients for the main presubmit gate, require ci/prow/pre-push-checks on main, and skip presubmits when only markdown or doc-only paths change.

Co-authored-by: Cursor <cursoragent@cursor.com>
Signed-off-by: Amanda Hager Lopes de Andrade Katz <amanda.katz@redhat.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
@amandahla amandahla force-pushed the ROSAENG-57139-pre-push-checks branch from 784d2c3 to e2cc22b Compare June 22, 2026 12:54
@amandahla

Copy link
Copy Markdown
Contributor Author

/pj-rehearse

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@amandahla: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@amandahla: the pj-rehearse plugin accommodates running rehearsal tests for the changes in this PR. Expand 'Interacting with pj-rehearse' for usage details. The following rehearsable tests have been affected by this change:

Test name Repo Type Reason
pull-ci-terraform-redhat-terraform-provider-rhcs-main-images terraform-redhat/terraform-provider-rhcs presubmit Presubmit changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-pre-push-checks terraform-redhat/terraform-provider-rhcs presubmit Presubmit changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-images terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-images terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-classic-full-resources-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-day1-supplemental-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-advanced-critical-high-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-advanced-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-arm-critical-high-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-arm-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-encryption-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-full-resources-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-network-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-private-critical-high-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-private-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-upgrade-y-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-hcp-upgrade-z-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-advanced-critical-high-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-advanced-day1-negative-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-advanced-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-private-critical-high-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-private-day1-negative-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-private-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-shared-vpc-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed
pull-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-presubmits-rosa-sts-upgrade-y-optional-presubmit terraform-redhat/terraform-provider-rhcs presubmit Ci-operator config changed

A total of 47 jobs have been affected by this change. The above listing is non-exhaustive and limited to 25 jobs.

A full list of affected jobs can be found here

Interacting with pj-rehearse

Comment: /pj-rehearse to run up to 5 rehearsals
Comment: /pj-rehearse skip to opt-out of rehearsals
Comment: /pj-rehearse {test-name}, with each test separated by a space, to run one or more specific rehearsals
Comment: /pj-rehearse more to run up to 10 rehearsals
Comment: /pj-rehearse max to run up to 25 rehearsals
Comment: /pj-rehearse auto-ack to run up to 5 rehearsals, and add the rehearsals-ack label on success
Comment: /pj-rehearse list to get an up-to-date list of affected jobs
Comment: /pj-rehearse abort to abort all active rehearsals
Comment: /pj-rehearse network-access-allowed to allow rehearsals of tests that have the restrict_network_access field set to false. This must be executed by an openshift org member who is not the PR author

Once you are satisfied with the results of the rehearsals, comment: /pj-rehearse ack to unblock merge. When the rehearsals-ack label is present on your PR, merge will no longer be blocked by rehearsals.
If you would like the rehearsals-ack label removed, comment: /pj-rehearse reject to re-block merging.

@amandahla

Copy link
Copy Markdown
Contributor Author

/pj-rehearse pull-ci-terraform-redhat-terraform-provider-rhcs-main-pre-push-checks

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@amandahla: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@amandahla: The following test failed, say /retest to rerun all failed tests or /retest-required to rerun all mandatory failed tests:

Test name Commit Details Required Rerun command
ci/rehearse/periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7 e2cc22b link unknown /pj-rehearse periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

Full PR test history. Your PR dashboard.

Details

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository. I understand the commands that are listed here.

@amandahla

Copy link
Copy Markdown
Contributor Author

/override ci/rehearse/periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

failure is not related to this PR

@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@amandahla: amandahla unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file, and the following github teams:openshift: openshift-release-oversight openshift-staff-engineers openshift-sustaining-engineers.

Details

In response to this:

/override ci/rehearse/periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

failure is not related to this PR

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@amandahla

Copy link
Copy Markdown
Contributor Author

/pj-rehearse skip

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@amandahla: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot added the rehearsals-ack Signifies that rehearsal jobs have been acknowledged label Jun 22, 2026
@amandahla

Copy link
Copy Markdown
Contributor Author

Why periodic-ci-…-e2e-rosa-classic-full-resource-f7 (and similar e2e rehearsals) can be ignored for this PR

pj-rehearse flags this job because the PR regenerates the e2e variant (__e2e.yaml, __e2e-presubmits.yaml, main-periodics.yaml) when adding shared skip_if_only_changed rules — not because this periodic is part of the pre-push-checks migration.

That rehearsal runs a full AWS ROSA Classic e2e using build/ci-tf-e2e.Dockerfile / rhcs-tf-e2e. It does not exercise Dockerfile.clients, make pre-push-checks, or the new merge gate.

The changes under review for this PR are validated by:

rehearse-…-pull-ci-…-pre-push-checks
rehearse-…-pull-ci-…-images
The e2e periodic rehearsal is optional extra QE coverage, not required to prove the unit → pre-push-checks swap or branch-protection update.

@jerichokeyne

Copy link
Copy Markdown
Contributor

/override ci/rehearse/periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@jerichokeyne: jerichokeyne unauthorized: /override is restricted to Repo administrators, approvers in top level OWNERS file, and the following github teams:openshift: openshift-release-oversight openshift-staff-engineers openshift-sustaining-engineers.

Details

In response to this:

/override ci/rehearse/periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

@jerichokeyne

Copy link
Copy Markdown
Contributor

/lgtm

@openshift-ci openshift-ci Bot added the lgtm Indicates that a PR is ready to be merged. label Jun 22, 2026
@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: amandahla, jerichokeyne

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details 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

@jerichokeyne

Copy link
Copy Markdown
Contributor

/skip periodic-ci-terraform-redhat-terraform-provider-rhcs-main-e2e-rosa-classic-full-resource-f7

@jerichokeyne

Copy link
Copy Markdown
Contributor

/pj-rehearse skip

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@jerichokeyne: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel.

@openshift-merge-bot openshift-merge-bot Bot merged commit fd55025 into openshift:main Jun 22, 2026
24 of 25 checks passed
@openshift-ci

openshift-ci Bot commented Jun 22, 2026

Copy link
Copy Markdown
Contributor

@amandahla: Updated the following 2 configmaps:

  • config configmap in namespace ci at cluster app.ci using the following files:
    • key core-services-prow-02_config-terraform-redhat-terraform-provider-rhcs-_prowconfig.yaml using file core-services/prow/02_config/terraform-redhat/terraform-provider-rhcs/_prowconfig.yaml
  • config configmap in namespace ci at cluster core-ci using the following files:
    • key core-services-prow-02_config-terraform-redhat-terraform-provider-rhcs-_prowconfig.yaml using file core-services/prow/02_config/terraform-redhat/terraform-provider-rhcs/_prowconfig.yaml
Details

In response to this:

Summary

  • Replace the unit presubmit on terraform-redhat/terraform-provider-rhcs main with pre-push-checks, running make pre-push-checks in a Dockerfile.clients image (terraform-provider-rhcs-clients).
  • Add ci/prow/pre-push-checks to branch protection required contexts for main (append-only; no other contexts removed).
  • Extend skip_if_only_changed on all main presubmits (including e2e image builds and e2e test jobs) so PRs that only change markdown or other doc-only paths do not trigger Prow jobs.

Test plan

  • make jobs WHAT=terraform-redhat/terraform-provider-rhcs
  • ci-operator checkconfig (via make jobs)
  • After merge: open a provider PR and confirm ci/prow/pre-push-checks runs and is required
  • After merge: open a docs-only provider PR and confirm presubmits are skipped
  • Swap ci/prow/unit off GitHub required checks if still listed (job removed)

Dependencies

Requires Dockerfile.clients and make pre-push-checks on terraform-redhat/terraform-provider-rhcs main (already merged).

Made with Cursor

Summary by CodeRabbit

This PR updates the CI/CD infrastructure for the terraform-redhat/terraform-provider-rhcs repository to replace the unit test job with a new pre-push-checks job and adds skip conditions for documentation-only changes across all presubmits.

Key Changes:

  1. Unit Test Job Replacement - The unit presubmit job in the main CI configuration is replaced with a new pre-push-checks job that executes make pre-push-checks within a terraform-provider-rhcs-clients container image (built from Dockerfile.clients).

  2. Branch Protection Requirement - The new ci/prow/pre-push-checks job is added as a required status check for the main branch, ensuring it must pass before merging.

  3. Skip Documentation-Only Changes - All main presubmits (including e2e image builds and e2e test jobs) are now configured to skip execution when PRs only modify documentation and metadata files. This prevents unnecessary CI runs for changes to markdown files, LICENSE, OWNERS, .goreleaser.yaml, renovate configs, and documentation directories.

The changes maintain the same validation behavior while consolidating checks into a single pre-push-checks target and reducing CI noise for documentation-only PRs. The implementation depends on Dockerfile.clients and the make pre-push-checks target already being available on the repository's main branch.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes-sigs/prow repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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. rehearsals-ack Signifies that rehearsal jobs have been acknowledged

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants