Skip to content

chore: Use kernel-compliant types for {U,G}IDs#620

Merged
SuperQ merged 1 commit intoprometheus:masterfrom
rexagod:372
Apr 14, 2024
Merged

chore: Use kernel-compliant types for {U,G}IDs#620
SuperQ merged 1 commit intoprometheus:masterfrom
rexagod:372

Conversation

@rexagod
Copy link
Copy Markdown
Contributor

@rexagod rexagod commented Mar 22, 2024

Copy link
Copy Markdown
Member

@discordianfish discordianfish left a comment

Choose a reason for hiding this comment

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

Beside failing tests, LGTM

As defined in the `torvalds/linux` git tree, `uidgid_types.h`:
https://github.com/torvalds/linux/blob/8e938e39866920ddc266898e6ae1fffc5c8f51aa/include/linux/uidgid_types.h#L8

Fixes: prometheus#372
Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Comment on lines +817 to +818
Uid: 0 0 0 0
Gid: 0 0 0 0
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

s/spaces/tabs

Uid: 1000 1000 1000 0
Gid: 1001 1001 1001 0

@amitschendel
Copy link
Copy Markdown

I would be happy if this PR could be merged :) I am looking forward to that as well.

@SuperQ SuperQ merged commit 0fdebd3 into prometheus:master Apr 14, 2024
codeboten referenced this pull request in open-telemetry/opentelemetry-collector-contrib Apr 23, 2024
)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [github.com/prometheus/procfs](https://togithub.com/prometheus/procfs)
| `v0.13.0` -> `v0.14.0` |
[![age](https://developer.mend.io/api/mc/badges/age/go/github.com%2fprometheus%2fprocfs/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/go/github.com%2fprometheus%2fprocfs/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/go/github.com%2fprometheus%2fprocfs/v0.13.0/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/go/github.com%2fprometheus%2fprocfs/v0.13.0/v0.14.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.

---

### Release Notes

<details>
<summary>prometheus/procfs (github.com/prometheus/procfs)</summary>

###
[`v0.14.0`](https://togithub.com/prometheus/procfs/releases/tag/v0.14.0)

[Compare
Source](https://togithub.com/prometheus/procfs/compare/v0.13.0...v0.14.0)

#### What's Changed

- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/613](https://togithub.com/prometheus/procfs/pull/613)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/615](https://togithub.com/prometheus/procfs/pull/615)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/616](https://togithub.com/prometheus/procfs/pull/616)
- Synchronize common files from prometheus/prometheus by
[@&#8203;prombot](https://togithub.com/prombot) in
[https://github.com/prometheus/procfs/pull/621](https://togithub.com/prometheus/procfs/pull/621)
- Revert add avgRTT to nfs mountstats
[#&#8203;487](https://togithub.com/prometheus/procfs/issues/487) by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/procfs/pull/625](https://togithub.com/prometheus/procfs/pull/625)
- style: returns procfs build-in error like other parsing methods by
[@&#8203;weidongkl](https://togithub.com/weidongkl) in
[https://github.com/prometheus/procfs/pull/630](https://togithub.com/prometheus/procfs/pull/630)
- update MAINTAINERS.md by [@&#8203;pgier](https://togithub.com/pgier)
in
[https://github.com/prometheus/procfs/pull/629](https://togithub.com/prometheus/procfs/pull/629)
- \*: `s/(%v|%s)/%w` and use `go1.20` by
[@&#8203;rexagod](https://togithub.com/rexagod) in
[https://github.com/prometheus/procfs/pull/617](https://togithub.com/prometheus/procfs/pull/617)
- chore: Use kernel-compliant types for `{U,G}IDs` by
[@&#8203;rexagod](https://togithub.com/rexagod) in
[https://github.com/prometheus/procfs/pull/620](https://togithub.com/prometheus/procfs/pull/620)
- Update Go versions by [@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/procfs/pull/632](https://togithub.com/prometheus/procfs/pull/632)
- fix: same TCP connection appears twice by
[@&#8203;weidongkl](https://togithub.com/weidongkl) in
[https://github.com/prometheus/procfs/pull/631](https://togithub.com/prometheus/procfs/pull/631)
- Revert "fix: same TCP connection appears twice" by
[@&#8203;SuperQ](https://togithub.com/SuperQ) in
[https://github.com/prometheus/procfs/pull/633](https://togithub.com/prometheus/procfs/pull/633)

#### New Contributors

- [@&#8203;rexagod](https://togithub.com/rexagod) made their first
contribution in
[https://github.com/prometheus/procfs/pull/617](https://togithub.com/prometheus/procfs/pull/617)

**Full Changelog**:
prometheus/procfs@v0.13.0...v0.14.0

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "on tuesday" (UTC), Automerge - At any
time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/open-telemetry/opentelemetry-collector-contrib).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4zMTMuMSIsInVwZGF0ZWRJblZlciI6IjM3LjMxMy4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmNpZXMiLCJyZW5vdmF0ZWJvdCJdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: opentelemetrybot <107717825+opentelemetrybot@users.noreply.github.com>
jritter pushed a commit to jritter/procfs that referenced this pull request Jul 15, 2024
As defined in the `torvalds/linux` git tree, `uidgid_types.h`:
https://github.com/torvalds/linux/blob/8e938e39866920ddc266898e6ae1fffc5c8f51aa/include/linux/uidgid_types.h#L8

Fixes: prometheus#372

Signed-off-by: Pranshu Srivastava <rexagod@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Why uid and gid in /proc/[pid]/status have been parsed as string?

4 participants