Skip to content

Commit

Permalink
use runs-on for fullnode-sync workflows (#15004)
Browse files Browse the repository at this point in the history
  • Loading branch information
aluon authored Nov 12, 2024
1 parent d62c850 commit 0aaa3c6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
5 changes: 0 additions & 5 deletions .github/actions/fullnode-sync/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,6 @@ inputs:
runs:
using: composite
steps:
- name: Install Dependencies
shell: bash
run: |
echo "${HOME}/bin/" >> $GITHUB_PATH # default INSTALL_DIR to path
scripts/dev_setup.sh -b # Install dependencies
- name: Run fullnode sync
shell: bash
run: |
Expand Down
12 changes: 6 additions & 6 deletions .github/workflows/run-fullnode-sync.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ on:

jobs:
fullnode-sync:
runs-on: medium-perf-docker-with-local-ssd
runs-on: runs-on,family=c5ad.8xlarge,image=aptos-ubuntu-x64,run-id=${{ github.run_id }},spot=false
timeout-minutes: ${{ inputs.TIMEOUT_MINUTES || 300 }} # the default run is 300 minutes (5 hours). Specified here because workflow_dispatch uses string rather than number
steps:
- uses: actions/checkout@v4
Expand All @@ -68,17 +68,17 @@ jobs:
NETWORK: ${{ inputs.NETWORK }}
BOOTSTRAPPING_MODE: ${{ inputs.BOOTSTRAPPING_MODE }}
CONTINUOUS_SYNCING_MODE: ${{ inputs.CONTINUOUS_SYNCING_MODE }}
DATA_DIR_FILE_PATH: /tmp/
NODE_LOG_FILE_PATH: /tmp/node_log
METRICS_DUMP_FILE_PATH: /tmp/metrics
DATA_DIR_FILE_PATH: ${{ runner.temp }}/
NODE_LOG_FILE_PATH: ${{ runner.temp }}/node_log
METRICS_DUMP_FILE_PATH: ${{ runner.temp }}/metrics

- name: Upload node logs as an artifact
uses: actions/upload-artifact@v4
if: ${{ always() }}
with:
name: node_log
path: |
/tmp/node_log
${{ runner.temp }}/node_log
retention-days: 14

- name: Upload the metrics dump as an artifact
Expand All @@ -87,7 +87,7 @@ jobs:
with:
name: metrics
path: |
/tmp/metrics
${{ runner.temp }}/metrics
retention-days: 14

- name: Post to a Slack channel on failure
Expand Down

0 comments on commit 0aaa3c6

Please sign in to comment.