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

[chore] Fix TestPerfCounter_Reset test #36726

Merged
merged 2 commits into from
Dec 9, 2024

Conversation

pjanotti
Copy link
Contributor

@pjanotti pjanotti commented Dec 9, 2024

Description

Fix the TestPerfCounter_Reset that is failing consistently.

=== FAIL: . TestPerfCounter_Reset (0.00s)
    watcher_test.go:131: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/pkg/winperfcounters/watcher_test.go:131
        	Error:      	Both arguments must be pointers
        	Test:       	TestPerfCounter_Reset

Root case: after upgrading testify circa of 2 weeks ago, since it included:

NotSame should fail if args are not pointers stretchr/testify#1661 by @sikehish in stretchr/testify#1664

See https://github.com/stretchr/testify/releases

Testing

Local test run

@pjanotti pjanotti requested review from dashpole and a team as code owners December 9, 2024 16:36
@pjanotti pjanotti added the Run Windows Enable running windows test on a PR label Dec 9, 2024
@github-actions github-actions bot requested review from alxbl and Mrod1598 December 9, 2024 16:37
Copy link
Contributor

@codeboten codeboten left a comment

Choose a reason for hiding this comment

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

Ugh :( this one again... i had to fix a bunch of these because of the change in testify

@pjanotti
Copy link
Contributor Author

pjanotti commented Dec 9, 2024

@codeboten I would love to have Run Windows on (or always running Windows without the label) to avoid such "Windows" cases - tracked via #34385

@dmitryax dmitryax merged commit 5ab175c into open-telemetry:main Dec 9, 2024
173 of 176 checks passed
@dmitryax
Copy link
Member

dmitryax commented Dec 9, 2024

Thanks @pjanotti!

@github-actions github-actions bot added this to the next release milestone Dec 9, 2024
@pjanotti pjanotti deleted the fix-pkg-winperfcountes-test branch December 9, 2024 20:28
sbylica-splunk pushed a commit to sbylica-splunk/opentelemetry-collector-contrib that referenced this pull request Dec 17, 2024
#### Description

Fix the TestPerfCounter_Reset that is failing consistently. 

```terminal
=== FAIL: . TestPerfCounter_Reset (0.00s)
    watcher_test.go:131: 
        	Error Trace:	D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/pkg/winperfcounters/watcher_test.go:131
        	Error:      	Both arguments must be pointers
        	Test:       	TestPerfCounter_Reset
```

Root case: after upgrading `testify` circa of 2 weeks ago, since it
included:

> NotSame should fail if args are not pointers
stretchr/testify#1661 by @sikehish in
stretchr/testify#1664

See https://github.com/stretchr/testify/releases

#### Testing

Local test run

Co-authored-by: Antoine Toulme <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
os:windows pkg/winperfcounters Run Windows Enable running windows test on a PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants