Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
Prev Previous commit
fix log to grafana
  • Loading branch information
sergiocazzolato committed Sep 24, 2026
commit cbdb65735e60ca8a443c15fb2fd1b944e64d18be
1 change: 1 addition & 0 deletions .github/scripts/common.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ send_results_to_test_predictor() {
local run_attempt="$4"
local group="$5"
local scenario="$6"
local GH_API_RETRIES=5
local job_ids
local job_id
local http_code
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/spread-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ jobs:
echo REQUIRED="$required" >> $GITHUB_ENV

- name: Setup grafana parameters
if: ${{ env.SKIP_SPREAD_LABEL != 'true' && inputs.log-to-grafana == 'true' }}
if: ${{ env.SKIP_SPREAD_LABEL != 'true' && inputs.log-to-grafana }}
run: |
# Configure parameters to filter logs (these logs are sent read by grafana agent)
CHANGE_ID="${{ github.event.number }}"
Expand Down Expand Up @@ -554,7 +554,7 @@ jobs:
if-no-files-found: ignore

- name: Report spread errors
if: ${{ always() && inputs.log-to-grafana == 'true' }}
if: ${{ always() && inputs.log-to-grafana }}
run: |
if [ -e results.json ]; then
echo "Adding to the filtered log any spread errors found"
Expand All @@ -570,7 +570,7 @@ jobs:
fi

- name: Upload filtered log for Grafana
if: ${{ always() && runner.environment != 'self-hosted' && env.RUN_TESTS == 'true' && inputs.log-to-grafana == 'true' }}
if: ${{ always() && runner.environment != 'self-hosted' && env.RUN_TESTS == 'true' && inputs.log-to-grafana }}
uses: actions/upload-artifact@v7
with:
name: "grafana-filtered-log-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.group }}"
Expand Down Expand Up @@ -678,7 +678,7 @@ jobs:
uses: actions/checkout@v6

- name: Download filtered log for Grafana
if: ${{ inputs.log-to-grafana == 'true' }}
if: ${{ inputs.log-to-grafana }}
uses: actions/download-artifact@v8
with:
name: "grafana-filtered-log-${{ github.run_id }}-${{ github.run_attempt }}-${{ inputs.group }}"
Expand Down
Loading