Skip to content
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 3 additions & 14 deletions src/test/github-positive-scenario.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,24 +56,13 @@ const commandsDataProvider: CommandDataProviderItem[] = [
},
{
suitName: "[bench-bot] command",
commandLine: "testbot bench polkadot-pallet --runtime=kusama --pallet=pallet_referenda",
commandLine: "testbot bench polkadot-pallet --runtime=westend --pallet=pallet_referenda",
taskId: 3,
expected: {
startMessage:
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=runtime --runtime=kusama --target_dir=polkadot --pallet=pallet_referenda". This comment will be updated later.',
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=westend --target_dir=polkadot --pallet=pallet_referenda". This comment will be updated later.',
finishMessage:
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=runtime --runtime=kusama --target_dir=polkadot --pallet=pallet_referenda` has finished.',
},
},
{
suitName: "[try-runtime] command",
commandLine: "testbot try-runtime -v RUST_LOG=remote-ext=debug,runtime=trace --chain=kusama",
taskId: 4,
expected: {
startMessage:
'Preparing command ""$PIPELINE_SCRIPTS_DIR/commands/try-runtime/try-runtime.sh" --chain=kusama --target_path=. --chain_node=polkadot',
finishMessage:
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/try-runtime/try-runtime.sh" --chain=kusama --target_path=. --chain_node=polkadot` has finished. Result: https://example.com/foo/bar/-/jobs/6 has finished. If any artifacts were generated, you can download them from https://example.com/foo/bar/-/jobs/6/artifacts/download.',
'@somedev123 Command `"$PIPELINE_SCRIPTS_DIR/commands/bench/bench.sh" --subcommand=pallet --runtime=westend --target_dir=polkadot --pallet=pallet_referenda` has finished.',
},
},
];
Expand Down
2 changes: 1 addition & 1 deletion src/test/setup/bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ function getBotEnv(
DATA_PATH: path.join(process.cwd(), "data"),

PIPELINE_SCRIPTS_REPOSITORY: "https://github.com/paritytech/command-bot-scripts",
PIPELINE_SCRIPTS_REF: "monorepo",
PIPELINE_SCRIPTS_REF: "main",

PRIVATE_KEY_BASE64: readFileSync(path.join(process.cwd(), "src", "test", "testing-app.txt"), "base64"),

Expand Down