Repository navigation
Conversation
…in image The terraform-validate test uses `from: src` which means terraform-init runs from scratch every time. Switch to `from: bin` to reuse the image built by binary_build_commands (which already runs make terraform-init), eliminating redundant provider and module downloads. Co-Authored-By: Claude Opus 4.6 (1M context) <[email protected]>
Add Prow step-registry entries for full GCP HCP e2e infrastructure provisioning: - gcp-hcp-tf-provision: Runs terraform apply via TFC ephemeral workspaces - gcp-hcp-tf-deprovision: Runs terraform destroy with robust fallback logic - gcp-hcp-verify-argocd-sync: Placeholder for future ArgoCD sync validation - Updated gcp-hcp-e2e workflow to use new steps Key features: - Terraform 1.15.8 (from .tool-versions) - TFC token via vault mount (/etc/terraform-cloud/token) - Run-id generation via sha256sum (b + 7 hex chars) - WIF credential fallback in deprovision - TFC API retry logic with exponential backoff - 10m grace period for graceful shutdown - Auto-destroy 24h safety net for crashed pipelines Jira: GCP-919
|
@jimdaga: This pull request references GCP-919 which is a valid jira issue. Warning: The referenced jira issue has an invalid target version for the target branch this PR targets: expected the story to target the "5.0.0" version, but no target version was set. DetailsIn response to this:
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 openshift-eng/jira-lifecycle-plugin repository. |
|
Skipping CI for Draft Pull Request. |
|
/test all |
|
@coderabbitai review |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: jimdaga 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 |
|
The OWNERS file contains untrusted users, which makes it INVALID. The following users are mentioned in OWNERS file(s) but are untrusted for the following reasons. One way to make the user trusted is to add them as members of the openshift org. You can then trigger verification by writing
|
|
|
Caution Review failedThe pull request is closed. ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (14)
Cache: Disabled due to data retention organization setting Knowledge base: Disabled due to data retention organization setting WalkthroughThe GCP HCP end-to-end workflow now provisions infrastructure before testing, validates provisioning outputs, and deprovisions infrastructure afterward. New Terraform steps handle GCP authentication, Terraform Cloud configuration, apply, output storage, destroy, and cleanup fallback behavior. ChangesGCP HCP infrastructure lifecycle
Estimated code review effort: 4 (Complex) | ~45 minutes Sequence Diagram(s)sequenceDiagram
participant Workflow
participant Provision
participant Verify
participant Deprovision
Workflow->>Provision: Provision GCP HCP infrastructure
Provision-->>Workflow: Write Terraform outputs to SHARED_DIR
Workflow->>Verify: Validate provisioning outputs
Verify-->>Workflow: Report validation status
Workflow->>Deprovision: Destroy infrastructure in post phase
Deprovision-->>Workflow: Report cleanup status
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
🧪 Generate unit tests (beta)
Comment |
|
Closing - will recreate with correct upstream repo |
|
[REHEARSALNOTIFIER]
Prior to this PR being merged, you will need to either run and acknowledge or opt to skip these rehearsals. Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
Summary
Implements Prow step-registry entries for full GCP HCP e2e infrastructure provisioning using Terraform Cloud ephemeral workspaces.
Components Added
Key Features
Testing Plan
Manual testing with
pj-rehearseafter PR #1050 merges in gcp-hcp-infra.Jira
https://redhat.atlassian.net/browse/GCP-919
Dependencies
tfcloud-ci-secretconfigured (CI team)platform-gcpwithwif-config.jsonSummary by CodeRabbit
This PR updates the OpenShift CI workflow for GCP HCP end-to-end tests.
terraform-validatefrom thebincontainer.