aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Albinus2021-11-24 20:27:34 +0100
committerMichael Albinus2021-11-24 20:27:34 +0100
commit39e2c214df7899dddbc86d063f31fe02f7987d49 (patch)
tree56e484985658e011a0d9afa157f6cc707d87b230
parente99bf271587399650a6d52beea4c8f1340d66689 (diff)
downloademacs-39e2c214df7899dddbc86d063f31fe02f7987d49.tar.gz
emacs-39e2c214df7899dddbc86d063f31fe02f7987d49.zip
Some optimizations for emba jobs
* test/infra/gitlab-ci.yml (.test-template): Remove. (test-all-inotify, test-filenotify-gio, test-gnustep) (test-native-comp-speed0): * test/infra/Makefile.in (subdir_template): Remove .test-template from extends. Add or adapt needs and artifacts. * test/infra/test-jobs.yml: Regenerate.
-rw-r--r--test/infra/Makefile.in5
-rw-r--r--test/infra/gitlab-ci.yml43
-rw-r--r--test/infra/test-jobs.yml160
3 files changed, 154 insertions, 54 deletions
diff --git a/test/infra/Makefile.in b/test/infra/Makefile.in
index e55a6edaff2..d9fc0196257 100644
--- a/test/infra/Makefile.in
+++ b/test/infra/Makefile.in
@@ -71,7 +71,10 @@ define subdir_template
71 @echo >>$(FILE) 71 @echo >>$(FILE)
72 @echo 'test-$(subst /,-,$(1))-inotify:' >>$(FILE) 72 @echo 'test-$(subst /,-,$(1))-inotify:' >>$(FILE)
73 @echo ' stage: normal' >>$(FILE) 73 @echo ' stage: normal' >>$(FILE)
74 @echo ' extends: [.job-template, .test-template]' >>$(FILE) 74 @echo ' extends: [.job-template]' >>$(FILE)
75 @echo ' needs:' >>$(FILE)
76 @echo ' - job: build-image-inotify' >>$(FILE)
77 @echo ' optional: true' >>$(FILE)
75 @echo ' rules:' >>$(FILE) 78 @echo ' rules:' >>$(FILE)
76 @echo " - if: '"'${cps} == "schedule"'"'" >>$(FILE) 79 @echo " - if: '"'${cps} == "schedule"'"'" >>$(FILE)
77 @echo ' when: never' >>$(FILE) 80 @echo ' when: never' >>$(FILE)
diff --git a/test/infra/gitlab-ci.yml b/test/infra/gitlab-ci.yml
index 588ca04f3b9..15d8b252e23 100644
--- a/test/infra/gitlab-ci.yml
+++ b/test/infra/gitlab-ci.yml
@@ -127,21 +127,6 @@ default:
127 - docker build --pull --target ${target} -t ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} -f test/infra/Dockerfile.emba . 127 - docker build --pull --target ${target} -t ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} -f test/infra/Dockerfile.emba .
128 - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG} 128 - docker push ${CI_REGISTRY_IMAGE}:${target}-${BUILD_TAG}
129 129
130.test-template:
131 needs: []
132 # Do not run fast and normal test jobs when scheduled.
133 rules:
134 - if: '$CI_JOB_STAGE =~ "fast|normal" && $CI_PIPELINE_SOURCE == "schedule"'
135 when: never
136 - when: always
137 artifacts:
138 name: ${test_name}
139 public: true
140 expire_in: 1 week
141 paths:
142 - "**.log"
143 when: always
144
145.gnustep-template: 130.gnustep-template:
146 rules: 131 rules:
147 - if: '$CI_PIPELINE_SOURCE == "web"' 132 - if: '$CI_PIPELINE_SOURCE == "web"'
@@ -204,11 +189,21 @@ include: '/test/infra/test-jobs.yml'
204test-all-inotify: 189test-all-inotify:
205 # This tests also file monitor libraries inotify and inotifywatch. 190 # This tests also file monitor libraries inotify and inotifywatch.
206 stage: normal 191 stage: normal
207 extends: [.job-template, .test-template] 192 extends: [.job-template]
193 needs:
194 - job: build-image-inotify
195 optional: true
208 rules: 196 rules:
209 # Note there's no "changes" section, so this always runs on a schedule. 197 # Note there's no "changes" section, so this always runs on a schedule.
210 - if: '$CI_PIPELINE_SOURCE == "web"' 198 - if: '$CI_PIPELINE_SOURCE == "web"'
211 - if: '$CI_PIPELINE_SOURCE == "schedule"' 199 - if: '$CI_PIPELINE_SOURCE == "schedule"'
200 artifacts:
201 name: ${test_name}
202 public: true
203 expire_in: 1 week
204 paths:
205 - "**/*.log"
206 when: always
212 variables: 207 variables:
213 target: emacs-inotify 208 target: emacs-inotify
214 make_params: check-expensive 209 make_params: check-expensive
@@ -222,8 +217,10 @@ build-image-filenotify-gio:
222test-filenotify-gio: 217test-filenotify-gio:
223 # This tests file monitor libraries gfilemonitor and gio. 218 # This tests file monitor libraries gfilemonitor and gio.
224 stage: platforms 219 stage: platforms
225 extends: [.job-template, .test-template, .filenotify-gio-template] 220 extends: [.job-template, .filenotify-gio-template]
226 needs: [build-image-filenotify-gio] 221 needs:
222 - job: build-image-filenotify-gio
223 optional: true
227 variables: 224 variables:
228 target: emacs-filenotify-gio 225 target: emacs-filenotify-gio
229 make_params: "-k -C test autorevert-tests.log filenotify-tests.log" 226 make_params: "-k -C test autorevert-tests.log filenotify-tests.log"
@@ -238,7 +235,9 @@ test-gnustep:
238 # This tests the GNUstep build process. 235 # This tests the GNUstep build process.
239 stage: platforms 236 stage: platforms
240 extends: [.job-template, .gnustep-template] 237 extends: [.job-template, .gnustep-template]
241 needs: [build-image-gnustep] 238 needs:
239 - job: build-image-gnustep
240 optional: true
242 variables: 241 variables:
243 target: emacs-gnustep 242 target: emacs-gnustep
244 make_params: install 243 make_params: install
@@ -263,8 +262,10 @@ build-native-comp-speed2:
263 262
264test-native-comp-speed0: 263test-native-comp-speed0:
265 stage: native-comp 264 stage: native-comp
266 extends: [.job-template, .test-template, .native-comp-template] 265 extends: [.job-template, .native-comp-template]
267 needs: [build-native-comp-speed0] 266 needs:
267 - job: build-native-comp-speed0
268 optional: true
268 variables: 269 variables:
269 target: emacs-native-comp-speed0 270 target: emacs-native-comp-speed0
270 make_params: "-C test check SELECTOR='(not (tag :unstable))'" 271 make_params: "-C test check SELECTOR='(not (tag :unstable))'"
diff --git a/test/infra/test-jobs.yml b/test/infra/test-jobs.yml
index 7af671d641b..33a90d6f2cb 100644
--- a/test/infra/test-jobs.yml
+++ b/test/infra/test-jobs.yml
@@ -1,7 +1,10 @@
1 1
2test-lib-src-inotify: 2test-lib-src-inotify:
3 stage: normal 3 stage: normal
4 extends: [.job-template, .test-template] 4 extends: [.job-template]
5 needs:
6 - job: build-image-inotify
7 optional: true
5 rules: 8 rules:
6 - if: '$CI_PIPELINE_SOURCE == "schedule"' 9 - if: '$CI_PIPELINE_SOURCE == "schedule"'
7 when: never 10 when: never
@@ -22,7 +25,10 @@ test-lib-src-inotify:
22 25
23test-lisp-inotify: 26test-lisp-inotify:
24 stage: normal 27 stage: normal
25 extends: [.job-template, .test-template] 28 extends: [.job-template]
29 needs:
30 - job: build-image-inotify
31 optional: true
26 rules: 32 rules:
27 - if: '$CI_PIPELINE_SOURCE == "schedule"' 33 - if: '$CI_PIPELINE_SOURCE == "schedule"'
28 when: never 34 when: never
@@ -43,7 +49,10 @@ test-lisp-inotify:
43 49
44test-lisp-calc-inotify: 50test-lisp-calc-inotify:
45 stage: normal 51 stage: normal
46 extends: [.job-template, .test-template] 52 extends: [.job-template]
53 needs:
54 - job: build-image-inotify
55 optional: true
47 rules: 56 rules:
48 - if: '$CI_PIPELINE_SOURCE == "schedule"' 57 - if: '$CI_PIPELINE_SOURCE == "schedule"'
49 when: never 58 when: never
@@ -64,7 +73,10 @@ test-lisp-calc-inotify:
64 73
65test-lisp-calendar-inotify: 74test-lisp-calendar-inotify:
66 stage: normal 75 stage: normal
67 extends: [.job-template, .test-template] 76 extends: [.job-template]
77 needs:
78 - job: build-image-inotify
79 optional: true
68 rules: 80 rules:
69 - if: '$CI_PIPELINE_SOURCE == "schedule"' 81 - if: '$CI_PIPELINE_SOURCE == "schedule"'
70 when: never 82 when: never
@@ -85,7 +97,10 @@ test-lisp-calendar-inotify:
85 97
86test-lisp-cedet-inotify: 98test-lisp-cedet-inotify:
87 stage: normal 99 stage: normal
88 extends: [.job-template, .test-template] 100 extends: [.job-template]
101 needs:
102 - job: build-image-inotify
103 optional: true
89 rules: 104 rules:
90 - if: '$CI_PIPELINE_SOURCE == "schedule"' 105 - if: '$CI_PIPELINE_SOURCE == "schedule"'
91 when: never 106 when: never
@@ -106,7 +121,10 @@ test-lisp-cedet-inotify:
106 121
107test-lisp-cedet-semantic-inotify: 122test-lisp-cedet-semantic-inotify:
108 stage: normal 123 stage: normal
109 extends: [.job-template, .test-template] 124 extends: [.job-template]
125 needs:
126 - job: build-image-inotify
127 optional: true
110 rules: 128 rules:
111 - if: '$CI_PIPELINE_SOURCE == "schedule"' 129 - if: '$CI_PIPELINE_SOURCE == "schedule"'
112 when: never 130 when: never
@@ -127,7 +145,10 @@ test-lisp-cedet-semantic-inotify:
127 145
128test-lisp-cedet-semantic-bovine-inotify: 146test-lisp-cedet-semantic-bovine-inotify:
129 stage: normal 147 stage: normal
130 extends: [.job-template, .test-template] 148 extends: [.job-template]
149 needs:
150 - job: build-image-inotify
151 optional: true
131 rules: 152 rules:
132 - if: '$CI_PIPELINE_SOURCE == "schedule"' 153 - if: '$CI_PIPELINE_SOURCE == "schedule"'
133 when: never 154 when: never
@@ -148,7 +169,10 @@ test-lisp-cedet-semantic-bovine-inotify:
148 169
149test-lisp-cedet-srecode-inotify: 170test-lisp-cedet-srecode-inotify:
150 stage: normal 171 stage: normal
151 extends: [.job-template, .test-template] 172 extends: [.job-template]
173 needs:
174 - job: build-image-inotify
175 optional: true
152 rules: 176 rules:
153 - if: '$CI_PIPELINE_SOURCE == "schedule"' 177 - if: '$CI_PIPELINE_SOURCE == "schedule"'
154 when: never 178 when: never
@@ -169,7 +193,10 @@ test-lisp-cedet-srecode-inotify:
169 193
170test-lisp-emacs-lisp-inotify: 194test-lisp-emacs-lisp-inotify:
171 stage: normal 195 stage: normal
172 extends: [.job-template, .test-template] 196 extends: [.job-template]
197 needs:
198 - job: build-image-inotify
199 optional: true
173 rules: 200 rules:
174 - if: '$CI_PIPELINE_SOURCE == "schedule"' 201 - if: '$CI_PIPELINE_SOURCE == "schedule"'
175 when: never 202 when: never
@@ -190,7 +217,10 @@ test-lisp-emacs-lisp-inotify:
190 217
191test-lisp-emacs-lisp-eieio-tests-inotify: 218test-lisp-emacs-lisp-eieio-tests-inotify:
192 stage: normal 219 stage: normal
193 extends: [.job-template, .test-template] 220 extends: [.job-template]
221 needs:
222 - job: build-image-inotify
223 optional: true
194 rules: 224 rules:
195 - if: '$CI_PIPELINE_SOURCE == "schedule"' 225 - if: '$CI_PIPELINE_SOURCE == "schedule"'
196 when: never 226 when: never
@@ -211,7 +241,10 @@ test-lisp-emacs-lisp-eieio-tests-inotify:
211 241
212test-lisp-emacs-lisp-faceup-tests-inotify: 242test-lisp-emacs-lisp-faceup-tests-inotify:
213 stage: normal 243 stage: normal
214 extends: [.job-template, .test-template] 244 extends: [.job-template]
245 needs:
246 - job: build-image-inotify
247 optional: true
215 rules: 248 rules:
216 - if: '$CI_PIPELINE_SOURCE == "schedule"' 249 - if: '$CI_PIPELINE_SOURCE == "schedule"'
217 when: never 250 when: never
@@ -232,7 +265,10 @@ test-lisp-emacs-lisp-faceup-tests-inotify:
232 265
233test-lisp-emulation-inotify: 266test-lisp-emulation-inotify:
234 stage: normal 267 stage: normal
235 extends: [.job-template, .test-template] 268 extends: [.job-template]
269 needs:
270 - job: build-image-inotify
271 optional: true
236 rules: 272 rules:
237 - if: '$CI_PIPELINE_SOURCE == "schedule"' 273 - if: '$CI_PIPELINE_SOURCE == "schedule"'
238 when: never 274 when: never
@@ -253,7 +289,10 @@ test-lisp-emulation-inotify:
253 289
254test-lisp-erc-inotify: 290test-lisp-erc-inotify:
255 stage: normal 291 stage: normal
256 extends: [.job-template, .test-template] 292 extends: [.job-template]
293 needs:
294 - job: build-image-inotify
295 optional: true
257 rules: 296 rules:
258 - if: '$CI_PIPELINE_SOURCE == "schedule"' 297 - if: '$CI_PIPELINE_SOURCE == "schedule"'
259 when: never 298 when: never
@@ -274,7 +313,10 @@ test-lisp-erc-inotify:
274 313
275test-lisp-eshell-inotify: 314test-lisp-eshell-inotify:
276 stage: normal 315 stage: normal
277 extends: [.job-template, .test-template] 316 extends: [.job-template]
317 needs:
318 - job: build-image-inotify
319 optional: true
278 rules: 320 rules:
279 - if: '$CI_PIPELINE_SOURCE == "schedule"' 321 - if: '$CI_PIPELINE_SOURCE == "schedule"'
280 when: never 322 when: never
@@ -295,7 +337,10 @@ test-lisp-eshell-inotify:
295 337
296test-lisp-gnus-inotify: 338test-lisp-gnus-inotify:
297 stage: normal 339 stage: normal
298 extends: [.job-template, .test-template] 340 extends: [.job-template]
341 needs:
342 - job: build-image-inotify
343 optional: true
299 rules: 344 rules:
300 - if: '$CI_PIPELINE_SOURCE == "schedule"' 345 - if: '$CI_PIPELINE_SOURCE == "schedule"'
301 when: never 346 when: never
@@ -316,7 +361,10 @@ test-lisp-gnus-inotify:
316 361
317test-lisp-image-inotify: 362test-lisp-image-inotify:
318 stage: normal 363 stage: normal
319 extends: [.job-template, .test-template] 364 extends: [.job-template]
365 needs:
366 - job: build-image-inotify
367 optional: true
320 rules: 368 rules:
321 - if: '$CI_PIPELINE_SOURCE == "schedule"' 369 - if: '$CI_PIPELINE_SOURCE == "schedule"'
322 when: never 370 when: never
@@ -337,7 +385,10 @@ test-lisp-image-inotify:
337 385
338test-lisp-international-inotify: 386test-lisp-international-inotify:
339 stage: normal 387 stage: normal
340 extends: [.job-template, .test-template] 388 extends: [.job-template]
389 needs:
390 - job: build-image-inotify
391 optional: true
341 rules: 392 rules:
342 - if: '$CI_PIPELINE_SOURCE == "schedule"' 393 - if: '$CI_PIPELINE_SOURCE == "schedule"'
343 when: never 394 when: never
@@ -358,7 +409,10 @@ test-lisp-international-inotify:
358 409
359test-lisp-mail-inotify: 410test-lisp-mail-inotify:
360 stage: normal 411 stage: normal
361 extends: [.job-template, .test-template] 412 extends: [.job-template]
413 needs:
414 - job: build-image-inotify
415 optional: true
362 rules: 416 rules:
363 - if: '$CI_PIPELINE_SOURCE == "schedule"' 417 - if: '$CI_PIPELINE_SOURCE == "schedule"'
364 when: never 418 when: never
@@ -379,7 +433,10 @@ test-lisp-mail-inotify:
379 433
380test-lisp-mh-e-inotify: 434test-lisp-mh-e-inotify:
381 stage: normal 435 stage: normal
382 extends: [.job-template, .test-template] 436 extends: [.job-template]
437 needs:
438 - job: build-image-inotify
439 optional: true
383 rules: 440 rules:
384 - if: '$CI_PIPELINE_SOURCE == "schedule"' 441 - if: '$CI_PIPELINE_SOURCE == "schedule"'
385 when: never 442 when: never
@@ -400,7 +457,10 @@ test-lisp-mh-e-inotify:
400 457
401test-lisp-net-inotify: 458test-lisp-net-inotify:
402 stage: normal 459 stage: normal
403 extends: [.job-template, .test-template] 460 extends: [.job-template]
461 needs:
462 - job: build-image-inotify
463 optional: true
404 rules: 464 rules:
405 - if: '$CI_PIPELINE_SOURCE == "schedule"' 465 - if: '$CI_PIPELINE_SOURCE == "schedule"'
406 when: never 466 when: never
@@ -421,7 +481,10 @@ test-lisp-net-inotify:
421 481
422test-lisp-nxml-inotify: 482test-lisp-nxml-inotify:
423 stage: normal 483 stage: normal
424 extends: [.job-template, .test-template] 484 extends: [.job-template]
485 needs:
486 - job: build-image-inotify
487 optional: true
425 rules: 488 rules:
426 - if: '$CI_PIPELINE_SOURCE == "schedule"' 489 - if: '$CI_PIPELINE_SOURCE == "schedule"'
427 when: never 490 when: never
@@ -442,7 +505,10 @@ test-lisp-nxml-inotify:
442 505
443test-lisp-obsolete-inotify: 506test-lisp-obsolete-inotify:
444 stage: normal 507 stage: normal
445 extends: [.job-template, .test-template] 508 extends: [.job-template]
509 needs:
510 - job: build-image-inotify
511 optional: true
446 rules: 512 rules:
447 - if: '$CI_PIPELINE_SOURCE == "schedule"' 513 - if: '$CI_PIPELINE_SOURCE == "schedule"'
448 when: never 514 when: never
@@ -463,7 +529,10 @@ test-lisp-obsolete-inotify:
463 529
464test-lisp-org-inotify: 530test-lisp-org-inotify:
465 stage: normal 531 stage: normal
466 extends: [.job-template, .test-template] 532 extends: [.job-template]
533 needs:
534 - job: build-image-inotify
535 optional: true
467 rules: 536 rules:
468 - if: '$CI_PIPELINE_SOURCE == "schedule"' 537 - if: '$CI_PIPELINE_SOURCE == "schedule"'
469 when: never 538 when: never
@@ -484,7 +553,10 @@ test-lisp-org-inotify:
484 553
485test-lisp-play-inotify: 554test-lisp-play-inotify:
486 stage: normal 555 stage: normal
487 extends: [.job-template, .test-template] 556 extends: [.job-template]
557 needs:
558 - job: build-image-inotify
559 optional: true
488 rules: 560 rules:
489 - if: '$CI_PIPELINE_SOURCE == "schedule"' 561 - if: '$CI_PIPELINE_SOURCE == "schedule"'
490 when: never 562 when: never
@@ -505,7 +577,10 @@ test-lisp-play-inotify:
505 577
506test-lisp-progmodes-inotify: 578test-lisp-progmodes-inotify:
507 stage: normal 579 stage: normal
508 extends: [.job-template, .test-template] 580 extends: [.job-template]
581 needs:
582 - job: build-image-inotify
583 optional: true
509 rules: 584 rules:
510 - if: '$CI_PIPELINE_SOURCE == "schedule"' 585 - if: '$CI_PIPELINE_SOURCE == "schedule"'
511 when: never 586 when: never
@@ -526,7 +601,10 @@ test-lisp-progmodes-inotify:
526 601
527test-lisp-so-long-tests-inotify: 602test-lisp-so-long-tests-inotify:
528 stage: normal 603 stage: normal
529 extends: [.job-template, .test-template] 604 extends: [.job-template]
605 needs:
606 - job: build-image-inotify
607 optional: true
530 rules: 608 rules:
531 - if: '$CI_PIPELINE_SOURCE == "schedule"' 609 - if: '$CI_PIPELINE_SOURCE == "schedule"'
532 when: never 610 when: never
@@ -547,7 +625,10 @@ test-lisp-so-long-tests-inotify:
547 625
548test-lisp-term-inotify: 626test-lisp-term-inotify:
549 stage: normal 627 stage: normal
550 extends: [.job-template, .test-template] 628 extends: [.job-template]
629 needs:
630 - job: build-image-inotify
631 optional: true
551 rules: 632 rules:
552 - if: '$CI_PIPELINE_SOURCE == "schedule"' 633 - if: '$CI_PIPELINE_SOURCE == "schedule"'
553 when: never 634 when: never
@@ -568,7 +649,10 @@ test-lisp-term-inotify:
568 649
569test-lisp-textmodes-inotify: 650test-lisp-textmodes-inotify:
570 stage: normal 651 stage: normal
571 extends: [.job-template, .test-template] 652 extends: [.job-template]
653 needs:
654 - job: build-image-inotify
655 optional: true
572 rules: 656 rules:
573 - if: '$CI_PIPELINE_SOURCE == "schedule"' 657 - if: '$CI_PIPELINE_SOURCE == "schedule"'
574 when: never 658 when: never
@@ -589,7 +673,10 @@ test-lisp-textmodes-inotify:
589 673
590test-lisp-url-inotify: 674test-lisp-url-inotify:
591 stage: normal 675 stage: normal
592 extends: [.job-template, .test-template] 676 extends: [.job-template]
677 needs:
678 - job: build-image-inotify
679 optional: true
593 rules: 680 rules:
594 - if: '$CI_PIPELINE_SOURCE == "schedule"' 681 - if: '$CI_PIPELINE_SOURCE == "schedule"'
595 when: never 682 when: never
@@ -610,7 +697,10 @@ test-lisp-url-inotify:
610 697
611test-lisp-vc-inotify: 698test-lisp-vc-inotify:
612 stage: normal 699 stage: normal
613 extends: [.job-template, .test-template] 700 extends: [.job-template]
701 needs:
702 - job: build-image-inotify
703 optional: true
614 rules: 704 rules:
615 - if: '$CI_PIPELINE_SOURCE == "schedule"' 705 - if: '$CI_PIPELINE_SOURCE == "schedule"'
616 when: never 706 when: never
@@ -631,7 +721,10 @@ test-lisp-vc-inotify:
631 721
632test-misc-inotify: 722test-misc-inotify:
633 stage: normal 723 stage: normal
634 extends: [.job-template, .test-template] 724 extends: [.job-template]
725 needs:
726 - job: build-image-inotify
727 optional: true
635 rules: 728 rules:
636 - if: '$CI_PIPELINE_SOURCE == "schedule"' 729 - if: '$CI_PIPELINE_SOURCE == "schedule"'
637 when: never 730 when: never
@@ -652,7 +745,10 @@ test-misc-inotify:
652 745
653test-src-inotify: 746test-src-inotify:
654 stage: normal 747 stage: normal
655 extends: [.job-template, .test-template] 748 extends: [.job-template]
749 needs:
750 - job: build-image-inotify
751 optional: true
656 rules: 752 rules:
657 - if: '$CI_PIPELINE_SOURCE == "schedule"' 753 - if: '$CI_PIPELINE_SOURCE == "schedule"'
658 when: never 754 when: never