Skip to content

Bot trigger #45

@xlc

Description

@xlc

Use this issue to trigger action bot.

Format

The comment body should follow the following format:

/bot [CMD] [ARGS...]
ENV1=VAL1
ENV2=VAL2

Commands

Run test

  • Command: run
  • Argument: a name to filter which test to run, or empty to run all tests

Use this to trigger a test run with optionally different environment variables.

e.g.

  • Run all tests: /bot run
  • Run acala related tests:/bot run acala
  • Run acala related tests with a specific block number:
/bot run acala
LOG_LEVEL=info
RUNTIME_LOG_LEVEL=5
ACALA_BLOCK_NUMBER=6975060

Bump snapshot

  • Command: bump
  • Argument: None

Use this command to create a new PR with new snapshots.
This is needed when valid snapshot changed (e.g. a runtime upgrade is enacted and changed fees and weights).

Environment Variables

Environment variables can be specified for run command to customize test behavior.

  • RUNTIME_LOG_LEVEL: log level for the runtime. 5 for error, 4 for warn, 3 for info, 2 for debug, 1 for trace. Default is 0. Note: LOG_LEVEL must be info or more verbose for this to work.
  • LOG_LEVEL: log level for Chopstick. Note, use yarn vitest instead of yarn test to see logs. Options are error, warn, info, debug, trace. Default is error.
  • $(NETWORK_NAME)_BLOCK_NUMBER: set block number for the chain.
  • $(NETWORK_NAME)_WASM: URL to the chain wasm file.
  • $(NETWORK_NAME)_ENDPOINT: endpoint of the chain.

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