aboutsummaryrefslogtreecommitdiff
path: root/tcwg_kernel.yaml.in
blob: 50f8b8e999399742652573d1aad1903a521eab48 (plain)
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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
# Beware: git branch names need the 'refs/heads/' prefix, while tags need 'refs/tags/'
- project:
    name: tcwg_kernel-#{TOOLCHAIN}
    toolchain_name: #{TOOLCHAIN}
    components: #{COMPONENTS}
    binutils_url: git://sourceware.org/git/binutils-gdb.git
#if TOOLCHAIN_gnu
    gcc_url: https://github.com/gcc-mirror/gcc.git
#elif TOOLCHAIN_llvm
    llvm_url: https://github.com/llvm/llvm-project.git
#endif
    qemu_url: git://git.qemu.org/qemu.git
    toolchain_ver:
      - master:
          binutils_branch: refs/heads/master
#if TOOLCHAIN_gnu
          gcc_branch: refs/heads/master
#elif TOOLCHAIN_llvm
          llvm_branch: refs/heads/main
#endif
          qemu_branch: refs/heads/master
          distro: lts
      - release:
          binutils_branch: refs/heads/binutils-2_36-branch
#if TOOLCHAIN_gnu
          gcc_branch: refs/heads/releases/gcc-10
#elif TOOLCHAIN_llvm
          llvm_branch: refs/heads/release/12.x
#endif
          qemu_branch: refs/heads/master
          distro: lts_1
    target:
      - aarch64
      - arm
    linux:
      - next:
          linux_url: https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git
          linux_branch: refs/heads/master
      - mainline:
          linux_url: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
          linux_branch: refs/heads/master
      - stable:
          linux_url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
          linux_branch: refs/heads/linux-rolling-stable
      - lts:
          linux_url: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
          linux_branch: refs/heads/linux-rolling-lts
    linux_config:
      - defconfig
      - allmodconfig
      - allyesconfig
      - allnoconfig
    jobs:
      - 'tcwg_kernel-#{TOOLCHAIN}-build-{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
      - 'tcwg_kernel-#{TOOLCHAIN}-bisect-{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'

- view:
    name: tcwg_kernel-#{TOOLCHAIN}
    view-type: list
    regex: 'tcwg_kernel-#{TOOLCHAIN}.*'

#include tcwg/round-robin.yaml.inc

- job-template:
    name: tcwg_kernel-#{TOOLCHAIN}-build-{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}
    project-type: freestyle
    defaults: global
    properties:
      - default-properties
      - build-blocker:
          blocking-jobs:
            - "tcwg_kernel-#{TOOLCHAIN}-bisect-{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}"
          queue-scanning: 'ALL'
    parameters:
      - build-parameters:
          ci_project: 'tcwg_kernel'
          ci_config: '{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
          binutils_url: '{binutils_url}'
#if TOOLCHAIN_gnu
          gcc_url: '{gcc_url}'
#elif TOOLCHAIN_llvm
          llvm_url: '{llvm_url}'
#endif
          qemu_url: '{qemu_url}'
          linux_url: '{linux_url}'
          default_branch: 'default'
          distro: '{distro}'
    disabled: false
    node: tcwg-x86_64-build
    concurrent: false
    display-name: 'TCWG Build tcwg_kernel/{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
    workspace: workspace/tcwg_kernel_$EXECUTOR_NUMBER
    scm:
      - build-scms:
          binutils_url: '{binutils_url}'
          binutils_branch: '{binutils_branch}'
#if TOOLCHAIN_gnu
          gcc_url: '{gcc_url}'
          gcc_branch: '{gcc_branch}'
#elif TOOLCHAIN_llvm
          llvm_url: '{llvm_url}'
          llvm_branch: '{llvm_branch}'
#endif
          qemu_url: '{qemu_url}'
          qemu_branch: '{qemu_branch}'
          linux_url: '{linux_url}'
          linux_branch: '{linux_branch}'
    triggers:
      - pollscm:
          cron: 'H H H/7 * *'
    wrappers:
      - build-wrappers:
          timeout: 600
    builders:
      - run-build:
          build_script: 'tcwg_kernel-build.sh'
          components: '{components}'
          rr_project: 'tcwg_kernel-#{TOOLCHAIN}'
          ci_project_config: '{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
    publishers:
      - build-publishers

- job-template:
    name: tcwg_kernel-#{TOOLCHAIN}-bisect-{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}
    project-type: freestyle
    defaults: global
    properties:
      - default-properties
      - build-blocker:
          # Run at most 1 bisect job for all configurations.
          # Bisect jobs can easily run for 5+ hours, and a few of them
          # can hog the entire TCWG build farm for a long time.  Since
          # same regression tends to appear in multiple configurations,
          # run bisections for all configurations in-order.
          blocking-jobs:
            - "tcwg_kernel-.*-bisect-.*"
          queue-scanning: 'BUILDABLE'
    parameters:
      - bisect-parameters:
          ci_project: 'tcwg_kernel'
          ci_config: '{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
          distro: '{distro}'
    disabled: false
    node: tcwg-x86_64-build
    concurrent: false
    display-name: 'TCWG Bisect tcwg_kernel/{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
    workspace: workspace/tcwg_kernel_$EXECUTOR_NUMBER
    scm:
      - jenkins-scripts
    wrappers:
      - bisect-wrappers:
          timeout: 1440
    builders:
      - run-bisect:
          build_script: 'tcwg_kernel-build.sh'
          rr_project: 'tcwg_kernel-#{TOOLCHAIN}'
          ci_project_config: '{toolchain_name}-{toolchain_ver}-{target}-{linux}-{linux_config}'
    publishers:
      - bisect-publishers