Skip to content

Conversation

markjdb
Copy link
Contributor

@markjdb markjdb commented Sep 18, 2025

None

Include an explicit container state check.  Otherwise the
containers/stats endpoint will return all-zero stats for a stopped
container even when in non-streaming mode, which breaks some consumers
of the API, particularly nomad's podman driver.

Implement the interface by just returning the number of host CPUs.  A
bit more sophisticated would be to fetch the jail's cpuset, but it's not
very important for now.

Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
@github-actions github-actions bot added the kind/api-change Change to remote API; merits scrutiny label Sep 18, 2025
Signed-off-by: Mark Johnston <mark.johnston@klarasystems.com>
Copy link

[NON-BLOCKING] Packit jobs failed. @containers/packit-build please check. Everyone else, feel free to ignore.

@mheon mheon added the No New Tests Allow PR to proceed without adding regression tests label Sep 18, 2025
@mheon
Copy link
Member

mheon commented Sep 18, 2025

Adding no new tests because we don't presently have a FreeBSD suite beyond basic compile testing

@mheon
Copy link
Member

mheon commented Sep 18, 2025

/approve
LGTM on my end

@openshift-ci openshift-ci bot added the approved Indicates a PR has been approved by an approver from all required OWNERS files. label Sep 18, 2025
Copy link
Member

@Luap99 Luap99 left a comment

Choose a reason for hiding this comment

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

LGTM

cc @dfr I wait for your ack before merging.

Copy link
Contributor

openshift-ci bot commented Sep 19, 2025

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: Luap99, markjdb, mheon

The full list of commands accepted by this bot can be found here.

The pull request process is described here

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

@dfr
Copy link
Contributor

dfr commented Sep 19, 2025

Looks good to me

@Luap99
Copy link
Member

Luap99 commented Sep 19, 2025

/lgtm

@openshift-ci openshift-ci bot added the lgtm Indicates that a PR is ready to be merged. label Sep 19, 2025
@openshift-merge-bot openshift-merge-bot bot merged commit 1671029 into containers:main Sep 19, 2025
81 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved Indicates a PR has been approved by an approver from all required OWNERS files. kind/api-change Change to remote API; merits scrutiny lgtm Indicates that a PR is ready to be merged. No New Tests Allow PR to proceed without adding regression tests release-note-none
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants