Skip to content

Fix/rewards market GASP-1681 (#855) #809

Fix/rewards market GASP-1681 (#855)

Fix/rewards market GASP-1681 (#855) #809

GitHub Actions / E2E report yarn test-rollupUpdate failed Dec 6, 2024 in 0s

E2E report yarn test-rollupUpdate ❌

Tests failed

❌ e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml

25 tests were completed in 1008s with 1 passed, 3 failed and 21 skipped.

Test suite Passed Failed Skipped Time
test/sequential/rolldown.updateL1FromL1.test.ts 1✅ 3❌ 21⚪ 1008s

❌ test/sequential/rolldown.updateL1FromL1.test.ts

updateL1FromL1
  ⚪ Updates are accepted
  ⚪ Future +1 updates are  not accepted
  ⚪ Future -1,0,1 updates are  not accepted
  ⚪ Add twice the same deposit with requestId
  ⚪ Add twice the same request id but different deposits
  ⚪ Add twice the same request groups
  ⚪ Old Ids can be included but wont be considered
  ⚪ Old Ids can be included on some other update and wont be considered
  ⚪ An update with no new updates will fail
  ⚪ An update with a gap will fail
  ⚪ An update that is not ordered will fail
  ⚪ An update with two identical deposits must be executed correctly
  ⚪ Every update item is validated
updateL1FromL1 - errors › Update with gap: true
  ⚪ An update including gap? : true at positions 0
  ⚪ An update including gap? : true at positions 1
  ⚪ An update including gap? : true at positions 2
  ⚪ An update including gap? : true at positions 3
updateL1FromL1 - errors › Update with gap: false
  ⚪ An update including gap? : false at positions 0
  ⚪ An update including gap? : false at positions 1
  ⚪ An update including gap? : false at positions 2
  ⚪ An update including gap? : false at positions 3
updateL2FromL1 - cancelResolution and deposit errors
  ✅ When a cancel resolution fail, maintenance mode will be triggered automatically
  ❌ [BUG] When a cancel resolution fail, the whole update wont be stored
	TypeError: Cannot read properties of undefined (reading 'event')
  ❌ When we have a failed deposit and send it again, it will result in no-execution again
	Error: thrown: "method rolldown.RequestProcessedOnL2 not found within blocks limit"
  ❌ GIVEN two deposit with u128max-1 amount THEN second deposit fails
	Error: expect(received).toBeFalsy()

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-rollupUpdate

test/sequential/rolldown.updateL1FromL1.test.ts ► updateL2FromL1 - cancelResolution and deposit errors ► [BUG] When a cancel resolution fail, the whole update wont be stored

Failed test found in:
  e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'event')
Raw output
TypeError: Cannot read properties of undefined (reading 'event')
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:59:38
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:11:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:7:12)
    at getEventError (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:45:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:572:30
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:8:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-rollupUpdate

test/sequential/rolldown.updateL1FromL1.test.ts ► updateL2FromL1 - cancelResolution and deposit errors ► When we have a failed deposit and send it again, it will result in no-execution again

Failed test found in:
  e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml
Error:
  Error: thrown: "method rolldown.RequestProcessedOnL2 not found within blocks limit"
Raw output
Error: thrown: "method rolldown.RequestProcessedOnL2 not found within blocks limit"
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:587:3
    at _dispatchDescribe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:91:26)
    at describe (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/index.js:55:5)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:501:1
    at SourceTextModule.evaluate (node:internal/vm/module:226:23)
    at Runtime.linkAndEvaluateModule (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runtime/build/index.js:710:20)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)
    at jestAdapter (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-circus/build/legacy-code-todo-rewrite/jestAdapter.js:75:5)
    at runTestInternal (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:367:16)
    at runTest (/home/runner/_work/mangata-node/mangata-node/e2eTests/node_modules/jest-runner/build/runTest.js:444:34)

Check failure on line 0 in e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml

See this annotation in the file changed.

@github-actions github-actions / E2E report yarn test-rollupUpdate

test/sequential/rolldown.updateL1FromL1.test.ts ► updateL2FromL1 - cancelResolution and deposit errors ► GIVEN two deposit with u128max-1 amount THEN second deposit fails

Failed test found in:
  e2eTests/reports/junit.xml-aa3d6d10-b3f0-11ef-a15d-65db777391c1.xml
Error:
  Error: expect(received).toBeFalsy()
Raw output
Error: expect(received).toBeFalsy()

Received: true
    at expectMGAExtrinsicSuDidSuccess (/home/runner/_work/mangata-node/mangata-node/e2eTests/utils/eventListeners.ts:447:20)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:675:7
    at Generator.next (<anonymous>)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:11:71
    at new Promise (<anonymous>)
    at __awaiter (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:7:12)
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.updateL1FromL1.test.ts:674:29
    at processTicksAndRejections (node:internal/process/task_queues:95:5)