-
Notifications
You must be signed in to change notification settings - Fork 4.1k
83 lines (83 loc) · 3.15 KB
/
Copy pathgithub-actions-extended-ci.yml
File metadata and controls
83 lines (83 loc) · 3.15 KB
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
name: GitHub Actions Extended CI
on:
pull_request:
types: [opened, ready_for_review, reopened, synchronize]
branches:
- "master"
- "release-*"
- "staging-*"
- "!release-1.0*"
- "!release-1.1*"
- "!release-2.0*"
- "!release-2.1*"
- "!release-19.1*"
- "!release-19.2*"
- "!release-20.1*"
- "!release-20.2*"
- "!release-21.1*"
- "!release-21.2*"
- "!release-22.1*"
- "!release-22.2*"
- "!release-23.1*"
- "!release-23.2*"
- "!staging-v22.2*"
- "!staging-v23.1*"
- "!staging-v23.2*"
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
maybe_stress:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, ubuntu_2404]
timeout-minutes: 180
steps:
- name: calculate commit depth
run: echo COMMIT_DEPTH=$(echo '${{ github.event.pull_request.commits }} + 1' | bc) >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
fetch-depth: ${{ env.COMMIT_DEPTH }}
- name: Fetch the base commit
run: git fetch origin ${{ github.event.pull_request.base.sha }} --depth 100
- name: compute metadata
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
- run: ./build/github/get-engflow-keys.sh
- run: ./build/github/prepare-summarize-build.sh
- name: run tests
run: ./build/github/maybe-stress.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()
maybe_stressrace:
if: github.event.pull_request.draft == false
runs-on: [self-hosted, ubuntu_2404]
timeout-minutes: 180
steps:
- name: calculate commit depth
run: echo COMMIT_DEPTH=$(echo '${{ github.event.pull_request.commits }} + 1' | bc) >> "$GITHUB_ENV"
- uses: actions/checkout@v4
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
fetch-depth: ${{ env.COMMIT_DEPTH }}
- name: Fetch the base commit
run: git fetch origin ${{ github.event.pull_request.base.sha }} --depth 100
- name: compute metadata
run: echo GITHUB_ACTIONS_BRANCH=${{ github.event.pull_request.number || github.ref_name}} >> "$GITHUB_ENV"
- run: ./build/github/get-engflow-keys.sh
- run: ./build/github/prepare-summarize-build.sh
- name: run tests
run: ./build/github/maybe-stressrace.sh ${{ github.event.pull_request.base.sha }} ${{ github.event.pull_request.head.sha }}
- name: upload build results
run: ./build/github/summarize-build.sh bes.bin
if: always()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: clean up
run: ./build/github/cleanup-engflow-keys.sh
if: always()