gpdb-tpl.yml 71.6 KB
Newer Older
K
Kris Macoskey 已提交
1

2
{% set walrep_suites = ['walrep_2'] %}
3
{% set CLI_1_suites = ['gprecoverseg',
4
                      'gpcheckcat',
5 6
                      'gpinitstandby',
                      'gpactivatestandby'] %}
7
{% set CLI_2_suites = ['analyzedb',
8
                      'gpperfmon',
9
                      'gpinitsystem'] %}
10
## ======================================================================
K
Kris Macoskey 已提交
11
##   __ _ _ __ ___  _   _ _ __  ___
12 13 14
##  / _` | '__/ _ \| | | | '_ \/ __|
## | (_| | | | (_) | |_| | |_) \__ \
##  \__, |_|  \___/ \__,_| .__/|___/
K
Kris Macoskey 已提交
15
##  |___/                |_|
16 17
## ======================================================================

18 19 20
groups:
- name: all
  jobs:
21
{% if "centos6" in os_types %}
22
  - compile_gpdb_centos6
23 24 25 26
  - compile_gpdb_binary_swap_centos6
  - compile_gpdb_open_source_centos6
{% endif %}
{% if "centos7" in os_types %}
27
  - compile_gpdb_centos7
28 29
{% endif %}
{% if "sles" in os_types %}
30
  - compile_gpdb_sles11
31 32
{% endif %}
{% if "ubuntu16" in os_types %}
33
  - compile_gpdb_ubuntu16
34 35
{% endif %}
{% if "aix7" in os_types %}
36
  - compile_gpdb_aix7_remote
37 38 39 40 41 42 43
{% endif %}
{% if "aix7" in os_types %}
  - client_loader_remote_test_aix
{% endif %}
{% if "ICW" in test_sections %}
  ## --------------------------------------------------------------------
{% if "centos6" in os_types %}
44
  - icw_gporca_centos6
45 46 47 48
  - icw_gporca_centos6_gpos_memory
  - icw_planner_centos6
  - icw_planner_ictcp_centos6
{% endif %}
49 50 51
{% if "centos6" in os_types and "CLI" in test_sections %}
  - pg_upgrade
{% endif %}
52
{% if "centos7" in os_types %}
53
  - icw_gporca_centos7
K
Kris Macoskey 已提交
54
  - icw_planner_centos7
55
  - icg_planner_centos7_random_numsegments
56
  - icw_planner_centos7_online_expand
57 58
{% endif %}
{% if "sles" in os_types %}
59
  - icw_gporca_sles11
N
Ning Yu 已提交
60 61
  - icw_gporca_sles12
  - icw_planner_sles12
62 63
{% endif %}
{% if "ubuntu16" in os_types %}
64
  - icw_planner_ubuntu16
G
Goutam Tadi 已提交
65
  - icw_gporca_conan_ubuntu16
66 67
{% endif %}
{% if "ubuntu16" in os_types %}
68
  - gpdb_packaging_ubuntu16
69
{% endif %}
70
  - gate_icw_end
71
{% endif %}
72
{% if "Replication" in test_sections %}
73
  ## --------------------------------------------------------------------
74 75
  - gate_replication_start
  - walrep_2
X
Xin Zhang 已提交
76
  - segwalrep_mirrorless_centos6
77
{% endif %}
78
{% if "Interconnect" in test_sections %}
79
  ## --------------------------------------------------------------------
80
  - interconnect
81
{% endif %}
82
{% if "ResourceGroups" in test_sections %}
83
  ## --------------------------------------------------------------------
84
  - gate_resource_groups_start
85
  - resource_group_centos6
86
{% if "centos7" in os_types %}
87
  - resource_group_centos7
88 89
{% endif %}
{% if "sles" in os_types %}
90
  - resource_group_sles12
91 92
{% endif %}
{% endif %}
93
{% if "CLI" in test_sections %}
94
  ## --------------------------------------------------------------------
95
  - gate_cli_start
D
David Krieger 已提交
96
{% for test_name in CLI_1_suites + CLI_2_suites %}
97
  - [[ test_name ]]
98
{% endfor %}
99
  - gpaddmirrors
100
  - gpexpand
101 102 103 104
  - gpcheck
  - gppkg
  - check_centos
  - gptransfer
105 106 107
{% endif %}
{% if "UD" in test_sections %}
  ## --------------------------------------------------------------------
M
Michael Roth 已提交
108
  - gate_ud_start
109 110
  - regression_tests_gphdfs_hadoop_centos
  - regression_tests_gphdfs_mapr_centos
111
{% endif %}
112 113 114
{% if "AA" in test_sections %}
  ## --------------------------------------------------------------------
  - gate_advanced_analytics_start
115 116 117
{% if "centos6" in os_types or "centos7" in os_types%}
  - madlib_build_gppkg
{% endif %}
118 119 120 121 122 123 124 125 126
{% if "centos6" in os_types %}
  - MADlib_Test_orca_centos6
  - MADlib_Test_planner_centos6
{% endif %}
{% if "centos7" in os_types %}
  - MADlib_Test_orca_centos7
  - MADlib_Test_planner_centos7
{% endif %}
{% endif %}
127 128 129 130 131 132 133 134 135
 ## ---------------------------------------------------------------------
{% if "Extensions" in test_sections %}
{% if "centos6" in os_types %}
  - icw_extensions_gpcloud_centos6
{% endif %}
{% if "ubuntu16" in os_types %}
  - icw_extensions_gpcloud_ubuntu16
{% endif %}
{%endif %}
136

137 138 139

{% if pipeline_type == "prod" %}
## ======================================================================
140 141 142

- name: Release
  jobs:
143
  - gate_release_candidate_start
144
  - Release_Candidate
145

146 147 148
{% endif %}
## ======================================================================

149
- name: Compile
150
  jobs:
151
{% if "centos6" in os_types %}
152
  - compile_gpdb_centos6
153 154 155 156
  - compile_gpdb_binary_swap_centos6
  - compile_gpdb_open_source_centos6
{% endif %}
{% if "centos7" in os_types %}
157
  - compile_gpdb_centos7
158 159
{% endif %}
{% if "sles" in os_types %}
160
  - compile_gpdb_sles11
161 162
{% endif %}
{% if "ubuntu16" in os_types %}
163
  - compile_gpdb_ubuntu16
164
{% endif %}
165 166 167 168 169 170
{% if "aix7" in os_types %}
  - compile_gpdb_aix7_remote
{% endif %}

## ======================================================================

171
- name: ClientsLoaders
172
  jobs:
173
{% if "aix7" in os_types %}
174 175
  - compile_gpdb_aix7_remote
  - client_loader_remote_test_aix
176
{% endif %}
177

178 179 180
{% if "ICW" in test_sections %}
## ======================================================================

181
- name: ICW
182
  jobs:
183 184 185
{% if "centos6" in os_types %}
  - icw_gporca_centos6
  - icw_gporca_centos6_gpos_memory
186
  - icw_planner_centos6
187
  - icw_planner_ictcp_centos6
188
  - compile_gpdb_centos6
189
{% endif %}
190 191 192
{% if "centos6" in os_types and "CLI" in test_sections %}
  - pg_upgrade
{% endif %}
193 194
{% if "centos7" in os_types %}
  - icw_gporca_centos7
K
Kris Macoskey 已提交
195
  - icw_planner_centos7
196
  - icg_planner_centos7_random_numsegments
197
  - icw_planner_centos7_online_expand
198
  - compile_gpdb_centos7
199 200
{% endif %}
{% if "sles" in os_types %}
201
  - icw_gporca_sles11
N
Ning Yu 已提交
202 203
  - icw_gporca_sles12
  - icw_planner_sles12
204
  - compile_gpdb_sles11
205 206
{% endif %}
{% if "ubuntu16" in os_types %}
207 208 209
  - icw_planner_ubuntu16
  - icw_gporca_conan_ubuntu16
  - compile_gpdb_ubuntu16
210
  - gpdb_packaging_ubuntu16
211
  - compile_gpdb_ubuntu16
212
{% endif %}
213 214
  - gate_icw_end

215 216 217 218 219 220 221 222 223 224 225 226 227 228
{% endif %}

## ======================================================================

{% if "Extensions" in test_sections %}
- name: Extensions
  jobs:
{% if "centos6" in os_types %}
  - icw_extensions_gpcloud_centos6
{% endif %}
{% if "ubuntu16" in os_types %}
  - icw_extensions_gpcloud_ubuntu16
{% endif %}

229
{% endif %}
230
{% if "Replication" in test_sections %}
231 232
## ======================================================================

233
- name: Replication
234
  jobs:
235 236
  - gate_replication_start
  - walrep_2
X
Xin Zhang 已提交
237
  - segwalrep_mirrorless_centos6
238
  - compile_gpdb_centos6
M
Michael Roth 已提交
239

240
{% endif %}
241
{% if "Interconnect" in test_sections %}
242 243
## ======================================================================

244 245
{% if "centos6" in os_types %}
- name: Interconnect
M
Michael Roth 已提交
246
  jobs:
247
  - compile_gpdb_centos6
248
  - interconnect
249 250 251
{% endif %}

{% endif %}
252
{% if "ResourceGroups" in test_sections %}
253 254 255 256
## ======================================================================

- name: ResourceGroups
  jobs:
257
  - gate_resource_groups_start
258
  - resource_group_centos6
259
  - compile_gpdb_centos6
260
{% if "centos7" in os_types %}
261
  - resource_group_centos7
262
  - compile_gpdb_centos7
263 264
{% endif %}
{% if "sles" in os_types %}
265
  - resource_group_sles12
266
  - compile_gpdb_sles11
267
{% endif %}
268

269
{% endif %}
270
{% if "CLI" in test_sections %}
271 272
## ======================================================================

273
- name: CLI
274
  jobs:
275
  - gate_cli_start
D
David Krieger 已提交
276
{% for test_name in CLI_1_suites + CLI_2_suites %}
277
  - [[ test_name ]]
278
{% endfor %}
279
  - gpaddmirrors
280
  - gpexpand
281 282 283
  - gpcheck
  - gppkg
  - check_centos
284
  - compile_gpdb_centos6
285
  - gptransfer
286
  - compile_gpdb_centos6
287 288 289
{% if "centos6" in os_types and "ICW" in test_sections %}
  - pg_upgrade
{% endif %}
290

291 292 293 294
{% endif %}
{% if "UD" in test_sections %}
## ======================================================================

295
- name: UD
296
  jobs:
M
Michael Roth 已提交
297
  - gate_ud_start
298 299
  - regression_tests_gphdfs_hadoop_centos
  - regression_tests_gphdfs_mapr_centos
300
  - compile_gpdb_centos6
301

302
{% endif %}
303 304 305 306 307

{% if "AA" in test_sections %}
- name: AdvancedAnalytics
  jobs:
  - gate_advanced_analytics_start
308 309 310
{% if "centos6" in os_types or "centos7" in os_types%}
  - madlib_build_gppkg
{% endif %}
311 312 313 314 315 316 317 318 319 320
{% if "centos6" in os_types %}
  - MADlib_Test_orca_centos6
  - MADlib_Test_planner_centos6
{% endif %}
{% if "centos7" in os_types %}
  - MADlib_Test_orca_centos7
  - MADlib_Test_planner_centos7
{% endif %}
{% endif %}

321
## ======================================================================
K
Kris Macoskey 已提交
322 323
##                                           _
##  _ __ ___  ___  ___  _   _ _ __ ___ ___  | |_ _   _ _ __   ___  ___
324 325 326
## | '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \ | __| | | | '_ \ / _ \/ __|
## | | |  __/\__ \ (_) | |_| | | | (_|  __/ | |_| |_| | |_) |  __/\__ \
## |_|  \___||___/\___/ \__,_|_|  \___\___|  \__|\__, | .__/ \___||___/
K
Kris Macoskey 已提交
327
##                                               |___/|_|
328 329 330 331 332 333 334 335
## ======================================================================

resource_types:
- name: terraform
  type: docker-image
  source:
    repository: ljfranklin/terraform-resource

336
## ======================================================================
K
Kris Macoskey 已提交
337
##  _ __ ___  ___  ___  _   _ _ __ ___ ___  ___
338 339 340
## | '__/ _ \/ __|/ _ \| | | | '__/ __/ _ \/ __|
## | | |  __/\__ \ (_) | |_| | | | (_|  __/\__ \
## |_|  \___||___/\___/ \__,_|_|  \___\___||___/
341 342 343
## ======================================================================

resources:
344
{% if ("ICW"    in test_sections and "sles" in os_types) or
345
      "Replication"      in test_sections or
346
      "ResourceGroups"     in test_sections or
347 348
      "CLI"      in test_sections or
      "UD"      in test_sections %}
349 350 351 352 353 354 355
- name: ccp_src
  type: git
  source:
    branch: {{ccp-git-branch}}
    private_key: {{ccp-git-key}}
    uri: {{ccp-git-remote}}

356 357
{% if "centos6" in os_types or
      "ICW"     in test_sections %}
358 359 360 361 362 363
- name: terraform
  type: terraform
  source:
    env:
      AWS_ACCESS_KEY_ID: {{tf-machine-access-key-id}}
      AWS_SECRET_ACCESS_KEY: {{tf-machine-secret-access-key}}
A
Alexandra Wang 已提交
364 365 366
      GOOGLE_CREDENTIALS: {{google-service-account-key}}
    vars:
      project_id: {{google-project-id}}
367 368 369 370 371 372 373
    storage:
      access_key_id: {{tf-machine-access-key-id}}
      secret_access_key: {{tf-machine-secret-access-key}}
      region_name: {{aws-region}}
      # This is not parameterized, on purpose. All tfstates will go to this spot,
      # and different teams will place there clusters' tfstate files under different paths
      bucket: gpdb5-pipeline-dynamic-terraform
A
Alexandra Wang 已提交
374
      bucket_path: clusters-google/
375

376
{% endif %}
377 378 379 380 381 382 383 384 385 386 387
{% endif %}
{% if "centos6" in os_types and "ICW" in test_sections %}
- name: icw_gporca_centos6_dump
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{test-data-bucket-name}}
    secret_access_key: {{bucket-secret-access-key}}
    region_name: {{aws-region}}
    versioned_file: gpdb6/icw_gporca_centos6/dump.sql.xz

388
{% endif %}
389
{% if "CLI" in test_sections %}
390
# a second cluster for gptransfer tests
C
Chris Hajas 已提交
391 392 393 394 395 396
- name: terraform2
  type: terraform
  source:
    env:
      AWS_ACCESS_KEY_ID: {{tf-machine-access-key-id}}
      AWS_SECRET_ACCESS_KEY: {{tf-machine-secret-access-key}}
A
Alexandra Wang 已提交
397 398 399
      GOOGLE_CREDENTIALS: {{google-service-account-key}}
    vars:
      project_id: {{google-project-id}}
C
Chris Hajas 已提交
400 401 402 403 404
    storage:
      access_key_id: {{tf-machine-access-key-id}}
      secret_access_key: {{tf-machine-secret-access-key}}
      region_name: {{aws-region}}
      bucket: gpdb5-pipeline-dynamic-terraform
A
Alexandra Wang 已提交
405
      bucket_path: clusters-google/
406 407
{% endif %}
{% if "aix7" in os_types %}
408 409 410 411 412 413 414 415
- name: aix_environments
  type: pool
  source:
    uri: {{concourse-resource-pools-git-remote}}
    branch: master
    pool: client_loader_remote_aix
    private_key: {{concourse-resource-pools-git-key}}

416
{% endif %}
417 418 419 420 421
- name: gpdb_src
  type: git
  source:
    branch: {{gpdb-git-branch}}
    uri: {{gpdb-git-remote}}
422 423 424
    ignore_paths:
    - gpdb-doc/*
    - README*
425

426
{% if "centos6" in os_types %}
427 428 429
- name: gpdb_src_binary_swap
  type: git
  source:
430 431
    branch: {{gpdb-binary-swap-git-tag}}
    uri: {{gpdb-binary-swap-git-remote}}
432 433 434 435
    ignore_paths:
    - gpdb-doc/*
    - README*

436 437 438 439 440 441 442
- name: gpaddon_src_binary_swap
  type: git
  source:
    branch: {{gpaddon-binary-swap-git-branch}}
    private_key: {{gpaddon-git-key}}
    uri: {{gpaddon-binary-swap-git-remote}}

443
{% endif %}
444 445 446 447
- name: gpaddon_src
  type: git
  source:
    branch: {{gpaddon-git-branch}}
448
    private_key: {{gpaddon-git-key}}
449 450
    uri: {{gpaddon-git-remote}}

451
{% if "ubuntu16" in os_types %}
452 453 454 455 456 457
- name: debian_release
  type: git
  source:
    branch: ((debian-release-git-branch))
    uri: ((debian-release-git-remote))

458
{% endif %}
459
{% if "centos6" in os_types or "sles" in os_types or "aix7" in os_types %}
460
- name: centos-gpdb-dev-6
461 462
  type: docker-image
  source:
463
    repository: pivotaldata/centos-gpdb-dev
464
    tag: '6-gcc6.2-llvm3.7'
465

466 467
{% endif %}
{% if "centos7" in os_types %}
468
- name: centos-gpdb-build-7
469 470
  type: docker-image
  source:
471 472 473 474 475 476 477 478
    repository: pivotaldata/centos7-build
    tag: 'gpdb5-latest'

- name: centos-gpdb-test-7
  type: docker-image
  source:
    repository: pivotaldata/centos7-test
    tag: 'gpdb5-latest'
479

480 481
{% endif %}
{% if "ubuntu16" in os_types %}
482 483 484 485
- name: ubuntu-gpdb-dev-16
  type: docker-image
  source:
    repository: pivotaldata/ubuntu-gpdb-dev
486
    tag: '16.04'
487

488 489 490 491 492 493
- name: ubuntu-gpdb-debian-dev-16
  type: docker-image
  source:
    repository: pivotaldata/ubuntu-gpdb-debian-dev
    tag: '16.04'

494 495
{% endif %}
{% if "centos6" in os_types %}
J
Jingyi Mei 已提交
496
- name: bin_gpdb_centos6
497 498 499 500 501 502
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
503
    versioned_file: {{bin_gpdb_centos_versioned_file}}
504

505 506 507 508 509 510 511 512 513 514 515
{% endif %}
{% if pipeline_type == "prod" %}
- name: bin_gpdb_centos6_icw_green
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: bin_gpdb_centos6/gpdb_branch_master/icw_green/bin_gpdb.tar.gz

516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542
- name: bin_gpdb_centos6_rc
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{gpdb-stable-builds-bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: release_candidates/bin_gpdb_centos6/gpdb6/((rc-build-type))/bin_gpdb.tar.gz

- name: bin_gpdb_centos7_rc
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{gpdb-stable-builds-bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: release_candidates/bin_gpdb_centos7/gpdb6/((rc-build-type))/bin_gpdb.tar.gz

- name: bin_gpdb_sles11_rc
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{gpdb-stable-builds-bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: release_candidates/bin_gpdb_sles11/gpdb6/((rc-build-type))/bin_gpdb.tar.gz

543 544
{% endif %}
{% if "ubuntu16" in os_types %}
545 546 547 548 549 550 551 552 553
- name: compiled_bits_ubuntu16
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{compiled_bits_ubuntu16_versioned_file}}

554 555
{% endif %}
{% if "centos6" in os_types %}
556 557 558 559 560 561 562 563 564
- name: binary_swap_gpdb_centos6
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{binary_swap_gpdb_centos_versioned_file}}

565 566
{% endif %}
{% if "centos7" in os_types %}
J
Jingyi Mei 已提交
567 568 569 570 571 572 573 574 575
- name: bin_gpdb_centos7
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{bin_gpdb_centos7_versioned_file}}

576 577
{% endif %}
{% if "sles" in os_types %}
T
Tom Meyer 已提交
578 579 580 581 582 583 584 585 586
- name: bin_gpdb_sles11
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{bin_gpdb_sles11_versioned_file}}

587 588
{% endif %}
{% if "aix7" in os_types %}
589 590 591 592 593 594 595
- name: installer_aix7_gpdb_clients
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
M
Mike Roth 已提交
596
    regexp: deliverables/greenplum-clients-(.*)-aix7_ppc_64.zip
597 598 599 600 601 602 603 604

- name: installer_aix7_gpdb_loaders
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
M
Mike Roth 已提交
605
    regexp: deliverables/greenplum-loaders-(.*)-aix7_ppc_64.zip
606

607 608
{% endif %}
{% if "ubuntu16" in os_types %}
609 610 611 612 613 614 615 616 617
- name: deb_package_ubuntu16
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{bucket-name}}
    region_name: {{aws-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{deb_package_ubuntu16_versioned_file}}

618
{% endif %}
J
Jim Doty 已提交
619
{% if "aix7" in os_types %}
L
Lisa Oakley 已提交
620 621 622 623 624 625 626
- name: nightly-trigger
  type: time
  source:
    location: America/Los_Angeles
    days: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday]
    start: 6:00 AM
    stop: 7:00 AM
627

628
{% endif %}
629
{% if "AA" in test_sections %}
630 631 632 633 634 635 636
- name: madlib_src
  type: git
  source:
    branch: master
    uri: https://github.com/apache/madlib.git
    tag_filter: rel/*

637 638 639 640 641 642 643 644 645 646 647
- name: madlib_ci
  type: git
  source:
    branch: {{madlib-ci-git-branch}}
    uri: {{madlib-ci-git-remote}}
    private_key: {{madlib-ci-git-key}}

- name: madlib_gppkg
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676
    bucket: {{madlib-bucket-name}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file:  {{madlib-gppkg-versioned-file}}
    region_name: {{madlib-s3-region}}

- name: cmake_tar
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{madlib-bucket-name}}
    region_name: {{madlib-s3-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{madlib-cmake-versioned-file}}

- name: pyxb
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{madlib-bucket-name}}
    region_name: {{madlib-s3-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{madlib-pyxb-versioned-file}}

- name: eigen
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{madlib-bucket-name}}
    region_name: {{madlib-s3-region}}
677
    secret_access_key: {{bucket-secret-access-key}}
678
    versioned_file: {{madlib-eigen-versioned-file}}
679

680 681 682 683 684 685 686 687
- name: boost
  type: s3
  source:
    access_key_id: {{bucket-access-key-id}}
    bucket: {{madlib-bucket-name}}
    region_name: {{madlib-s3-region}}
    secret_access_key: {{bucket-secret-access-key}}
    versioned_file: {{madlib-boost-versioned-file}}
688 689
{% endif %}

690 691 692 693
- name: reduced-frequency-trigger
  type: time
  source:
    location: America/Los_Angeles
M
Michael Roth 已提交
694
    days: [Sunday, Monday, Tuesday, Wednesday, Thursday, Friday, Saturday]
695 696
    start: {{reduced-frequency-trigger-start}}
    stop: {{reduced-frequency-trigger-stop}}
697
## ======================================================================
K
Kris Macoskey 已提交
698 699
##                   _
##   __ _ _ __   ___| |__   ___  _ __ ___
700 701 702
##  / _` | '_ \ / __| '_ \ / _ \| '__/ __|
## | (_| | | | | (__| | | | (_) | |  \__ \
##  \__,_|_| |_|\___|_| |_|\___/|_|  |___/
703
## ======================================================================
704

705
anchors:
706
- &ccp_default_params
707 708 709
  action: create
  delete_on_failure: true
  generate_random_name: true
A
Alexandra Wang 已提交
710
  terraform_source: ccp_src/google/
711

712
- &ccp_default_vars
A
Alexandra Wang 已提交
713 714
  instance_type: n1-standard-1
  PLATFORM: centos6
715

716
- &ccp_destroy
717 718 719 720
  put: terraform
  params:
    action: destroy
    env_name_file: terraform/name
A
Alexandra Wang 已提交
721
    terraform_source: ccp_src/google/
722 723
    vars:
      aws_instance-node-instance_type: t2.micro #t2.micro is ignored in destroy, but aws_instance-node-instance_type is required.
724
      aws_ebs_volume_type: standard
725 726 727
  get_params:
    action: destroy

728
- &ccp_destroy_two_clusters
C
Chris Hajas 已提交
729 730 731 732 733 734
  do:
  - *ccp_destroy
  - put: terraform2
    params:
      action: destroy
      env_name_file: terraform2/name
A
Alexandra Wang 已提交
735
      terraform_source: ccp_src/google/
C
Chris Hajas 已提交
736
      vars:
A
Alexandra Wang 已提交
737
        PLATFORM: centos6
C
Chris Hajas 已提交
738 739 740 741 742
        aws_instance-node-instance_type: t2.micro
        cluster_suffix: "-2"
    get_params:
      action: destroy

743
- &ccp_gen_cluster_default_params
744 745 746
  AWS_ACCESS_KEY_ID: {{tf-machine-access-key-id}}
  AWS_SECRET_ACCESS_KEY: {{tf-machine-secret-access-key}}
  AWS_DEFAULT_REGION: {{aws-region}}
A
Alexandra Wang 已提交
747
  BUCKET_PATH: clusters-google/
748
  BUCKET_NAME: {{tf-bucket-name}}
A
Alexandra Wang 已提交
749
  CLOUD_PROVIDER: google
750

751
- &set_failed
752
  do:
753
  - task: on_failure_set_failed
754 755 756 757 758
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
759
          repository: pivotaldata/ccp
760 761 762 763
          tag: "7"
      inputs:
        - name: ccp_src
        - name: terraform
764
      run:
A
Alexandra Wang 已提交
765
        path: 'ccp_src/google/ccp_failed_test.sh'
766
      params:
A
Alexandra Wang 已提交
767 768 769 770
        GOOGLE_CREDENTIALS: {{google-service-account-key}}
        GOOGLE_PROJECT_ID: {{google-project-id}}
        GOOGLE_ZONE: {{google-zone}}
        GOOGLE_SERVICE_ACCOUNT: {{google-service-account}}
771 772 773
        AWS_ACCESS_KEY_ID: {{tf-machine-access-key-id}}
        AWS_SECRET_ACCESS_KEY: {{tf-machine-secret-access-key}}
        AWS_DEFAULT_REGION: {{tf-machine-region}}
A
Alexandra Wang 已提交
774
        BUCKET_PATH: clusters-google/
775
        BUCKET_NAME: {{tf-bucket-name}}
776

777
- &set_failed_two_clusters
778 779 780 781 782 783 784 785 786 787 788 789 790 791
  do:
  - *set_failed
  - task: on_failure_set_failed
    config:
      platform: linux
      image_resource:
        type: docker-image
        source:
          repository: pivotaldata/ccp
          tag: "7"
      inputs:
        - name: ccp_src
        - name: terraform2
      run:
A
Alexandra Wang 已提交
792
        path: 'ccp_src/google/ccp_failed_test.sh'
793
      params:
A
Alexandra Wang 已提交
794 795 796 797
        GOOGLE_CREDENTIALS: {{google-service-account-key}}
        GOOGLE_PROJECT_ID: {{google-project-id}}
        GOOGLE_ZONE: {{google-zone}}
        GOOGLE_SERVICE_ACCOUNT: {{google-service-account}}
798 799 800
        AWS_ACCESS_KEY_ID: {{tf-machine-access-key-id}}
        AWS_SECRET_ACCESS_KEY: {{tf-machine-secret-access-key}}
        AWS_DEFAULT_REGION: {{tf-machine-region}}
A
Alexandra Wang 已提交
801
        BUCKET_PATH: clusters-google/
802
        BUCKET_NAME: {{tf-bucket-name}}
803

804
replication_ccp_gen_cluster_params_anchor: &replication_ccp_gen_cluster_params
805 806 807 808
  file: ccp_src/ci/tasks/gen_cluster.yml
  params:
    <<: *ccp_gen_cluster_default_params

809
## ======================================================================
K
Kris Macoskey 已提交
810 811
##    _       _
##   (_) ___ | |__  ___
812 813 814
##   | |/ _ \| '_ \/ __|
##   | | (_) | |_) \__ \
##  _/ |\___/|_.__/|___/
K
Kris Macoskey 已提交
815
## |__/
816 817 818
## ======================================================================

jobs:
819

820
## ======================================================================
K
Kris Macoskey 已提交
821 822
##   ____                      _ _
##  / ___|___  _ __ ___  _ __ (_) | ___
823 824 825
## | |   / _ \| '_ ` _ \| '_ \| | |/ _ \
## | |__| (_) | | | | | | |_) | | |  __/
##  \____\___/|_| |_| |_| .__/|_|_|\___|
K
Kris Macoskey 已提交
826
##                      |_|
827 828 829
## ======================================================================

{% if "centos6" in os_types %}
830 831 832 833
- name: compile_gpdb_centos6
  plan:
  - aggregate:
    - get: gpdb_src
834
      trigger: ((gpdb_src-trigger-flag))
835
    - get: reduced-frequency-trigger
836
      trigger: ((reduced-frequency-trigger-flag))
M
Marbin Tan 已提交
837
    - get: gpaddon_src
838
    - get: centos-gpdb-dev-6
839 840
  - task: sync_tools
    file: gpdb_src/concourse/tasks/sync_tools.yml
841
    image: centos-gpdb-dev-6
842 843 844 845 846
    params:
      IVYREPO_HOST: {{ivyrepo_host}}
      IVYREPO_REALM: {{ivyrepo_realm}}
      IVYREPO_USER: {{ivyrepo_user}}
      IVYREPO_PASSWD: {{ivyrepo_passwd}}
847 848 849 850 851 852 853 854
      TARGET_OS: centos
      TARGET_OS_VERSION: 6
      TASK_OS: centos
      TASK_OS_VERSION: 6
  - task: compile_gpdb
    file: gpdb_src/concourse/tasks/compile_gpdb.yml
    image: centos-gpdb-dev-6
    params:
855
      CONFIGURE_FLAGS: {{configure_flags}}
856 857
      TARGET_OS: centos
      TARGET_OS_VERSION: 6
858
      BLD_TARGETS: "clients loaders"
859
  - aggregate:
J
Jingyi Mei 已提交
860
    - put: bin_gpdb_centos6
861 862
      params:
        file: gpdb_artifacts/bin_gpdb.tar.gz
M
Michael Roth 已提交
863

864 865
{% endif %}
{% if "centos7" in os_types %}
M
Michael Roth 已提交
866
- name: compile_gpdb_centos7
867 868
  plan:
  - aggregate:
869
    - get: reduced-frequency-trigger
870
      trigger: ((reduced-frequency-trigger-flag))
871
    - get: gpdb_src
872
      trigger: ((gpdb_src-trigger-flag))
M
Marbin Tan 已提交
873
    - get: gpaddon_src
874
    - get: centos-gpdb-build-7
875 876
  - task: sync_tools
    file: gpdb_src/concourse/tasks/sync_tools.yml
877
    image: centos-gpdb-build-7
878 879 880 881 882
    params:
      IVYREPO_HOST: {{ivyrepo_host}}
      IVYREPO_REALM: {{ivyrepo_realm}}
      IVYREPO_USER: {{ivyrepo_user}}
      IVYREPO_PASSWD: {{ivyrepo_passwd}}
883 884 885 886 887 888 889 890
      TARGET_OS: centos
      TARGET_OS_VERSION: 7
      TASK_OS: centos
      TASK_OS_VERSION: 7
  - task: compile_gpdb
    image: centos-gpdb-build-7
    file: gpdb_src/concourse/tasks/compile_gpdb.yml
    params:
M
Michael Roth 已提交
891
      CONFIGURE_FLAGS: {{configure_flags}}
892
      TARGET_OS: centos
M
Michael Roth 已提交
893 894
      TARGET_OS_VERSION: 7
      BLD_TARGETS: "clients loaders"
J
Jingyi Mei 已提交
895
  - aggregate:
M
Michael Roth 已提交
896
    - put: bin_gpdb_centos7
J
Jingyi Mei 已提交
897 898
      params:
        file: gpdb_artifacts/bin_gpdb.tar.gz
M
Michael Roth 已提交
899

900 901
{% endif %}
{% if "sles" in os_types %}
M
Michael Roth 已提交
902
- name: compile_gpdb_sles11
903 904 905
  plan:
  - aggregate:
    - get: reduced-frequency-trigger
906
      trigger: ((reduced-frequency-trigger-flag))
907
    - get: gpdb_src
908
      trigger: ((gpdb_src-trigger-flag))
909
    - get: gpaddon_src
910 911 912 913
    - get: centos-gpdb-build-7
  - task: sync_tools
    file: gpdb_src/concourse/tasks/sync_tools.yml
    image: centos-gpdb-build-7
914
    params:
915 916 917 918
      IVYREPO_HOST: {{ivyrepo_host}}
      IVYREPO_REALM: {{ivyrepo_realm}}
      IVYREPO_USER: {{ivyrepo_user}}
      IVYREPO_PASSWD: {{ivyrepo_passwd}}
919 920 921 922 923 924 925
      TARGET_OS: sles
      TARGET_OS_VERSION:
      TASK_OS: centos
      TASK_OS_VERSION: 7
  - task: compile_gpdb
    file: gpdb_src/concourse/tasks/compile_gpdb_sles11.yml
    params:
926
      CONFIGURE_FLAGS: {{configure_flags}}
M
Michael Roth 已提交
927 928
      TARGET_OS: sles
      TARGET_OS_VERSION:
929
      BLD_TARGETS: "clients loaders"
M
Michael Roth 已提交
930 931 932 933
  - put: bin_gpdb_sles11
    params:
      file: gpdb_artifacts/bin_gpdb.tar.gz

934 935
{% endif %}
{% if "ubuntu16" in os_types %}
936 937 938 939
- name: compile_gpdb_ubuntu16
  plan:
  - aggregate:
    - get: reduced-frequency-trigger
940
      trigger: ((reduced-frequency-trigger-flag))
941
    - get: gpdb_src
942
      trigger: ((gpdb_src-trigger-flag))
943
    - get: ubuntu-gpdb-dev-16
944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964
    - get: ubuntu-gpdb-debian-dev-16
    - get: debian_release
  - aggregate:
    - task: compile_gpdb
      image: ubuntu-gpdb-dev-16
      file: gpdb_src/concourse/tasks/compile_gpdb_open_source_ubuntu.yml
      params:
        CONFIGURE_FLAGS: {{configure_flags}}
    - task: deb_create_package
      file: gpdb_src/concourse/tasks/deb_create_package.yml
      image: ubuntu-gpdb-debian-dev-16
      params:
        DEBFULLNAME: ((debian-package-maintainer-fullname))
        DEBEMAIL: ((debian-package-maintainer-email))
  - aggregate:
    - put: compiled_bits_ubuntu16
      params:
        file: compiled_bits_ubuntu16/compiled_bits_ubuntu16.tar.gz
    - put: deb_package_ubuntu16
      params:
        file: {{deb_package_ubuntu16_versioned_file}}
M
Michael Roth 已提交
965

966 967
{% endif %}
{% if "centos6" in os_types %}
M
Michael Roth 已提交
968 969
- name: compile_gpdb_open_source_centos6
  public: true
T
Tom Meyer 已提交
970 971
  plan:
  - aggregate:
972
    - get: reduced-frequency-trigger
973
      trigger: ((reduced-frequency-trigger-flag))
T
Tom Meyer 已提交
974
    - get: gpdb_src
975
      trigger: ((gpdb_src-trigger-flag))
M
Michael Roth 已提交
976 977 978 979 980 981 982
    - get: centos-gpdb-dev-6
  - task: compile_gpdb
    image: centos-gpdb-dev-6
    file: gpdb_src/concourse/tasks/compile_gpdb_open_source_centos.yml
    params:
        CONFIGURE_FLAGS: {{configure_flags}}

983 984
{% endif %}
{% if "centos6" in os_types %}
M
Michael Roth 已提交
985 986 987 988 989 990 991 992 993 994
- name: compile_gpdb_binary_swap_centos6
  plan:
  # This acts like a cache as this job will only be run once to get a
  # binary to use for our binary swap compatibility tests. Setting a new
  # tag or branch for the gpdb_src_binary_swap resource via set-pipeline
  # will replace the cached binary.
  - aggregate:
    - get: gpdb_src
      resource: gpdb_src_binary_swap
      trigger: true
T
Tom Meyer 已提交
995
    - get: gpaddon_src
996
      resource: gpaddon_src_binary_swap
M
Michael Roth 已提交
997
    - get: centos-gpdb-dev-6
T
Tom Meyer 已提交
998
  - task: compile_gpdb
M
Michael Roth 已提交
999 1000
    file: gpdb_src/concourse/tasks/compile_gpdb.yml
    image: centos-gpdb-dev-6
T
Tom Meyer 已提交
1001 1002 1003 1004 1005
    params:
      IVYREPO_HOST: {{ivyrepo_host}}
      IVYREPO_REALM: {{ivyrepo_realm}}
      IVYREPO_USER: {{ivyrepo_user}}
      IVYREPO_PASSWD: {{ivyrepo_passwd}}
M
Michael Roth 已提交
1006 1007 1008 1009 1010 1011 1012
      TARGET_OS: centos
      TARGET_OS_VERSION: 6
  - aggregate:
    - put: binary_swap_gpdb_centos6
      params:
        file: gpdb_artifacts/bin_gpdb.tar.gz

1013 1014
{% endif %}
{% if "aix7" in os_types %}
1015 1016 1017
- name: compile_gpdb_aix7_remote
  serial: true
  plan:
1018 1019 1020
  # Compile gpdb on a remote AIX machine, triggered by concourse.
  # We need to serialize this job to avoid overwhelming workload
  # on remote machine.
1021
  - aggregate:
L
Lisa Oakley 已提交
1022 1023
    - get: nightly-trigger
      trigger: true
1024 1025 1026 1027 1028 1029 1030
    - get: gpdb_src
    - get: gpaddon_src
    - get: centos-gpdb-dev-6
  - task: compile_gpdb_aix7_remote
    file: gpdb_src/concourse/tasks/compile_gpdb_remote.yml
    image: centos-gpdb-dev-6
    params:
1031 1032
      REMOTE_HOST: {{remote_host_build}}
      REMOTE_PORT: {{remote_port_build}}
L
Lisa Oakley 已提交
1033 1034
      REMOTE_USER: {{remote_user_build}}
      REMOTE_KEY: {{remote_key_build}}
1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046
      IVYREPO_HOST: {{ivyrepo_host}}
      IVYREPO_REALM: {{ivyrepo_realm}}
      IVYREPO_USER: {{ivyrepo_user}}
      IVYREPO_PASSWD: {{ivyrepo_passwd}}
      BLD_TARGETS: "clients loaders"
  - aggregate:
    - put: installer_aix7_gpdb_clients
      params:
        file: gpdb_artifacts/greenplum-clients-*-aix7_ppc_64.zip
    - put: installer_aix7_gpdb_loaders
      params:
        file: gpdb_artifacts/greenplum-loaders-*-aix7_ppc_64.zip
1047

1048 1049
- name: client_loader_remote_test_aix
  serial: true
1050 1051 1052
  plan:
  - aggregate:
    - get: gpdb_src
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062
      passed:
      - compile_gpdb_aix7_remote
      - compile_gpdb_centos6
    - get: installer_aix7_gpdb_clients
      passed:
      - compile_gpdb_aix7_remote
    - get: installer_aix7_gpdb_loaders
      passed:
      - compile_gpdb_aix7_remote
      trigger: true
1063
    - get: bin_gpdb
1064 1065
      passed:
      - compile_gpdb_centos6
1066 1067
      resource: bin_gpdb_centos6
    - get: centos-gpdb-dev-6
1068 1069 1070 1071
    - put: aix_environments
      params: {acquire: true}
  - task: ic_gpdb_cl
    file: gpdb_src/concourse/tasks/ic_gpdb_remote.yml
1072 1073
    image: centos-gpdb-dev-6
    params:
1074
      BLD_TARGETS: "clients loaders"
1075 1076 1077 1078
      REMOTE_HOST: {{remote_host_test}}
      REMOTE_PORT: {{remote_port_test}}
      REMOTE_USER: {{remote_user_test}}
      REMOTE_KEY: {{remote_key_test}}
1079 1080 1081 1082 1083 1084
    ensure:
      do:
      - task: cleanup_aix
        file: gpdb_src/concourse/tasks/aix_remote_cleanup.yml
        image: centos-gpdb-dev-6
        params:
1085 1086 1087 1088
          REMOTE_HOST: {{remote_host_test}}
          REMOTE_PORT: {{remote_port_test}}
          REMOTE_USER: {{remote_user_test}}
          REMOTE_KEY: {{remote_key_test}}
1089 1090
      - put: aix_environments
        params: {release: aix_environments}
M
Michael Roth 已提交
1091

1092 1093 1094 1095 1096 1097
{% endif %}

{% if "ICW" in test_sections %}
## ======================================================================
##  ___ ______        __
## |_ _/ ___\ \      / /
K
Kris Macoskey 已提交
1098 1099 1100
##  | | |    \ \ /\ / /
##  | | |___  \ V  V /
## |___\____|  \_/\_/
1101
## ======================================================================
1102

1103
{% if "centos6" in os_types %}
1104 1105 1106 1107
- name: icw_planner_centos6
  plan:
  - aggregate:
    - get: gpdb_src
1108
      passed: [compile_gpdb_centos6]
1109
    - get: bin_gpdb
1110
      passed: [compile_gpdb_centos6]
1111
      resource: bin_gpdb_centos6
1112
      trigger: [[ test_trigger ]]
1113
    - get: binary_swap_gpdb
1114
      passed: [compile_gpdb_binary_swap_centos6]
1115
      resource: binary_swap_gpdb_centos6
1116
      trigger: [[ test_trigger ]]
1117 1118
    - get: centos-gpdb-dev-6
  - task: ic_gpdb
1119
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
1120 1121
    image: centos-gpdb-dev-6
    params:
1122
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off' installcheck-world
1123 1124 1125
      TEST_OS: centos
      TEST_BINARY_SWAP: false
      CONFIGURE_FLAGS: {{configure_flags}}
M
Michael Roth 已提交
1126

1127 1128 1129 1130
- name: icw_gporca_centos6
  plan:
  - aggregate:
    - get: gpdb_src
1131
      passed: [compile_gpdb_centos6]
1132 1133
    - get: bin_gpdb
      resource: bin_gpdb_centos6
1134
      passed: [compile_gpdb_centos6]
1135
      trigger: [[ test_trigger ]]
1136 1137 1138 1139 1140
    - get: centos-gpdb-dev-6
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-dev-6
    params:
1141
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=on' installcheck-world
1142 1143
      TEST_OS: centos
      CONFIGURE_FLAGS: {{configure_flags}}
1144
      DUMP_DB: "true"
1145
  - put: icw_gporca_centos6_dump
1146 1147
    params:
      file: sqldump/dump.sql.xz
M
Michael Roth 已提交
1148

1149 1150 1151 1152
- name: icw_gporca_centos6_gpos_memory
  plan:
  - aggregate:
    - get: gpdb_src
1153
      passed: [compile_gpdb_centos6]
1154 1155
    - get: bin_gpdb
      resource: bin_gpdb_centos6
1156
      passed: [compile_gpdb_centos6]
1157 1158 1159 1160 1161 1162
      trigger: [[ test_trigger ]]
    - get: centos-gpdb-dev-6
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-dev-6
    params:
1163
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=on' installcheck-world
1164 1165 1166 1167 1168 1169 1170 1171
      BLDWRAP_POSTGRES_CONF_ADDONS: optimizer_use_gpdb_allocators=on
      TEST_OS: centos
      CONFIGURE_FLAGS: {{configure_flags}}

- name: icw_planner_ictcp_centos6
  plan:
  - aggregate:
    - get: gpdb_src
1172
      passed: [compile_gpdb_centos6]
1173 1174
    - get: bin_gpdb
      resource: bin_gpdb_centos6
1175
      passed: [compile_gpdb_centos6]
1176 1177 1178 1179 1180 1181
      trigger: [[ test_trigger ]]
    - get: centos-gpdb-dev-6
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-dev-6
    params:
1182
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c gp_interconnect_type=tcp -c optimizer=off' installcheck-world
1183 1184 1185 1186
      TEST_OS: centos

{% endif %}
{% if "centos7" in os_types %}
1187 1188 1189 1190
- name: icw_gporca_centos7
  plan:
  - aggregate:
    - get: gpdb_src
1191
      passed: [compile_gpdb_centos7]
1192 1193
    - get: bin_gpdb
      resource: bin_gpdb_centos7
1194
      passed: [compile_gpdb_centos7]
1195
      trigger: [[ test_trigger ]]
1196
    - get: centos-gpdb-test-7
J
Jingyi Mei 已提交
1197 1198
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
1199
    image: centos-gpdb-test-7
J
Jingyi Mei 已提交
1200
    params:
1201
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=on' installcheck-world
J
Jingyi Mei 已提交
1202
      TEST_OS: centos
1203
      CONFIGURE_FLAGS: {{configure_flags}}
M
Michael Roth 已提交
1204

K
Kris Macoskey 已提交
1205 1206 1207 1208 1209 1210 1211 1212 1213
- name: icw_planner_centos7
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [compile_gpdb_centos7]
    - get: bin_gpdb
      passed: [compile_gpdb_centos7]
      resource: bin_gpdb_centos7
      trigger: [[ test_trigger ]]
1214
    - get: centos-gpdb-test-7
K
Kris Macoskey 已提交
1215 1216
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
1217
    image: centos-gpdb-test-7
K
Kris Macoskey 已提交
1218
    params:
1219
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off' installcheck-world
K
Kris Macoskey 已提交
1220 1221 1222 1223
      TEST_OS: centos
      TEST_BINARY_SWAP: false
      CONFIGURE_FLAGS: {{configure_flags}}

1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339
- name: icg_planner_centos7_random_numsegments
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [compile_gpdb_centos7]
    - get: bin_gpdb
      passed: [compile_gpdb_centos7]
      resource: bin_gpdb_centos7
      trigger: [[ test_trigger ]]
    - get: centos-gpdb-test-7
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-test-7
    params:
      MAKE_TEST_COMMAND: -k
        -C src/test/regress installcheck-good
        PGOPTIONS='-c optimizer=off'
        EXCLUDE_TESTS="'
          AOCO_Compression2
          alter_distribution_policy
          alter_table_ao
          alter_table_aocs
          alter_table_set
          ao_checksum_corruption
          ao_locks
          aocs
          appendonly
          bfv_dd
          bfv_dd_multicolumn
          bfv_dd_types
          bfv_partition
          bfv_partition_plans
          bfv_subquery
          bitmap_index
          bitmapscan
          complex
          constraints
          db_size_functions
          deadlock
          direct_dispatch
          dispatch
          distributed_transactions
          explain_format
          freeze_aux_tables
          gp_aggregates
          gp_tablespace
          gpcopy
          gpdist
          gporca
          ic
          incremental_analyze
          instr_in_shmem
          instr_in_shmem_verify
          join
          memconsumption
          metadata_track
          misc
          oid_consistency
          partindex_test
          partition
          partition1
          partition_locking
          partition_pruning
          partition_storage
          portals
          portals_updatable
          python_processed64bit
          qp_dml_oids
          qp_dropped_cols
          qp_functions_in_from
          qp_functions_in_subquery
          qp_gist_indexes2
          qp_misc_jiras
          qp_targeted_dispatch
          qp_with_functional_inlining
          query_finish
          query_finish_pending
          rle_delta
          rpt_returning
          spi_processed64bit
          subselect_gp
          tidscan
          uao_catalog_tables
          uao_compaction/threshold
          uao_ddl/alter_ao_part_exch
          uao_ddl/alter_ao_part_exch_column
          uao_ddl/alter_ao_part_exch_row
          uao_ddl/alter_ao_table_setstorage_column
          uao_ddl/alter_ao_table_setstorage_row
          uao_dml/uao_dml_column
          uao_dml/uao_dml_row
          uaocs_catalog_tables
          uaocs_compaction/threshold
          updatable_views
          update
          vacuum_full_ao
          vacuum_full_freeze_heap
          vacuum_full_heap
          vacuum_full_heap_bitmapindex
          vacuum_stats
          window
          workfile/hashagg_spill
          workfile/hashjoin_spill
          workfile/materialize_spill
          workfile/sisc_mat_sort
          workfile/sisc_sort_spill
          workfile/sort_spill
          workfile/spilltodisk
          writer_aborts_reader'"
        EXTRA_REGRESS_OPTS='
          --prehook=randomize_create_table_default_numsegments
          --ignore-plans'
      TEST_OS: centos
      TEST_BINARY_SWAP: false
      CONFIGURE_FLAGS: {{configure_flags}}

1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360
- name: icw_planner_centos7_online_expand
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [compile_gpdb_centos7]
    - get: bin_gpdb
      passed: [compile_gpdb_centos7]
      resource: bin_gpdb_centos7
      trigger: [[ test_trigger ]]
    - get: centos-gpdb-test-7
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-test-7
    params:
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off' installcheck-world
      TEST_OS: centos
      TEST_BINARY_SWAP: false
      CONFIGURE_FLAGS: {{configure_flags}}
      EXCLUDE_TESTS: instr_in_shmem_setup,instr_in_shmem_terminate,segspace_setup,segspace,segspace_cleanup,cursor,instr_in_shmem,instr_in_shmem_verify
      ONLINE_EXPAND: true

1361 1362
{% endif %}
{% if "sles" in os_types %}
T
Tom Meyer 已提交
1363 1364 1365 1366
- name: icw_gporca_sles11
  plan:
  - aggregate:
    - get: gpdb_src
1367
      passed: [compile_gpdb_sles11]
T
Tom Meyer 已提交
1368 1369
    - get: bin_gpdb
      resource: bin_gpdb_sles11
1370
      passed: [compile_gpdb_sles11]
1371
      trigger: [[ test_trigger ]]
T
Tom Meyer 已提交
1372
  - task: ic_gpdb
1373
    file: gpdb_src/concourse/tasks/ic_gpdb_sles11.yml
T
Tom Meyer 已提交
1374
    params:
1375
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=on' installcheck-world
T
Tom Meyer 已提交
1376
      TEST_OS: sles
1377
      CONFIGURE_FLAGS: {{configure_flags}}
M
Michael Roth 已提交
1378

N
Ning Yu 已提交
1379 1380 1381 1382
- name: icw_gporca_sles12
  plan:
  - aggregate:
    - get: gpdb_src
1383
      passed: [compile_gpdb_sles11]
N
Ning Yu 已提交
1384 1385
    - get: gpdb_binary
      resource: bin_gpdb_sles11
1386
      passed: [compile_gpdb_sles11]
N
Ning Yu 已提交
1387 1388 1389 1390 1391 1392 1393 1394
      trigger: true
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
A
Alexandra Wang 已提交
1395
        PLATFORM: sles12
1396
        disk_size: 128
N
Ning Yu 已提交
1397
        number_of_nodes: 1
A
Alexandra Wang 已提交
1398
        default_image_user: root
1399
        instance_type: n1-standard-4
N
Ning Yu 已提交
1400 1401 1402 1403
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1404 1405 1406 1407
      # PLATFORM is necessary to generate correct ssh config
      PLATFORM: sles12
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
N
Ning Yu 已提交
1408 1409 1410 1411
  - task: run_tests
    file: gpdb_src/concourse/tasks/ic_gpdb_sles12.yml
    image: centos-gpdb-dev-6
    params:
1412
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=on' installcheck-world
N
Ning Yu 已提交
1413 1414 1415 1416 1417 1418 1419 1420 1421 1422
      TEST_OS: sles12
    on_success:
      <<: *ccp_destroy
  ensure:
    <<: *set_failed

- name: icw_planner_sles12
  plan:
  - aggregate:
    - get: gpdb_src
1423
      passed: [compile_gpdb_sles11]
N
Ning Yu 已提交
1424 1425
    - get: gpdb_binary
      resource: bin_gpdb_sles11
1426
      passed: [compile_gpdb_sles11]
N
Ning Yu 已提交
1427 1428 1429 1430 1431 1432 1433 1434
      trigger: true
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
A
Alexandra Wang 已提交
1435
        PLATFORM: sles12
1436
        disk_size: 128
N
Ning Yu 已提交
1437
        number_of_nodes: 1
A
Alexandra Wang 已提交
1438
        default_image_user: root
1439
        instance_type: n1-standard-4
N
Ning Yu 已提交
1440 1441 1442 1443
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1444 1445 1446 1447
      # PLATFORM is necessary to generate correct ssh config
      PLATFORM: sles12
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
N
Ning Yu 已提交
1448 1449 1450 1451
  - task: run_tests
    file: gpdb_src/concourse/tasks/ic_gpdb_sles12.yml
    image: centos-gpdb-dev-6
    params:
1452
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off' installcheck-world
N
Ning Yu 已提交
1453 1454 1455 1456 1457 1458
      TEST_OS: sles12
    on_success:
      <<: *ccp_destroy
  ensure:
    <<: *set_failed

1459 1460
{% endif %}
{% if "ubuntu16" in os_types %}
1461 1462 1463 1464
- name: icw_planner_ubuntu16
  plan:
  - aggregate:
    - get: gpdb_src
1465
      passed: [compile_gpdb_ubuntu16]
1466
    - get: compiled_bits_ubuntu16
1467
      passed: [compile_gpdb_ubuntu16]
1468
      trigger: [[ test_trigger ]]
1469 1470 1471 1472 1473
    - get: ubuntu-gpdb-dev-16
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb_ubuntu.yml
    image: ubuntu-gpdb-dev-16
    params:
1474
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off' installcheck-world
L
Larry Hamel 已提交
1475
      CONFIGURE_FLAGS: {{configure_flags}}
M
Michael Roth 已提交
1476

G
Goutam Tadi 已提交
1477 1478 1479 1480 1481 1482
- name: icw_gporca_conan_ubuntu16
  plan:
  - aggregate:
    - get: gpdb_src
      params:
        submodules: none
1483
      passed: [compile_gpdb_ubuntu16]
G
Goutam Tadi 已提交
1484
    - get: bin_gpdb
1485
      passed: [compile_gpdb_ubuntu16]
M
Michael Roth 已提交
1486
      resource: compiled_bits_ubuntu16
1487
      trigger: [[ test_trigger ]]
G
Goutam Tadi 已提交
1488 1489 1490 1491 1492 1493
    - get: ubuntu-gpdb-dev-16
  - task: icw_with_orca
    image: ubuntu-gpdb-dev-16
    file: gpdb_src/concourse/tasks/test_with_orca_conan.yml
    params:
      TEST_SUITE: "icw"
M
Michael Roth 已提交
1494

1495
- name: gpdb_packaging_ubuntu16
1496 1497 1498 1499
  plan:
  - aggregate:
    - get: gpdb_src
      passed:
1500
      - compile_gpdb_ubuntu16
1501 1502 1503
    - get: ubuntu-gpdb-debian-dev-16
    - get: deb_package_ubuntu16
      passed:
1504
      - compile_gpdb_ubuntu16
1505
      trigger: [[ test_trigger ]]
1506 1507 1508 1509 1510 1511
  - task: test_gpdb_deb_package
    file: gpdb_src/concourse/tasks/deb_test_package.yml
    image: ubuntu-gpdb-debian-dev-16
    params:
      DEBIAN_PACKAGE: {{deb_package_ubuntu16_versioned_file}}

1512 1513
{% endif %}
- name: gate_icw_end
1514
  plan:
1515
  - aggregate:
1516 1517 1518 1519 1520 1521 1522
{% if "centos6" in os_types %}
    - get: bin_gpdb_centos6
      passed:
      - icw_gporca_centos6
      - icw_gporca_centos6_gpos_memory
      - icw_planner_centos6
      - icw_planner_ictcp_centos6
1523
{% if "Extensions" in test_sections %}
1524
      - icw_extensions_gpcloud_centos6
1525
{% endif %}
1526 1527 1528 1529 1530
{% endif %}
{% if "centos6" in os_types %}
    - get: icw_gporca_centos6_dump
      passed:
      - icw_gporca_centos6
1531
{% endif %}
1532 1533
    - get: gpdb_src
      passed:
1534 1535 1536
{% if "centos6" in os_types %}
      - icw_gporca_centos6
      - icw_gporca_centos6_gpos_memory
1537
      - icw_planner_centos6
1538
      - icw_planner_ictcp_centos6
1539
{% if "Extensions" in test_sections %}
1540
      - icw_extensions_gpcloud_centos6
1541
{% endif %}
1542
{% endif %}
1543
{% if 'ubuntu16' in os_types %}
1544
{% if "Extensions" in test_sections %}
1545
      - icw_extensions_gpcloud_ubuntu16
1546
{% endif %}
1547
{% endif %}
1548 1549 1550 1551
{% if "centos7" in os_types %}
      - icw_gporca_centos7
{% endif %}
{% if "ubuntu16" in os_types %}
M
Michael Roth 已提交
1552 1553
      - icw_planner_ubuntu16
      - icw_gporca_conan_ubuntu16
1554 1555
{% endif %}
{% if "sles" in os_types %}
1556
      - icw_gporca_sles11
N
Ning Yu 已提交
1557 1558
      - icw_gporca_sles12
      - icw_planner_sles12
1559
{% endif %}
1560
      trigger: true
1561
{% if pipeline_type == "prod" and "centos6" in os_types %}
1562 1563 1564 1565
  - put: bin_gpdb_centos6_icw_green
    params:
      file: bin_gpdb_centos6/bin_gpdb.tar.gz
{% endif %}
M
Michael Roth 已提交
1566

1567
{% endif %}
1568
{% if "Replication" in test_sections %}
1569
## ======================================================================
1570 1571 1572 1573 1574 1575
##  ____            _ _           _   _
## |  _ \ ___ _ __ | (_) ___ __ _| |_(_) ___  _ __
## | |_) / _ \ '_ \| | |/ __/ _` | __| |/ _ \| '_ \
## |  _ <  __/ |_) | | | (_| (_| | |_| | (_) | | | |
## |_| \_\___| .__/|_|_|\___\__,_|\__|_|\___/|_| |_|
##           |_|
1576
## ======================================================================
1577

1578
- name: gate_replication_start
G
Gang Xiong 已提交
1579 1580 1581
  plan:
  - aggregate:
    - get: gpdb_src
1582
      passed:
1583
      - compile_gpdb_centos6
1584 1585 1586
      trigger: true
    - get: bin_gpdb_centos6
      passed:
1587
      - compile_gpdb_centos6
M
Michael Roth 已提交
1588

1589 1590
{% for test_name in walrep_suites %}
- name: [[ test_name ]]
1591 1592 1593
  plan:
  - aggregate:
    - get: gpdb_src
1594
      passed: [gate_replication_start]
1595 1596
    - get: gpdb_binary
      resource: bin_gpdb_centos6
1597
      passed: [gate_replication_start]
1598
      trigger: [[ test_trigger ]]
1599 1600 1601 1602
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
1603 1604 1605
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
1606 1607
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
1608
    params:
1609
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1610 1611
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1612
  - task: run_tests
1613
    file: gpdb_src/concourse/tasks/run_tinc.yml
1614 1615
    image: centos-gpdb-dev-6
    params:
1616
      TINC_TARGET: [[ test_name ]]
1617 1618
    on_success:
      <<: *ccp_destroy
1619
  ensure:
1620
    <<: *set_failed
M
Michael Roth 已提交
1621

1622
{% endfor %}
M
Michael Roth 已提交
1623

X
Xin Zhang 已提交
1624 1625 1626 1627
- name: segwalrep_mirrorless_centos6
  plan:
  - aggregate:
    - get: gpdb_src
1628
      passed: [gate_replication_start]
X
Xin Zhang 已提交
1629
    - get: bin_gpdb
1630
      resource: bin_gpdb_centos6
1631
      passed: [gate_replication_start]
1632
      trigger: [[ test_trigger ]]
X
Xin Zhang 已提交
1633 1634 1635 1636 1637 1638 1639
    - get: centos-gpdb-dev-6
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
    image: centos-gpdb-dev-6
    params:
      MAKE_TEST_COMMAND: "-C src/test/regress && make -C src/test/walrep install installcheck"
      TEST_OS: centos
1640
      CONFIGURE_FLAGS: {{configure_flags}}
X
Xin Zhang 已提交
1641 1642
      WITH_MIRRORS: false

1643
{% endif %}
1644
{% if "Interconnect" in test_sections %}
1645
## ======================================================================
1646 1647 1648 1649 1650
##  ___ _   _ _____ _____ ____   ____ ___  _   _ _   _ _____ ____ _____
## |_ _| \ | |_   _| ____|  _ \ / ___/ _ \| \ | | \ | | ____/ ___|_   _|
##  | ||  \| | | | |  _| | |_) | |  | | | |  \| |  \| |  _|| |     | |
##  | || |\  | | | | |___|  _ <| |__| |_| | |\  | |\  | |__| |___  | |
## |___|_| \_| |_| |_____|_| \_\\____\___/|_| \_|_| \_|_____\____| |_|
1651
## ======================================================================
1652
{% if "centos6" in os_types %}
1653
- name: interconnect
1654
  plan:
C
Chris Hajas 已提交
1655
  - aggregate:
1656
    - get: gpdb_src
1657
      passed: [compile_gpdb_centos6]
1658
    - get: bin_gpdb
1659
      passed: [compile_gpdb_centos6]
1660
      resource: bin_gpdb_centos6
1661
      trigger: [[ test_trigger ]]
C
Chris Hajas 已提交
1662
    - get: centos-gpdb-dev-6
1663 1664
  - task: ic_gpdb
    file: gpdb_src/concourse/tasks/ic_gpdb.yml
1665
    image: centos-gpdb-dev-6
1666
    params:
N
Ning Yu 已提交
1667 1668
      MAKE_TEST_COMMAND: -k PGOPTIONS='-c optimizer=off'
        BUILD_TYPE=((rc-build-type)) -C src/test/regress installcheck-icudp
1669
      TEST_OS: centos
1670 1671 1672
{% endif %}

{% endif %}
1673
{% if "ResourceGroups" in test_sections %}
1674 1675 1676 1677 1678 1679 1680 1681 1682
## ======================================================================
##  ____                                     ____
## |  _ \ ___  ___  ___  _   _ _ __ ___ ___ / ___|_ __ ___  _   _ _ __  ___
## | |_) / _ \/ __|/ _ \| | | | '__/ __/ _ \ |  _| '__/ _ \| | | | '_ \/ __|
## |  _ <  __/\__ \ (_) | |_| | | | (_|  __/ |_| | | | (_) | |_| | |_) \__ \
## |_| \_\___||___/\___/ \__,_|_|  \___\___|\____|_|  \___/ \__,_| .__/|___/
##                                                               |_|
## ======================================================================

1683
- name: gate_resource_groups_start
1684 1685 1686 1687 1688
  plan:
  - aggregate:
    - get: gpdb_src
      passed:
      - compile_gpdb_centos6
1689 1690 1691 1692
{% if "sles" in os_types %}
      - compile_gpdb_sles11
{% endif %}
{% if "centos7" in os_types %}
1693
      - compile_gpdb_centos7
1694
{% endif %}
1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708
      trigger: true
    - get: bin_gpdb_centos6
      passed:
      - compile_gpdb_centos6
{% if "centos7" in os_types %}
    - get: bin_gpdb_centos7
      passed:
      - compile_gpdb_centos7
{% endif %}
{% if "sles" in os_types %}
    - get: bin_gpdb_sles11
      passed:
      - compile_gpdb_sles11
{% endif %}
1709 1710 1711 1712 1713 1714
{% if "centos6" in os_types or "centos7" in os_types %}
    - get: binary_swap_gpdb
      passed: [compile_gpdb_binary_swap_centos6]
      resource: binary_swap_gpdb_centos6
      trigger: [[ test_trigger ]]
{% endif %}
M
Michael Roth 已提交
1715

1716
- name: resource_group_centos6
1717 1718 1719
  plan:
  - aggregate:
    - get: gpdb_src
1720
      passed: [gate_resource_groups_start]
1721
    - get: gpdb_binary
1722
      resource: bin_gpdb_centos6
1723
      passed: [gate_resource_groups_start]
1724
      trigger: [[ test_trigger ]]
1725 1726
    - get: ccp_src
    - get: centos-gpdb-dev-6
1727
    - get: binary_swap_gpdb
1728
      passed: [gate_resource_groups_start]
1729 1730
      resource: binary_swap_gpdb_centos6
      trigger: [[ test_trigger ]]
1731 1732
  - put: terraform
    params:
1733 1734 1735
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
A
Alexandra Wang 已提交
1736
        instance_type: n1-standard-2
1737 1738
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
1739
    params:
1740
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1741 1742
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1743
  - task: run_tests
M
Michael Roth 已提交
1744
    file: gpdb_src/concourse/tasks/ic_gpdb_resgroup.yml
1745 1746
    image: centos-gpdb-dev-6
    params:
M
Michael Roth 已提交
1747
      TEST_OS: centos6
1748 1749
    on_success:
      <<: *ccp_destroy
1750
  ensure:
1751
    <<: *set_failed
M
Michael Roth 已提交
1752

1753
{% if "centos7" in os_types %}
1754
- name: resource_group_centos7
1755
  plan:
M
Michael Roth 已提交
1756 1757
  - aggregate:
    - get: gpdb_src
1758
      passed: [gate_resource_groups_start]
1759
    - get: gpdb_binary
M
Michael Roth 已提交
1760
      resource: bin_gpdb_centos7
1761
      passed: [gate_resource_groups_start]
1762
      trigger: [[ test_trigger ]]
M
Michael Roth 已提交
1763
    - get: ccp_src
1764
    - get: centos-gpdb-dev-6
1765
    - get: binary_swap_gpdb
1766
      passed: [gate_resource_groups_start]
1767 1768
      resource: binary_swap_gpdb_centos6
      trigger: [[ test_trigger ]]
1769
  - put: terraform
M
Michael Roth 已提交
1770 1771 1772 1773
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
A
Alexandra Wang 已提交
1774
        PLATFORM: centos7
J
Jialun 已提交
1775
        instance_type: n1-standard-2
1776
  - task: gen_cluster
M
Michael Roth 已提交
1777 1778 1779
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1780 1781 1782
      PLATFORM: centos7
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1783
  - task: run_tests
M
Michael Roth 已提交
1784
    file: gpdb_src/concourse/tasks/ic_gpdb_resgroup.yml
1785
    image: centos-gpdb-dev-6
1786
    params:
M
Michael Roth 已提交
1787
      TEST_OS: centos7
1788 1789
    on_success:
      <<: *ccp_destroy
1790
  ensure:
1791
    <<: *set_failed
M
Michael Roth 已提交
1792

1793 1794
{% endif %}
{% if "sles" in os_types %}
1795
- name: resource_group_sles12
1796 1797 1798
  plan:
  - aggregate:
    - get: gpdb_src
1799
      passed: [gate_resource_groups_start]
1800 1801
    - get: gpdb_binary
      resource: bin_gpdb_sles11
1802
      passed: [gate_resource_groups_start]
1803 1804 1805 1806 1807 1808 1809 1810
      trigger: true
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
A
Alexandra Wang 已提交
1811
        PLATFORM: sles12
J
Jialun 已提交
1812
        instance_type: n1-standard-2
A
Alexandra Wang 已提交
1813
        default_image_user: root
1814 1815 1816 1817
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1818 1819 1820 1821
      # PLATFORM is necessary to generate correct ssh config
      PLATFORM: sles12
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1822 1823 1824 1825 1826 1827 1828 1829 1830 1831
  - task: run_tests
    file: gpdb_src/concourse/tasks/ic_gpdb_resgroup.yml
    image: centos-gpdb-dev-6
    params:
      TEST_OS: sles12
    on_success:
      <<: *ccp_destroy
  ensure:
    <<: *set_failed

1832
{% endif %}
1833

1834
{% endif %}
1835
{% if "CLI" in test_sections %}
1836
## ======================================================================
1837 1838 1839 1840 1841
##   ____ _     ___
##  / ___| |   |_ _|
## | |   | |    | |
## | |___| |___ | |
##  \____|_____|___|
1842 1843
## ======================================================================

1844
- name: gate_cli_start
1845
  plan:
1846 1847 1848
  - aggregate:
    - get: gpdb_src
      passed:
1849
      - compile_gpdb_centos6
1850 1851 1852
      trigger: true
    - get: bin_gpdb_centos6
      passed:
1853
      - compile_gpdb_centos6
M
Michael Roth 已提交
1854

1855
- name: gppkg
1856 1857 1858
  plan:
  - aggregate:
    - get: gpdb_src
1859 1860 1861
      params:
        submodules:
        - gpMgmt/bin/pythonSrc/ext
1862
      passed: [gate_cli_start]
1863 1864
    - get: gpdb_binary
      resource: bin_gpdb_centos6
1865
      passed: [gate_cli_start]
1866
      trigger: [[ test_trigger ]]
1867 1868 1869 1870
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
1871 1872 1873
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
1874 1875
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
1876
    params:
1877
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1878 1879
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1880 1881 1882 1883
  - task: setup_gppkg_second_install
    file: gpdb_src/concourse/tasks/gppkg_behave.yml
    params:
      SECOND_BINARY_INSTALL_LOCATION: /tmp/gppkg_migrate
1884
  - task: run_tests
1885
    file: gpdb_src/concourse/tasks/run_behave.yml
1886 1887
    image: centos-gpdb-dev-6
    params:
1888
      BEHAVE_FLAGS: --tags=gppkg
1889 1890
    on_success:
      <<: *ccp_destroy
1891
  ensure:
1892
    <<: *set_failed
M
Michael Roth 已提交
1893

1894 1895
{% for test_name in CLI_1_suites %}
- name: [[ test_name ]]
1896 1897 1898
  plan:
  - aggregate:
    - get: gpdb_src
1899 1900 1901
      params:
        submodules:
        - gpMgmt/bin/pythonSrc/ext
1902
      passed: [gate_cli_start]
1903 1904
    - get: gpdb_binary
      resource: bin_gpdb_centos6
1905
      passed: [gate_cli_start]
1906
      trigger: [[ test_trigger ]]
1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
1918 1919
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
1920
  - task: run_tests
1921
    file: gpdb_src/concourse/tasks/run_behave.yml
1922 1923
    image: centos-gpdb-dev-6
    params:
1924
      BEHAVE_FLAGS: --tags=[[ test_name ]]
1925 1926
    on_success:
      <<: *ccp_destroy
1927
  ensure:
1928
    <<: *set_failed
M
Michael Roth 已提交
1929

1930
{% endfor %}
1931
- name: gpcheck
1932
  plan:
1933
  - aggregate: &gets_for_behave
1934
    - get: gpdb_src
1935 1936 1937
      params:
        submodules:
        - gpMgmt/bin/pythonSrc/ext
1938
      passed: [gate_cli_start]
1939
    - get: bin_gpdb
1940
      resource: bin_gpdb_centos6
1941
      passed: [gate_cli_start]
1942
      trigger: [[ test_trigger ]]
1943
    - get: centos-gpdb-dev-6
1944 1945
  - task: gpcheck_as_gpadmin
    file: gpdb_src/concourse/tasks/behave_gpdb.yml
1946 1947
    image: centos-gpdb-dev-6
    params:
1948 1949
      BEHAVE_TAGS: gpcheck_as_gpadmin
      GPCHECK_SETUP: true
M
Michael Roth 已提交
1950

1951 1952
{% for test_name in CLI_2_suites %}
- name: [[ test_name ]]
1953
  plan:
1954
  - aggregate: *gets_for_behave
1955
  - task: [[ test_name ]]
1956 1957
    file: gpdb_src/concourse/tasks/behave_gpdb.yml
    image: centos-gpdb-dev-6
1958
    params:
1959
      BEHAVE_TAGS: [[ test_name ]]
M
Michael Roth 已提交
1960

1961
{% endfor %}
1962
- name: check_centos
1963 1964 1965
  plan:
  - aggregate:
    - get: gpdb_src
1966
      passed: [gate_cli_start]
1967 1968
    - get: bin_gpdb
      resource: bin_gpdb_centos6
1969
      passed: [gate_cli_start]
1970 1971
      trigger: [[ test_trigger ]]
    - get: centos-gpdb-dev-6
1972
  - task: check_centos
1973
    file: gpdb_src/concourse/tasks/gpMgmt_check_gpdb.yml
M
Marbin Tan 已提交
1974 1975
    image: centos-gpdb-dev-6
    params:
1976
      TEST_OS: centos
M
Michael Roth 已提交
1977

1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012
- name: gpaddmirrors
  plan:
  - aggregate:
    - get: gpdb_src
      params:
        submodules:
        - gpMgmt/bin/pythonSrc/ext
      passed: [gate_cli_start]
    - get: gpdb_binary
      resource: bin_gpdb_centos6
      passed: [gate_cli_start]
      trigger: [[ test_trigger ]]
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
        number_of_nodes: 4
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
  - task: run_tests
    file: gpdb_src/concourse/tasks/run_behave.yml
    image: centos-gpdb-dev-6
    params:
      BEHAVE_FLAGS: --tags=gpaddmirrors
    on_success:
      <<: *ccp_destroy
  ensure:
    <<: *set_failed
2013 2014 2015 2016 2017 2018 2019 2020

- name: gpexpand
  plan:
  - aggregate:
    - get: gpdb_src
      params:
        submodules:
        - gpMgmt/bin/pythonSrc/ext
2021
      passed: [gate_icw_end]
2022 2023
    - get: gpdb_binary
      resource: bin_gpdb_centos6
2024
      passed: [gate_icw_end]
2025 2026 2027
      trigger: [[ test_trigger ]]
    - get: ccp_src
    - get: centos-gpdb-dev-6
2028 2029
    - get: icw_gporca_centos6_dump
      passed: [gate_icw_end]
2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
        number_of_nodes: 5
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
  - task: pre_run_test_setup
    file: gpdb_src/concourse/tasks/setup_for_gpexpand_to_make_new_gpdb.yml
    image: centos-gpdb-dev-6
2043
    input_mapping: {sqldump: icw_gporca_centos6_dump}
2044 2045 2046 2047 2048 2049 2050 2051 2052 2053
  - task: run_tests
    file: gpdb_src/concourse/tasks/run_behave.yml
    params:
      BEHAVE_FLAGS: --tags=gpexpand
    image: centos-gpdb-dev-6
    on_success:
      <<: *ccp_destroy
  ensure:
    <<: *set_failed

2054
- name: gptransfer
A
Asim R P 已提交
2055
  plan:
C
Chris Hajas 已提交
2056
  - aggregate:
2057
    - get: gpdb_src
2058
      passed: [gate_cli_start]
C
Chris Hajas 已提交
2059 2060
    - get: gpdb_binary
      resource: bin_gpdb_centos6
2061
      passed: [gate_cli_start]
2062
      trigger: [[ test_trigger ]]
2063
    - get: ccp_src
C
Chris Hajas 已提交
2064 2065 2066 2067 2068 2069 2070 2071 2072 2073
    - get: centos-gpdb-dev-6
  # The separate clusters can be created in parallel with the aggregate and do blocks
  #  The terraform put and gen cluster that correspond must still happen serially
  - aggregate:
    - do:
      - put: terraform
        params:
          <<: *ccp_default_params
          vars:
            <<: *ccp_default_vars
A
Alexandra Wang 已提交
2074
            instance_type: n1-standard-2
C
Chris Hajas 已提交
2075 2076 2077 2078
      - task: gen_cluster1
        file: ccp_src/ci/tasks/gen_cluster.yml
        params:
          <<: *ccp_gen_cluster_default_params
A
Alexandra Wang 已提交
2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092
      - task: gpinitsystem
        config:
          platform: linux
          image_resource:
            type: docker-image
            source:
              repository: pivotaldata/ccp
              tag: "7"
          inputs:
          - name: terraform
          - name: ccp_src
          - name: cluster_env_files
          run:
            path: ccp_src/scripts/gpinitsystem.sh
C
Chris Hajas 已提交
2093 2094 2095 2096 2097 2098
    - do:
      - put: terraform2
        params:
          <<: *ccp_default_params
          vars:
            <<: *ccp_default_vars
A
Alexandra Wang 已提交
2099
            instance_type: n1-standard-2
C
Chris Hajas 已提交
2100 2101 2102 2103 2104 2105 2106 2107 2108
            cluster_suffix: "-2"
      - task: gen_cluster2
        file: ccp_src/ci/tasks/gen_cluster.yml
        params:
          <<: *ccp_gen_cluster_default_params
        input_mapping:
          terraform: terraform2
        output_mapping:
          cluster_env_files: cluster_env_files2
A
Alexandra Wang 已提交
2109
      - task: gpinitsystem
2110 2111
        input_mapping:
          terraform: terraform2
A
Alexandra Wang 已提交
2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125
        config:
          platform: linux
          image_resource:
            type: docker-image
            source:
              repository: pivotaldata/ccp
              tag: "7"
          inputs:
          - name: terraform
          - name: ccp_src
          - name: cluster_env_files2
            path: cluster_env_files
          run:
            path: ccp_src/scripts/gpinitsystem.sh
2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136
  - task: gptransfer_pre_test_setup
    config:
      platform: linux
      inputs:
        - name: cluster_env_files
        - name: cluster_env_files2
        - name: ccp_src
        - name: gpdb_src
      image_resource:
        type: docker-image
        source:
2137 2138
          repository: pivotaldata/ccp
          tag: "7"
2139 2140 2141 2142 2143 2144
      run:
        path: sh
        args:
        - -exc
        - |
          source gpdb_src/concourse/scripts/transfer_utils.sh; setup_gptransfer
C
Chris Hajas 已提交
2145 2146 2147
  - task: run_gptransfer_tests
    file: gpdb_src/concourse/tasks/run_behave.yml
    image: centos-gpdb-dev-6
A
Asim R P 已提交
2148
    params:
M
Michael Roth 已提交
2149
      BEHAVE_FLAGS: --tags=gptransfer --tags=-skip_source_5
C
Chris Hajas 已提交
2150
      CUSTOM_ENV: export GPTRANSFER_DEST_HOST=mdw; export GPTRANSFER_DEST_PORT=5432; export GPTRANSFER_DEST_USER=gpadmin; export GPTRANSFER_MAP_FILE=/tmp/source_map_file; export GPTRANSFER_SOURCE_HOST=mdw-2; export GPTRANSFER_SOURCE_PORT=5432; export GPTRANSFER_SOURCE_USER=gpadmin;
2151
    on_success:
2152
      <<: *ccp_destroy_two_clusters
2153
  ensure:
2154
    <<: *set_failed_two_clusters
A
Asim R P 已提交
2155

2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198
{% if "centos6" in os_types and "ICW" in test_sections %}
- name: pg_upgrade
  ensure:
    <<: *set_failed
  on_success:
    <<: *ccp_destroy
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [icw_gporca_centos6]
    - get: bin_gpdb_centos6
      passed: [icw_gporca_centos6]
      trigger: [[ test_trigger ]]
    - get: icw_gporca_centos6_dump
      passed: [icw_gporca_centos6]
    - get: centos-gpdb-dev-6
    - get: ccp_src
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
        instance_type: n1-standard-2
        number_of_nodes: 2
  - task: gen_cluster
    file: ccp_src/ci/tasks/gen_cluster.yml
    params:
      <<: *ccp_gen_cluster_default_params
      PLATFORM: centos6
    input_mapping:
      gpdb_binary: bin_gpdb_centos6
  - task: set_gpinitsystem_config
    file: gpdb_src/concourse/tasks/set_gpinitsystem_config.yml
    params:
      GPINITSYSTEM_CONFIG: gpdb_src/concourse/scripts/configurations/pg_upgrade_gpinitsystem_config
  - task: gpinitsystem
    file: ccp_src/ci/tasks/gpinitsystem.yml
  - task: test_upgrade
    file: gpdb_src/concourse/tasks/test_upgrade.yml
    input_mapping:
      sqldump: icw_gporca_centos6_dump
    params:
      NUMBER_OF_NODES: 2
2199
{% endif %}
2200 2201

{% endif %} # end CLI test_sections
2202 2203
{% if "UD" in test_sections %}
## ======================================================================
K
Kris Macoskey 已提交
2204 2205
##  _   _ ____
## | | | |  _ \
2206 2207
## | | | | | | |
## | |_| | |_| |
K
Kris Macoskey 已提交
2208
##  \___/|____/
2209 2210
## ======================================================================

M
Michael Roth 已提交
2211 2212 2213 2214 2215
- name: gate_ud_start
  plan:
  - aggregate:
    - get: gpdb_src
      passed:
2216
      - compile_gpdb_centos6
M
Michael Roth 已提交
2217 2218 2219
      trigger: true
    - get: bin_gpdb_centos6
      passed:
2220
      - compile_gpdb_centos6
M
Michael Roth 已提交
2221

2222
- name: regression_tests_gphdfs_hadoop_centos
2223 2224 2225
  plan:
  - aggregate:
    - get: gpdb_src
M
Michael Roth 已提交
2226
      passed: [gate_ud_start]
2227
    - get: bin_gpdb
M
Michael Roth 已提交
2228
      passed: [gate_ud_start]
2229
      trigger: [[ test_trigger ]]
2230 2231 2232 2233 2234 2235 2236 2237
      resource: bin_gpdb_centos6
    - get: centos-gpdb-dev-6
  - task: regression_tests_gphdfs
    file: gpdb_src/concourse/tasks/regression_tests_gphdfs.yml
    image: centos-gpdb-dev-6
    params:
      TARGET_OS: centos
      TARGET_OS_VERSION: 6
M
Michael Roth 已提交
2238

2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272
- name: regression_tests_gphdfs_mapr_centos
  ensure:
    <<: *set_failed
  on_success:
    <<: *ccp_destroy
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [gate_ud_start]
    - get: bin_gpdb
      passed: [gate_ud_start]
      trigger: [[ test_trigger ]]
      resource: bin_gpdb_centos6
    - get: ccp_src
    - get: centos-gpdb-dev-6
  - put: terraform
    params:
      <<: *ccp_default_params
      vars:
        <<: *ccp_default_vars
        number_of_nodes: 1
        PLATFORM: centos7
        instance_type: n1-standard-4
  - task: gen_and_initialize_mapr
    file: gpdb_src/concourse/tasks/gen_mapr.yml
    params:
      <<: *ccp_gen_cluster_default_params
  - task: regression_tests_gphdfs_mapr
    file: gpdb_src/concourse/tasks/regression_tests_gphdfs_mapr.yml
    image: centos-gpdb-dev-6
    params:
      TARGET_OS: centos
      TARGET_OS_VERSION: 6

2273
{% endif %}
2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305

{% if "AA" in test_sections %}
## ======================================================================
##     _        _
##    / \      / \
##   / _ \    / _ \
##  / ___ \  / ___ \
## /_/   \_\/_/   \_\
## ======================================================================
- name: gate_advanced_analytics_start
  plan:
  - aggregate:
    - get: gpdb_src
      passed:
{% if "centos6" in os_types %}
      - compile_gpdb_centos6
{% endif %}
{% if "centos7" in os_types %}
      - compile_gpdb_centos7
{% endif %}
      trigger: true
{% if "centos6" in os_types %}
    - get: bin_gpdb_centos6
      passed:
      - compile_gpdb_centos6
{% endif %}
{% if "centos7" in os_types %}
    - get: bin_gpdb_centos7
      passed:
      - compile_gpdb_centos7
{% endif %}

2306 2307
{% if "centos6" in os_types or "centos7" in os_types%}
- name: madlib_build_gppkg
2308 2309
  plan:
  - aggregate:
2310
    - get: madlib_src
2311
    - get: madlib_ci
2312 2313 2314 2315
    - get: cmake_tar
    - get: pyxb
    - get: eigen
    - get: boost
2316 2317 2318 2319 2320 2321
    - get: gpdb_src
      passed: [gate_advanced_analytics_start]
    - get: bin_gpdb
      resource: bin_gpdb_centos6
      trigger: [[ test_trigger ]]
      passed: [gate_advanced_analytics_start]
2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347
    - get: bin_gpdb_centos7
      passed: [gate_advanced_analytics_start]
    - get: centos-gpdb-dev-6
  - task: build_madlib_gppkg_from_source
    file: madlib_ci/concourse/tasks/madlib_build_gppkg_from_source.yml
    image: centos-gpdb-dev-6
    params:
      TEST_OS: centos6
      DB_TYPE: gpdb6
      CMAKE_BUILD_TYPE: Release
  - aggregate:
    - put: madlib_gppkg
      params:
        file: madlib_master_artifacts/madlib-*.gppkg
{% endif %}

{% if "centos6" in os_types %}
- name: MADlib_Test_planner_centos6
  plan:
  - aggregate:
    - get: madlib_ci
    - get: gpdb_src
      passed: [madlib_build_gppkg]
    - get: bin_gpdb
      resource: bin_gpdb_centos6
      passed: [madlib_build_gppkg]
2348 2349
    - get: centos-gpdb-dev-6
    - get: madlib_gppkg
2350 2351
      passed: [madlib_build_gppkg]
      trigger: true
2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364
  - task: MADlib_Test_gppkg
    file: madlib_ci/concourse/tasks/madlib_test_gppkg.yml
    image: centos-gpdb-dev-6
    params:
      TEST_OS: centos
      ORCA: "off"
      DBVER: gpdb6-assert

- name: MADlib_Test_orca_centos6
  plan:
  - aggregate:
    - get: madlib_ci
    - get: gpdb_src
2365
      passed: [madlib_build_gppkg]
2366 2367
    - get: bin_gpdb
      resource: bin_gpdb_centos6
2368
      passed: [madlib_build_gppkg]
2369 2370
    - get: centos-gpdb-dev-6
    - get: madlib_gppkg
2371 2372
      passed: [madlib_build_gppkg]
      trigger: true
2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387
  - task: MADlib_Test_gppkg
    file: madlib_ci/concourse/tasks/madlib_test_gppkg.yml
    image: centos-gpdb-dev-6
    params:
      TEST_OS: centos
      ORCA: "on"
      DBVER: gpdb6-assert
{% endif %}

{% if "centos7" in os_types %}
- name: MADlib_Test_planner_centos7
  plan:
  - aggregate:
    - get: madlib_ci
    - get: gpdb_src
2388
      passed: [madlib_build_gppkg]
2389 2390
    - get: bin_gpdb
      resource: bin_gpdb_centos7
2391
      passed: [madlib_build_gppkg]
2392 2393
    - get: centos-gpdb-test-7
    - get: madlib_gppkg
2394 2395
      passed: [madlib_build_gppkg]
      trigger: true
2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408
  - task: MADlib_Test_gppkg
    file: madlib_ci/concourse/tasks/madlib_test_gppkg.yml
    image: centos-gpdb-test-7
    params:
      TEST_OS: centos
      ORCA: "off"
      DBVER: gpdb6-assert

- name: MADlib_Test_orca_centos7
  plan:
  - aggregate:
    - get: madlib_ci
    - get: gpdb_src
2409
      passed: [madlib_build_gppkg]
2410 2411
    - get: bin_gpdb
      resource: bin_gpdb_centos7
2412
      passed: [madlib_build_gppkg]
2413 2414
    - get: centos-gpdb-test-7
    - get: madlib_gppkg
2415 2416
      passed: [madlib_build_gppkg]
      trigger: true
2417 2418 2419 2420 2421 2422 2423 2424 2425 2426
  - task: MADlib_Test_gppkg
    file: madlib_ci/concourse/tasks/madlib_test_gppkg.yml
    image: centos-gpdb-test-7
    params:
      TEST_OS: centos
      ORCA: "on"
      DBVER: gpdb6-assert
{% endif %}
{% endif %}

2427 2428
{% if pipeline_type == "prod" %}
## ======================================================================
K
Kris Macoskey 已提交
2429 2430
##  ____      _
## |  _ \ ___| | ___  __ _ ___  ___
2431 2432 2433 2434
## | |_) / _ \ |/ _ \/ _` / __|/ _ \
## |  _ <  __/ |  __/ (_| \__ \  __/
## |_| \_\___|_|\___|\__,_|___/\___|
## ======================================================================
2435

2436
- name: gate_release_candidate_start
2437
  plan:
2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451
  - aggregate:
    - get: gpdb_src
      trigger: true
      passed:
      - compile_gpdb_centos6
      - compile_gpdb_open_source_centos6
      - compile_gpdb_centos7
      - compile_gpdb_sles11
      - compile_gpdb_ubuntu16
      - compile_gpdb_aix7_remote
      - icw_planner_centos6
      - icw_gporca_centos6
      - icw_gporca_centos7
      - icw_planner_centos7
2452
      - icg_planner_centos7_random_numsegments
2453
      - icw_planner_centos7_online_expand
2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467
      - icw_gporca_sles11
      - icw_gporca_sles12
      - icw_planner_sles12
      - icw_planner_ubuntu16
      - icw_gporca_conan_ubuntu16
      - gpdb_packaging_ubuntu16
      - icw_planner_ictcp_centos6
      - icw_extensions_gpcloud_centos6
      - icw_extensions_gpcloud_ubuntu16
      - client_loader_remote_test_aix
      - resource_group_centos6
      - resource_group_centos7
      - resource_group_sles12
      - segwalrep_mirrorless_centos6
2468 2469
      - regression_tests_gphdfs_hadoop_centos
      - regression_tests_gphdfs_mapr_centos
2470
{% for test_name in CLI_1_suites +
2471
                    CLI_2_suites %}
2472
      - [[ test_name ]]
2473
{% endfor %}
2474
      - madlib_build_gppkg
2475 2476 2477 2478
      - MADlib_Test_orca_centos6
      - MADlib_Test_planner_centos6
      - MADlib_Test_orca_centos7
      - MADlib_Test_planner_centos7
2479
      - pg_upgrade
2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497
      - gpaddmirrors
      - gpexpand
      - gpcheck
      - gppkg
      - check_centos
      - gptransfer
      - interconnect
    - get: bin_gpdb_centos6
      trigger: true
      passed:
      - compile_gpdb_centos6
      - icw_planner_centos6
      - icw_gporca_centos6
      - icw_planner_ictcp_centos6
      - icw_extensions_gpcloud_centos6
      - client_loader_remote_test_aix
      - resource_group_centos6
      - segwalrep_mirrorless_centos6
2498 2499
      - regression_tests_gphdfs_hadoop_centos
      - regression_tests_gphdfs_mapr_centos
2500
{% for test_name in CLI_1_suites +
2501
                    CLI_2_suites %}
2502 2503
      - [[ test_name ]]
{% endfor %}
2504 2505
      - MADlib_Test_orca_centos6
      - MADlib_Test_planner_centos6
2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517
      - gpexpand
      - gpcheck
      - gppkg
      - check_centos
      - gptransfer
      - interconnect
    - get: bin_gpdb_centos7
      trigger: true
      passed:
      - compile_gpdb_centos7
      - icw_gporca_centos7
      - icw_planner_centos7
2518
      - icg_planner_centos7_random_numsegments
2519
      - icw_planner_centos7_online_expand
2520
      - resource_group_centos7
2521 2522
      - MADlib_Test_orca_centos7
      - MADlib_Test_planner_centos7
2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557
    - get: bin_gpdb_sles11
      trigger: true
      passed:
      - compile_gpdb_sles11
      - icw_gporca_sles11
      - icw_gporca_sles12
      - icw_planner_sles12
      - resource_group_sles12

- name: Release_Candidate
  plan:
  - aggregate:
    - get: gpdb_src
      trigger: true
      passed: [gate_release_candidate_start]
    - get: bin_gpdb_centos6
      trigger: true
      passed: [gate_release_candidate_start]
    - get: bin_gpdb_centos7
      trigger: true
      passed: [gate_release_candidate_start]
    - get: bin_gpdb_sles11
      trigger: true
      passed: [gate_release_candidate_start]
  - task: verify_gpdb_versions
    file: gpdb_src/concourse/tasks/verify_gpdb_versions.yml
  - put: bin_gpdb_centos6_rc
    params:
      file: bin_gpdb_centos6/bin_gpdb.tar.gz
  - put: bin_gpdb_centos7_rc
    params:
      file: bin_gpdb_centos7/bin_gpdb.tar.gz
  - put: bin_gpdb_sles11_rc
    params:
      file: bin_gpdb_sles11/bin_gpdb.tar.gz
2558
{% endif %}
2559 2560

## ======================================================================
2561 2562
##    __      _                 _
##   /__\_  _| |_ ___ _ __  ___(_) ___  _ __  ___
2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626
##  /_\ \ \/ / __/ _ \ '_ \/ __| |/ _ \| '_ \/ __|
## //__  >  <| ||  __/ | | \__ \ | (_) | | | \__ \
## \__/ /_/\_\\__\___|_| |_|___/_|\___/|_| |_|___/
## ======================================================================

{% if "Extensions" in test_sections %}
{% if 'centos6' in os_types%}
- name: icw_extensions_gpcloud_centos6
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [compile_gpdb_centos6]
      trigger: [[ test_trigger ]]
    - get: bin_gpdb_centos6
      passed: [compile_gpdb_centos6]
    - get: centos-gpdb-dev-6
  - aggregate:
    - task: unit_tests_gpcloud
      file: gpdb_src/concourse/tasks/unit_tests_gpcloud.yml
      image: centos-gpdb-dev-6
      params:
        TARGET_OS: centos
    - task: regression_tests_gpcloud_centos
      input_mapping:
        bin_gpdb: bin_gpdb_centos6
      file: gpdb_src/concourse/tasks/regression_tests_gpcloud.yml
      image: centos-gpdb-dev-6
      params:
        gpcloud_access_key_id: {{gpcloud-access-key-id}}
        gpcloud_secret_access_key: {{gpcloud-secret-access-key}}
        TARGET_OS: centos
    - task: gpcheckcloud_tests_gpcloud_centos
      input_mapping:
        bin_gpdb: bin_gpdb_centos6
      file: gpdb_src/concourse/tasks/gpcheckcloud_tests_gpcloud.yml
      image: centos-gpdb-dev-6
      params:
        gpcloud_access_key_id: {{gpcloud-access-key-id}}
        gpcloud_secret_access_key: {{gpcloud-secret-access-key}}
        TARGET_OS: centos
{% endif %}

{% if 'ubuntu16' in os_types %}
- name: icw_extensions_gpcloud_ubuntu16
  plan:
  - aggregate:
    - get: gpdb_src
      passed: [compile_gpdb_ubuntu16]
      trigger: [[ test_trigger ]]
    - get: compiled_bits_ubuntu16
      passed: [compile_gpdb_ubuntu16]
    - get: ubuntu-gpdb-dev-16
  - aggregate:
    - task: regression_tests_gpcloud_ubuntu
      input_mapping:
        bin_gpdb: compiled_bits_ubuntu16
      file: gpdb_src/concourse/tasks/regression_tests_gpcloud.yml
      image: ubuntu-gpdb-dev-16
      params:
        gpcloud_access_key_id: {{gpcloud-access-key-id}}
        gpcloud_secret_access_key: {{gpcloud-secret-access-key}}
        TARGET_OS: ubuntu
{% endif %}
{% endif %}