forked from ClickHouse/ClickHouse
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into proj_optimization_analyzer
- Loading branch information
Showing
695 changed files
with
3,806 additions
and
2,088 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
# yamllint disable rule:comments-indentation | ||
name: MergeQueueCI | ||
|
||
env: | ||
# Force the stdout and stderr streams to be unbuffered | ||
PYTHONUNBUFFERED: 1 | ||
|
||
on: # yamllint disable-line rule:truthy | ||
merge_group: | ||
|
||
jobs: | ||
RunConfig: | ||
runs-on: [self-hosted, style-checker-aarch64] | ||
outputs: | ||
data: ${{ steps.runconfig.outputs.CI_DATA }} | ||
steps: | ||
- name: DebugInfo | ||
uses: hmarr/debug-action@f7318c783045ac39ed9bb497e22ce835fdafbfe6 | ||
- name: Check out repository code | ||
uses: ClickHouse/checkout@v1 | ||
with: | ||
clear-repository: true # to ensure correct digests | ||
fetch-depth: 0 # to get version | ||
filter: tree:0 | ||
- name: Python unit tests | ||
run: | | ||
cd "$GITHUB_WORKSPACE/tests/ci" | ||
echo "Testing the main ci directory" | ||
python3 -m unittest discover -s . -p 'test_*.py' | ||
for dir in *_lambda/; do | ||
echo "Testing $dir" | ||
python3 -m unittest discover -s "$dir" -p 'test_*.py' | ||
done | ||
- name: PrepareRunConfig | ||
id: runconfig | ||
run: | | ||
python3 "$GITHUB_WORKSPACE/tests/ci/ci.py" --configure --outfile ${{ runner.temp }}/ci_run_data.json | ||
echo "::group::CI configuration" | ||
python3 -m json.tool ${{ runner.temp }}/ci_run_data.json | ||
echo "::endgroup::" | ||
{ | ||
echo 'CI_DATA<<EOF' | ||
cat ${{ runner.temp }}/ci_run_data.json | ||
echo 'EOF' | ||
} >> "$GITHUB_OUTPUT" | ||
BuildDockers: | ||
needs: [RunConfig] | ||
if: ${{ !failure() && !cancelled() && toJson(fromJson(needs.RunConfig.outputs.data).docker_data.missing_multi) != '[]' }} | ||
uses: ./.github/workflows/reusable_docker.yml | ||
with: | ||
data: ${{ needs.RunConfig.outputs.data }} | ||
StyleCheck: | ||
needs: [RunConfig, BuildDockers] | ||
if: ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Style check')}} | ||
uses: ./.github/workflows/reusable_test.yml | ||
with: | ||
test_name: Style check | ||
runner_type: style-checker | ||
run_command: | | ||
python3 style_check.py | ||
data: ${{ needs.RunConfig.outputs.data }} | ||
secrets: | ||
secret_envs: | | ||
ROBOT_CLICKHOUSE_SSH_KEY<<RCSK | ||
${{secrets.ROBOT_CLICKHOUSE_SSH_KEY}} | ||
RCSK | ||
FastTest: | ||
needs: [RunConfig, BuildDockers] | ||
if: ${{ !failure() && !cancelled() && contains(fromJson(needs.RunConfig.outputs.data).jobs_data.jobs_to_do, 'Fast test') }} | ||
uses: ./.github/workflows/reusable_test.yml | ||
with: | ||
test_name: Fast test | ||
runner_type: builder | ||
data: ${{ needs.RunConfig.outputs.data }} | ||
run_command: | | ||
python3 fast_test_check.py | ||
################################# Stage Final ################################# | ||
# | ||
FinishCheck: | ||
if: ${{ !failure() && !cancelled() }} | ||
needs: [RunConfig, BuildDockers, StyleCheck, FastTest] | ||
runs-on: [self-hosted, style-checker] | ||
steps: | ||
- name: Check out repository code | ||
uses: ClickHouse/checkout@v1 | ||
- name: Check sync status | ||
run: | | ||
cd "$GITHUB_WORKSPACE/tests/ci" | ||
python3 sync_pr.py --status | ||
- name: Finish label | ||
run: | | ||
cd "$GITHUB_WORKSPACE/tests/ci" | ||
python3 finish_check.py ${{ (contains(needs.*.result, 'failure') && github.event_name == 'merge_group') && '--pipeline-failure' || '' }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.