Skip to content

AUTOSCALE-166: Add weekly karpenter core regression e2e periodic for aws-karpenter-p… - #82258

Open
fishereskew wants to merge 1 commit into
openshift:mainfrom
fishereskew:karpenter-core-regression-tests
Open

AUTOSCALE-166: Add weekly karpenter core regression e2e periodic for aws-karpenter-p…#82258
fishereskew wants to merge 1 commit into
openshift:mainfrom
fishereskew:karpenter-core-regression-tests

Conversation

@fishereskew

@fishereskew fishereskew commented Jul 21, 2026

Copy link
Copy Markdown

jira: AUTOSCALE-166

Adds a weekly periodic job for aws-karpenter-provider-aws deployed via Hypershift Autonode to run the upstream karpenter core Regression suite. The job clones Karpenter Core for the regression suite and Hypershift to run the upstream-e2e.sh script for test setup and running. It's set to run at 6:00am on Saturdays.

This was previously added to Hypershift in #62456 and removed in #68109. It is being added here to attribute failures to aws-karpenter-provider-aws instead of polluting Hypershift's tests.

Update: Moved the periodic job from the aws-karpenter-provider-aws CI config to the karpenter-operator CI config. The prow job now calls make karpenter-core-regression in the karpenter-operator repo, where the test scripts and configuration live so the team can update them without changes to the release repo. See openshift/karpenter-operator#20 for the make target and scripts, and openshift/hypershift#9262 for the NodeOverlay CRD wiring needed for the tests to pass.

Summary by CodeRabbit

  • Adds a weekly 6:00 AM Saturday periodic job for aws-karpenter-provider-aws.
  • Runs Karpenter Core regression tests through Hypershift Autonode.
  • Moves failure attribution from Hypershift to aws-karpenter-provider-aws.
  • Configures the required releases, resources, one-node environment, and two-hour timeout.

@coderabbitai

coderabbitai Bot commented Jul 21, 2026

Copy link
Copy Markdown
Contributor

Note

Reviews paused

It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • ▶️ Resume reviews
  • 🔍 Trigger review

Walkthrough

The change adds generated periodic CI configuration for openshift/karpenter-operator on main. It defines image and release inputs, resource defaults, and a weekly AWS Hypershift Karpenter core regression test.

Changes

Karpenter periodic CI

Layer / File(s) Summary
Periodic CI workflow configuration
ci-operator/config/openshift/karpenter-operator/openshift-karpenter-operator-main__periodics.yaml
Defines the Hypershift operator base image, build-root and 5.0 integration releases, resource defaults, and a weekly karpenter-core-regression test on hypershift-aws-e2e-cluster with autonode, one node, and a two-hour timeout.

Estimated code review effort: 2 (Simple) | ~10 minutes

Suggested labels: rehearsals-ack

Suggested reviewers: jkyros

🚥 Pre-merge checks | ✅ 14 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Ipv6 And Disconnected Network Test Compatibility ⚠️ Warning The new periodic runs make karpenter-core-regression; the prior implementation cloned two public GitHub repositories, and no disconnected skip or guard is present. Run /payload-job periodic-ci-openshift-release-master-nightly-4.22-e2e-metal-ipi-ovn-ipv6; add a disconnected skip/guard or use internal mirrors for the GitHub clones.
✅ Passed checks (14 passed)
Check name Status Explanation
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 The pull request changes only generated CI YAML and Prow job configuration; no Ginkgo It, Describe, Context, or When titles are added or modified.
Test Structure And Quality ✅ Passed Not applicable: the patch changes four YAML CI files, includes zero changed Go paths, and adds no Ginkgo constructs to review.
Microshift Test Compatibility ✅ Passed The pull request changes only CI configuration and generated job files; it adds no Ginkgo test declarations or test code to assess for MicroShift-incompatible APIs.
Single Node Openshift (Sno) Test Compatibility ✅ Passed The commit changes only four YAML CI configuration/job files; it adds no Ginkgo test declarations or test source, so SNO compatibility checks are not applicable.
Topology-Aware Scheduling Compatibility ✅ Passed The commit changes only CI configuration and generated Prow job files; it adds no deployment manifests, operator code, controllers, or topology-sensitive scheduling constraints.
Ote Binary Stdout Contract ✅ Passed The commit changes only four YAML CI files; it adds no OTE/Go binary or process-level stdout code. The make command runs inside a CI test step.
No-Weak-Crypto ✅ Passed The PR changes only CI YAML and generated Prow jobs; searches found no MD5, SHA1, DES, RC4, 3DES, Blowfish, ECB, crypto implementation, or secret comparison.
Container-Privileges ✅ Passed The changed CI YAML and generated Prow job contain no privileged, hostPID, hostNetwork, hostIPC, SYS_ADMIN, allowPrivilegeEscalation, or root-user settings.
No-Sensitive-Data-In-Logs ✅ Passed The added test invokes only make karpenter-core-regression; scans found no secret values or logging commands, and generated secret references are paths reused from the removed job.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly identifies the addition of a weekly Karpenter core regression e2e periodic job for AWS.
✨ Finishing Touches 💡 1
⚔️ Resolve merge conflicts 💡
  • Resolve merge conflict in branch karpenter-core-regression-tests
🧪 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.

@openshift-ci
openshift-ci Bot requested review from jkyros and maxcao13 July 21, 2026 21:29

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 3

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main__periodics.yaml`:
- Around line 64-109: Run make update after adding the
e2e-aws-karpenter-core-regression periodic configuration, then include all
generated Prow job and metadata changes in the commit. Ensure the generated
artifacts reflect the new periodic job so it is scheduled.
- Around line 101-102: Update the upstream-e2e.sh invocation in the Karpenter
regression job so KARPENTER_CORE_DIR and TEST_SUITE are passed as environment
assignments on the same command invocation, ensuring the script receives both
regression settings.
- Around line 79-83: Remove the unused yq setup commands from the job script:
delete the /tmp/karpenter directory creation, YQ assignment, curl download,
chmod, and PATH export. Leave the surrounding upstream-e2e.sh execution
unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 40f7e9eb-3009-4bf0-bd40-8e7b094bda2d

📥 Commits

Reviewing files that changed from the base of the PR and between 55d61dc and 60f202b.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main-periodics.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main__periodics.yaml

@fishereskew
fishereskew force-pushed the karpenter-core-regression-tests branch from 60f202b to 721a224 Compare July 21, 2026 21:45

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@ci-operator/config/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main__periodics.yaml`:
- Around line 91-95: Restore provisioning of the system yq binary before
invoking the karpenter-upstream-e2e target in the hypershift clone flow,
ensuring it is available on PATH when adjust-ec2nodeclass.sh runs. Keep the
existing KARPENTER_CORE_DIR, TEST_SUITE, and make invocation unchanged.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

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

Review profile: CHILL

Plan: Enterprise

Run ID: 618b6aa3-b248-4e70-b631-704c80cac34f

📥 Commits

Reviewing files that changed from the base of the PR and between 721a224 and 63829bf.

⛔ Files ignored due to path filters (1)
  • ci-operator/jobs/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main-periodics.yaml is excluded by !ci-operator/jobs/**
📒 Files selected for processing (1)
  • ci-operator/config/openshift/aws-karpenter-provider-aws/openshift-aws-karpenter-provider-aws-main__periodics.yaml

@fishereskew
fishereskew force-pushed the karpenter-core-regression-tests branch 3 times, most recently from 998bd82 to a1f5bb7 Compare July 27, 2026 17:18
@fishereskew

Copy link
Copy Markdown
Author

/pj-rehearse periodic-ci-openshift-aws-karpenter-provider-aws-main-periodics-e2e-aws-karpenter-core-regression

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@maxcao13 maxcao13 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's been a while and multiple rebases since we came back to this so unfortunately there's some hiccups here 😓.

I see two failures:

   STEP: waiting for initialized nodes to be == to 1 - /tmp/tmp.qAuW0GwCgQ/test/suites/regression/nodeclaim_test.go:70 @ 07/29/26 20:49:06.641
[CREATED/UPDATED 2026-07-29T20:49:06Z] NODECLAIM carpthunder-3-sc0uuwenw3 ready=false launched=false registered=false initialized=false
[CREATED/UPDATED 2026-07-29T20:49:11Z] NODECLAIM carpthunder-3-sc0uuwenw3 ready=false launched=true registered=false initialized=false
[CREATED/UPDATED 2026-07-29T21:01:02Z] POD openshift-insights/periodic-gathering-nsr9l-klksx provisionable=false phase=Pending nodename= owner=[]v1.OwnerReference{v1.OwnerReference{APIVersion:"batch/v1", Kind:"Job", Name:"periodic-gathering-nsr9l", UID:"6dce900f-c5f9-4c1c-896a-562cecff4906", Controller:(*bool)(0xc0010aa1b0), BlockOwnerDeletion:(*bool)(0xc0010aa1b1)}} []
[CREATED/UPDATED 2026-07-29T21:01:02Z] POD openshift-insights/periodic-gathering-nsr9l-klksx provisionable=true phase=Pending nodename= owner=[]v1.OwnerReference{v1.OwnerReference{APIVersion:"batch/v1", Kind:"Job", Name:"periodic-gathering-nsr9l", UID:"6dce900f-c5f9-4c1c-896a-562cecff4906", Controller:(*bool)(0xc000daa3e0), BlockOwnerDeletion:(*bool)(0xc000daa3e1)}} []
  [FAILED] Timed out after 900.001s.
  The function passed to Eventually failed at /tmp/tmp.qAuW0GwCgQ/test/pkg/environment/common/expectations.go:826 with:
  Expected
      <int>: 0
  to be ==

Seems like creating a standalone NodeClaim does not work on our platform, and we should probably figure out why. I would try running this locally to see the steps in real time and looking at events, status fields, and logs of karpenter-operator and karpenter in the management cluster. I know you are sort of running out of time so, this is entirely up to you on whether you want to try to muscle your way through this.

The second problem is that the tests assume NodeOverlay to be in the cluster, but right now we don't deploy it in HyperShift.

 ------- END CONTROLLER LOGS -------
  [FAILED] Timed out after 900.001s.
  The function passed to Eventually failed at /tmp/tmp.qAuW0GwCgQ/test/pkg/environment/common/setup.go:176 with:
  Expected success, but got an error:
      <*meta.NoKindMatchError | 0xc00170da00>: 
      no matches for kind "NodeOverlay" in version "karpenter.sh/v1alpha1"
      {
          GroupKind: {
              Group: "karpenter.sh",
              Kind: "NodeOverlay",
          },
          SearchedVersions: ["v1alpha1"],
      }
  In [AfterEach] at: /tmp/tmp.qAuW0GwCgQ/test/pkg/environment/common/setup.go:189 @ 07/29/26 21:19:07.833
  < Exit [AfterEach] TOP-LEVEL - /tmp/tmp.qAuW0GwCgQ/test/suites/regression/suite_test.go:80 @ 07/29/26 21:19:07.833 (15m1.185s)
• [FAILED] [1801.531 seconds]

So either we need to start deploying NodeOverlay, or have a carry patch which ignores that CRD in our kubernetes-sigs/karpenter fork. Since we need to eventually enable NodeOverlay anyways, we should probably just start allowing the karpenter-operator to deploy it to the guest cluster: https://github.com/openshift/hypershift/blob/1c9f18937db3360121ffd41acad4ed333364afec/karpenter-operator/controllers/karpenter/karpenter_controller.go#L58-L62

@coderabbitai

coderabbitai Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

Note

GitHub couldn't provide a complete incremental comparison for this pull request, so CodeRabbit is performing a full review instead. This review may take a little longer.

@openshift-ci openshift-ci Bot added the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 7, 2026
@openshift-ci

openshift-ci Bot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: fishereskew
Once this PR has been reviewed and has the lgtm label, please assign maxcao13 for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found 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

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

@fishereskew, pj-rehearse: unable to determine affected jobs. This could be due to a branch that needs to be rebased. ERROR:

couldn't prepare candidate: couldn't rebase candidate onto 21f2892b183c87d0b57a26886e25bb30d9e3d8c6 due to conflicts
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.

@fishereskew
fishereskew force-pushed the karpenter-core-regression-tests branch from c2b3f98 to d23e9e5 Compare August 7, 2026 03:48
@openshift-ci openshift-ci Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Aug 7, 2026
…ator

Signed-off-by: Fisher Eskew <feskew@redhat.com>

add: weekly karpenter core regression e2e periodic for karpenter-operator

Signed-off-by: Fisher Eskew <feskew@redhat.com>
@fishereskew
fishereskew force-pushed the karpenter-core-regression-tests branch from d23e9e5 to 09c69b0 Compare August 7, 2026 04:00
@openshift-merge-bot

Copy link
Copy Markdown
Contributor

[REHEARSALNOTIFIER]
@fishereskew: 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
periodic-ci-openshift-karpenter-operator-main-periodics-e2e-karpenter-core-regression N/A periodic Periodic changed
periodic-ci-openshift-aws-karpenter-provider-aws-main-periodics-rebasebot N/A periodic Periodic changed
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.

@fishereskew fishereskew changed the title Add weekly karpenter core regression e2e periodic for aws-karpenter-p… AUTOSCALE-166: Add weekly karpenter core regression e2e periodic for aws-karpenter-p… Aug 7, 2026
@openshift-ci-robot openshift-ci-robot added the jira/valid-reference Indicates that this PR references a valid Jira ticket of any type. label Aug 7, 2026
@openshift-ci-robot

openshift-ci-robot commented Aug 7, 2026

Copy link
Copy Markdown
Contributor

@fishereskew: This pull request references AUTOSCALE-166 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.

Details

In response to this:

jira: AUTOSCALE-166

Adds a weekly periodic job for aws-karpenter-provider-aws deployed via Hypershift Autonode to run the upstream karpenter core Regression suite. The job clones Karpenter Core for the regression suite and Hypershift to run the upstream-e2e.sh script for test setup and running. It's set to run at 6:00am on Saturdays.

This was previously added to Hypershift in #62456 and removed in #68109. It is being added here to attribute failures to aws-karpenter-provider-aws instead of polluting Hypershift's tests.

Summary by CodeRabbit

  • Adds a weekly 6:00 AM Saturday periodic job for aws-karpenter-provider-aws.
  • Runs Karpenter Core regression tests through Hypershift Autonode.
  • Moves failure attribution from Hypershift to aws-karpenter-provider-aws.
  • Configures the required releases, resources, one-node environment, and two-hour timeout.

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.

@shyadav10

Copy link
Copy Markdown
Contributor

/pj-rehearse periodic-ci-openshift-karpenter-operator-main-periodics-e2e-karpenter-core-regression

@openshift-merge-bot

Copy link
Copy Markdown
Contributor

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

@openshift-ci

openshift-ci Bot commented Aug 12, 2026

Copy link
Copy Markdown
Contributor

@fishereskew: The following tests 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-openshift-aws-karpenter-provider-aws-main-periodics-e2e-aws-karpenter-core-regression a1f5bb7 link unknown /pj-rehearse periodic-ci-openshift-aws-karpenter-provider-aws-main-periodics-e2e-aws-karpenter-core-regression
ci/rehearse/periodic-ci-openshift-karpenter-operator-main-periodics-e2e-karpenter-core-regression 09c69b0 link unknown /pj-rehearse periodic-ci-openshift-karpenter-operator-main-periodics-e2e-karpenter-core-regression

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.

@shyadav10

Copy link
Copy Markdown
Contributor

/retest

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

Labels

jira/valid-reference Indicates that this PR references a valid Jira ticket of any type.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants