-
Notifications
You must be signed in to change notification settings - Fork 301
94 lines (85 loc) · 2.93 KB
/
code-coverage-test.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
name: Code Coverage Test
env:
ARTIFACTORY_URL: https://artifactory.dc.hpdd.intel.com/
JENKINS_URL: https://build.hpdd.intel.com/
REPO_FILE_URL: https://artifactory.dc.hpdd.intel.com/artifactory/repo-files/
DAOS_EMAIL: [email protected]
DAOS_FULLNAME: daos-stack
DISTRO_REPOS: disabled
DOCKER_BUILDKIT: 0
ARTIFACTS_URL: file:///scratch/job_repos/
MOCK_OPTIONS: --uniqueext=${{ github.run_id }}
PR_NUM: ${{ github.event.pull_request.number }}
# TODO -- this should be on stable, backed up storage, not /scratch
# yamllint disable-line rule:line-length
REPO_PATH: /scratch/job_repos/daos-stack/job/daos/job/PR-${{ github.event.pull_request.number }}/
# TODO: we really need to define a list of supported versions (ideally it's no more than 2)
# build is done on the lowest version and test on the highest with a "sanity test"
# stage done on all versions in the list except the highest
EL8_BUILD_VERSION: 8.6
EL8_VERSION: 8.8
EL9_BUILD_VERSION: 9
EL9_VERSION: 9
LEAP15_VERSION: 15.5
on:
pull_request: # Remove after testing
schedule:
- cron: "0 0 * * 6" # Every Saturday
concurrency:
group: code-coverage-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
defaults:
run:
shell: bash --noprofile --norc -ueo pipefail {0}
permissions: {}
jobs:
build-rpms:
name: Bullseye Build RPMs
runs-on: [self-hosted, docker]
permissions:
statuses: write
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Build RPMs
uses: ./.github/actions/build-rpm
with:
distro: el8
version: ${{ env.EL8_VERSION }}
build_version: ${{ env.EL8_BUILD_VERSION }}
covfn_disabled: false
repo_file_url: ${{ env.REPO_FILE_URL }}
jenkins_url: ${{ env.JENKINS_URL }}
daos_full_name: ${{ env.DAOS_FULLNAME }}
daos_email: ${{ env.DAOS_EMAIL }}
artifactory_url: ${{ env.ARTIFACTORY_URL }}
repo_path: ${{ env.REPO_PATH }}
functional-test:
name: Bullseye Functional Test
runs-on: [self-hosted, wolf]
permissions:
statuses: write
# https://github.com/EnricoMi/publish-unit-test-result-action#permissions
checks: write
pull-requests: write
timeout-minutes: 7200
needs: [build-rpms]
if: |
(!cancelled()) &&
(needs.build-rpms.result == 'success' ||
needs.build-rpms.result == 'skipped')
steps:
- name: Checkout code
uses: actions/[email protected]
- name: Run function test
timeout-minutes: 2880
uses: ./.github/actions/functional-test
with:
distro: el8
version: ${{ env.EL8_VERSION }}
build_version: ${{ env.EL8_BUILD_VERSION }}
cluster_label: ci_vm9
tags: test_one_pool_vm
jenkins_url: ${{ env.JENKINS_URL }}
secrets:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"