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

fix test-e2e-group-9 #13

Open
tony-armstrong opened this issue Nov 29, 2023 · 0 comments
Open

fix test-e2e-group-9 #13

tony-armstrong opened this issue Nov 29, 2023 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@tony-armstrong
Copy link
Collaborator

tony-armstrong commented Nov 29, 2023

Steps to reproduce the issue

make test-e2e-group-9

What's the actual result?

  1. TestForcedBatchesVectorFilesGroup1 execution failed due to timeout
  2. log:
    2023-11-28T23:56:00.764+0800	�[34mINFO�[0m	e2e-group9/forced_batches_vector_group1_test.go:67	################################	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:00.764+0800	�[34mINFO�[0m	e2e-group9/forced_batches_vector_group1_test.go:68	# Verifying initial state root #	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:00.764+0800	�[34mINFO�[0m	e2e-group9/forced_batches_vector_group1_test.go:69	################################	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:00.765+0800	�[34mINFO�[0m	e2e-group9/shared.go:150	Using address: 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:00.766+0800	�[34mINFO�[0m	e2e-group9/shared.go:153	Number of forceBatches in the smc: 0	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:01.779+0800	�[35mDEBUG�[0m	operations/wait.go:99	Transaction successfully mined: 0x5bca1d71baeece629745915b66883ba821b08f4c320057f1c1c8e07c3059e5f9	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:01.813+0800	�[34mINFO�[0m	e2e-group9/shared.go:172	Forced Batch Submit to L1 TxHash: 0x9b98318cd47ac2c35716516b9c58390da05c8fad5bb6488b8c4b0952a3098603	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.816+0800	�[35mDEBUG�[0m	operations/wait.go:99	Transaction successfully mined: 0x9b98318cd47ac2c35716516b9c58390da05c8fad5bb6488b8c4b0952a3098603	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.820+0800	�[35mDEBUG�[0m	e2e-group9/shared.go:180	currentBlock.Time(): 1701186961	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.826+0800	�[35mDEBUG�[0m	e2e-group9/shared.go:200	log decoded: &{ForceBatchNum:1 LastGlobalExitRoot:[173 50 40 182 118 247 211 205 66 132 165 68 63 23 241 150 43 54 228 145 179 10 64 178 64 88 73 229 151 186 95 181] Sequencer:0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 Transactions:[] Raw:{Address:0x67d269191c92Caf3cD7723F116c85e6E9bf55933 Topics:[0xf94bb37db835f1ab585ee00041849a09b12cd081d77fa15ca070757619cbc931 0x0000000000000000000000000000000000000000000000000000000000000001] Data:[173 50 40 182 118 247 211 205 66 132 165 68 63 23 241 150 43 54 228 145 179 10 64 178 64 88 73 229 151 186 95 181 0 0 0 0 0 0 0 0 0 0 0 0 243 159 214 229 26 173 136 246 244 206 106 184 130 114 121 207 255 185 34 102 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 96 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0] BlockNumber:212 TxHash:0x9b98318cd47ac2c35716516b9c58390da05c8fad5bb6488b8c4b0952a3098603 TxIndex:0 BlockHash:0xfd2f489a7f2d0ebcd9ae30b21f0cd22dd5405010f439807f2c5a90e1138b377e Index:1 Removed:false}}	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.826+0800	�[34mINFO�[0m	e2e-group9/shared.go:202	GlobalExitRoot: [173 50 40 182 118 247 211 205 66 132 165 68 63 23 241 150 43 54 228 145 179 10 64 178 64 88 73 229 151 186 95 181]	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.826+0800	�[34mINFO�[0m	e2e-group9/shared.go:203	Transactions: 	{"pid": 483830, "version": "v0.1.0"}
    2023-11-28T23:56:03.830+0800	�[34mINFO�[0m	e2e-group9/shared.go:209	MinForcedTimestamp: 1701186961	{"pid": 483830, "version": "v0.1.0"}
    panic: test timed out after 33m20s
    running tests:
        TestForcedBatchesVectorFilesGroup1 (33m20s)
        TestForcedBatchesVectorFilesGroup1/general_1.json (27m4s)
    
    goroutine 61897 [running]:
    testing.(*M).startAlarm.func1()
        /usr/lib/go/src/testing/testing.go:2259 +0x1fc
    created by time.goFunc
        /usr/lib/go/src/time/sleep.go:176 +0x45
    
    goroutine 1 [chan receive, 33 minutes]:
    testing.(*T).Run(0xc000183380, {0x1fb1b64, 0x22}, 0x2157c70)
        /usr/lib/go/src/testing/testing.go:1649 +0x856
    testing.runTests.func1(0x0?)
        /usr/lib/go/src/testing/testing.go:2054 +0x85
    testing.tRunner(0xc000183380, 0xc00041fb08)
        /usr/lib/go/src/testing/testing.go:1595 +0x239
    testing.runTests(0xc0002faa00?, {0x2dee930, 0x1, 0x1}, {0xd0?, 0x1e79620?, 0x2fc6480?})
        /usr/lib/go/src/testing/testing.go:2052 +0x897
    testing.(*M).Run(0xc0002faa00)
        /usr/lib/go/src/testing/testing.go:1925 +0xb58
    main.main()
        _testmain.go:47 +0x2be
    ......
    goroutine 31068 [select, 27 minutes]:
    database/sql.(*DB).connectionOpener(0xc000583110, {0x239f778, 0xc000640fa0})
        /usr/lib/go/src/database/sql/sql.go:1218 +0xed
    created by database/sql.OpenDB in goroutine 30970
        /usr/lib/go/src/database/sql/sql.go:791 +0x2f0
    FAIL	github.com/0xPolygonHermez/zkevm-node/ci/e2e-group9	2000.088s
    FAIL
    

Additional details / screenshot

  1. key tips: fatal error: failed to process forced batch, Executor err: ERROR: insert or update on table "batch" violates foreign key constraint "batch_forced_batch_num_fkey" (SQLSTATE 23503)%!(EXTRA string=
  2. zkevm-sequencer container log
    zkevm-sequencer        | 2023-11-30T09:46:56.101Z       ERROR   sequencer/finalizer.go:453      fatal error: failed to process forced batch, Executor err: ERROR: insert or update on table "batch" violates foreign key constraint "batch_forced_batch_num_fkey" (SQLSTATE 23503)%!(EXTRA string=
    zkevm-sequencer        | /src/log/log.go:142 github.com/0xPolygonHermez/zkevm-node/log.appendStackTraceMaybeArgs()
    zkevm-sequencer        | /src/log/log.go:251 github.com/0xPolygonHermez/zkevm-node/log.Errorf()
    zkevm-sequencer        | /src/sequencer/finalizer.go:453 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).halt()
    zkevm-sequencer        | /src/sequencer/finalizer.go:1138 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatch()
    zkevm-sequencer        | /src/sequencer/finalizer.go:1116 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatches()
    zkevm-sequencer        | /src/sequencer/finalizer.go:560 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).newWIPBatch()
    zkevm-sequencer        | /src/sequencer/finalizer.go:429 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatch()
    zkevm-sequencer        | /src/sequencer/finalizer.go:381 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatches()
    zkevm-sequencer        | /src/sequencer/finalizer.go:194 github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Start()
    zkevm-sequencer        | )      {"pid": 1, "version": "v0.4.1-6-ge2d706ef"}
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).halt
    zkevm-sequencer        |        /src/sequencer/finalizer.go:453
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:1138
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatches
    zkevm-sequencer        |        /src/sequencer/finalizer.go:1116
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).newWIPBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:560
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:429
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatches
    zkevm-sequencer        |        /src/sequencer/finalizer.go:381
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Start
    zkevm-sequencer        |        /src/sequencer/finalizer.go:194
    zkevm-sequencer        | 2023-11-30T09:46:56.101Z       ERROR   sequencer/finalizer.go:454      halting the finalizer   {"pid": 1, "version": "v0.4.1-6-ge2d706ef"}
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).halt
    zkevm-sequencer        |        /src/sequencer/finalizer.go:454
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:1138
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).processForcedBatches
    zkevm-sequencer        |        /src/sequencer/finalizer.go:1116
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).newWIPBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:560
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatch
    zkevm-sequencer        |        /src/sequencer/finalizer.go:429
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).finalizeBatches
    zkevm-sequencer        |        /src/sequencer/finalizer.go:381
    zkevm-sequencer        | github.com/0xPolygonHermez/zkevm-node/sequencer.(*finalizer).Start
    zkevm-sequencer        |        /src/sequencer/finalizer.go:194
    
    
@tony-armstrong tony-armstrong self-assigned this Nov 29, 2023
@tony-armstrong tony-armstrong added the bug Something isn't working label Nov 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Backlog
Development

No branches or pull requests

1 participant