Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add initial nightly test workflow #2873

Merged
merged 2 commits into from
Jan 31, 2025
Merged
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
71 changes: 71 additions & 0 deletions .github/workflows/nightly_test_manual.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: NightlyTestManual

# This workflow can only be dispatched.
on:
workflow_dispatch:

# We want to cancel previous runs for a given PR or branch / ref if another CI
# run is requested.
# See: https://docs.github.com/en/actions/using-jobs/using-concurrency
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true

env:
# default compiler for all non-compatibility tests
MATRIX_EVAL: "CC=gcc-13 && CXX=g++-13"

jobs:
Run-tests:
# Prevents from running on forks where no custom runners are available
if: ${{ github.repository_owner == 'verilog-to-routing' }}

name: 'Nightly Tests Manual Run'
# This workflow is expected to take around 19 hours. Giving it 24 hours
# before timing out.
timeout-minutes: 1440
runs-on: [self-hosted, Linux, X64, SAVI]

steps:
# Clean previous runs of this workflow.
- name: 'Cleanup build folder'
run: |
rm -rf ./* || true
rm -rf ./.??* || true

# Checkout the VTR repo.
- uses: actions/checkout@v4
with:
submodules: 'true'

# Get the extra benchmarks
- name: 'Get Extra Benchmarks'
run: |
make get_titan_benchmarks
make get_ispd_benchmarks
./dev/upgrade_vtr_archs.sh
make get_symbiflow_benchmarks

# Build VTR using the default build options.
- name: 'Build VTR'
run: |
make -j12
make env
source .venv/bin/activate
pip install -r requirements.txt

# Run all of the nightly tests.
# TODO: We could expose more parallelism if we had one task list which ran
# all of these.
- name: 'Run Nightly Tests'
run: |
source .venv/bin/activate
./run_reg_test.py -j12 \
vtr_reg_nightly_test1 \
vtr_reg_nightly_test2 \
vtr_reg_nightly_test3 \
vtr_reg_nightly_test4 \
vtr_reg_nightly_test5 \
vtr_reg_nightly_test6 \
vtr_reg_nightly_test7