Skip to content

Commit

Permalink
ci: Fix merge_group tests
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelburnham committed Nov 1, 2024
1 parent a7ffd41 commit fe9690e
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/bench.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,14 +50,14 @@ on:
required: false
# Zulip stream in which to send the message (optional)
# Ignored if `private` input is specified
# Defaults to `light_client` stream
# Defaults to `light-client` stream
channel:
description: 'Send message to channel (default is `light-client`). Ignored if `private` input is specified'
type: string
required: false
# Zulip topic in which to send the message (optional)
# Ignored if `private` input is specified
# Defaults to `chat`
# Defaults to `Benchmark Reports`
topic:
description: 'Send message to topic (default is `chat`). Ignored if `private` input is specified'
type: string
Expand Down Expand Up @@ -108,12 +108,12 @@ jobs:
if [[ ! -z "${{ inputs.stream }}" ]]; then
STREAM="${{ inputs.stream }}"
elif [[ -z "$STREAM" ]]; then
STREAM="light_client"
STREAM="light-client"
fi
if [[ ! -z "${{ inputs.topic }}" ]]; then
TOPIC="${{ inputs.topic }}"
elif [[ -z "$TOPIC" ]]; then
TOPIC="chat"
TOPIC="Benchmark Reports"
fi
fi
echo "TYPE=$TYPE" | tee -a $GITHUB_ENV
Expand Down
3 changes: 0 additions & 3 deletions .github/workflows/lints.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Lints

on:
merge_group:
push:
branches:
- "dev"
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]

Expand Down
15 changes: 10 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,6 @@ name: Rust

on:
merge_group:
push:
branches:
- "dev"
pull_request:
types: [ opened, synchronize, reopened, ready_for_review ]

Expand Down Expand Up @@ -251,6 +248,12 @@ jobs:
uses: ./.github/actions/setup
- name: Set env
run: |
if [[ "${{ github.event_name }}" == "pull_request" ]]; then
BASE_REF=${{ github.base_ref }}
elif [[ "${{ github.event_name }}" == "merge_group" ]]; then
BASE_REF=${{ github.event.merge_group.base_ref }}
fi
if [[ "${{ matrix.package }}" == "aptos" ]]; then
TESTS="test_execute_inclusion test_execute_epoch_change test_execute_sig"
FEATURES="--features aptos"
Expand All @@ -261,6 +264,8 @@ jobs:
TESTS="test_execute_spv test_execute_longest_chain"
FEATURES="--features kadena"
fi
echo "BASE_REF=$BASE_REF" | tee -a $GITHUB_ENV
echo "TESTS=$TESTS" | tee -a $GITHUB_ENV
echo "FEATURES=$FEATURES" | tee -a $GITHUB_ENV
- name: Get cycle counts for PR
Expand All @@ -282,7 +287,7 @@ jobs:
RUST_LOG: debug
- uses: actions/checkout@v4
with:
ref: ${{ github.base_ref }}
ref: ${{ env.BASE_REF }}
- name: Get cycle counts for base branch
id: regression-check
run: |
Expand Down Expand Up @@ -331,7 +336,7 @@ jobs:
${{ env.WORKFLOW_URL }}
- uses: JasonEtco/create-an-issue@v2
if: steps.regression-check.outputs.regression == 'true' && github.event_name == 'push'
if: steps.regression-check.outputs.regression == 'true' && github.event_name == 'merge_group'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
WORKFLOW_URL: ${{ env.WORKFLOW_URL }}
Expand Down

0 comments on commit fe9690e

Please sign in to comment.