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

build(test_analysis): use modernc.org/sqlite directly #3227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

levisyin
Copy link

@levisyin levisyin commented Mar 8, 2025

Motivation

image

Based on the comment from glebarez:

I think we can use modernc.org/sqlite directly instead of glebarez/go-sqlite(we didn't use GORM).

Result

Following are a part of results of test_results.db after replacing by modernc.org/sqlite:

sqlite> select * from test_results limit 10;
           Time = 2025-03-08T11:24:42.688922377+08:00
         Action = start
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = 
        Elapsed = 0.0
         Output = 
BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.688985794+08:00
         Action = run
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = 
BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.688989916+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = === RUN   TestFailsOnConsistentFailure

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.688999891+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = === RUN   TestConsistentFailure

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689003091+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output =     main_test.go:7: consistent failure

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689005556+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = --- FAIL: TestConsistentFailure (0.00s)

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689007838+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = FAIL

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689010234+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = FAIL  example.com/test        0.002s

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689014079+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = 2025/03/08 11:21:39 Not all tests passed: exit status 1

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

           Time = 2025-03-08T11:24:42.689182934+08:00
         Action = output
        Package = github.com/libp2p/go-libp2p/scripts/test_analysis
           Test = TestFailsOnConsistentFailure
        Elapsed = 0.0
         Output = 2025/03/08 11:21:39 Found 1 failed tests. Retrying them 4 times

BatchInsertTime = 2025-03-08T11:24:42.602364369+08:00

@levisyin levisyin force-pushed the build/test-analysis branch from d9353f0 to 87b579f Compare March 10, 2025 23:46
@MarcoPolo MarcoPolo force-pushed the build/test-analysis branch from 87b579f to 0c760dd Compare March 19, 2025 18:33
@levisyin levisyin force-pushed the build/test-analysis branch from 0c760dd to 2e2ad47 Compare March 23, 2025 14:10
@levisyin levisyin force-pushed the build/test-analysis branch from 2e2ad47 to 1b4fa57 Compare March 27, 2025 15:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant