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

[extension/storage/dbstorage] Flaky Test #11451

Closed
djaglowski opened this issue Jun 22, 2022 · 14 comments
Closed

[extension/storage/dbstorage] Flaky Test #11451

djaglowski opened this issue Jun 22, 2022 · 14 comments
Assignees
Labels
bug Something isn't working flaky test a test is flaky priority:p2 Medium Stale

Comments

@djaglowski
Copy link
Member

Observed here: https://github.com/open-telemetry/opentelemetry-collector-contrib/runs/7009845542?check_suite_focus=true#step:7:1415

sqlite3-binding.c: In function 'sqlite3SelectNew':
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |          ^~~~~~~
==3180==ERROR: ThreadSanitizer failed to allocate 0x0000026e9000 (40800256) bytes at 0x200d935630000 (error code: 87)
FAIL	github.com/open-telemetry/opentelemetry-collector-contrib/extension/storage/dbstorage	0.072s
@djaglowski
Copy link
Member Author

cc code owners @dmitryax @atoulme

@dmitryax dmitryax self-assigned this Jun 22, 2022
@dmitryax
Copy link
Member

Yes, I also stumbled into it. looking

@atoulme
Copy link
Contributor

atoulme commented Jun 22, 2022

I did too. I could not make sense of that failure. Good luck Dmitrii.

@dmitryax
Copy link
Member

dmitryax commented Nov 2, 2022

Got another occurence https://github.com/open-telemetry/opentelemetry-collector-contrib/actions/runs/3379452850/jobs/5611039833.

Looks like another module got stanza dependancy. Re-running it for now

@atoulme
Copy link
Contributor

atoulme commented Nov 2, 2022

The warnings seem to be related to mattn/go-sqlite3#803

@atoulme
Copy link
Contributor

atoulme commented Nov 2, 2022

@dmitryax the run you reference shows this error:

    rotation_test.go:295: 
        	Error Trace:	D:\a\opentelemetry-collector-contrib\opentelemetry-collector-contrib\pkg\stanza\operator\input\file\rotation_test.go:295
        	Error:      	elements differ
        	            	
        	            	extra elements in list B:
        	            	([]interface {}) (len=1) {
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  12"
        	            	}
        	            	
        	            	
        	            	listA:
        	            	([]string) (len=20) {
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   0",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   1",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   2",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   3",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   4",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   5",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   6",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   7",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   8",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   9",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  10",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  11",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  12",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  13",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  14",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  15",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  16",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  17",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  18",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  19"
        	            	}
        	            	
        	            	
        	            	listB:
        	            	([]string) (len=21) {
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   0",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   1",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  12",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  10",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  11",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  12",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  13",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   2",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   3",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   4",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   5",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   6",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   7",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   8",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco   9",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  14",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  15",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  16",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  17",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  18",
        	            	 (string) (len=50) "otafethsbzrjxawnwekrbemfdzdcekxbakjqzlcttmttco  19"
        	            	}
        	Test:       	TestRotation/NoDeletion/CopyTruncateTimestamped

Is that correct? It doesn't seem this like this failure is related to dbstorage. What am I missing?

@dmitryax
Copy link
Member

dmitryax commented Nov 2, 2022

No, the error is the same as posted here initially

FAIL
mingw32-make[2]: *** [../../Makefile.Common:57: test] Error 1
mingw32-make[2]: Leaving directory 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/pkg/stanza'
mingw32-make[1]: *** [makefile:188: pkg/stanza] Error 2
mingw32-make[1]: *** Waiting for unfinished jobs....
# github.com/mattn/go-sqlite3
sqlite3-binding.c: In function 'sqlite3SelectNew':
sqlite3-binding.c:128049:10: warning: function may return address of local variable [-Wreturn-local-addr]
128049 |   return pNew;
       |          ^~~~
sqlite3-binding.c:128009:10: note: declared here
128009 |   Select standin;
       |          ^~~~~~~
?   	github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema/docsgen	[no test files]
?   	github.com/open-telemetry/opentelemetry-collector-contrib/cmd/configschema/docsgen/docsgen	[no test files]
mingw32-make[2]: Leaving directory 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib/cmd/configschema'
mingw32-make[1]: Leaving directory 'D:/a/opentelemetry-collector-contrib/opentelemetry-collector-contrib'
mingw32-make: *** [makefile:95: gotest] Error 2
Error: Process completed with exit code 1.

@dmitryax
Copy link
Member

dmitryax commented Nov 2, 2022

Actually you're right. I got confused by the warnings. Sorry. I'll need to create another issue

@github-actions
Copy link
Contributor

github-actions bot commented Jan 2, 2023

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Jan 2, 2023
@atoulme
Copy link
Contributor

atoulme commented Jan 7, 2023

These warnings are annoying. Do we want them fixed as part of this issue? Close and open a new one? It appears this issue is no longer occurring.

@djaglowski
Copy link
Member Author

@atoulme, a clean issue sounds reasonable to me.

@github-actions github-actions bot removed the Stale label May 26, 2023
@github-actions
Copy link
Contributor

This issue has been inactive for 60 days. It will be closed in 60 days if there is no activity. To ping code owners by adding a component label, see Adding Labels via Comments, or if you are unsure of which component this issue relates to, please ping @open-telemetry/collector-contrib-triagers. If this issue is still relevant, please ping the code owners or leave a comment explaining why it is still relevant. Otherwise, please close it.

@github-actions github-actions bot added the Stale label Jul 26, 2023
@atoulme
Copy link
Contributor

atoulme commented Jul 26, 2023

I had followed up with #19152, and am not sure we still see those warnings since I updated the version. I'll take a look.

@atoulme
Copy link
Contributor

atoulme commented Jul 26, 2023

I don't see warnings again, and the failure doesn't occur anymore. Good to close this.

@atoulme atoulme closed this as completed Jul 26, 2023
mx-psi pushed a commit that referenced this issue Oct 31, 2023
…19421 (#28680)

**Description:**
Update go-sqlite3 on cmd/configschema (same as #19421) to start
re-enabling tests currently being skipped on Windows, see #28679.

**Link to tracking Issue:**
First part of #28679
Related to #11451

**Testing:**
Local tests of `cmd/configschema`.

**Documentation:**
N/A
jmsnll pushed a commit to jmsnll/opentelemetry-collector-contrib that referenced this issue Nov 12, 2023
…pen-telemetry#19421 (open-telemetry#28680)

**Description:**
Update go-sqlite3 on cmd/configschema (same as open-telemetry#19421) to start
re-enabling tests currently being skipped on Windows, see open-telemetry#28679.

**Link to tracking Issue:**
First part of open-telemetry#28679
Related to open-telemetry#11451

**Testing:**
Local tests of `cmd/configschema`.

**Documentation:**
N/A
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
pjanotti added a commit to pjanotti/opentelemetry-service-contrib that referenced this issue Nov 14, 2023
dmitryax pushed a commit that referenced this issue Nov 15, 2023
**Description:**
Part 2 of #28679 these are the tests that can be re-enabled without
requiring any code changes after #28680 is merged.

**Link to tracking Issue:**
Related to #28679
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this issue Nov 24, 2023
…pen-telemetry#19421 (open-telemetry#28680)

**Description:**
Update go-sqlite3 on cmd/configschema (same as open-telemetry#19421) to start
re-enabling tests currently being skipped on Windows, see open-telemetry#28679.

**Link to tracking Issue:**
First part of open-telemetry#28679
Related to open-telemetry#11451

**Testing:**
Local tests of `cmd/configschema`.

**Documentation:**
N/A
RoryCrispin pushed a commit to ClickHouse/opentelemetry-collector-contrib that referenced this issue Nov 24, 2023
…ixes (open-telemetry#28682)

**Description:**
Part 2 of open-telemetry#28679 these are the tests that can be re-enabled without
requiring any code changes after open-telemetry#28680 is merged.

**Link to tracking Issue:**
Related to open-telemetry#28679
djaglowski pushed a commit that referenced this issue Dec 1, 2023
…n Windows (#29532)

**Description:**
Last part to re-enable all Windows tests disabled due to issue #11451.

Notes:

* The default test timeout is not enough for the `cmd` GROUP on CI and
it was increased to 1200s just for this group on Windows, the default
stays at 300s (which was also enough for my local run).
* The `fileexporter` life cycle test indicates an issue that shouldn't
affect most usages of the collector: if the same configuration is used
to export multiple signals it opens one file handle for each signal but
just closes the one of them at shutdown (the helper only executes the
shutdown for the one signal). This is an issue for the test because
during cleanup the testing attempts to delete the test folder and there
are still handles open to the file that lives inside it. This shouldn't
be a problem for collector users. That said the exporter should close
all file handles on shutdown. I will take look at what can be done to
correct this behavior.
* Fixed a minor typo on the receivers test that affected many lines.

**Link to tracking Issue:**
Fix #28679 - last part.

**Testing:**
Local run and GH CI on my fork with `Run Windows` label.

**Documentation:**
N/A
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working flaky test a test is flaky priority:p2 Medium Stale
Projects
None yet
Development

No branches or pull requests

3 participants