Skip to content

Fix network metric collection failure on CentOS#7883

Merged
3 commits merged into
masterfrom
mike.zhu/ss_path
Oct 29, 2020
Merged

Fix network metric collection failure on CentOS#7883
3 commits merged into
masterfrom
mike.zhu/ss_path

Conversation

@ghost

@ghost ghost commented Oct 28, 2020

Copy link
Copy Markdown

What does this PR do?

Set PATH env to ensure "sh" command receive the same PATH as the caller process.

Motivation

Customers find network metric collection failure in CentOS, it's a regression from 7.22.1.

Additional Notes

None

Review checklist (to be filled by reviewers)

  • Feature or bugfix MUST have appropriate tests (unit, integration, e2e)
  • PR title must be written as a CHANGELOG entry (see why)
  • Files changes must correspond to the primary purpose of the PR as described in the title (small unrelated changes should have their own PR)
  • PR must have changelog/ and integration/ labels attached

@ghost
ghost self-requested a review October 28, 2020 18:04
@ghost
ghost self-requested a review as a code owner October 28, 2020 18:04
@ghost ghost added the integration/network label Oct 28, 2020
@ghost
ghost force-pushed the mike.zhu/ss_path branch from a9fd49f to 00364e2 Compare October 28, 2020 20:03
@ghost
ghost force-pushed the mike.zhu/ss_path branch 2 times, most recently from 231a478 to ad9d10a Compare October 28, 2020 20:17
@codecov

codecov Bot commented Oct 28, 2020

Copy link
Copy Markdown

Comment thread network/datadog_checks/network/network.py Outdated
@ghost
ghost force-pushed the mike.zhu/ss_path branch from ad9d10a to 8b47706 Compare October 28, 2020 22:11
@ghost
ghost self-requested a review as a code owner October 28, 2020 22:11
@ghost
ghost requested a review from albertvaka October 28, 2020 22:12
@ghost

ghost commented Oct 28, 2020

Copy link
Copy Markdown
Author

PR All (Ignite) just failed, I don't see any particular code change might result in that failure. Will commit a dummy change and rerun.

@ghost
ghost force-pushed the mike.zhu/ss_path branch 2 times, most recently from 4bff84f to 0058ec1 Compare October 28, 2020 23:17
@ghost

ghost commented Oct 28, 2020

Copy link
Copy Markdown
Author

0058ec1 was a test commit which I commented out my changes. Still I see PR All (Ignite) failed.

I will uncomment out my code now and commit again.

PR All (Ignite) is broken.

@ghost
ghost force-pushed the mike.zhu/ss_path branch from 0058ec1 to 6e8cc2a Compare October 28, 2020 23:27
albertvaka
albertvaka previously approved these changes Oct 29, 2020

@albertvaka albertvaka left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

The failing tests seem unrelated to the change

Comment thread datadog_checks_base/datadog_checks/base/utils/subprocess_output.py Outdated
@florimondmanca

Copy link
Copy Markdown
Contributor

@mikezhu-dd I'm looking at the Ignite fix, it's an unrelated but recurrent flake, feel free to merge regardless of the status of this job.

@ghost
ghost requested a review from ofek October 29, 2020 15:35
albertvaka
albertvaka previously approved these changes Oct 29, 2020
@ghost
ghost requested a review from florimondmanca October 29, 2020 20:26
@ghost
ghost merged commit 17877c2 into master Oct 29, 2020
@ghost
ghost deleted the mike.zhu/ss_path branch October 29, 2020 20:44
This pull request was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants