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

Intermittent unittest failure in win_perf_counters #4301

Closed
danielnelson opened this issue Jun 15, 2018 · 6 comments
Closed

Intermittent unittest failure in win_perf_counters #4301

danielnelson opened this issue Jun 15, 2018 · 6 comments
Labels
area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) bug unexpected problem or unintended behavior

Comments

@danielnelson
Copy link
Contributor

We have been getting an intermittent unittest failure in the win_perf_counters tests after the recent changes.

System info:

master 7781507

Steps to reproduce:

  1. On windows: go test ./plugins/inputs/win_perf_counters/...

Expected behavior:

go test ./plugins/inputs/win_perf_counters/...
ok  	github.com/influxdata/telegraf/plugins/inputs/win_perf_counters	0.174s

Actual behavior:

go test ./plugins/inputs/win_perf_counters/...
--- FAIL: TestWinPerformanceQueryImpl (2.27s)
	Error Trace:	win_perf_counters_integration_test.go:101
	Error:      	Received unexpected error:
	            	The returned data is not valid.
	Test:       	TestWinPerformanceQueryImpl
2018/06/15 10:38:02 Invalid counterPath: '\Processor InformationERROR(_Total)\% Processor Time'. Error: The specified object was not found on the computer.
2018/06/15 10:38:02 Invalid counterPath: '\Processor Information(_Total)\% Processor TimeERROR'. Error: The specified counter could not be found.
2018/06/15 10:38:09 Invalid counterPath: '\O(I1)\C1'. Error: AddEnglishCounterToQuery: invalid counter path: \O(I1)\C1
2018/06/15 10:38:09 Invalid counterPath: '\O(I1)\C1'. Error: AddEnglishCounterToQuery: invalid counter path: \O(I1)\C1

Additional info:

https://ci.appveyor.com/project/influx/telegraf/build/3013

@danielnelson danielnelson added bug unexpected problem or unintended behavior area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) labels Jun 15, 2018
@danielnelson
Copy link
Contributor Author

@vlastahajek Could you take a look?

@vlastahajek
Copy link
Contributor

I've already fixed this as a part of PR #4267. Are going to merge it?
(Current failures are no caused by my code. How to re-run the tests, without new commit? )

Or, do you want to create a separate PR with the test fix?

@danielnelson
Copy link
Contributor Author

Fix this in that PR will be fine, no way to re-run tests without a commit unfortunately. In a pinch you should be able to git commit --allow-empty though.

@danielnelson
Copy link
Contributor Author

I'm hijacking this issue for another intermittent issue (previous issue seems to be fixed):

 go test -short ./plugins/inputs/procstat/...
[3744]
--- FAIL: TestGather_RealFullPattern (5.02s)
	require.go:794: 
			Error Trace:	native_finder_windows_test.go:26
			Error:      	Received unexpected error:
			            	could not get win32Proc: context deadline exceeded
			Test:       	TestGather_RealFullPattern
[2280 2556 2116 1816 3328 844 3424 3744]
FAIL
FAIL	github.com/influxdata/telegraf/plugins/inputs/procstat	11.862s
make: *** [test-windows] Error 1

@vlastahajek Do you have time to look at this?

@vlastahajek
Copy link
Contributor

@danielnelson, I'm busy with sth else, I can look at this in ~ 2 weeks

@vlastahajek
Copy link
Contributor

Sorry for getting to this so late.
It looks it's already fixed, it works for me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/windows Related to windows plugins (win_eventlog, win_perf_counters, win_services) bug unexpected problem or unintended behavior
Projects
None yet
Development

No branches or pull requests

2 participants