CI: add slow regression tests (#4646)

Signed-off-by: adi_holden <adi@dragonflydb.io>
This commit is contained in:
adiholden 2025-02-27 11:01:57 +02:00 committed by GitHub
parent fff49e0e1f
commit 7c2051ef71
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 6 additions and 4 deletions

View file

@ -210,7 +210,9 @@ jobs:
dfly-executable: dragonfly
run-only-on-ubuntu-latest: true
build-folder-name: build
filter: ${{ matrix.build-type == 'Release' && '(not slow) and (not dbg_only)' || '(not slow) and (not opt_only)' }}
# Non-release build will not run tests marked as slow or opt_only
# "not empty" string is needed for release build because pytest command can not get empty string for filter
filter: ${{ matrix.build-type == 'Release' && 'not empty' || '(not slow) and (not opt_only)' }}
- name: Upload regression logs on failure
if: failure()

View file

@ -51,7 +51,7 @@ jobs:
dfly-executable: dragonfly
gspace-secret: ${{ secrets.GSPACES_BOT_DF_BUILD }}
build-folder-name: build
filter: ${{ matrix.build-type == 'Release' && 'not dbg_only' || 'not opt_only' }}
filter: ${{ matrix.build-type == 'Release' && 'not empty' || 'not opt_only' }}
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_S3_ACCESS_SECRET }}
s3-bucket: ${{ secrets.S3_REGTEST_BUCKET }}

View file

@ -51,7 +51,7 @@ jobs:
dfly-executable: dragonfly
gspace-secret: ${{ secrets.GSPACES_BOT_DF_BUILD }}
build-folder-name: build
filter: ${{ matrix.build-type == 'Release' && 'not dbg_only' || 'not opt_only' }}
filter: ${{ matrix.build-type == 'Release' && 'not empty' || 'not opt_only' }}
aws-access-key-id: ${{ secrets.AWS_S3_ACCESS_KEY }}
aws-secret-access-key: ${{ secrets.AWS_S3_ACCESS_SECRET }}
s3-bucket: ${{ secrets.S3_REGTEST_BUCKET }}

View file

@ -93,7 +93,7 @@ GenericError Replica::Start() {
auto check_connection_error = [this](error_code ec, const char* msg) -> GenericError {
if (!cntx_.IsRunning()) {
return {std::make_error_code(errc::operation_canceled), "replication cancelled"};
return {"replication cancelled"};
}
if (ec) {
cntx_.ReportCancelError();