-
Notifications
You must be signed in to change notification settings - Fork 789
131 lines (123 loc) · 5.77 KB
/
main.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
# This is a basic workflow to help you get started with Actions
name: CI
# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the master branch
push:
branches: [ master ]
paths:
- '.github/workflows/**'
- 'bin/Powheg/**'
- '!**/*.input'
- 'bin/utils/**'
pull_request:
branches: [ master ]
paths:
- '.github/workflows/**'
- 'bin/Powheg/**'
- '!**/*.input'
- 'bin/utils/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# 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"
powheg:
strategy:
matrix:
proc: [hvq]
cmssw_release: [CMSSW_10_6_30, CMSSW_11_0_1, CMSSW_12_3_1, CMSSW_13_0_13, CMSSW_13_3_0]
include:
- cmssw_release: CMSSW_10_6_30
scram_arch: slc7_amd64_gcc700
os: cc7
- cmssw_release: CMSSW_11_0_1
scram_arch: slc7_amd64_gcc820
os: cc7
- cmssw_release: CMSSW_12_3_1
scram_arch: slc7_amd64_gcc10
os: cc7
- cmssw_release: CMSSW_13_0_13
scram_arch: el8_amd64_gcc11
os: el8
- cmssw_release: CMSSW_13_3_0
scram_arch: el8_amd64_gcc12
os: el8
fail-fast: false
# The type of runner that the job will run on
runs-on: [self-hosted, linux, x64]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Cleanup build folder
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
powheg1:
- 'bin/Powheg/**'
workflow:
- '.github/workflows/**'
- name: Build gridpack
if: steps.filter.outputs.powheg1 == 'true' || steps.filter.outputs.workflow == 'true'
uses: nick-fields/retry@v3
with:
max_attempts: 5
timeout_minutes: 60
retry_on_exit_code: 111 # failed CMSSW setup, likely due to cvmfs connectivity
command: /cvmfs/cms.cern.ch/common/cmssw-${{ matrix.os }} -- bash bin/Powheg/test/test_build.sh -r ${{ matrix.cmssw_release }} -a ${{ matrix.scram_arch }} -p ${{ matrix.proc }}
- name: Check pwg-stat.dat
if: steps.filter.outputs.powheg1 == 'true' || steps.filter.outputs.workflow == 'true'
run: git diff --exit-code bin/Powheg/test/pwg-stat.dat.${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }}
- name: Create Pull Request
uses: peter-evans/create-pull-request@v6
with:
commit-message: Automated addition ${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }}
branch: create-pull-request/${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }}
delete-branch: true
base: master
title: Automated addition ${{ matrix.proc }}_${{ matrix.scram_arch }}_${{ matrix.cmssw_release }}
body: |
Automated addition by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action.
Please review the cross section file carefully!
#############################################################
req_check_script:
# The type of runner that the job will run on
runs-on: [self-hosted, linux, x64]
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Cleanup build folder
run: |
ls -la ./
rm -rf ./* || true
rm -rf ./.??* || true
ls -la ./
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4
- uses: dorny/paths-filter@v3
id: filter
with:
filters: |
bin:
- 'bin/utils/**'
workflow:
- '.github/workflows/**'
- name: Run the request checking script on local mcm requests
#shell: python#
if: steps.filter.outputs.bin == 'true' || steps.filter.outputs.workflow == 'true'
run: |
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid SUS-RunIISummer20UL16wmLHEGEN-00768
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid EXO-Run3Summer22wmLHEGS-01444
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid B2G-RunIISummer20UL18wmLHEGEN-03308
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid GEN-Run3Summer22EEwmLHEGS-00403
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid TRK-Run3Summer23wmLHEGS-00002
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid TSG-Run3Summer23BPixGS-00007
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid TOP-RunIISummer20UL16wmLHEGEN-00883
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid BPH-Run3Winter24GS-00001
python3 bin/utils/request_fragment_check.py --bypass_status --develop --bypass_runcmsgrid_patch --local --prepid GEN-RunIII2024Summer24wmLHEGS-00001