Skip to content

Commit

Permalink
Faster CI and reachability checks for codecov.io (#1213)
Browse files Browse the repository at this point in the history
  • Loading branch information
tbennun committed Mar 12, 2023
1 parent baccbb1 commit b20b850
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 6 deletions.
8 changes: 7 additions & 1 deletion .github/workflows/fpga-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,11 @@ jobs:
faketime -f "@2021-01-01 00:00:00" pytest -n auto --cov-report=xml --cov=dace --tb=short -m "fpga"
coverage report
coverage xml
codecov
reachable=0
ping -W 2 -c 1 codecov.io || reachable=$?
if [ $reachable -eq 0 ]; then
codecov
else
echo "Codecov.io is unreachable"
fi
killall -9 xsim xsimk || true
9 changes: 7 additions & 2 deletions .github/workflows/gpu-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
export DACE_cache=single
. /opt/setupenv
pytest --cov-report=xml --cov=dace --tb=short -m "gpu"
codecov
- name: Run extra GPU tests
run: |
Expand All @@ -50,4 +49,10 @@ jobs:
export COVERAGE_RCFILE=`pwd`/.coveragerc
. /opt/setupenv
coverage combine . */; coverage report; coverage xml
codecov
reachable=0
ping -W 2 -c 1 codecov.io || reachable=$?
if [ $reachable -eq 0 ]; then
codecov
else
echo "Codecov.io is unreachable"
fi
11 changes: 8 additions & 3 deletions .github/workflows/heterogeneous-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,6 @@ jobs:
export DACE_cache=unique
. /opt/setupenv
pytest -n auto --cov-report=xml --cov=dace --tb=short -m "verilator or mkl or papi"
codecov
- name: Run MPI tests
run: |
Expand All @@ -61,7 +60,7 @@ jobs:
export DACE_testing_deserialize_exception=1
export DACE_cache=unique
export DACE_library_pblas_default_implementation=ReferenceOpenMPI
for i in {1..8}
for i in {1..4}
do
mpirun -n "$i" --oversubscribe coverage run --source=dace --parallel-mode -m pytest -x --with-mpi --tb=short -m "scalapack"
done
Expand All @@ -71,4 +70,10 @@ jobs:
export COVERAGE_RCFILE=`pwd`/.coveragerc
. /opt/setupenv
coverage combine . */; coverage report; coverage xml
codecov
reachable=0
ping -W 2 -c 1 codecov.io || reachable=$?
if [ $reachable -eq 0 ]; then
codecov
else
echo "Codecov.io is unreachable"
fi

0 comments on commit b20b850

Please sign in to comment.