Skip to content

chg: [tracker regex] improve perf #734

chg: [tracker regex] improve perf

chg: [tracker regex] improve perf #734

# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the action will run.
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master, dev ]
pull_request:
branches: [ master, dev ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
ail_test:
# The type of runner that the job will run on
runs-on: ubuntu-latest
# TODO: Matrix strategy for Python versions is defined but never used.
# Currently all jobs use the same system Python, making this redundant.
# Either add 'actions/setup-python' to use matrix.python-version, or remove the matrix.
#
# To enable multi-version Python testing:
#
# Step 1: Uncomment the matrix below (defines the Python versions to test):
# strategy:
# matrix:
# python-version: ['3.7', '3.8', '3.9', '3.10']
#
# Step 2: Add this step after checkout (before "Free up disk space"):
# - name: Set up Python ${{ matrix.python-version }}
# uses: actions/setup-python@v4
# with:
# python-version: ${{ matrix.python-version }}
#
# ORIGINAL (commented out - not used, makes tests 4x slower with no benefit):
# strategy:
# matrix:
# python-version: ['3.7', '3.8', '3.9', '3.10']
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v3
with:
submodules: 'recursive'
fetch-depth: 500
# ---------------------------------------------
# NEW STEP: clean up disk BEFORE installing deps
# ---------------------------------------------
- name: Free up disk space
run: |
echo "Disk usage BEFORE cleanup:"
df -h
# Safe: Clear APT cache and lists (can be regenerated)
sudo apt-get clean
sudo rm -rf /var/lib/apt/lists/*
# Probably safe: Remove tools AIL doesn't need (check if exist first)
[ -d /usr/share/dotnet ] && sudo rm -rf /usr/share/dotnet || true
[ -d /opt/ghc ] && sudo rm -rf /opt/ghc || true
[ -d /usr/local/lib/android ] && sudo rm -rf /usr/local/lib/android || true
# Risky but needed: Remove hosted tool cache (contains Python, Node, etc.)
# AIL workflow uses system Python, so this should be safe
[ -d /opt/hostedtoolcache ] && sudo rm -rf /opt/hostedtoolcache || true
echo "Disk usage AFTER cleanup:"
df -h
# ---------------------------------------------
# Runs a single command using the runners shell
- name: Install AIL
run: bash installing_deps.sh
# Runs a set of commands using the runners shell
- name: Launch AIL
run: |
pushd bin
bash LAUNCH.sh -l
popd
# Runs a set of commands using the runners shell
- name: Run tests
run: |
pushd bin
bash LAUNCH.sh -t