Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
364 commits
Select commit Hold shift + click to select a range
e0da9f2
Implement some KQL conversion functions
ltrk2 Aug 12, 2022
45b5744
Kusto-phase2 : finish make series
kashwy Aug 16, 2022
0637312
Added functional tests for IP, String, Binary and Datetime
larryluogit Aug 12, 2022
afb6064
Add tests for binary and datetime
larryluogit Aug 12, 2022
979ea4d
Added ipv6 tests
larryluogit Aug 12, 2022
92b11ae
Added missing file for IPv6 tests
larryluogit Aug 12, 2022
94fa777
Added datatype tests
larryluogit Aug 15, 2022
63dbb3f
Kusto-phase2 : fixed the double quote issue
kashwy Aug 18, 2022
6754f6d
Implement array_iff / array_iif
ltrk2 Aug 17, 2022
59099b3
Set the release date
ltrk2 Aug 19, 2022
ea136d1
Part2 DateTime functions
HeenaBansal2009 Aug 12, 2022
785b01c
Updated release notes
HeenaBansal2009 Aug 12, 2022
babd012
Incorporated review comments
HeenaBansal2009 Aug 16, 2022
e7218ff
Part2 DateTime functions
HeenaBansal2009 Aug 12, 2022
6dc0281
Incorporated review comments
HeenaBansal2009 Aug 16, 2022
bc3b541
Updated as per review comments
HeenaBansal2009 Aug 16, 2022
13ad4e9
Updated Readme
HeenaBansal2009 Aug 19, 2022
71ddae3
Kusto-phase2, updated make-series operator
kashwy Aug 22, 2022
d5bf4d9
Kusto-phase2: add bin function, unit test for make-series
kashwy Aug 22, 2022
2ba955f
Implement some KQL array functions
ltrk2 Aug 22, 2022
40a6e5a
date_add and date_part
HeenaBansal2009 Aug 16, 2022
aaa060a
DateTime part3 functions
HeenaBansal2009 Aug 23, 2022
48af801
Fixed tests
HeenaBansal2009 Aug 23, 2022
b2a1eef
Removed unwanted file
HeenaBansal2009 Aug 23, 2022
fb6e155
Updated tests
HeenaBansal2009 Aug 23, 2022
d57ebcc
Fixed testcase
HeenaBansal2009 Aug 23, 2022
5d1d423
Review comments and fixed bugs 1073 and 1085
HeenaBansal2009 Aug 24, 2022
211a14b
removed MakeSeries diff
HeenaBansal2009 Aug 24, 2022
5eb435e
Fixed #1125
HeenaBansal2009 Aug 24, 2022
80248dd
DatetIme part 4
HeenaBansal2009 Aug 26, 2022
c21024c
Array sort functions added
SadiHassan Aug 12, 2022
e32737f
moved test cases in separate file
SadiHassan Aug 12, 2022
bff2d75
implemented array_sort returns same number of arrays as input
SadiHassan Aug 23, 2022
47a2016
Added expression support in sorting functions
SadiHassan Aug 24, 2022
47fa8f5
Added gtest_dictionary_parser.cpp
SadiHassan Aug 24, 2022
7448a9d
covered different scenarios of sorting with null in first array
SadiHassan Aug 25, 2022
186a13c
added check for array length mismatch
SadiHassan Aug 26, 2022
1384491
added tests for dynamic and datetime
larryluogit Aug 24, 2022
6579313
added more date time tests
larryluogit Aug 24, 2022
326465f
Kusto-phase2 : update release note
kashwy Aug 26, 2022
0ec58d3
added note in release notes
SadiHassan Aug 26, 2022
6727e78
Kusto-phase2: update and format release note.
kashwy Aug 26, 2022
6dfcf68
Kusto-phas2: fix release note format
kashwy Aug 26, 2022
4623362
update release note
larryluogit Aug 27, 2022
d502531
Implement KQL tolong
ltrk2 Aug 29, 2022
3f07784
Fixed failed testescases
HeenaBansal2009 Aug 29, 2022
57bbcff
removed unwanted file
HeenaBansal2009 Aug 29, 2022
648a7b8
Updated Gtest
HeenaBansal2009 Aug 30, 2022
2ed2896
Kusto-phase2: add mv-expand operator
kashwy Aug 30, 2022
71c1a4d
Handle invalid conditions adequately
ltrk2 Sep 1, 2022
366008c
Get unit tests in line with the implementation
ltrk2 Sep 1, 2022
8deb9fe
Implement a basic version of KQL dynamic
ltrk2 Aug 31, 2022
96ab290
Expand the list of valid keywords within dynamic
ltrk2 Sep 1, 2022
27117f1
Use an associative container instead of an array
ltrk2 Sep 1, 2022
0e24aa1
Added support for negative arguments in timespan
HeenaBansal2009 Aug 30, 2022
b972a97
Update gtest_KQL_dateTimeFunctions.cpp
HeenaBansal2009 Aug 30, 2022
d6139c6
casting function todecimal()
HeenaBansal2009 Sep 5, 2022
68d9056
Adding more KQL functional tests.
larryluogit Sep 6, 2022
e44bb7e
Fix build error
HeenaBansal2009 Sep 7, 2022
7757e5a
Fix build error
HeenaBansal2009 Sep 7, 2022
9ba00eb
fixed issue with percentiles
SadiHassan Sep 6, 2022
53a0df5
array sort returns an array
SadiHassan Sep 7, 2022
1608c9b
Implement KQL array functions
ltrk2 Sep 7, 2022
ccfeaa0
Implement KQL set functions
ltrk2 Sep 8, 2022
0e47c05
Kusto-phase2: Updated release note
kashwy Sep 9, 2022
7d1c712
Added more KQL functional tests
larryluogit Sep 9, 2022
2bcf1bc
array_sort unit test fix
SadiHassan Sep 12, 2022
b3eaa63
Take suffixes into account in case of format_ipv4_mask
ltrk2 Sep 9, 2022
582cffe
Kusto-phase2 , fix some flow bug and add extend operator
kashwy Sep 13, 2022
257b00c
Kusto-phase2 : fix functional test
kashwy Sep 14, 2022
6cd00c7
Implement functional tests for KQL functions
ltrk2 Sep 14, 2022
b3e6058
Implement a functional test for KQL
ltrk2 Sep 15, 2022
969b1e7
Simplify KQL trim functions to avoid aliases
ltrk2 Sep 12, 2022
3c63a20
Implement raw argument extraction to support nesting
ltrk2 Sep 12, 2022
1244e6b
Use stack instead of vector
ltrk2 Sep 13, 2022
13eb6e3
Implement KQL functional tests and fix bugs that came up
ltrk2 Sep 16, 2022
a4985dd
Implement KQL functional tests and fix issues
ltrk2 Sep 19, 2022
56a234c
Implement functional tests for KQL trim
ltrk2 Sep 16, 2022
85d8776
make_list_with_nulls_bug1009 fix
SadiHassan Sep 19, 2022
3bb6a89
Kusto-phase2: fix core dump , kql !in orerator in sql
kashwy Sep 27, 2022
4bbaa9d
Fix KQL IPv6 functions in terms of handling IPv4
ltrk2 Sep 23, 2022
953eea2
Reinstate const qualifiers
ltrk2 Sep 26, 2022
4371fb3
Kusto-phase2: fix core dump for string operator, disable alias withou…
kashwy Sep 28, 2022
e5dfa17
Fixed bugs
HeenaBansal2009 Sep 14, 2022
723e3a9
More bug fix
HeenaBansal2009 Sep 18, 2022
a943550
More fixed bugs
HeenaBansal2009 Sep 20, 2022
38609c6
Functional testcas added
HeenaBansal2009 Sep 23, 2022
c00b0a2
Addressed review comments
HeenaBansal2009 Sep 26, 2022
a77e039
Implement KQL functional tests
ltrk2 Sep 26, 2022
01d36f9
Implement KQL functional tests
ltrk2 Sep 27, 2022
b625339
Implement KQL functional tests
ltrk2 Sep 28, 2022
142f285
Fix a unit test and use R-strings to avoid escaping
ltrk2 Sep 28, 2022
a0e047e
Fixed Unittestcase failure
HeenaBansal2009 Sep 28, 2022
db39f2d
Kusto-phase2: updated release note
kashwy Sep 29, 2022
747f2ef
fixed bug for issue #1336
SadiHassan Oct 4, 2022
1e856bf
addressed review comments made by Yong
SadiHassan Oct 5, 2022
371b5b2
fix functional test failure
SadiHassan Oct 6, 2022
7cf1ae4
Kusto-phase2: fix extend bugs, summarize alias
kashwy Oct 3, 2022
b6e98bc
Bug fixes
HeenaBansal2009 Sep 28, 2022
05e8822
Bug fixes
HeenaBansal2009 Sep 29, 2022
ed9e50e
Added Functional tests
HeenaBansal2009 Sep 29, 2022
6e49e50
Fixed #1268
HeenaBansal2009 Sep 30, 2022
cedffee
Updated tests
HeenaBansal2009 Sep 30, 2022
2961429
Updated tests
HeenaBansal2009 Sep 30, 2022
007dc56
String functions -phase 2 low priority defer ones
HeenaBansal2009 Sep 13, 2022
af96961
Updated release notes
HeenaBansal2009 Sep 13, 2022
1e4907b
Addressed review comments
HeenaBansal2009 Sep 27, 2022
0054730
Refactored Parse_version , parse_csv and extract_json
HeenaBansal2009 Sep 28, 2022
efa15b5
Fixed testcases
HeenaBansal2009 Sep 28, 2022
781274e
Updated release notes
HeenaBansal2009 Sep 28, 2022
034ca0d
Implement KQL functional tests
ltrk2 Sep 30, 2022
6995796
Addressed review comments
HeenaBansal2009 Sep 30, 2022
29ca1d9
handled error scenarios
HeenaBansal2009 Oct 3, 2022
33fb66d
Tetscases updated
HeenaBansal2009 Oct 3, 2022
725145a
Rebased with Kusto-phase2
HeenaBansal2009 Oct 3, 2022
a90409c
Kusto-phase2 : fix direct array index, fix functional test
kashwy Oct 6, 2022
473cfbc
fixed bug #1368
SadiHassan Oct 4, 2022
ffc2e0e
addressed reviewed change requests made by Yong
SadiHassan Oct 5, 2022
475ef5f
removed unwanted header file
SadiHassan Oct 5, 2022
a663115
updated unit and functional tests
SadiHassan Oct 6, 2022
1f4915a
modified unit test
SadiHassan Oct 6, 2022
b5b8ffa
Added functional tests for string and array
larryluogit Oct 7, 2022
f0aaa17
bug fixe issue-1420
SadiHassan Oct 6, 2022
824c8c1
Functional test added
SadiHassan Oct 10, 2022
a9c328f
Bug fix 1489
SadiHassan Oct 10, 2022
27d3ca1
Kusto-phase2 : add distinct operator
kashwy Oct 12, 2022
37fe143
Bug fix 1370
SadiHassan Oct 10, 2022
d28e312
endofyear() bug_fix_1369
SadiHassan Oct 6, 2022
0024646
modified unit test
SadiHassan Oct 6, 2022
953a4c9
Implement a KQL functional test
ltrk2 Sep 28, 2022
5de6a31
Initial Commit
HeenaBansal2009 Oct 5, 2022
7852ff0
Kusto-phase2: updated release note
kashwy Oct 12, 2022
e6b1d0e
fix unit test
SadiHassan Oct 12, 2022
662fcd2
Kusto-phase2, fix kql subquery for master branch
kashwy Oct 19, 2022
2883597
Updated test result due to OSS bug 42507
larryluogit Oct 19, 2022
1e31777
Fix build errors
ltrk2 Nov 24, 2022
9a63c59
Implement KQL UUID base64 coding functions
ltrk2 Nov 24, 2022
9ffbd22
Initial COmmit
HeenaBansal2009 Oct 5, 2022
56f71cd
Updated Functional testcases
HeenaBansal2009 Oct 13, 2022
12f6e67
Typo error fix
HeenaBansal2009 Oct 13, 2022
775a0e6
Added typecasting of final result
HeenaBansal2009 Oct 14, 2022
68ce601
Initial Commit
HeenaBansal2009 Oct 14, 2022
375a9ca
Fix 1108 and Unit test fixes
HeenaBansal2009 Oct 14, 2022
f9fdab5
Handle null conditions in array_iif
ltrk2 Oct 14, 2022
c9fd275
Fix issues with array_sum and array_length
ltrk2 Oct 18, 2022
1d9fdc0
bug fix 1345
SadiHassan Oct 14, 2022
6af4d7f
Kusto-phase3: add count operator
kashwy Oct 20, 2022
a82b68f
add scalar and dynamic functional tests
larryluogit Oct 22, 2022
f74fd98
Kusto-phase3: Add top and top-hitters operator
kashwy Oct 25, 2022
0fe48a9
Kusto-phase2: Update release for top-hitters operator
kashwy Oct 25, 2022
4434292
Kusto-phase3: Updated release note for bug fixed
kashwy Oct 25, 2022
c7f8b3a
Initial commit
HeenaBansal2009 Nov 4, 2022
b265872
remove unwanted code
HeenaBansal2009 Nov 4, 2022
4445d42
Updated Gtest
HeenaBansal2009 Nov 7, 2022
68ef771
Functional test added
HeenaBansal2009 Nov 7, 2022
591fbc6
Initial commit
HeenaBansal2009 Nov 7, 2022
af0b52b
Unit testcase fixes
HeenaBansal2009 Nov 7, 2022
e6b6e0d
Kusto summarize init
SadiHassan Jun 9, 2022
15ea2ec
Kusto-phase1: Fixed style
kashwy Jun 11, 2022
05cc1af
implemented case
SadiHassan Oct 31, 2022
64bcf0a
Revert "Kusto-phase1: Fixed style"
SadiHassan Nov 8, 2022
d275277
Revert "Kusto summarize init"
SadiHassan Nov 8, 2022
e13a074
bug fix 1528
SadiHassan Nov 9, 2022
d4868f6
Kusto-phase3: Add ClickHouse function to support kql array sort
kashwy Nov 2, 2022
e1e4476
Kusto-phase3 : improve kql arrary_sort_asc and array_sort_desc
kashwy Nov 10, 2022
77ef951
Kusto-phase3: restore zip function
kashwy Nov 10, 2022
8aab9cd
Kusto-phase3 : Add join , lookup oeprator, fixed bug of distinct
kashwy Nov 22, 2022
0a78b5f
clean up commit history
SadiHassan Nov 23, 2022
4ba429a
added back corrected zip function
SadiHassan Nov 24, 2022
6cbe4e3
Rework timespan-handling
ltrk2 Nov 14, 2022
058887a
Perform finishing touches
ltrk2 Nov 23, 2022
106e050
Update release notes
ltrk2 Nov 23, 2022
2a60632
Kusto-phase3 : fix extract bug
kashwy Nov 24, 2022
0eab320
Kusto-phase3 : add count_distinct and count_distinctif
kashwy Nov 26, 2022
0f55637
Kusto-phase3: fix indexof issue
kashwy Nov 30, 2022
37b6006
Kustp-phase3 : fixed expr parsing broken issue
kashwy Nov 30, 2022
6634b8c
Rework datatype and casting functions
ltrk2 Nov 29, 2022
65bdac7
Perform string conversion on arguments of strcat
ltrk2 Nov 30, 2022
93f8d2c
Fix unit tests
ltrk2 Nov 30, 2022
1e0796b
Handle negative timespan correctly
ltrk2 Nov 30, 2022
23e5be8
Add more functional test cases
ltrk2 Nov 30, 2022
4afd911
Update release notes
ltrk2 Nov 30, 2022
0c3bf71
Implement a functional test
ltrk2 Dec 1, 2022
2bfdea5
Kusto-phase3 fixed functional test for distinct
kashwy Dec 1, 2022
b63f499
iff and iif implemented
SadiHassan Dec 4, 2022
4bedd43
updated Release notes
SadiHassan Dec 5, 2022
bc7fb34
Consolidate functionality
ltrk2 Dec 8, 2022
c7f44d5
Kusto-phase3: fix the issue of subscript operator for kql_array_sort
kashwy Dec 9, 2022
c91d62b
Fix unit tests
ltrk2 Dec 9, 2022
c280390
Kusto-phase: fix the kql array_sort subscript issue if the identifier…
kashwy Dec 9, 2022
ff6aba4
Implement Date, Date32 and DateTime support for KQL bin
ltrk2 Dec 8, 2022
15af280
Implement support for Date, Date32 and DateTime in KQL bin_at
ltrk2 Dec 9, 2022
780fe44
Kusto-phase3: Add top-nested operator
kashwy Jan 3, 2023
2870e36
Kusto-phase3: update the release , removed unnecessary information
kashwy Jan 3, 2023
1f29d89
Implement formatDateTime fractional second formatter
ltrk2 Dec 8, 2022
2b01951
Implement yet another functional test
ltrk2 Dec 8, 2022
1d46f92
Drop toFractionalSecond
ltrk2 Dec 9, 2022
2790327
Correct an instance of overindexing
ltrk2 Dec 12, 2022
f87944a
Test %f for data types without fractional seconds
davenger Dec 21, 2022
657fa51
Fix case with DateTime64 with precision=0; do not split decimal again…
davenger Dec 21, 2022
f98463a
Fixed formatiing
davenger Dec 21, 2022
0da88ea
Rework datetime-handling
ltrk2 Dec 17, 2022
343f888
Kusto-phase3: makle make-series operator to work with new kql_datatime
kashwy Jan 6, 2023
dc2d3e7
Spread native datetime conversion functions
ltrk2 Jan 6, 2023
b799c93
Update unit tests
ltrk2 Jan 6, 2023
51d5953
Correct release notes
ltrk2 Jan 9, 2023
6ecd546
Implement KQL totimespan in a conformant way
ltrk2 Jan 6, 2023
cf9b7fb
Implement KQL datetime & timespan stringification
ltrk2 Dec 8, 2022
54fc4e7
Update release notes
ltrk2 Jan 5, 2023
a2aa1c4
Kusto-phase3: fix double quote issue of top-nested operator
kashwy Jan 11, 2023
f1904fc
Fix errors by Clang 15 and clean up includes
ltrk2 Jan 12, 2023
56e9b7c
Simplify the implementation of toStartOfInterval
ltrk2 Jan 16, 2023
2264959
array_iif_bug_1330
SadiHassan Dec 28, 2022
eb2ba6d
release notes updated
SadiHassan Jan 17, 2023
ad6adeb
Implement skeletons for new KQL functions
ltrk2 Jan 20, 2023
93341d3
1913_take_any
Jan 19, 2023
6bcdccc
1913_take_any
mcmajam Jan 19, 2023
dd33c81
1913_take_any
mcmajam Jan 21, 2023
9f3780b
1913_take_any
mcmajam Jan 23, 2023
c6ed629
Add floor as an alias for bin
ltrk2 Jan 18, 2023
70a9ffb
Case insensitive operators
SadiHassan Dec 11, 2022
88dd294
fixed review comment issues
SadiHassan Jan 23, 2023
d55e202
Update unit tests
ltrk2 Jan 25, 2023
e4da7f0
Introduce non-throwing variants of hasToken
ltrk2 Jan 17, 2023
c067e17
Document functions
ltrk2 Jan 17, 2023
bc1f174
Produce a null map of the correct size
ltrk2 Jan 19, 2023
f65ad94
Refine the solution
ltrk2 Jan 23, 2023
5329353
Fix the build with ENABLE_VECTORSCAN disabled
ltrk2 Jan 24, 2023
4ac0bf0
Merge pull request #187 from ClibMouse/feature/hastoken
ltrk2 Jan 25, 2023
4b65083
Improve operators has, !has, has_all, has_any
ltrk2 Jan 16, 2023
6ddabcd
Fix build errors
ltrk2 Jan 25, 2023
2c2eeae
bug fix 1331
SadiHassan Jan 25, 2023
acefdec
added arg check
SadiHassan Jan 25, 2023
14ec442
Implement functional tests
ltrk2 Jan 25, 2023
4637932
Update unit tests
ltrk2 Jan 25, 2023
c20c380
Merge pull request #188 from ClibMouse/bugfix/operator-has
ltrk2 Jan 25, 2023
05c30b9
Merge pull request #183 from ClibMouse/bug_fix_1331
SadiHassan Jan 25, 2023
14367bd
Kusto-phase3: add kql range() function
kashwy Jan 25, 2023
9d986ca
Update release notes
ltrk2 Jan 25, 2023
d2d7233
Merge pull request #190 from ClibMouse/ltrk2-patch-1
ltrk2 Jan 25, 2023
49bdfcf
Merge pull request #191 from ClibMouse/Kusto-p3-range-function2
kashwy Jan 25, 2023
0ec4ff8
Kusto-phase3: update release note for range() function
kashwy Jan 25, 2023
6531c15
Merge pull request #192 from ClibMouse/Kusto-p3-update-releasenote-range
kashwy Jan 25, 2023
2f40838
Kusto-phase3: Add kql range operator
kashwy Jan 26, 2023
128d960
Merge pull request #193 from ClibMouse/Kusto-p3-range-op
kashwy Jan 26, 2023
6b75b1b
Add a missing include
ltrk2 Jan 26, 2023
9491575
Merge pull request #194 from ClibMouse/bugfix/missing-include
kashwy Jan 26, 2023
f307a05
Enable PR Sanity Checks (#197)
larryluogit Jan 27, 2023
c8402c3
testing github actions
esc5 Feb 2, 2023
d3024da
Update CertificateReloader.cpp
esc5 Feb 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
208 changes: 88 additions & 120 deletions .github/workflows/backport_branches.yml

Large diffs are not rendered by default.

3 changes: 2 additions & 1 deletion .github/workflows/cherry_pick.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,9 @@ jobs:
REPO_TEAM=core
EOF
- name: Check out repository code
uses: actions/checkout@v2
uses: ClickHouse/checkout@v1
with:
clear-repository: true
token: ${{secrets.ROBOT_CLICKHOUSE_COMMIT_TOKEN}}
fetch-depth: 0
- name: Cherry pick
Expand Down
343 changes: 343 additions & 0 deletions .github/workflows/clibmouse_pr.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,343 @@
name: PR Sanity
run-name: ${{ github.actor }} is running PR sanity check 🚀
env:
# Force the stdout and stderr streams to be unbuffered
PYTHONUNBUFFERED: 1

on: # yamllint disable-line rule:truthy
pull_request:
types:
- synchronize
- reopened
- opened
branches:
- Kusto-phase3
paths-ignore:
- 'docker/docs/**'
- 'docs/**'
- 'website/**'
jobs:
CheckLabels:
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Labels check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 run_check.py
PythonUnitTests:
needs: CheckLabels
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Python unit tests
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 -m unittest discover -s . -p '*_test.py'
DockerHubPushAarch64:
needs: CheckLabels
runs-on: [self-hosted, style-checker-aarch64]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_images_check.py --suffix aarch64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images_aarch64
path: ${{ runner.temp }}/docker_images_check/changed_images_aarch64.json
DockerHubPushAmd64:
needs: CheckLabels
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_images_check.py --suffix amd64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images_amd64
path: ${{ runner.temp }}/docker_images_check/changed_images_amd64.json
DockerHubPush:
needs: [DockerHubPushAmd64, DockerHubPushAarch64, PythonUnitTests]
runs-on: [self-hosted, style-checker]
steps:
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Download changed aarch64 images
uses: actions/download-artifact@v2
with:
name: changed_images_aarch64
path: ${{ runner.temp }}
- name: Download changed amd64 images
uses: actions/download-artifact@v2
with:
name: changed_images_amd64
path: ${{ runner.temp }}
- name: Images check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 docker_manifests_merge.py --suffix amd64 --suffix aarch64
- name: Upload images files to artifacts
uses: actions/upload-artifact@v2
with:
name: changed_images
path: ${{ runner.temp }}/changed_images.json
StyleCheck:
needs: DockerHubPush
runs-on: [self-hosted, style-checker]
if: ${{ success() || failure() }}
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{ runner.temp }}/style_check
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}}
RCSK
EOF
- name: Download changed images
# even if artifact does not exist, e.g. on `do not test` label or failed Docker job
continue-on-error: true
uses: actions/download-artifact@v2
with:
name: changed_images
path: ${{ env.TEMP_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Style Check
run: |
cd "$GITHUB_WORKSPACE/tests/ci"
python3 style_check.py
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"
BuilderDebRelease:
needs: [DockerHubPush]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=package_release
EOF
- name: Download changed images
uses: actions/download-artifact@v3
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
fetch-depth: 0 # for performance artifact
submodules: true
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
BuilderBinRelease:
needs: [DockerHubPush]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=binary_release
EOF
- name: Download changed images
uses: actions/download-artifact@v2
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Build
run: |
git -C "$GITHUB_WORKSPACE" submodule sync --recursive
git -C "$GITHUB_WORKSPACE" submodule update --depth=1 --recursive --init --jobs=10
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v2
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
BuilderBinClangTidy:
needs: [DockerHubPush, StyleCheck]
runs-on: [self-hosted, builder]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/build_check
IMAGES_PATH=${{runner.temp}}/images_path
REPO_COPY=${{runner.temp}}/build_check/ClickHouse
CACHES_PATH=${{runner.temp}}/../ccaches
BUILD_NAME=binary_tidy
EOF
- name: Download changed images
uses: actions/download-artifact@v3
with:
name: changed_images
path: ${{ env.IMAGES_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
submodules: true
- name: Build
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci" && python3 build_check.py "$BUILD_NAME"
- name: Upload build URLs to artifacts
if: ${{ success() || failure() }}
uses: actions/upload-artifact@v3
with:
name: ${{ env.BUILD_URLS }}
path: ${{ env.TEMP_PATH }}/${{ env.BUILD_URLS }}.json
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH" "$CACHES_PATH"
UnitTestsReleaseClang:
needs: [BuilderBinRelease]
runs-on: [self-hosted, fuzzer-unit-tester]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/unit_tests_asan
REPORTS_PATH=${{runner.temp}}/reports_dir
CHECK_NAME=Unit tests (release-clang)
REPO_COPY=${{runner.temp}}/unit_tests_asan/ClickHouse
EOF
- name: Download json reports
uses: actions/download-artifact@v2
with:
path: ${{ env.REPORTS_PATH }}
- name: Clear repository
run: |
sudo rm -fr "$GITHUB_WORKSPACE" && mkdir "$GITHUB_WORKSPACE"
- name: Check out repository code
uses: actions/checkout@v2
- name: Unit test
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci"
python3 unit_tests_check.py "$CHECK_NAME"
- name: Cleanup
if: always()
run: |
# shellcheck disable=SC2046
docker kill $(docker ps -q) ||:
# shellcheck disable=SC2046
docker rm -f $(docker ps -a -q) ||:
sudo rm -fr "$TEMP_PATH"
FunctionalStatelessTestRelease:
needs: [BuilderDebRelease]
runs-on: [self-hosted, func-tester]
steps:
- name: Set envs
run: |
cat >> "$GITHUB_ENV" << 'EOF'
TEMP_PATH=${{runner.temp}}/stateless_release
REPORTS_PATH=${{runner.temp}}/reports_dir
CHECK_NAME=Stateless tests (release)
REPO_COPY=${{runner.temp}}/stateless_release/ClickHouse
KILL_TIMEOUT=10800
EOF
- name: Download json reports
uses: actions/download-artifact@v3
with:
path: ${{ env.REPORTS_PATH }}
- name: Check out repository code
uses: ClickHouse/checkout@v1
with:
clear-repository: true
- name: Functional test
run: |
sudo rm -fr "$TEMP_PATH"
mkdir -p "$TEMP_PATH"
cp -r "$GITHUB_WORKSPACE" "$TEMP_PATH"
cd "$REPO_COPY/tests/ci"
python3 functional_test_check.py "$CHECK_NAME" "$KILL_TIMEOUT"
- name: Cleanup
if: always()
run: |
docker ps --quiet | xargs --no-run-if-empty docker kill ||:
docker ps --all --quiet | xargs --no-run-if-empty docker rm -f ||:
sudo rm -fr "$TEMP_PATH"
Loading