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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IO] Fix on newer versions of iostat + tests + misc fix #3733

Merged
merged 3 commits into from May 15, 2018

Conversation

olivielpeau
Copy link
Member

@olivielpeau olivielpeau commented May 9, 2018

What does this PR do?

Fixes #3731 , i.e. fixes core IO check on newer versions of iostat.

In the process of fixing this issue, I found tests for this part of the code that had been wrongly removed in #3114 (migration of checks to integrations-core). So I've:

  1. brought these tests back
  2. by running them, found a bug introduced in this recent PR: Cap system.io.util to 100%聽#3727, and fixed that bug.

Testing

We have tests again :)
And I've added a test case for the newer iostat output format.

Additional Notes

See individual commit descriptions for the full story 馃摉

cc @ChristineTChen: could you add more tests on the code you added in #3727? I've only changed the minimum amount of code to fix
the existing logic and the tests, but the new logic deserves more tests.

@olivielpeau olivielpeau added this to the 5.25.0 milestone May 9, 2018
@olivielpeau olivielpeau force-pushed the olivielpeau/fix-newer-iostat branch from 5a01a54 to 0074a26 Compare May 9, 2018 19:28
This reverts part of commit b74d12f
(migration of checks to integrations-core).

Remove network check tests since these are indeed in integrations-core
now.
Was missing a cast to float. Caught by the test that had been missing,
deserves more tests though.
Along with test changes.

Newer iostat versions also expose slightly different fields. I don't
think we need to take care of these differences now.
@olivielpeau olivielpeau force-pushed the olivielpeau/fix-newer-iostat branch from 0ef22f6 to bec521f Compare May 15, 2018 08:34
@olivielpeau olivielpeau merged commit bfc3057 into master May 15, 2018
@olivielpeau olivielpeau deleted the olivielpeau/fix-newer-iostat branch May 15, 2018 09:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[core] new iostat output fails to parse
2 participants