-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added: - run e2e tests workflow changed: - use 0.8 slot coeff in MC
- Loading branch information
Showing
5 changed files
with
182 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: 'Run e2e tests' | ||
description: 'Activate python venv and run e2e tests' | ||
|
||
inputs: | ||
env: | ||
description: 'Test environment' | ||
required: true | ||
keyword: | ||
description: 'Run tests by keyword (-k)' | ||
required: false | ||
default: 'test_' | ||
markers: | ||
description: 'Run tests by markers (-m)' | ||
required: false | ||
default: 'not active_flow and not passive_flow and not probability' | ||
mc_epoch: | ||
description: 'MC epoch to test (committee tests)' | ||
required: false | ||
log_level: | ||
description: 'Log CLI level' | ||
required: false | ||
default: 'info' | ||
init_timestamp: | ||
description: 'MC initialization timestamp in seconds' | ||
required: false | ||
default: '0' | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Run tests | ||
shell: bash | ||
run: | | ||
if [ -n "${{ inputs.mc_epoch }}" ]; then | ||
mc_epoch_switch="--mc-epoch ${{ inputs.mc_epoch }}" | ||
fi | ||
cd e2e-tests | ||
source venv/bin/activate | ||
pytest --blockchain substrate \ | ||
--env ${{ inputs.env }} \ | ||
--stack ${{ inputs.env }} \ | ||
--log-cli-level ${{ inputs.log_level }} \ | ||
-k "${{ inputs.keyword }}" \ | ||
-m "${{ inputs.markers }}" \ | ||
--init-timestamp ${{ inputs.init_timestamp }} \ | ||
$mc_epoch_switch \ | ||
--decrypt \ | ||
--json-report \ | ||
--json-report-summary \ | ||
--junitxml=junit_report.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
name: 'Wait for epoch' | ||
description: 'Wait for epoch in local environment' | ||
|
||
inputs: | ||
epoch: | ||
description: 'Expected epoch' | ||
required: true | ||
|
||
runs: | ||
using: composite | ||
steps: | ||
- name: Wait for epoch | ||
shell: bash | ||
run: | | ||
epoch=$(docker exec cardano-node-1 cardano-cli query tip --testnet-magic 42 | jq -r .epoch) | ||
while [ $epoch -lt ${{ inputs.epoch }} ]; do \ | ||
echo "Epoch: $epoch" && \ | ||
sleep 10 && \ | ||
epoch=$(docker exec cardano-node-1 cardano-cli query tip --testnet-magic 42 | jq -r .epoch); \ | ||
done | ||
echo "Epoch: $epoch" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
dev/local-environment/configurations/genesis/shelley/genesis.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters