Commit 02fcda1
committed
CI: add archive support
Experience is showing using self tested runners works great but
collection of results has many hiccups for a few reasons:
- semantics for dynamcic results are hard to manage in runners,
I suspect this will also get complex if we try to support other
runner like gitlab but the hoops we have to jump to get this
right in github is silly
- permissions on files: we have console files and things which
may be owned by root. Despite best effort to ensure these
have correct permissions if any of these do have incorrect
permissions we loose all the artifacts and loose all the tests
To scale this and grow, it seems the lesson learned is the less
a runner has to do the better, specially with how dynamic kdevops
is with dynamic results and so forth.
So just add an ansible role dedicated to dealing with all this. This
let's us do the results tarball generation with just:
make ci-archive
This has other added benefits:
1) This just begged to leverage our existing kdevops-results-archive [0]
which also pushed us to adopt git LFS, saving 99.24% of space with
it.
2) We can detach ourselves from relying on github artifacts, so now
we can just point people to public git tarballs
3) This supports proprietary kernel archive databases. On purpose I've
designed this new kdevops results archive ansible role to deal
with future variability and so you could easily expand on all this
to refer to your own internal repo for kernel testing and results.
4) Security best pratices: this requires an ssh key with a passphrase
set, this does all the checks for us
5) We get to test this, so we can easily rule out issues we can
easily just test using the demo repo, specifically designed
to let you play with all this as you get ramped up with your CI.
To play with the CI archive demo just use:
make ci-archive DEMO=1
While at it modify our CI for github to use this which shows all
the crap we can remove, this is all the changes in the github
actions .github/workflows/fstests.yml.
[0] https://github.com/linux-kdevops/kdevops-results-archive
[1] https://github.com/linux-kdevops/kdevops-results-archive-demo
Signed-off-by: Luis Chamberlain <[email protected]>1 parent 38746a0 commit 02fcda1
File tree
8 files changed
+520
-11
lines changed- .github/workflows
- kconfigs/workflows
- playbooks
- roles/kdevops_archive
- defaults
- tasks
- scripts
8 files changed
+520
-11
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
49 | 49 | | |
50 | 50 | | |
51 | 51 | | |
52 | 52 | | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | 53 | | |
57 | | - | |
| 54 | + | |
58 | 55 | | |
59 | 56 | | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
64 | 66 | | |
65 | | - | |
| 67 | + | |
66 | 68 | | |
67 | 69 | | |
68 | 70 | | |
69 | 71 | | |
70 | | - | |
| 72 | + | |
71 | 73 | | |
72 | 74 | | |
73 | 75 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
| 96 | + | |
| 97 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
236 | 236 | | |
237 | 237 | | |
238 | 238 | | |
| 239 | + | |
239 | 240 | | |
240 | 241 | | |
241 | 242 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
184 | 184 | | |
185 | 185 | | |
186 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
187 | 199 | | |
188 | 200 | | |
189 | 201 | | |
190 | 202 | | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
191 | 208 | | |
192 | 209 | | |
193 | 210 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
0 commit comments