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-rolldown failed Dec 6, 2024 in 1s

E2E report yarn test-rolldown ❌

Tests failed

❌ e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml

12 tests were completed in 822s with 8 passed, 4 failed and 0 skipped.

Test suite Passed Failed Skipped Time
test/sequential/rolldown.cancel.test.ts 4❌ 4s
test/sequential/rolldown.forceUpdate.test.ts 8✅ 818s

❌ test/sequential/rolldown.cancel.test.ts

❌ Active Sequencer -> Active -> canceled update -> Can not leave
	TypeError: Cannot read properties of undefined (reading 'toNumber')
❌ GIVEN a slashed sequencer, WHEN slashed it can not provide any update / cancel until the next session ( if gets elected )
	TypeError: Cannot read properties of undefined (reading 'toNumber')
❌ GIVEN a cancel, WHEN is justified then its stored for the batch corresponding to the network
	TypeError: Cannot read properties of undefined (reading 'toNumber')
❌ GIVEN a cancel, WHEN is not justified then its stored for the batch corresponding to the network
	TypeError: Cannot read properties of undefined (reading 'toNumber')

✅ test/sequential/rolldown.forceUpdate.test.ts

✅ forceUpdateL2FromL1 can be called by Sudo
✅ forceUpdateL2FromL1 can't be called by non-sudo user
✅ Validate that forceCancelRequestsFromL1 can be called by Sudo
✅ Validate that forceCancelRequestsFromL1 can't be called by non-sudo user
✅ forceUpdateL2FromL1 does not wait for a dispute period
✅ forceCancelRequest does not need any resolution to justify the cancellation
Seq1 do an update and seq2 cancel it
  ✅ When forceUpdateL2FromL1 and Justified=false then the slashed is the canceler and sequencerStatus is updated accordingly
  ✅ When forceUpdateL2FromL1 and Justified=true then the slashed is the updater and sequencerStatus is updated accordingly

Annotations

Check failure on line 0 in e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml

See this annotation in the file changed.

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

test/sequential/rolldown.cancel.test.ts ► Active Sequencer -> Active -> canceled update -> Can not leave

Failed test found in:
  e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'toNumber')
Raw output
TypeError: Cannot read properties of undefined (reading 'toNumber')
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:38:64
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:8:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml

See this annotation in the file changed.

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

test/sequential/rolldown.cancel.test.ts ► GIVEN a slashed sequencer, WHEN slashed it can not provide any update / cancel until the next session ( if gets elected )

Failed test found in:
  e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'toNumber')
Raw output
TypeError: Cannot read properties of undefined (reading 'toNumber')
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:38:64
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:8:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml

See this annotation in the file changed.

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

test/sequential/rolldown.cancel.test.ts ► GIVEN a cancel, WHEN is justified then its stored for the batch corresponding to the network

Failed test found in:
  e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'toNumber')
Raw output
TypeError: Cannot read properties of undefined (reading 'toNumber')
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:38:64
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:8:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)

Check failure on line 0 in e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml

See this annotation in the file changed.

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

test/sequential/rolldown.cancel.test.ts ► GIVEN a cancel, WHEN is not justified then its stored for the batch corresponding to the network

Failed test found in:
  e2eTests/reports/junit.xml-19a40f90-b3cb-11ef-9c35-5d337c58a4c6.xml
Error:
  TypeError: Cannot read properties of undefined (reading 'toNumber')
Raw output
TypeError: Cannot read properties of undefined (reading 'toNumber')
    at /home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:38:64
    at Generator.next (<anonymous>)
    at fulfilled (/home/runner/_work/mangata-node/mangata-node/e2eTests/test/sequential/rolldown.cancel.test.ts:8:58)
    at processTicksAndRejections (node:internal/process/task_queues:95:5)