Skip to content

Add chaos testing for peer gateway into the fabric-test builds #354

@davidkel

Description

@davidkel

Code base

  • add operator based network
  • add chaos chaincode from fabric-chaos testing into chaincodes/chaos/node
  • add chaos client (don't forget the lint dot file) from fabric-chaos-testing into tools/chaos/client/node
  • add chaos engine (don't forget the lint dot file and sample scenarios) from fabric-chaos-testing into tools/chaos/engine

Integration

  • build task to run chaos killing non gateway peers (this could fail occasionally) - see requirements later for this : PR AVAILABLE
  • build task to run complete chaos and ensure client can still recover - see requirements later for this
  • tune the tasks to the build environment they will run in when adding to the CI pipeline

Misc

  • task to do a smoke test of chaos engine when PR submitted
  • provide a readme to document the chaos environment and how to use standalone

For each build task you will need to

  • update Makefile to to build chaos chaincode, chaos client, chaos engine (on time only)
  • create a directory in regression
  • add in an appropriate suite_test.go + test.go files (+go.mod, go.sum)
  • create a chaos launcher script (based on coord.sh) to manage syncing the client and chaos engine
  • add a scenarios directory with the required scenarios for that build task
  • add a .env file which configures the client and is appropriate for that task (probably require tuning)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions