-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move fast tests (kernel and internal tests) to sequential execution t…
…o speedup CI
- Loading branch information
1 parent
63977b0
commit 42f65b5
Showing
8 changed files
with
434 additions
and
315 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
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,61 @@ | ||
name: TestRunnerTiledSiracusaSequential | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tests-config: | ||
required: true | ||
type: string | ||
num-cores: | ||
required: false | ||
default: 8 | ||
type: number | ||
default-memory-level: | ||
required: false | ||
default: "L2" | ||
type: string | ||
double-buffer: | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
|
||
test-runner-siracusa-tiled: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ghcr.io/victor-jung/deeploy:main | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build Deeploy | ||
run: pip install -e . | ||
- name: Install jq | ||
run: apt-get install -y jq | ||
- name: Cache ccache | ||
id: ccache-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /app/.ccache | ||
key: ${{ runner.os }}-ccache | ||
- name: Run Tests | ||
run: | | ||
cd DeeployTest | ||
echo '${{ inputs.tests-config }}' > tests.json | ||
mkdir -p /app/.ccache | ||
export CCACHE_DIR=/app/.ccache | ||
source /app/install/pulp-sdk/configs/siracusa.sh | ||
jq -c '.[]' tests.json | while read test; do | ||
testName=$(echo "$test" | jq -r '.name') | ||
L1_values=$(echo "$test" | jq -r '.L1[]') | ||
for L1_value in $L1_values; do | ||
echo "Running test: $testName with L1: $L1_value" | ||
python testRunner_tiled_siracusa.py -t Tests/$testName --cores=${{ inputs.num-cores }} --l1 $L1_value --defaultMemLevel=${{ inputs.default-memory-level }} ${{ inputs.double-buffer && '--doublebuffer' || '' }} | ||
done | ||
done | ||
shell: bash | ||
|
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
65 changes: 65 additions & 0 deletions
65
.github/workflows/TestRunnerTiledSiracusaWithNeurekaSequential.yml
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,65 @@ | ||
name: TestRunnerTiledSiracusaWithNeurekaSequential | ||
|
||
on: | ||
workflow_call: | ||
inputs: | ||
tests-config: | ||
required: true | ||
type: string | ||
num-cores: | ||
required: false | ||
default: 8 | ||
type: number | ||
default-memory-level: | ||
required: false | ||
default: "L2" | ||
type: string | ||
double-buffer: | ||
required: false | ||
default: false | ||
type: boolean | ||
neureka-wmem: | ||
required: false | ||
default: false | ||
type: boolean | ||
|
||
jobs: | ||
|
||
test-runner-siracusa-neureka-tiled: | ||
runs-on: ubuntu-22.04 | ||
container: | ||
image: ghcr.io/victor-jung/deeploy:main | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v4 | ||
with: | ||
submodules: recursive | ||
- name: Build Deeploy | ||
run: pip install -e . | ||
- name: Install jq | ||
run: apt-get install -y jq | ||
- name: Cache ccache | ||
id: ccache-cache | ||
uses: actions/cache@v4 | ||
with: | ||
path: /app/.ccache | ||
key: ${{ runner.os }}-ccache | ||
- name: Run Tests | ||
run: | | ||
cd DeeployTest | ||
echo '${{ inputs.tests-config }}' > tests.json | ||
mkdir -p /app/.ccache | ||
export CCACHE_DIR=/app/.ccache | ||
source /app/install/pulp-sdk/configs/siracusa.sh | ||
jq -c '.[]' tests.json | while read test; do | ||
testName=$(echo "$test" | jq -r '.name') | ||
L1_values=$(echo "$test" | jq -r '.L1[]') | ||
for L1_value in $L1_values; do | ||
echo "Running test: $testName with L1: $L1_value" | ||
python testRunner_tiled_siracusa_w_neureka.py -t Tests/$testName --cores=${{ inputs.num-cores }} --l1 $L1_value --defaultMemLevel=${{ inputs.default-memory-level }} ${{ inputs.double-buffer && '--doublebuffer' || '' }} ${{ inputs.neureka-wmem && '--neureka-wmem' || '' }} | ||
done | ||
done | ||
shell: bash | ||
|