Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UserConnection is used by non linux platforms #1720

Merged
merged 1 commit into from
Oct 31, 2023

Conversation

rhatdan
Copy link
Member

@rhatdan rhatdan commented Oct 31, 2023

Take this oppurtunity to remove Get prefix on functions in cgroups.

Take this oppurtunity to remove Get prefix on functions in cgroups.

Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
@rhatdan
Copy link
Member Author

rhatdan commented Oct 31, 2023

@giuseppe PTAL, still broken.

Copy link
Member

@giuseppe giuseppe left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

openshift-ci bot commented Oct 31, 2023

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: giuseppe, rhatdan

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

@edsantiago
Copy link
Collaborator

Should this have the breaking-change label? What API guarantees does this library offer?

@rhatdan rhatdan added the breaking-change A change that will require a full version bump, i.e. 3.* to 4.* label Oct 31, 2023
@rhatdan
Copy link
Member Author

rhatdan commented Oct 31, 2023

None right now. I am working on getting this merged into Podman right now, so I wanted to take the liberty to change these function calls.

@mtrmac
Copy link
Collaborator

mtrmac commented Oct 31, 2023

No API guarantees. Still, disruptive changes have a cost in consumers. (Also, IIRC the Go convention is to avoid the Get prefix for trivially cheap getters, not for routines that may block indefinitely or do heavy I/O. I don’t know where some of the affected functions fall on this spectrum.) Keeping the existing function names around, marking them as deprecated, might be a bit less disruptive for consumers — more work overall, but less urgency and stress during vendoring.

On the topic of the change itself, typically those platform don’t have a user-session systemd running anyway, so I’m not sure dragging in a systemd client / d-bus API dependency is necessary. But I also can’t spend the time to form an opinion on whether making this distinction compile-time or only at run-time is worth the effort.

@baude
Copy link
Member

baude commented Oct 31, 2023

/lgtm

@openshift-ci openshift-ci bot added the lgtm label Oct 31, 2023
@openshift-ci openshift-ci bot merged commit 116177b into containers:main Oct 31, 2023
7 checks passed
elezar added a commit to elezar/podman that referenced this pull request Nov 1, 2023
Make changes as required by github.com/containers/common/pull/1720

Signed-off-by: Evan Lezar <elezar@nvidia.com>
elezar added a commit to elezar/podman that referenced this pull request Nov 1, 2023
Make changes as required by github.com/containers/common/pull/1720

Signed-off-by: Evan Lezar <elezar@nvidia.com>
elezar pushed a commit to elezar/podman that referenced this pull request Nov 1, 2023
…ntainer-device-interface to v0.6.2

This updates the container-device-interface dependency to v0.6.2 and renames the import to
tags.cncf.io/container-device-interface to make use of the new vanity URL.

This also required an update to containers/common and to make API changes as
required by github.com/containers/common/pull/1720

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
elezar pushed a commit to elezar/podman that referenced this pull request Nov 2, 2023
This updates the container-device-interface dependency to v0.6.2 and renames the import to
tags.cncf.io/container-device-interface to make use of the new vanity URL.

This also required an update to containers/common and to make API changes as
required by github.com/containers/common/pull/1720

Signed-off-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Signed-off-by: Evan Lezar <elezar@nvidia.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
approved breaking-change A change that will require a full version bump, i.e. 3.* to 4.* lgtm
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants