TECHNOLOGY

kueuectl rejects negative list limits while keeping zero as unpaginated

In this article
THE QUICK TAKE

Negative kueuectl list limits now fail validation; zero still explicitly disables pagination and should be tested as a separate valid mode.

Kueue 0.19.13, published on November 12, fixes validation of KUEUECTL_LIST_REQUEST_LIMIT. Negative values are now rejected with an error, while zero remains valid and disables pagination. This is a useful operational boundary for wrapper scripts: an invalid limit must not silently behave like a special valid mode, and disabling pagination should be an intentional choice rather than an accidental consequence of a malformed environment value.

Negative and zero are different input classes

PR 18681 preserves zero deliberately while rejecting negative limits. A regression set should include a negative integer, zero and a positive value rather than collapse all nonpositive inputs into one category. The distinction is semantic, not merely a numeric range check. A wrapper that previously converted every nonpositive limit to zero would mask the new diagnostic and continue selecting unpaginated behavior even when the operator supplied an invalid negative configuration.

Errors must survive shell and automation boundaries

A proposed qualification runs the actual list command through its production-style wrapper with a negative environment value and records exit status and diagnostic output. Treating empty standard output as a successful empty queue list would be unsafe evidence of inventory. The release promises rejection, not a particular parsing interface for error text. Scripts should preserve failure as failure and avoid relying on an invented exact diagnostic string unless their own compatibility contract requires it.

Zero changes request shape, not result meaning

The documented zero behavior disables pagination. A positive limit requests paginated listing; those modes should still describe the same intended collection when all chunks are consumed correctly. Use enough objects to require multiple chunks in the positive case and compare identities, not only counts. A count can match despite one missing and one duplicated item. The release does not publish memory or API-load comparisons between the modes, so those costs need separate measurement.

Validation is narrower than snapshot correctness

Rejecting negative limits fixes the command’s input contract. It does not independently prove consistent LIST continuation handling during concurrent object changes. That is a separate API behavior to qualify when inventory correctness matters. The practical release conclusion is clear: malformed negative configuration is visible, zero retains its explicit special meaning and positive pagination remains distinct. Operational reports should state which mode was used rather than treating every successful listing as equivalent in request cost and collection timing.

Sources

Earn rental income from GPUs

Have idle GPUs or looking to fund AI infrastructure? Retrivium finds a rental platform, sets up the server and helps you assess income and costs with a pilot.

Explore GPU hosting
← All articles