mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-09-19 16:20:50 +00:00
Merge pull request #67898 from ClickHouse/ci_mergeable_check_fix_2
CI: Fix for setting Mergeable Check from sync
This commit is contained in:
commit
beb43734ae
2
.github/workflows/jepsen.yml
vendored
2
.github/workflows/jepsen.yml
vendored
@ -67,7 +67,7 @@ jobs:
|
||||
if: ${{ !cancelled() }}
|
||||
run: |
|
||||
export WORKFLOW_RESULT_FILE="/tmp/workflow_results.json"
|
||||
cat >> "$WORKFLOW_RESULT_FILE" << 'EOF'
|
||||
cat > "$WORKFLOW_RESULT_FILE" << 'EOF'
|
||||
${{ toJson(needs) }}
|
||||
EOF
|
||||
python3 ./tests/ci/ci_buddy.py --check-wf-status
|
||||
|
@ -497,9 +497,9 @@ def trigger_mergeable_check(
|
||||
description = format_description(description)
|
||||
|
||||
if set_from_sync:
|
||||
# update Mergeable Check from sync WF only if its status already present or its new status is not SUCCESS
|
||||
# update Mergeable Check from sync WF only if its status already present or its new status is FAILURE
|
||||
# to avoid false-positives
|
||||
if mergeable_status or state != SUCCESS:
|
||||
if mergeable_status or state == FAILURE:
|
||||
set_mergeable_check(commit, description, state)
|
||||
elif mergeable_status is None or mergeable_status.description != description:
|
||||
set_mergeable_check(commit, description, state)
|
||||
|
Loading…
Reference in New Issue
Block a user