Skip to content

Commit

Permalink
Final polish
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturWieczorek committed Oct 16, 2024
1 parent fb3777e commit 88ee0a3
Show file tree
Hide file tree
Showing 4 changed files with 40 additions and 8 deletions.
4 changes: 2 additions & 2 deletions .buildkite/node_sync_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@ steps:
- label: 'run the cardano node sync test on Mainnet using a Linux machine'
commands:
- './.buildkite/node_sync_tests.sh $env $build_mode $node_rev1 $node_rev2 $tag_no1 $tag_no2 $node_topology1 $node_topology2 $node_start_arguments1 $node_start_arguments2'
timeout_in_minutes: 5000
timeout_in_minutes: 3000
agents:
system: x86_64-linux
queue: core-tech-bench
artifact_paths:
- 'logfile.log'
- 'logfile_copy.log'
- 'node.log'
- 'sync_results.json'
2 changes: 0 additions & 2 deletions .github/workflows/cabal.project.local.ci

This file was deleted.

40 changes: 37 additions & 3 deletions .github/workflows/node_sync_test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,40 @@ on:
default: "None"

jobs:
node_sync_test_buildkite_mainnet:
runs-on: ubuntu-latest
steps:
- name: trigger the Buildkite pipeline - run sync tests on Mainnet
uses: 'buildkite/[email protected]'
env:
BUILDKITE_API_ACCESS_TOKEN: ${{ secrets.BUILDKITE_API_ACCESS_TOKEN }}
PIPELINE: 'input-output-hk/qa-sync-tests'
BRANCH: 'artur/add_rss_ram'
MESSAGE: ':github: Triggered by GitHub Action'
AWS_DB_USERNAME: ${{ secrets.AWS_DB_USERNAME }}
AWS_DB_PASS: ${{ secrets.AWS_DB_PASS }}
AWS_DB_NAME: ${{ secrets.AWS_DB_NAME }}
AWS_DB_HOSTNAME: ${{ secrets.AWS_DB_HOSTNAME }}
BLOCKFROST_API_KEY: ${{ secrets.BLOCKFROST_API_KEY }}
BUILD_ENV_VARS: '{
"env":"${{ github.event.inputs.environment }}",
"build_mode":"${{ github.event.inputs.build_mode }}",
"node_rev1":"${{ github.event.inputs.node_rev1 }}",
"node_rev2":"${{ github.event.inputs.node_rev2 }}",
"tag_no1":"${{ github.event.inputs.tag_no1 }}",
"tag_no2":"${{ github.event.inputs.tag_no2 }}",
"node_topology1":"${{ github.event.inputs.node_topology1 }}",
"node_topology2":"${{ github.event.inputs.node_topology2 }}",
"node_start_arguments1":"${{ github.event.inputs.node_start_arguments1 }}",
"node_start_arguments2":"${{ github.event.inputs.node_start_arguments2 }}",
"BLOCKFROST_API_KEY":"${{ secrets.BLOCKFROST_API_KEY }}",
"AWS_DB_USERNAME":"${{ secrets.AWS_DB_USERNAME }}",
"AWS_DB_PASS":"${{ secrets.AWS_DB_PASS }}",
"AWS_DB_NAME":"${{ secrets.AWS_DB_NAME }}",
"AWS_DB_HOSTNAME":"${{ secrets.AWS_DB_HOSTNAME }}"
}'

node_sync_test:
strategy:
matrix:
Expand Down Expand Up @@ -161,11 +195,11 @@ jobs:
python sync_tests/node_write_sync_values_to_db.py -e ${{ matrix.env }}
- name: Prepare logs
- name: Prepare node logs
if: always()
run: |
cd cardano_node_tests
cp logfile.log logfile_copy.log
cp logfile.log node.log
- name: Generate artifacts
Expand All @@ -174,7 +208,7 @@ jobs:
with:
name: node_logs_${{ matrix.env }}_${{ matrix.sys.os }}
path: |
cardano_node_tests/logfile_copy.log
cardano_node_tests/node.log
cardano_node_tests/sync_results.json
cardano_node_tests/config.json
cardano_node_tests/topology.json
2 changes: 1 addition & 1 deletion sync_tests/node_sync_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
CLI = './cardano-cli'
ROOT_TEST_PATH = ''
NODE_LOG_FILE = 'logfile.log'
NODE_LOG_FILE_ARTIFACT = 'logfile_copy.log'
NODE_LOG_FILE_ARTIFACT = 'node.log'
RESULTS_FILE_NAME = r'sync_results.json'
ONE_MINUTE = 60

Expand Down

0 comments on commit 88ee0a3

Please sign in to comment.