Skip to content

Commit

Permalink
TRY MORE, found?
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Nov 3, 2024
1 parent a18e070 commit eca1191
Show file tree
Hide file tree
Showing 4 changed files with 68 additions and 63 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ jobs:
export PATH=../deps/nats-server:../deps/nats-streaming-server:$PATH
export NATS_TEST_SERVER_VERSION="$(nats-server -v)"
flags=""
ctest -R 'MicroAddService' --timeout 60 --output-on-failure --repeat-until-fail 100
ctest -R 'Micro' --timeout 60 --output-on-failure --repeat-until-fail 100
# ctest -L 'test' --timeout 60 --output-on-failure --repeat-until-fail ${{ inputs.repeat }}
- name: Upload coverage reports to Codecov
Expand Down
78 changes: 39 additions & 39 deletions .github/workflows/on-pr-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,27 @@ permissions:
contents: write # so it can comment

jobs:
# Ubuntu:
# name: "Ubuntu"
# strategy:
# fail-fast: false
# matrix:
# compiler: [gcc, clang]
# uses: ./.github/workflows/build-test.yml
# with:
# compiler: ${{ matrix.compiler }}
# server_version: main
# type: Debug
Ubuntu:
name: "Ubuntu"
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
uses: ./.github/workflows/build-test.yml
with:
compiler: ${{ matrix.compiler }}
server_version: main
type: Debug

# dev-mode:
# name: "DEV_MODE"
# uses: ./.github/workflows/build-test.yml
# with:
# dev_mode: ON
# server_version: main
# type: Debug
# verbose_test_output: ON
# verbose_make_output: ON
dev-mode:
name: "DEV_MODE"
uses: ./.github/workflows/build-test.yml
with:
dev_mode: ON
server_version: main
type: Debug
verbose_test_output: ON
verbose_make_output: ON

sanitize:
name: "Sanitize"
Expand All @@ -44,25 +44,25 @@ jobs:
sanitize: ${{ matrix.sanitize }}
pool_dispatch: ${{ matrix.pooled_dispatch }}

# coverage-TLS:
# name: "Coverage: TLS"
# strategy:
# fail-fast: false
# matrix:
# pooled_dispatch: [pool, NO-pool]
# write_deadline: [write_deadline, NO-write_deadline]
# uses: ./.github/workflows/build-test.yml
# with:
# coverage: ON
# type: RelWithDebInfo
# server_version: main
# compiler: gcc
# tls: TLS
# verify_host: verify_host
# pool_dispatch: ${{ matrix.pooled_dispatch }}
# write_deadline: ${{ matrix.write_deadline }}
# secrets:
# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
coverage-TLS:
name: "Coverage: TLS"
strategy:
fail-fast: false
matrix:
pooled_dispatch: [pool, NO-pool]
write_deadline: [write_deadline, NO-write_deadline]
uses: ./.github/workflows/build-test.yml
with:
coverage: ON
type: RelWithDebInfo
server_version: main
compiler: gcc
tls: TLS
verify_host: verify_host
pool_dispatch: ${{ matrix.pooled_dispatch }}
write_deadline: ${{ matrix.write_deadline }}
secrets:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

# coverage-NO-verify_host:
# name: "Coverage: NO-verify_host"
Expand Down
44 changes: 22 additions & 22 deletions .github/workflows/on-push-release.yml
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
# name: "Release"
# on:
# push:
name: "Release"
on:
push:

# permissions:
# contents: write # required by build-test to comment on coverage but not used here.
permissions:
contents: write # required by build-test to comment on coverage but not used here.

# defaults:
# run:
# shell: bash --noprofile --norc -x -eo pipefail {0}
defaults:
run:
shell: bash --noprofile --norc -x -eo pipefail {0}

# jobs:
# quick:
# name: "Ubuntu"
# strategy:
# fail-fast: false
# matrix:
# compiler: [gcc, clang]
# ubuntu_version: [latest, 20.04]
# uses: ./.github/workflows/build-test.yml
# with:
# server_version: main
# ubuntu_version: ${{ matrix.ubuntu_version }}
# compiler: ${{ matrix.compiler }}
# type: RelWithDebInfo
jobs:
quick:
name: "Ubuntu"
strategy:
fail-fast: false
matrix:
compiler: [gcc, clang]
ubuntu_version: [latest, 20.04]
uses: ./.github/workflows/build-test.yml
with:
server_version: main
ubuntu_version: ${{ matrix.ubuntu_version }}
compiler: ${{ matrix.compiler }}
type: RelWithDebInfo
7 changes: 6 additions & 1 deletion test/test.c
Original file line number Diff line number Diff line change
Expand Up @@ -33593,7 +33593,7 @@ _startManyMicroservices(microService** svcs, int n, natsConnection *nc, microSer

#define _waitForMicroservicesAllDone(_arg) \
{ \
nats_Sleep(valgrind ? 500 : 20); \
nats_Sleep(valgrind ? 20 : 10); \
natsMutex_Lock((_arg)->m); \
testf("Wait for %d microservices to stop: ", (_arg)->microRunningServiceCount); \
natsStatus waitStatus = NATS_OK; \
Expand Down Expand Up @@ -33844,8 +33844,13 @@ void test_MicroAddService(void)
}

microServiceInfo_Destroy(info);

int64_t start = nats_Now();
int64_t nn;
_destroyMicroservice(m);
printf("<>/<> destroy time: %lld\n", (nn = nats_Now()) - start);
_waitForMicroservicesAllDone(&arg);
printf("<>/<> waited for: %lld\n", nats_Now() - nn);
}

test("Destroy the test connection: ");
Expand Down

0 comments on commit eca1191

Please sign in to comment.