Skip to content

Commit

Permalink
Merge branch 'main' into compile-time-PPP-SSS
Browse files Browse the repository at this point in the history
  • Loading branch information
LuisFelipeCoelho authored Jul 12, 2023
2 parents 27df91f + 9ae9e8b commit 6f8d2a2
Show file tree
Hide file tree
Showing 1,266 changed files with 15,767 additions and 5,636 deletions.
4 changes: 2 additions & 2 deletions .clang-format
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
---
BasedOnStyle: Google
Language: Cpp
AllowShortBlocksOnASingleLine: false
AllowShortBlocksOnASingleLine: Never
AllowShortCaseLabelsOnASingleLine: false
AllowShortFunctionsOnASingleLine: Inline
AllowShortIfStatementsOnASingleLine: false
Expand All @@ -27,5 +27,5 @@ IncludeCategories:
# other system includes: '<...>' without further conditions
- Regex: '^<.*>'
Priority: 3
# all headers not explicitely listed will be assigned to the last group
# all headers not explicitly listed will be assigned to the last group
---
37 changes: 37 additions & 0 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
'Infrastructure':
- .github/**
- CI/**
- cmake/**
'Component - Core':
- Core/**
- Tests/UnitTests/Core/**
'Component - Examples':
- Examples/**
- Tests/UnitTests/Examples/**
'Component - Fatras':
- Fatras/**
- Tests/UnitTests/Fatras/**
'Component - Plugins':
- Plugins/**
- Tests/UnitTests/Plugins/**
'Component - Documentation':
- docs/**
'Changes Performance':
- CI/physmon/reference/**
- Examples/Python/tests/root_file_hashes.txt
'Event Data Model':
- '**/*EventData*/**'
'Clustering':
- '**/*Clusterization*/**'
'SP formation':
- '**/*SpacePointFormation*/**'
'Seeding':
- '**/*Seeding*/**'
'Track Finding':
- '**/*TrackFinding*/**'
'Track Fitting':
- '**/*TrackFitting*/**'
'Vertexing':
- '**/*Vertexing*/**'
'Ambiguity Resolution':
- '**/*AmbiguityResolution*/**'
118 changes: 102 additions & 16 deletions .github/workflows/builds.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-${{ matrix.image }}_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand Down Expand Up @@ -92,6 +93,13 @@ jobs:
- name: ccache stats
run: ${SETUP} && ccache -s

- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}

- name: Unit tests
run: ${SETUP} && cmake --build build --target test

Expand Down Expand Up @@ -138,8 +146,9 @@ jobs:
submodules: true
lfs: true

- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-linux_ubuntu_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand Down Expand Up @@ -176,6 +185,13 @@ jobs:
- name: ccache stats
run: ccache -s

- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}

- name: Unit tests
run: ctest --test-dir build -j$(nproc)

Expand All @@ -185,8 +201,9 @@ jobs:
- name: Install
run: cmake --build build --target install


- name: Package build
run: tar czf build.tar.gz -C build .
run: tar czf build.tar.gz -C build --exclude "*.o" --exclude "bin/ActsUnitTest*" --exclude "bin/ActsIntegrationTest*" .

- uses: actions/upload-artifact@v3
with:
Expand All @@ -212,6 +229,9 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/acts-project/ubuntu2204:v41
needs: [linux_ubuntu]
env:
ACTS_SEQUENCER_DISABLE_FPEMON: true

steps:
- name: Install git lfs
run: apt-get update && apt-get install -y git-lfs
Expand Down Expand Up @@ -252,6 +272,8 @@ jobs:
runs-on: ubuntu-latest
container: ghcr.io/acts-project/ubuntu2204:v41
needs: [linux_ubuntu]
env:
ACTS_SEQUENCER_DISABLE_FPEMON: true

steps:
- name: Install git lfs
Expand Down Expand Up @@ -281,7 +303,7 @@ jobs:
run: >
echo "::group::Dependencies"
&& git config --global safe.directory "$GITHUB_WORKSPACE"
&& pip3 install histcmp==0.5.2
&& pip3 install histcmp==0.6.2 spyral-cli==1.1.0 matplotlib
&& pip3 install -r Examples/Scripts/requirements.txt
&& /usr/local/bin/geant4-config --install-datasets
&& source /usr/local/bin/thisroot.sh
Expand All @@ -299,6 +321,34 @@ jobs:
name: physmon
path: physmon

linux_physmon_perf_report:
needs: [linux_physmon]
runs-on: ubuntu-latest
if: github.ref == 'refs/heads/main'
steps:
- name: Install dependencies
run: pip3 install spyral-cli==1.1.0

- uses: actions/download-artifact@v3
with:
name: physmon
path: physmon

- name: Store metrics
env:
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
run: |
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
ssh-add - <<< "${{ secrets.RUNTIME_METRIC_DEPLOY_SSH_KEY }}"
git config --global user.email "action@github.com"
git config --global user.name "GitHub Action"
git clone git@github.com:acts-project/runtime_metrics.git
spyral maxima runtime_metrics/metrics.csv physmon/memory/*.csv -e $(date +%Y-%m-%dT%H-%M-%S) -e ${GITHUB_REF_NAME} -e ${GITHUB_REF} -e ${GITHUB_SHA}
cd runtime_metrics
git add -A
git commit -m"update metrics"
git push
linux_ubuntu_extra:
runs-on: ubuntu-latest
strategy:
Expand All @@ -323,8 +373,9 @@ jobs:
submodules: true
lfs: true

- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-linux_${{ matrix.image }}_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand Down Expand Up @@ -360,6 +411,13 @@ jobs:
- name: ccache stats
run: ccache -s

- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}

- name: Unit tests
run: cmake --build build --target test

Expand Down Expand Up @@ -411,8 +469,9 @@ jobs:
dnf -y install ninja-build tbb-devel ccache
&& ln -s $(find / -type f -name 'ccache') /usr/local/bin/ccache
- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-linux-nodeps_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand Down Expand Up @@ -441,6 +500,12 @@ jobs:
# the build fails for technical reasons.
- name: ccache stats
run: ccache -s
- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
- name: Unit tests
run: ${SETUP} && cmake --build build --target test
- name: Integration tests
Expand Down Expand Up @@ -504,8 +569,9 @@ jobs:
&& wget --verbose --progress=dot:giga --continue --retry-connrefused --tries=5 --timeout=2 -O deps.tar.gz https://acts.web.cern.ch/ACTS/ci/macOS/deps.67dd08d.tar.gz
&& tar -xf deps.tar.gz -C /usr/local/acts
- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand Down Expand Up @@ -536,6 +602,12 @@ jobs:
run: cmake --build build
- name: ccache stats
run: ccache -s
- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
- name: Unit tests
run: cmake --build build --target test
- name: Integration tests
Expand Down Expand Up @@ -565,8 +637,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-cuda_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand All @@ -588,6 +661,12 @@ jobs:
run: cmake --build build
- name: ccache stats
run: ccache -s
- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}

sycl:
runs-on: ubuntu-latest
Expand All @@ -598,8 +677,9 @@ jobs:
steps:
- uses: actions/checkout@v3

- name: Cache build
uses: actions/cache@v3
- name: Restore ccache
uses: actions/cache/restore@v3
id: ccache-restore
with:
path: ${{ github.workspace }}/ccache
key: ${{ runner.os }}-ccache-sycl_${{ env.CCACHE_KEY_SUFFIX }}_${{ github.sha }}
Expand All @@ -625,3 +705,9 @@ jobs:
&& cmake --build build
- name: ccache stats
run: ccache -s
- name: Save ccache
uses: actions/cache/save@v3
if: always()
with:
path: ${{ github.workspace }}/ccache
key: ${{ steps.ccache-restore.outputs.cache-primary-key }}
22 changes: 22 additions & 0 deletions .github/workflows/checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,25 @@ jobs:
- name: Check
run: >
docs/parse_cmake_options.py CMakeLists.txt --write docs/getting_started.md --verify
spelling:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install codespell
run: >
pip install codespell==2.2.5
- name: Check
run: >
CI/check_spelling
fpe_masks:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- name: Install dependencies
run: >
pip install -r CI/requirements_fpe_masks.txt
- name: Check
run: >
CI/check_fpe_masks.py --token ${{ secrets.GITHUB_TOKEN }}
19 changes: 19 additions & 0 deletions .github/workflows/labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Check PR labels

on:
pull_request_target:
types: [opened, synchronize, reopened, labeled, unlabeled]
branches:
- main

jobs:
check_pr_labels:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- uses: actions/labeler@v4
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
sync-labels: true
dot: true
Loading

0 comments on commit 6f8d2a2

Please sign in to comment.