Skip to content

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 a team and dashpole 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 Mrod1598 and alxbl 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
172 of 175 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]>
AkhigbeEromo pushed a commit to sematext/opentelemetry-collector-contrib that referenced this pull request Jan 13, 2025
#### 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]>
zeck-ops pushed a commit to zeck-ops/opentelemetry-collector-contrib that referenced this pull request Apr 23, 2025
#### 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