Don't rerun failed tests in 'Build and Test with Sanitizers' workflow (#12259)

## Problem

We could easily miss a sanitizer-detected defect, if it occurred due to
some race condition, as we just rerun the test and if it succeeds, the
overall test run is considered successful. It was more reasonable
before, when we had much more unstable tests in main, but now we can
track all test failures.

## Summary of changes
Don't rerun failed tests.
This commit is contained in:
Alexander Lakhin
2025-06-17 11:08:43 +03:00
committed by GitHub
parent f669e18477
commit 01ccb34118
4 changed files with 5 additions and 4 deletions

View File

@@ -38,7 +38,7 @@ on:
required: false required: false
default: 1 default: 1
type: number type: number
rerun_failed: rerun-failed:
description: 'rerun failed tests to ignore flaky tests' description: 'rerun failed tests to ignore flaky tests'
required: false required: false
default: true default: true
@@ -392,7 +392,7 @@ jobs:
run_with_real_s3: true run_with_real_s3: true
real_s3_bucket: neon-github-ci-tests real_s3_bucket: neon-github-ci-tests
real_s3_region: eu-central-1 real_s3_region: eu-central-1
rerun_failed: ${{ inputs.rerun_failed }} rerun_failed: ${{ inputs.rerun-failed }}
pg_version: ${{ matrix.pg_version }} pg_version: ${{ matrix.pg_version }}
sanitizers: ${{ inputs.sanitizers }} sanitizers: ${{ inputs.sanitizers }}
aws-oidc-role-arn: ${{ vars.DEV_AWS_OIDC_ROLE_ARN }} aws-oidc-role-arn: ${{ vars.DEV_AWS_OIDC_ROLE_ARN }}

View File

@@ -58,7 +58,7 @@ jobs:
test-cfg: ${{ inputs.pg-versions }} test-cfg: ${{ inputs.pg-versions }}
test-selection: ${{ inputs.test-selection }} test-selection: ${{ inputs.test-selection }}
test-run-count: ${{ fromJson(inputs.run-count) }} test-run-count: ${{ fromJson(inputs.run-count) }}
rerun_failed: false rerun-failed: false
secrets: inherit secrets: inherit
create-test-report: create-test-report:

View File

@@ -79,7 +79,7 @@ jobs:
build-tools-image: ${{ needs.build-build-tools-image.outputs.image }}-bookworm build-tools-image: ${{ needs.build-build-tools-image.outputs.image }}-bookworm
build-tag: ${{ needs.tag.outputs.build-tag }} build-tag: ${{ needs.tag.outputs.build-tag }}
build-type: ${{ matrix.build-type }} build-type: ${{ matrix.build-type }}
rerun_failed: false rerun-failed: false
test-cfg: '[{"pg_version":"v14", "lfc_state": "with-lfc"}, test-cfg: '[{"pg_version":"v14", "lfc_state": "with-lfc"},
{"pg_version":"v15", "lfc_state": "with-lfc"}, {"pg_version":"v15", "lfc_state": "with-lfc"},
{"pg_version":"v16", "lfc_state": "with-lfc"}, {"pg_version":"v16", "lfc_state": "with-lfc"},

View File

@@ -79,6 +79,7 @@ jobs:
build-tools-image: ${{ needs.build-build-tools-image.outputs.image }}-bookworm build-tools-image: ${{ needs.build-build-tools-image.outputs.image }}-bookworm
build-tag: ${{ needs.tag.outputs.build-tag }} build-tag: ${{ needs.tag.outputs.build-tag }}
build-type: ${{ matrix.build-type }} build-type: ${{ matrix.build-type }}
rerun-failed: false
test-cfg: '[{"pg_version":"v17"}]' test-cfg: '[{"pg_version":"v17"}]'
sanitizers: enabled sanitizers: enabled
secrets: inherit secrets: inherit