提交 26e8c12e 编写于 作者: J Jesse Zhang

Check ORCA and GPOPT formatting in Concourse.

This patch adds a simple job that checks for the clang-format
conformance, similar to the Travis CI job did in commit 54273fdd
(greenplum-db/gpdb#10357).

I was not amused when I realized the gen_pipeline.py doesn't do the due
diligence of finding transitive dependencies (so the new job actually
already blocks release, but the script insists on stopping at immediate
blockers). But that's left for another day.

(cherry picked from commit 868fd2d7)
上级 c8993c2c
......@@ -12,7 +12,7 @@
## file (example: templates/gpdb-tpl.yml) and regenerate the pipeline
## using appropriate tool (example: gen_pipeline.py -t prod).
## ----------------------------------------------------------------------
## Generated by gen_pipeline.py at: 2020-09-17 11:45:46.405268
## Generated by gen_pipeline.py at: 2020-10-01 16:57:20.943390
## Template file: gpdb-tpl.yml
## OS Types: ['centos6', 'centos7', 'sles', 'aix7', 'win', 'ubuntu16']
## Test Sections: ['ICW', 'CS', 'MPP', 'MM', 'DPM', 'UD', 'FileRep', 'AA']
......@@ -30,6 +30,7 @@ groups:
- name: 5X_STABLE
jobs:
## --------------------------------------------------------------------
- check_format
- gate_compile_start
- compile_gpdb_centos6
- prepare_binary_swap_gpdb_centos6
......@@ -337,6 +338,11 @@ resources:
private_key: {{ccp-git-key}}
uri: {{ccp-git-remote}}
- name: clang_toolchain
type: registry-image
source:
repository: gcr.io/data-orca/clang-toolchain
- name: ccp-image
type: registry-image
source:
......@@ -1066,6 +1072,16 @@ cs_ccp_run_tests_params_anchor: &cs_ccp_run_tests_params
jobs:
- name: check_format
plan:
- in_parallel:
- get: gpdb_src
trigger: true
- get: clang_toolchain
- task: check_format
image: clang_toolchain
file: gpdb_src/concourse/tasks/check_format.yml
## ======================================================================
## ____ _ _
## / ___|___ _ __ ___ _ __ (_) | ___
......@@ -1079,6 +1095,8 @@ jobs:
plan:
- in_parallel:
- get: gpdb_src
passed:
- check_format
trigger: true
- get: gpaddon_src
trigger: true
......@@ -4474,6 +4492,7 @@ jobs:
passed:
- compile_gpdb_centos6
- compile_gpdb_open_source_centos6
- check_format
- compile_gpdb_centos7
- compile_gpdb_sles11
- compile_gpdb_ubuntu16
......
......@@ -45,6 +45,7 @@ groups:
- name: 5X_STABLE
jobs:
## --------------------------------------------------------------------
- check_format
- gate_compile_start
- compile_gpdb_centos6
- prepare_binary_swap_gpdb_centos6
......@@ -365,6 +366,11 @@ resources:
private_key: {{ccp-git-key}}
uri: {{ccp-git-remote}}
- name: clang_toolchain
type: registry-image
source:
repository: gcr.io/data-orca/clang-toolchain
- name: ccp-image
type: registry-image
source:
......@@ -1109,6 +1115,16 @@ cs_ccp_run_tests_params_anchor: &cs_ccp_run_tests_params
jobs:
- name: check_format
plan:
- in_parallel:
- get: gpdb_src
trigger: true
- get: clang_toolchain
- task: check_format
image: clang_toolchain
file: gpdb_src/concourse/tasks/check_format.yml
## ======================================================================
## ____ _ _
## / ___|___ _ __ ___ _ __ (_) | ___
......@@ -1122,6 +1138,8 @@ jobs:
plan:
- in_parallel:
- get: gpdb_src
passed:
- check_format
trigger: true
- get: gpaddon_src
trigger: true
......@@ -3823,6 +3841,7 @@ jobs:
passed:
- compile_gpdb_centos6
- compile_gpdb_open_source_centos6
- check_format
- compile_gpdb_centos7
- compile_gpdb_sles11
- compile_gpdb_ubuntu16
......
platform: linux
image_resource:
type: registry-image
source:
repository: gcr.io/data-orca/clang-toolchain
inputs:
- name: gpdb_src
path: .
run:
path: src/tools/fmt
args: [ chk ]
params:
CLANG_FORMAT: clang-format-10
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册