Commit Graph

2324 Commits (v3.23.7)
 

Author SHA1 Message Date
shirou 0b4d681d64
Merge pull request #1488 from Lomanic/issue1485
[process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
2 years ago
shirou c43eaea6a7
Merge pull request #1492 from shirou/dependabot/github_actions/actions/labeler-4.3.0
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
2 years ago
dependabot[bot] 9421df8699
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](0967ca812e...ac9175f8a1)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Lomanic 8b96d2e9e2 [process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
e2c79a1 started to blindly set the process name to the full path (instead of the basename) of the cmdline exectuable
if the process name from the process comm was truncated on linux. Python psutil never did that, and this is just wrong
for python (or any executable interpreted script) where the process name is not the interpreter binary but the script
itself.

A new test to check process name value against psutil value is added here, which would hopefully catch any potential
future changes in psutil.

Reverts #542

Fixes #1485
2 years ago
shirou 5081a3dcf9
Merge pull request #1486 from elfranne/patch-1
cpu_percent and memory_percent Readme
2 years ago
shirou 042e63609b
Merge pull request #1489 from shirou/dependabot/go_modules/golang.org/x/sys-0.10.0
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
2 years ago
dependabot[bot] 99c67a47e2
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Lomanic c0f3eb1dfb [process] Remove all noisy and useless Test_AllProcesses_X tests
These tests can't fail more than their invidiual counterparts and produce an incredibly verbose output
2 years ago
shirou f08589cdac
Merge pull request #1487 from shirou/dependabot/github_actions/actions/labeler-4.2.0
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
2 years ago
dependabot[bot] 3a5aa800b7
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
Bumps [actions/labeler](https://github.com/actions/labeler) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/labeler/releases)
- [Commits](9fcb2c2f55...0967ca812e)

---
updated-dependencies:
- dependency-name: actions/labeler
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Elfranne b41de48761
cpu_percent and memory_percent update 2 years ago
shirou fb83fb22d6
Merge pull request #1483 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3.6.0
chore(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0
2 years ago
shirou 88f1b71f94
Merge pull request #1482 from shirou/dependabot/github_actions/actions/checkout-3.5.3
chore(deps): bump actions/checkout from 3.5.2 to 3.5.3
2 years ago
shirou 8ea3154004
Merge pull request #1484 from shirou/dependabot/go_modules/golang.org/x/sys-0.9.0
chore(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
2 years ago
dependabot[bot] ddec0d359d
chore(deps): bump golang.org/x/sys from 0.8.0 to 0.9.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.8.0 to 0.9.0.
- [Commits](https://github.com/golang/sys/compare/v0.8.0...v0.9.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot] e50406fcca
chore(deps): bump golangci/golangci-lint-action from 3.5.0 to 3.6.0
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 3.5.0 to 3.6.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](5f1fec7010...639cd343e1)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot] 4eccb7db0e
chore(deps): bump actions/checkout from 3.5.2 to 3.5.3
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.5.2 to 3.5.3.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8e5e7e5ab8...c85c95e3d7)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou efe7a95f41
Merge pull request #1480 from gabibguti/master
Reference actions by commit SHA
2 years ago
Gabriela Gutierrez 147902f4cb
Ref actions by commit SHA in test.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/actions/cache/releases/tag/v3.3.1
88522ab9f3


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez 404301103d
Ref actions by commit SHA in shellcheck.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/ludeeus/action-shellcheck/releases/tag/2.0.0
00cae500b0


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez 346f7bc0fd
Ref actions by commit SHA in sbom_generator.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/advanced-security/sbom-generator-action/releases/tag/v0.0.1
375dee8e61

https://github.com/actions/upload-artifact/releases/tag/v3.1.2
0b7f8abb15


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez f6afa2b95f
Ref actions by commit SHA in release.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez 0f90ed4833
Ref actions by commit SHA in lint.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/golangci/golangci-lint-action/releases/tag/v3.5.0
5f1fec7010


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez 2d8c888a00
Ref actions by commit SHA in labeler.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/labeler/releases/tag/v4.1.0
9fcb2c2f55


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
Gabriela Gutierrez 7865eebd82
Ref actions by commit SHA in build_test.yml
It's important to make sure the SHA's are from the original repositories and not forks.

For reference:

https://github.com/actions/setup-go/releases/tag/v4.0.1
fac708d667

https://github.com/actions/checkout/releases/tag/v3.5.2
8e5e7e5ab8

https://github.com/actions/cache/releases/tag/v3.3.1
88522ab9f3


Signed-off-by: Gabriela Gutierrez <gabigutierrez@google.com>
2 years ago
shirou 1754b8155d
Merge pull request #1478 from shirou/feature/add_doc_about_ctx
add(README): add passing context value document
2 years ago
shirou 341d501dce add(README): add passing context value document
which is introduced by #1439.
2 years ago
shirou 5a20eac3c7
Merge pull request #1476 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.4
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
2 years ago
shirou 607d540769
Merge pull request #1439 from atoulme/override_env
allow to pass context values to override environment variables
2 years ago
Antoine Toulme b712e59295 fix more linting reports 2 years ago
Antoine Toulme 842e4da755 apply code review 2 years ago
Antoine Toulme 35657e3262 add more env keys 2 years ago
Antoine Toulme 177e1b1982 remove deprecation comments 2 years ago
Antoine Toulme fe1caf758c lint fixes 2 years ago
Antoine Toulme 0cbdf257ab change to use a typed map per code review 2 years ago
Antoine Toulme 5b9212e240 move the Env key out of internal packages 2 years ago
Antoine Toulme 38b94668ea allow to pass context values to override environment variables 2 years ago
dependabot[bot] 3081c11f1d
chore(deps): bump github.com/stretchr/testify from 1.8.3 to 1.8.4
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.3 to 1.8.4.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.3...v1.8.4)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou 32e8a92ad6
Merge pull request #1475 from shirou/feature/fix_potential_leak_on_common_sleep
[common]: fix potential leak on Sleep.
2 years ago
shirou 3e789a459a [common]: fix potential leak on Sleep. 2 years ago
shirou 03ae19bea8
Merge pull request #1472 from powersj/fix/writeback
fix(mem): Correct capitalization of linux writeback
2 years ago
shirou 194e6e2edc
Merge pull request #1467 from shirou/dependabot/go_modules/github.com/yusufpapurcu/wmi-1.2.3
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.2 to 1.2.3
2 years ago
dependabot[bot] 5537690141
chore(deps): bump github.com/yusufpapurcu/wmi from 1.2.2 to 1.2.3
Bumps [github.com/yusufpapurcu/wmi](https://github.com/yusufpapurcu/wmi) from 1.2.2 to 1.2.3.
- [Release notes](https://github.com/yusufpapurcu/wmi/releases)
- [Commits](https://github.com/yusufpapurcu/wmi/compare/v1.2.2...v1.2.3)

---
updated-dependencies:
- dependency-name: github.com/yusufpapurcu/wmi
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou 1983d2b908
Merge pull request #1468 from shirou/dependabot/go_modules/github.com/stretchr/testify-1.8.3
chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
2 years ago
Josh Powers d71f0022a1 fix(mem): Correct capitalization of linux writeback
fixes: #1471
2 years ago
dependabot[bot] fd69d68f44
chore(deps): bump github.com/stretchr/testify from 1.8.2 to 1.8.3
Bumps [github.com/stretchr/testify](https://github.com/stretchr/testify) from 1.8.2 to 1.8.3.
- [Release notes](https://github.com/stretchr/testify/releases)
- [Commits](https://github.com/stretchr/testify/compare/v1.8.2...v1.8.3)

---
updated-dependencies:
- dependency-name: github.com/stretchr/testify
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou 7c610c5037
Merge pull request #1462 from cuishuang/master
fix some comments
2 years ago
cui fliter 9aa4e7a744 fix some comments
Signed-off-by: cui fliter <imcusg@gmail.com>
2 years ago
shirou e045dc75ca
Merge pull request #1460 from shirou/dependabot/go_modules/github.com/shoenig/go-m1cpu-0.1.6
chore(deps): bump github.com/shoenig/go-m1cpu from 0.1.5 to 0.1.6
2 years ago
shirou d67461898b
Merge pull request #1459 from shirou/dependabot/go_modules/golang.org/x/sys-0.8.0
chore(deps): bump golang.org/x/sys from 0.7.0 to 0.8.0
2 years ago