Repository navigation
fix(k8s): bound the test workers and log the command of a step - #2809
Merged
Merged
Conversation
…og hides values (#2806) The isolated child environment drops PYTEST_XDIST_AUTO_NUM_WORKERS, so the pytest of devops ci counted the CPUs of the node again. The variable joins the allowlist. The command line of the Job log hid a value only by its form. It now keeps the name of name=value and hides the value unless it is a number, and it hides free text.
The limit is 8 Gi, twice the peak of the killed pod, so a pod on a node with 15.5 Gi cannot starve it. The docs name the worker bound as a variable of the shell.
Owner
Author
Test results
Review findingsFixed:
Not fixed:
|
dan-petty
marked this pull request as ready for review
October 31, 2026 00:21
…y-and-command-log # Conflicts: # openspec/specs/roadmap-implement-step/spec.md
dan-petty
pushed a commit
that referenced
this pull request
Oct 31, 2026
🤖 I have created a release *beep* *boop* --- ## [0.23.0](v0.22.7...v0.23.0) (2026-10-31) ### Features * **review:** confirm finding on human VERIFIED verdict ([#2813](#2813)) ([26203af](26203af)), closes [#2414](#2414) * **roadmap:** intake runs in triage lane on devops-triage model ([#2816](#2816)) ([35e6172](35e6172)), closes [#1534](#1534) * **roadmap:** link candidate from source as a sub-issue ([#2812](#2812)) ([aee2c85](aee2c85)), closes [#2035](#2035) * **service:** each subscribed webhook event runs its scoped update ([#2811](#2811)) ([0564c08](0564c08)), closes [#1533](#1533) ### Bug Fixes * **k8s:** bound the test workers and log the command of a step ([#2809](#2809)) ([2314ef9](2314ef9)), closes [#2806](#2806) * **roadmap:** a step may not lose a test that existed ([#2807](#2807)) ([7d104a5](7d104a5)), closes [#2804](#2804) * **security:** lock graphql-core at 3.3.1 and pyasn1 at 0.6.5 ([#2814](#2814)) ([8234a83](8234a83)), closes [#2808](#2808) ### Code Refactoring * **ai:** seams and fakes for Valkey, Qdrant and embedder ([#2815](#2815)) ([1e03417](1e03417)), closes [#1317](#1317) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
An implement Job was killed by the kernel (OOM) at its 4 Gi memory limit. Its log did not name the command that used the memory. This change fixes both faults.
PYTEST_XDIST_AUTO_NUM_WORKERS=2, equal to its CPU limit.pytest-xdistcounts the CPUs of the node, not of the pod. On a node with 48 CPUs,-n logicalstarted 48 workers of about 280 MB each in a pod with 2 CPUs. The shell of a step and the isolated child ofdevops ciboth keep the variable.Tool call: <tool>, started: <command>before a command runs, so a killed call leaves its cause. The line shows the program and its first arguments. It hides secrets, the value of eachname=valueargument that is not a number, and each argument with a space.Why
The work of the killed step was lost, and the log gave no cause. The pod limit was not the root cause: the worker count was.
The command that the killed pod ran is not proven. The acceptance criteria for the named command and for a Job that stays under the limit stay open until the next Job runs with these settings. The proposal records the evidence.
Closes #2806