Skip to content

dashmate e2e tests are failing due to DKG interval check #2170

@shumkov

Description

@shumkov

Expected Behavior

Dashmate e2e tests shouldn't fail due to DKG interval check in the restart/stop commands.

Current Behavior

      ✔ should start local network (274598ms)
    restart
[STARTED] Task without title.
[STARTED] Check node is running
[SUCCESS] Check node is running
[STARTED] Check node is participating in DKG
[FAILED] Your node is currently participating in DKG exchange session and stopping it right now may result in PoSE ban. Try again later, or continue with --force or --safe flags
[FAILED] Your node is currently participating in DKG exchange session and stopping it right now may result in PoSE ban. Try again later, or continue with --force or --safe flags
      1) should restart local network


  2 passing (6m)
  1 failing

  1) Local Network
       restart
         should restart local network:
     Error: Your node is currently participating in DKG exchange session and stopping it right now may result in PoSE ban. Try again later, or continue with --force or --safe flags
      at Task.task (file:///home/ubuntu/actions-runner/_work/platform/platform/packages/dashmate/src/listr/tasks/stopNodeTaskFactory.js:55:19)
      at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
      at async Task.run (file:///home/ubuntu/actions-runner/_work/platform/platform/.yarn/__virtual__/listr2-virtual-11e98e34b3/0/cache/listr2-npm-5.0.7-f7d9c71212-ec2732a45c.zip/node_modules/listr2/dist/index.js:935:11)
      at async /home/ubuntu/actions-runner/_work/platform/platform/.yarn/cache/p-map-npm-4.0.0-4677ae07c7-7ba4a2b1e2.zip/node_modules/p-map/index.js:57:22

Possible Solution

Pass the --safe flag to wait until DKG interval is finished instead of throwing errors.

Steps to Reproduce (for bugs)

Run dashmate e2e tests multiple times until you see this problem.

Context

This issue breaks CI so you waste your and self-hosted runners time

Your Environment

  • Version used: 1.4.0
  • Environment name and version (e.g. Chrome 39, node.js 5.4): Github Actions runner
  • Operating System and version (desktop, server, or mobile):
  • Link to your project:

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions