Skip to content

Prow presubmit unit tests - #37536

Open
alexatakvelon wants to merge 4 commits into
kubernetes:masterfrom
volatilemolotov:prow-presubmit-unit-tests
Open

Prow presubmit unit tests#37536
alexatakvelon wants to merge 4 commits into
kubernetes:masterfrom
volatilemolotov:prow-presubmit-unit-tests

Conversation

@alexatakvelon

Copy link
Copy Markdown

Registers five new presubmits for kubernetes-sigs/agent-sandbox, generated by generate_jobs.py from the matching dev/ci/presubmits/* scripts (companion PR: kubernetes-sigs/agent-sandbox#1273):

  • presubmit-agent-sandbox-test-gemini-cu-sandbox
  • presubmit-agent-sandbox-test-python-runtime-sandbox
  • presubmit-agent-sandbox-test-mcp-server-sandbox
  • presubmit-agent-sandbox-test-analytics-tool
  • presubmit-agent-sandbox-test-langchain

Generator change: test-gemini-cu-sandbox and test-python-runtime-sandbox build a runtime image and load it into a kind cluster, but their names don't contain "e2e" or "benchmark", so generate_jobs.py's naming heuristic would otherwise classify them as plain unprivileged jobs. Added an explicit E2E_PRESUBMITS allowlist so the generator gives them the privileged kind/docker profile. The other three are genuinely unit-tests-only and correctly fall through to the default local-test profile without any override.

Why this is a hand-splice, not a full regen: the five new entries were produced by running generate_jobs.py against an agent-sandbox checkout containing the new scripts, then added to the current config by hand rather than committing a full regeneration. A full regen right now would have (a) rolled back the image tag on every existing job, since the generator's checked-in IMAGE constant lags the tag already live in this file (autobumped separately), and (b) dropped presubmit-agent-sandbox-test-e2e-scalability-kwok, which is intentionally staged ahead of kubernetes-sigs/agent-sandbox#1269 (still open) and doesn't correspond to a script in agent-sandbox main yet. Both are pre-existing, unrelated conditions this PR leaves untouched — the diff here is purely additive.

Merge order: hold until kubernetes-sigs/agent-sandbox#1273 merges, same as the pattern in #37499 — these presubmits reference scripts that need to exist on main first.

@kubernetes-prow kubernetes-prow Bot added the cncf-cla: yes Indicates the PR's author has signed the CNCF CLA. label Jul 24, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

Welcome @alexatakvelon!

It looks like this is your first PR to kubernetes/test-infra 🎉. Please refer to our pull request process documentation to help your PR have a smooth ride to approval.

You will be prompted by a bot to use commands during the review process. Do not be afraid to follow the prompts! It is okay to experiment. Here is the bot commands documentation.

You can also check if kubernetes/test-infra has its own contribution guidelines.

You may want to refer to our testing guide if you run into trouble with your tests not passing.

If you are having difficulty getting your pull request seen, please follow the recommended escalation practices. Also, for tips and tricks in the contribution process you may want to read the Kubernetes contributor cheat sheet. We want to make sure your contribution gets all the attention it needs!

Thank you, and welcome to Kubernetes. 😃

@kubernetes-prow

Copy link
Copy Markdown
Contributor

Hi @alexatakvelon. 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.

Regular contributors should join the org to skip this step.

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.

@kubernetes-prow kubernetes-prow Bot added size/L Denotes a PR that changes 100-499 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 24, 2026
@kubernetes-prow kubernetes-prow Bot added area/config Issues or PRs related to code in /config area/jobs sig/testing Categorizes an issue or PR as relevant to SIG Testing. labels Jul 24, 2026
@kubernetes-prow

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: alexatakvelon
Once this PR has been reviewed and has the lgtm label, please assign soltysh 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 the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 24, 2026
Registers presubmit-agent-sandbox-python-runtime-sandbox-test, mirroring
the gemini-cu-sandbox job: builds the sandbox-runtime image in kind and
runs its unit tests plus the existing e2e tester.
Registers three unit-tests-only presubmits (no kind cluster/docker
build): presubmit-agent-sandbox-mcp-server-sandbox-test,
presubmit-agent-sandbox-analytics-tool-test, and
presubmit-agent-sandbox-langchain-test.
@alexatakvelon
alexatakvelon force-pushed the prow-presubmit-unit-tests branch from 0a3dacf to 22dca5d Compare July 28, 2026 17:57
@kubernetes-prow kubernetes-prow Bot removed the needs-rebase Indicates a PR cannot be merged because it has merge conflicts with HEAD. label Jul 28, 2026
kubernetes-sigs/agent-sandbox#1273 renamed test-gemini-cu-sandbox and
test-python-runtime-sandbox to test-e2e-gemini-cu-sandbox /
test-e2e-python-runtime-sandbox so generate_jobs.py's is_e2e() name
matching (and any future regeneration) picks up the privileged DinD
profile these jobs need. Update run_if_changed and command to match.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/config Issues or PRs related to code in /config area/jobs 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. sig/testing Categorizes an issue or PR as relevant to SIG Testing. size/L Denotes a PR that changes 100-499 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant