Skip to content

Commit c648165

Browse files
[CI] Cleanup the looped sanitizers job a little
Including a "fix" to run it in finite time, instead of counting on GHA's timeout. Thanks to that we can have a status badge, showing if the job is actually green or not. Also, re-name this workflow to 'weekly', to be more generic and open for other jobs.
1 parent 56de506 commit c648165

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.github/scripts/install_oneAPI.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# install_oneAPI.sh - Script for installing Intel oneAPI from the official repository
77

88
apt-get update
9-
apt-get install -y gpg-agent gnupg
9+
apt-get install -y gpg-agent gnupg wget
1010
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor -o /usr/share/keyrings/oneapi-archive-keyring.gpg
1111
echo 'deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main' > /etc/apt/sources.list.d/oneAPI.list
1212
apt-get update

.github/workflows/nightly_looped_sanitizers.yml renamed to .github/workflows/weekly.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
1-
# Check code with looped compilers' sanitizers
2-
# This build lasts 6 hours.
3-
name: Sanitizers - Looped
1+
# Various non-standard tests, requiring e.g. very long runs or just not required to be run very often.
2+
name: Weekly
43

54
# This job is run every Saturday at 01:00 UTC or on demand.
65
on:
@@ -16,8 +15,9 @@ permissions:
1615
contents: read
1716

1817
jobs:
19-
ubuntu-build:
20-
name: Ubuntu
18+
# Check code with looped compilers' sanitizers. With 1000 iterations it should take around 4,5 hours.
19+
sanitizers-looped:
20+
name: Sanitizers looped
2121
strategy:
2222
fail-fast: false
2323
matrix:
@@ -39,12 +39,7 @@ jobs:
3939
4040
- name: Install oneAPI basekit
4141
if: matrix.compiler.cxx == 'icpx'
42-
run: |
43-
sudo apt-get install -y gpg-agent wget
44-
wget -O- https://apt.repos.intel.com/intel-gpg-keys/GPG-PUB-KEY-INTEL-SW-PRODUCTS.PUB | gpg --dearmor | sudo tee /usr/share/keyrings/oneapi-archive-keyring.gpg > /dev/null
45-
echo "deb [signed-by=/usr/share/keyrings/oneapi-archive-keyring.gpg] https://apt.repos.intel.com/oneapi all main" | sudo tee /etc/apt/sources.list.d/oneAPI.list
46-
sudo apt-get update
47-
sudo apt-get install -y intel-oneapi-ippcp-devel intel-oneapi-ipp-devel intel-oneapi-common-oneapi-vars intel-oneapi-compiler-dpcpp-cpp
42+
run: sudo .github/scripts/install_oneAPI.sh
4843

4944
- name: Configure build
5045
run: >
@@ -77,4 +72,4 @@ jobs:
7772
env:
7873
ASAN_OPTIONS: allocator_may_return_null=1
7974
TSAN_OPTIONS: allocator_may_return_null=1
80-
run: while ctest --output-on-failure; do date; done && exit 1
75+
run: for i in {1..1000}; do ctest --output-on-failure || exit 1; date; done

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
[![Coverage](https://gist.githubusercontent.com/bb-ur/3f66c77d7035df39aa75dda8a2ac75b3/raw/umf_coverage_badge.svg)](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/pr_push.yml?query=branch%3Amain)
55
[![GitHubPages](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/docs.yml/badge.svg?branch=main)](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/docs.yml)
66
[![Nightly](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/nightly.yml/badge.svg?branch=main)](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/nightly.yml)
7+
[![Weekly](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/weekly.yml/badge.svg)](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/weekly.yml)
78
[![Coverity build](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/coverity.yml/badge.svg?branch=main)](https://github.com/oneapi-src/unified-memory-framework/actions/workflows/coverity.yml)
89
[![Coverity report](https://scan.coverity.com/projects/29761/badge.svg?flat=0)](https://scan.coverity.com/projects/oneapi-src-unified-memory-framework)
910
[![OpenSSF Scorecard](https://api.securityscorecards.dev/projects/github.com/oneapi-src/unified-memory-framework/badge)](https://securityscorecards.dev/viewer/?uri=github.com/oneapi-src/unified-memory-framework)

0 commit comments

Comments
 (0)