OSAC-853: add AAP presubmit e2e-vmaas job#79365
Conversation
|
@omer-vishlitzky: This pull request references OSAC-853 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 task 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. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository YAML (base), Central YAML (inherited) Review profile: CHILL Plan: Enterprise Run ID: ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (2)
🚧 Files skipped from review as they are similar to previous changes (2)
WalkthroughThis PR captures a build source SHA and embeds it into two PR images, updates promotion and release candidate settings, adds an ChangesAAP Source SHA Tracking and Override Mechanism
Sequence Diagram(s)sequenceDiagram
participant CI as CI Builder
participant Installer as installer image (osac-installer-with-pr)
participant Boot as cluster boot script
participant Refresh as scripts/refresh-after-snapshot.sh
CI->>Installer: build image and embed .aap-source-sha
Boot->>Installer: read .aap-source-sha from image
Boot->>Boot: construct AAP_OVERRIDE_CMD (set AAP_PROJECT_GIT_BRANCH[, AAP_EE_IMAGE])
Boot->>Refresh: run with COMPONENT_OVERRIDE_CMD + AAP_OVERRIDE_CMD
Refresh->>Installer: apply sed overrides to kustomization.yaml
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~25 minutes Possibly related PRs
Suggested labels
Suggested reviewers
🚥 Pre-merge checks | ✅ 12✅ Passed checks (12 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Comment |
|
[APPROVALNOTIFIER] This PR is NOT APPROVED This pull-request has been approved by: omer-vishlitzky The full list of commands accepted by this bot can be found here. DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
57679bb to
0557df8
Compare
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
0557df8 to
ed84f7c
Compare
Add e2e-vmaas presubmit test for osac-aap PRs. Unlike other OSAC components, AAP has three independently-versioned artifacts: the execution environment image, playbooks synced from git, and config manifests. The standard single-image swap doesn't cover playbook sync. Build the EE image from the PR source, copy config/ into the installer, and embed the PR head SHA as a marker file. The boot script detects the marker and overrides AAP_PROJECT_GIT_BRANCH and AAP_EE_IMAGE in the kustomize overlay so AAP uses the PR's code for all three artifacts.
ed84f7c to
9a04463
Compare
|
[REHEARSALNOTIFIER]
Interacting with pj-rehearseComment: Once you are satisfied with the results of the rehearsals, comment: |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
/pj-rehearse pull-ci-osac-project-osac-aap-main-e2e-vmaas |
|
@omer-vishlitzky: now processing your pj-rehearse request. Please allow up to 10 minutes for jobs to trigger or cancel. |
|
@omer-vishlitzky: The following test failed, say
Full PR test history. Your PR dashboard. DetailsInstructions 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. |
Summary
AAP_PROJECT_GIT_BRANCHandAAP_EE_IMAGEin the kustomize overlay so AAP uses the PR's playbooks and EE instead of the pinned versionsWhy AAP is different
Unlike other OSAC components (single container image), AAP has three independently-versioned artifacts that must all come from the PR:
kustomize edit set image(existing mechanism) +AAP_EE_IMAGEsedAAP_PROJECT_GIT_BRANCHsed to PR head SHACOPY config/into installer (existing mechanism)The boot script detects a
.aap-source-shamarker file in the installer image. When present, it overrides the git ref and EE image. When absent (all other repos), it's a no-op.Jira: https://redhat.atlassian.net/browse/OSAC-853
Test plan
This PR adds a presubmit e2e-vmaas job for osac-aap in OpenShift CI that builds and runs tests using the PR’s artifacts (execution environment image, playbooks git ref, and installer config) instead of pinned releases.
What changed (practical impact)
Key changes
ci-operator config (ci-operator/config/osac-project/osac-aap/osac-project-osac-aap-main.yaml)
Cluster-tool boot script (ci-operator/step-registry/osac-project/cluster-tool/boot/osac-project-cluster-tool-boot-commands.sh)
Testing / behavior
Notes