Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
386 commits
Select commit Hold shift + click to select a range
2da99cd
array_sort unit test fix
SadiHassan Sep 12, 2022
6d0de59
Take suffixes into account in case of format_ipv4_mask
ltrk2 Sep 9, 2022
7a866d5
Kusto-phase2 , fix some flow bug and add extend operator
kashwy Sep 13, 2022
c6fe343
Kusto-phase2 : fix functional test
kashwy Sep 14, 2022
edf1103
Implement functional tests for KQL functions
ltrk2 Sep 14, 2022
4bc6dc3
Implement a functional test for KQL
ltrk2 Sep 15, 2022
eb8ffee
Simplify KQL trim functions to avoid aliases
ltrk2 Sep 12, 2022
f370af0
Implement raw argument extraction to support nesting
ltrk2 Sep 12, 2022
ff2ef6a
Use stack instead of vector
ltrk2 Sep 13, 2022
b133460
Implement KQL functional tests and fix bugs that came up
ltrk2 Sep 16, 2022
e48f15b
Implement KQL functional tests and fix issues
ltrk2 Sep 19, 2022
5fac16a
Implement functional tests for KQL trim
ltrk2 Sep 16, 2022
072a259
make_list_with_nulls_bug1009 fix
SadiHassan Sep 19, 2022
d9fb098
Kusto-phase2: fix core dump , kql !in orerator in sql
kashwy Sep 27, 2022
4cc3f00
Fix KQL IPv6 functions in terms of handling IPv4
ltrk2 Sep 23, 2022
8a4038a
Reinstate const qualifiers
ltrk2 Sep 26, 2022
6bf87a0
Kusto-phase2: fix core dump for string operator, disable alias withou…
kashwy Sep 28, 2022
d7ad868
Fixed bugs
HeenaBansal2009 Sep 14, 2022
4c73ea9
More bug fix
HeenaBansal2009 Sep 18, 2022
0a6cbef
More fixed bugs
HeenaBansal2009 Sep 20, 2022
758fba6
Functional testcas added
HeenaBansal2009 Sep 23, 2022
1f68b2e
Addressed review comments
HeenaBansal2009 Sep 26, 2022
d98ed25
Implement KQL functional tests
ltrk2 Sep 26, 2022
8a220b9
Implement KQL functional tests
ltrk2 Sep 27, 2022
15eb41b
Implement KQL functional tests
ltrk2 Sep 28, 2022
383eabe
Fix a unit test and use R-strings to avoid escaping
ltrk2 Sep 28, 2022
b041453
Fixed Unittestcase failure
HeenaBansal2009 Sep 28, 2022
55c3747
Kusto-phase2: updated release note
kashwy Sep 29, 2022
a1700cb
fixed bug for issue #1336
SadiHassan Oct 4, 2022
e0192fc
addressed review comments made by Yong
SadiHassan Oct 5, 2022
fa1a925
fix functional test failure
SadiHassan Oct 6, 2022
e2d6b88
Kusto-phase2: fix extend bugs, summarize alias
kashwy Oct 3, 2022
35f1b70
Bug fixes
HeenaBansal2009 Sep 28, 2022
5bff215
Bug fixes
HeenaBansal2009 Sep 29, 2022
842e094
Added Functional tests
HeenaBansal2009 Sep 29, 2022
0d48a29
Fixed #1268
HeenaBansal2009 Sep 30, 2022
2fb0df9
Updated tests
HeenaBansal2009 Sep 30, 2022
7a01ef5
Updated tests
HeenaBansal2009 Sep 30, 2022
602777b
String functions -phase 2 low priority defer ones
HeenaBansal2009 Sep 13, 2022
95b0a16
Updated release notes
HeenaBansal2009 Sep 13, 2022
3417012
Addressed review comments
HeenaBansal2009 Sep 27, 2022
93178ff
Refactored Parse_version , parse_csv and extract_json
HeenaBansal2009 Sep 28, 2022
b4a9006
Fixed testcases
HeenaBansal2009 Sep 28, 2022
0e5eba2
Updated release notes
HeenaBansal2009 Sep 28, 2022
f9edc14
Implement KQL functional tests
ltrk2 Sep 30, 2022
d148020
Addressed review comments
HeenaBansal2009 Sep 30, 2022
5a7f571
handled error scenarios
HeenaBansal2009 Oct 3, 2022
9489a4d
Tetscases updated
HeenaBansal2009 Oct 3, 2022
c11f10e
Rebased with Kusto-phase2
HeenaBansal2009 Oct 3, 2022
58b5378
Kusto-phase2 : fix direct array index, fix functional test
kashwy Oct 6, 2022
7d9d4dc
fixed bug #1368
SadiHassan Oct 4, 2022
e0869c8
addressed reviewed change requests made by Yong
SadiHassan Oct 5, 2022
c9cc5bc
removed unwanted header file
SadiHassan Oct 5, 2022
c352aad
updated unit and functional tests
SadiHassan Oct 6, 2022
5e15b71
modified unit test
SadiHassan Oct 6, 2022
ff2502c
Added functional tests for string and array
larryluogit Oct 7, 2022
6a49ae3
bug fixe issue-1420
SadiHassan Oct 6, 2022
29bfd83
Functional test added
SadiHassan Oct 10, 2022
5122de8
Bug fix 1489
SadiHassan Oct 10, 2022
458aab2
Kusto-phase2 : add distinct operator
kashwy Oct 12, 2022
b9816a0
Bug fix 1370
SadiHassan Oct 10, 2022
08a6221
endofyear() bug_fix_1369
SadiHassan Oct 6, 2022
f6593b9
modified unit test
SadiHassan Oct 6, 2022
3fd74a2
Implement a KQL functional test
ltrk2 Sep 28, 2022
e5e470c
Initial Commit
HeenaBansal2009 Oct 5, 2022
a17920a
Kusto-phase2: updated release note
kashwy Oct 12, 2022
09e9806
fix unit test
SadiHassan Oct 12, 2022
12199b7
Kusto-phase2, fix kql subquery for master branch
kashwy Oct 19, 2022
b3e1a59
Updated test result due to OSS bug 42507
larryluogit Oct 19, 2022
c71c6f6
Fix build errors
ltrk2 Nov 24, 2022
54e6578
Implement KQL UUID base64 coding functions
ltrk2 Nov 24, 2022
847f492
Initial COmmit
HeenaBansal2009 Oct 5, 2022
4172bf9
Updated Functional testcases
HeenaBansal2009 Oct 13, 2022
cc201cb
Typo error fix
HeenaBansal2009 Oct 13, 2022
79c5c7e
Added typecasting of final result
HeenaBansal2009 Oct 14, 2022
052ff1f
Initial Commit
HeenaBansal2009 Oct 14, 2022
756a617
Fix 1108 and Unit test fixes
HeenaBansal2009 Oct 14, 2022
fa97788
Handle null conditions in array_iif
ltrk2 Oct 14, 2022
7a186c5
Fix issues with array_sum and array_length
ltrk2 Oct 18, 2022
0dc8ca4
bug fix 1345
SadiHassan Oct 14, 2022
3f9bec9
Kusto-phase3: add count operator
kashwy Oct 20, 2022
d0c151f
add scalar and dynamic functional tests
larryluogit Oct 22, 2022
a082240
Kusto-phase3: Add top and top-hitters operator
kashwy Oct 25, 2022
ef5a7a9
Kusto-phase2: Update release for top-hitters operator
kashwy Oct 25, 2022
f492a9e
Kusto-phase3: Updated release note for bug fixed
kashwy Oct 25, 2022
f09f8d1
Initial commit
HeenaBansal2009 Nov 4, 2022
0b15db1
remove unwanted code
HeenaBansal2009 Nov 4, 2022
a8b67cf
Updated Gtest
HeenaBansal2009 Nov 7, 2022
e02924e
Functional test added
HeenaBansal2009 Nov 7, 2022
d9da34d
Initial commit
HeenaBansal2009 Nov 7, 2022
312efdb
Unit testcase fixes
HeenaBansal2009 Nov 7, 2022
b4bea6f
Kusto summarize init
SadiHassan Jun 9, 2022
ea77c59
Kusto-phase1: Fixed style
kashwy Jun 11, 2022
ca9fb77
implemented case
SadiHassan Oct 31, 2022
440f30a
Revert "Kusto-phase1: Fixed style"
SadiHassan Nov 8, 2022
b455ad9
Revert "Kusto summarize init"
SadiHassan Nov 8, 2022
1c4eef8
bug fix 1528
SadiHassan Nov 9, 2022
cc0e0e1
Kusto-phase3: Add ClickHouse function to support kql array sort
kashwy Nov 2, 2022
a699cd9
Kusto-phase3 : improve kql arrary_sort_asc and array_sort_desc
kashwy Nov 10, 2022
afd9786
Kusto-phase3: restore zip function
kashwy Nov 10, 2022
9bdfcc4
Kusto-phase3 : Add join , lookup oeprator, fixed bug of distinct
kashwy Nov 22, 2022
c765ba1
clean up commit history
SadiHassan Nov 23, 2022
f86fd6b
added back corrected zip function
SadiHassan Nov 24, 2022
c708b75
Rework timespan-handling
ltrk2 Nov 14, 2022
552e66d
Perform finishing touches
ltrk2 Nov 23, 2022
8bbf94b
Update release notes
ltrk2 Nov 23, 2022
566efc6
Kusto-phase3 : fix extract bug
kashwy Nov 24, 2022
049c32c
Kusto-phase3 : add count_distinct and count_distinctif
kashwy Nov 26, 2022
1da9160
Kusto-phase3: fix indexof issue
kashwy Nov 30, 2022
b22b9fd
Kustp-phase3 : fixed expr parsing broken issue
kashwy Nov 30, 2022
46a62d7
Rework datatype and casting functions
ltrk2 Nov 29, 2022
c9011a0
Perform string conversion on arguments of strcat
ltrk2 Nov 30, 2022
b200d89
Fix unit tests
ltrk2 Nov 30, 2022
c3af9af
Handle negative timespan correctly
ltrk2 Nov 30, 2022
8048a8c
Add more functional test cases
ltrk2 Nov 30, 2022
293ca35
Update release notes
ltrk2 Nov 30, 2022
e931f6c
Implement a functional test
ltrk2 Dec 1, 2022
a4c3eed
Kusto-phase3 fixed functional test for distinct
kashwy Dec 1, 2022
a56ae46
iff and iif implemented
SadiHassan Dec 4, 2022
133dc3d
updated Release notes
SadiHassan Dec 5, 2022
f343439
Consolidate functionality
ltrk2 Dec 8, 2022
b3f1b71
Kusto-phase3: fix the issue of subscript operator for kql_array_sort
kashwy Dec 9, 2022
e7471a0
Fix unit tests
ltrk2 Dec 9, 2022
a2f395e
Kusto-phase: fix the kql array_sort subscript issue if the identifier…
kashwy Dec 9, 2022
41773f3
Implement Date, Date32 and DateTime support for KQL bin
ltrk2 Dec 8, 2022
f111a9a
Implement support for Date, Date32 and DateTime in KQL bin_at
ltrk2 Dec 9, 2022
ed52450
Kusto-phase3: Add top-nested operator
kashwy Jan 3, 2023
6898ae0
Kusto-phase3: update the release , removed unnecessary information
kashwy Jan 3, 2023
8f46ac1
Rework datetime-handling
ltrk2 Dec 17, 2022
167bcc1
Kusto-phase3: makle make-series operator to work with new kql_datatime
kashwy Jan 6, 2023
ac1f3ad
Spread native datetime conversion functions
ltrk2 Jan 6, 2023
bb0736c
Update unit tests
ltrk2 Jan 6, 2023
feb498e
Correct release notes
ltrk2 Jan 9, 2023
741ee95
Implement KQL totimespan in a conformant way
ltrk2 Jan 6, 2023
43fc1bc
Implement KQL datetime & timespan stringification
ltrk2 Dec 8, 2022
c9cd3e3
Update release notes
ltrk2 Jan 5, 2023
e3f13f5
Kusto-phase3: fix double quote issue of top-nested operator
kashwy Jan 11, 2023
422afd8
Fix errors by Clang 15 and clean up includes
ltrk2 Jan 12, 2023
2707ed7
Simplify the implementation of toStartOfInterval
ltrk2 Jan 16, 2023
f63496d
array_iif_bug_1330
SadiHassan Dec 28, 2022
4101cb0
release notes updated
SadiHassan Jan 17, 2023
f6fe5af
Implement skeletons for new KQL functions
ltrk2 Jan 20, 2023
5b5eefe
1913_take_any
Jan 19, 2023
a2899ec
1913_take_any
mcmajam Jan 19, 2023
931eddd
1913_take_any
mcmajam Jan 21, 2023
68c460e
1913_take_any
mcmajam Jan 23, 2023
917168c
Add floor as an alias for bin
ltrk2 Jan 18, 2023
1395991
Case insensitive operators
SadiHassan Dec 11, 2022
221a46b
fixed review comment issues
SadiHassan Jan 23, 2023
e88a597
Update unit tests
ltrk2 Jan 25, 2023
9dddade
Improve operators has, !has, has_all, has_any
ltrk2 Jan 16, 2023
56b37f0
Fix build errors
ltrk2 Jan 25, 2023
f2e6cef
Implement functional tests
ltrk2 Jan 25, 2023
54ba499
Update unit tests
ltrk2 Jan 25, 2023
735fb39
bug fix 1331
SadiHassan Jan 25, 2023
c86355f
added arg check
SadiHassan Jan 25, 2023
b687c6b
Update release notes
ltrk2 Jan 25, 2023
137771a
Kusto-phase3: add kql range() function
kashwy Jan 25, 2023
cfd87b3
Kusto-phase3: update release note for range() function
kashwy Jan 25, 2023
9486b26
Kusto-phase3: Add kql range operator
kashwy Jan 26, 2023
996c387
Add a missing include
ltrk2 Jan 26, 2023
b8061a3
Enable PR Sanity Checks (#197)
larryluogit Jan 27, 2023
9dc9405
bug_fix_1332
SadiHassan Jan 27, 2023
60f0cdb
style fix -- whitespace
SadiHassan Jan 27, 2023
205b56f
fixed stylecheck --- typo
SadiHassan Jan 30, 2023
4afa810
fixed stylecheck --- style_output (part-1)
SadiHassan Jan 30, 2023
2d6d1ef
fixed stylecheck --- style_output (part-2)
SadiHassan Jan 31, 2023
6413928
fixed stylecheck --- style_output (part-3)
SadiHassan Jan 31, 2023
83a3af4
added more functional test + fix build error due to style correction
SadiHassan Jan 31, 2023
50b4e6c
BuilderBinClangTidy error fix --- (part-1)
SadiHassan Feb 1, 2023
e0c8d8e
BuilderBinClangTidy error fix --- (part-2)
SadiHassan Feb 1, 2023
a391ad5
BuilderBinClangTidy error fix --- (part-3)
SadiHassan Feb 2, 2023
45e4cbf
Kusto-phase3: fix yaml style
kashwy Feb 7, 2023
44ef9e2
Kusto-phase3: trigger CI
kashwy Feb 7, 2023
7c59241
2142_dcount_parameter
mcmajam Jan 25, 2023
876a3e8
2142_dcount_parameter
mcmajam Jan 27, 2023
57237be
2142_dcount_parameter
mcmajam Feb 3, 2023
5784efe
2142_dcount_parameter
mcmajam Feb 3, 2023
2f5f5e9
2142_dcount_parameter
mcmajam Feb 3, 2023
409ca27
Fix compilation error
ltrk2 Feb 13, 2023
36b7292
Adapt to changes in IP functions
ltrk2 Feb 13, 2023
b1b2cae
Update unit tests related to IP functions
ltrk2 Feb 13, 2023
a5ad30c
Kusto-phase3: fix mv-expand token index issue
kashwy Feb 13, 2023
722b296
bug_fix_1490
SadiHassan Feb 2, 2023
59e191a
Handle multi-word needles with has operators
ltrk2 Feb 7, 2023
0b29cd1
Update release notes
ltrk2 Feb 14, 2023
0a7d3f5
Fixing empty functions
mcmajam Feb 16, 2023
850fd17
Adding math functions
mcmajam Feb 16, 2023
b19832d
use .size()
mcmajam Feb 16, 2023
682ac0d
fix summarize_exception_bug_2113
SadiHassan Jan 20, 2023
27becd8
bug_fix_1413
SadiHassan Feb 6, 2023
98d566e
fixed style error
SadiHassan Feb 6, 2023
71e11d0
rebased and func test added
SadiHassan Feb 16, 2023
2a8a201
Support multi-token needles
ltrk2 Feb 21, 2023
b2f2e13
Update unit tests
ltrk2 Feb 22, 2023
58800c2
Fix style issues
ltrk2 Feb 22, 2023
53d43e7
Fix a linker error
ltrk2 Feb 22, 2023
416f8da
bug_fix_2159
SadiHassan Feb 12, 2023
dec66f4
rebased and code updated
SadiHassan Feb 16, 2023
9e48841
rebase and address review comments
SadiHassan Feb 23, 2023
ee1353f
Attempt to supress a pylint finding
ltrk2 Feb 23, 2023
626c51c
variance related functions --- 2252
SadiHassan Feb 24, 2023
c23790a
Addressed review comments
SadiHassan Feb 24, 2023
d1f2d1b
Kusto-phase3 : fixed some sub-query issues.
kashwy Feb 27, 2023
5d8432a
Kusto-phase3: fixed style issue, count bugs
kashwy Feb 27, 2023
46500bd
Kusto-phase3 : fix typo in sub-query
kashwy Feb 27, 2023
9baf50e
Kusto-phase3: add KQL project-away operator
kashwy Feb 22, 2023
3d27c3f
Kusto-phase3 : Add test for projectaway
kashwy Feb 24, 2023
18cb0aa
Kusto-phase3: update release note
kashwy Feb 24, 2023
5a2d518
Kusto-phase3 : updated function to follow the style
kashwy Feb 27, 2023
c1b3ef4
Fix linker error for good
ltrk2 Feb 23, 2023
d6bf60d
lookup() function
SadiHassan Feb 27, 2023
8ebda15
removed unused code
SadiHassan Feb 27, 2023
e61feb4
Addressed review comments
SadiHassan Feb 27, 2023
5ed12df
fix style issue
SadiHassan Feb 27, 2023
bf29945
Bring everything in line with v23.2
ltrk2 Feb 28, 2023
eae3265
Merge pull request #234 from ClibMouse/feature/update-to-v23.2
ltrk2 Feb 28, 2023
362b0cb
implementation of has_ipv4, has_any_ipv4, has_ipv4_prefix, and has_an…
bemitc Feb 8, 2023
a347d89
address trailing whitespace and ErrorCodes errors
bemitc Feb 8, 2023
669320d
add one additional missing ErrorCode
bemitc Feb 8, 2023
738e9a8
space after if and for
bemitc Feb 8, 2023
965b3c6
eliminate camelcase in variable names
bemitc Feb 8, 2023
f0f06fd
use direct mapping for non any functions and mop up some stray camelc…
bemitc Feb 8, 2023
053e9eb
directMap remaining functions instead of a wrapper.
bemitc Feb 9, 2023
76a3813
make args_list const
bemitc Feb 9, 2023
3eb2a7a
handle columns with multiple rows correctly
bemitc Feb 13, 2023
ad2dd57
use input_rows_count instead of calculating maximum size across argum…
bemitc Feb 13, 2023
60b8f92
fix style
bemitc Feb 13, 2023
06efdb0
put lambda expression on a single line
bemitc Feb 13, 2023
5ee1ae7
use std::ranges::all_of instead of a for loop
bemitc Feb 13, 2023
b319f3e
clean up functional tests and add unit tests
bemitc Feb 15, 2023
2fd90d1
size_t to const auto
bemitc Feb 17, 2023
4e78678
change some uses of std::string to auto
bemitc Feb 17, 2023
c4eb10c
row count is the same across all arguments, so simplify the argument …
bemitc Feb 17, 2023
7c8a005
const a lambda variable and update functional test and baseline
bemitc Feb 23, 2023
e568d27
Update src/Functions/Kusto/kqlHasAnyIpv4.cpp
bemitc Feb 23, 2023
38513ca
resolution of several minor code review comments
bemitc Feb 27, 2023
60bcfe3
share argument verification across kqlHasAnyIpv4.cpp and kqlHasAnyIpv…
bemitc Feb 27, 2023
57621e7
convert one remaining post increment to pre increment
bemitc Feb 27, 2023
446cd12
split executeImpl up to make it easier to understand
bemitc Feb 27, 2023
3bfc7e4
improve heuristic for ip prefixes and avoid a temp std::string creati…
bemitc Feb 28, 2023
20ed094
add updated heuristic to the array case as well
bemitc Feb 28, 2023
2c42c06
update ip prefix heuristic
bemitc Feb 28, 2023
51dce3d
add #pragma once
bemitc Mar 1, 2023
3b7bc39
fix typo
bemitc Mar 1, 2023
e7c6149
format kqlHasAnyIp.h and kqlHasAnyIpv4.cpp
bemitc Mar 2, 2023
906b3bf
Merge pull request #214 from ClibMouse/bem_1862_ipv4
bemitc Mar 2, 2023
315c5ac
add release notes
bemitc Mar 2, 2023
68cb25a
Merge pull request #239 from ClibMouse/bem_1862_ipv4
bemitc Mar 3, 2023
07cc76c
Refactor KQL parsing to follow a forward order
ltrk2 Mar 6, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
25 changes: 20 additions & 5 deletions contrib/googletest-cmake/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,15 +1,30 @@
set (SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/googletest/googletest")
set (SRC_DIR "${ClickHouse_SOURCE_DIR}/contrib/googletest")

add_library(_gtest "${SRC_DIR}/src/gtest-all.cc")
add_library(_gtest "${SRC_DIR}/googletest/src/gtest-all.cc")
set_target_properties(_gtest PROPERTIES VERSION "1.0.0")
target_compile_definitions (_gtest PUBLIC GTEST_HAS_POSIX_RE=0)
target_include_directories(_gtest SYSTEM PUBLIC "${SRC_DIR}/include")
target_include_directories(_gtest PRIVATE "${SRC_DIR}")
target_include_directories(_gtest SYSTEM PUBLIC "${SRC_DIR}/googletest/include")
target_include_directories(_gtest PRIVATE "${SRC_DIR}/googletest")

add_library(_gtest_main "${SRC_DIR}/src/gtest_main.cc")
add_library(_gtest_main "${SRC_DIR}/googletest/src/gtest_main.cc")
set_target_properties(_gtest_main PROPERTIES VERSION "1.0.0")
target_link_libraries(_gtest_main PUBLIC _gtest)

add_library(_gtest_all INTERFACE)
target_link_libraries(_gtest_all INTERFACE _gtest _gtest_main)
add_library(ch_contrib::gtest_all ALIAS _gtest_all)

add_library(_gmock "${SRC_DIR}/googlemock/src/gmock-all.cc")
set_target_properties(_gmock PROPERTIES VERSION "1.0.0")
target_compile_definitions (_gmock PUBLIC GTEST_HAS_POSIX_RE=0)
target_include_directories(_gmock SYSTEM PUBLIC "${SRC_DIR}/googlemock/include")
target_include_directories(_gmock PRIVATE "${SRC_DIR}/googlemock")
target_link_libraries(_gmock PUBLIC _gtest)

add_library(_gmock_main "${SRC_DIR}/googlemock/src/gmock_main.cc")
set_target_properties(_gmock_main PROPERTIES VERSION "1.0.0")
target_link_libraries(_gmock_main PUBLIC _gmock)

add_library(_gmock_all INTERFACE)
target_link_libraries(_gmock_all INTERFACE _gmock _gmock_main)
add_library(ch_contrib::gmock_all ALIAS _gmock_all)
5 changes: 3 additions & 2 deletions programs/keeper/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,8 @@ if (BUILD_STANDALONE_KEEPER)
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/WriteBufferFromNuraftBuffer.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Coordination/ZooKeeperDataReader.cpp

${CMAKE_CURRENT_SOURCE_DIR}/../../src/Core/SettingsFields.cpp
# this will need to be uncommented once dbms is no longer a dependency of standalone clickhouse-keeper
# ${CMAKE_CURRENT_SOURCE_DIR}/../../src/Core/SettingsFields.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Core/BaseSettings.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Core/Field.cpp
${CMAKE_CURRENT_SOURCE_DIR}/../../src/Core/SettingsEnums.cpp
Expand Down Expand Up @@ -136,7 +137,7 @@ if (BUILD_STANDALONE_KEEPER)
clickhouse_common_config_no_zookeeper_log
loggers_no_text_log
clickhouse_common_io
clickhouse_parsers # Otherwise compression will not built. FIXME.
clickhouse_parsers dbms # Otherwise compression will not built. FIXME.

${LINK_RESOURCE_LIB_STANDALONE_KEEPER}
)
Expand Down
Loading