Skip to content

scalability: support PRE_TEST_CMD environment variable - #18625

Open
YahiaBadr wants to merge 1 commit into
kubernetes:masterfrom
YahiaBadr:agentic-tests
Open

scalability: support PRE_TEST_CMD environment variable#18625
YahiaBadr wants to merge 1 commit into
kubernetes:masterfrom
YahiaBadr:agentic-tests

Conversation

@YahiaBadr

@YahiaBadr YahiaBadr commented Jul 25, 2026

Copy link
Copy Markdown
Contributor

This PR allows running a custom pre-test script, by passing the path through the env variable PRE_TEST_CMD.

If not passed, the default pre-script will run {REPO_ROOT}/tests/e2e/scenarios/scalability/pre-test.sh}

@kubernetes-prow kubernetes-prow Bot added the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 25, 2026
@kubernetes-prow
kubernetes-prow Bot requested review from dims and hakuna-matatah July 25, 2026 21:54
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by:
Once this PR has been reviewed and has the lgtm label, please assign dims 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

@kubernetes-prow kubernetes-prow Bot added cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. labels Jul 25, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

Hi @YahiaBadr. Thanks for your PR.

I'm waiting for a kubernetes member to verify that this patch is reasonable to test. If it is, they should reply with /ok-to-test on its own line. Until that is done, I will not automatically test new commits in this PR, but the usual testing commands by org members will still work.

Tip

We noticed you've done this a few times! Consider joining the org to skip this step and gain /lgtm and other bot rights. We recommend asking approvers on your previous PRs to sponsor you.

Once the patch is verified, the new status will be reflected by the ok-to-test label.

I understand the commands that are listed here.

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.

@YahiaBadr
YahiaBadr marked this pull request as ready for review July 27, 2026 08:39
@kubernetes-prow kubernetes-prow Bot removed the do-not-merge/work-in-progress Indicates that a PR should not merge because it is a work in progress. label Jul 27, 2026
@kubernetes-prow
kubernetes-prow Bot requested a review from serathius July 27, 2026 08:39
KUBETEST2_ARGS+=("--admin-access=${ADMIN_ACCESS:-}")
KUBETEST2_ARGS+=("--env=KOPS_FEATURE_FLAGS=${KOPS_FEATURE_FLAGS}")
KUBETEST2_ARGS+=("--pre-test-cmd=${REPO_ROOT}/tests/e2e/scenarios/scalability/pre-test.sh")
KUBETEST2_ARGS+=("--pre-test-cmd=${PRE_TEST_CMD:-${REPO_ROOT}/tests/e2e/scenarios/scalability/pre-test.sh}")

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.

What's the purpose of it? I don't think we want to complicate scalability tests

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

it is an opt-in option, that allows running a custom script instead of the default one.

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.

Optional things are not without cost. I don't want us to support arbitrary everything.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

So, what is your suggestion as we need to run a controller pod before the test starts, is there a current option that we can use?

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.

Start from filing issue why and how you want to extend scalability tests? Don't send random PR without description.

@YahiaBadr YahiaBadr changed the title e2e/scalability: support PRE_TEST_CMD environment variable scalability: support PRE_TEST_CMD environment variable Jul 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. needs-ok-to-test Indicates a PR that requires an org member to verify it is safe to test. size/XS Denotes a PR that changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants