From 6e985ef6cf3845ed45f80c7ba44425d7f58d13e4 Mon Sep 17 00:00:00 2001 From: Lev Brouk Date: Wed, 10 Jul 2024 23:20:44 -0700 Subject: [PATCH] fewer CI jobs --- .github/workflows/build-test.yml | 2 +- .github/workflows/on-pr-debug.yml | 108 +++++++++--------- .github/workflows/on-push-release-extra.yml | 120 ++++++++++---------- .github/workflows/on-push-release.yml | 42 +++---- 4 files changed, 136 insertions(+), 136 deletions(-) diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9a1bf957c..fb838a616 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -158,7 +158,7 @@ jobs: export PATH=../deps/nats-server:../deps/nats-streaming-server:$PATH export NATS_TEST_SERVER_VERSION="$(nats-server -v)" flags="" - ctest --timeout 60 --output-on-failure --repeat-until-fail ${{ inputs.repeat }} 2>&1 | tee /tmp/out.txt + ctest --timeout 60 -VV -R 'Test_OpenCloseAndWait' 2>&1 | tee /tmp/out.txt # <>/<> if [[ $(grep -q 'ThreadSanitizer: ' /tmp/out.txt; echo $?) == 0 ]]; then echo "!!! ThreadSanitizer detected WARNING(s) !!!" exit 1 diff --git a/.github/workflows/on-pr-debug.yml b/.github/workflows/on-pr-debug.yml index eccc0f9f2..27037efd3 100644 --- a/.github/workflows/on-pr-debug.yml +++ b/.github/workflows/on-pr-debug.yml @@ -7,26 +7,26 @@ permissions: 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 + # 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 - coverage: - name: "Coverage" - uses: ./.github/workflows/build-test.yml - with: - coverage: ON - server_version: main - type: Debug - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} + # coverage: + # name: "Coverage" + # uses: ./.github/workflows/build-test.yml + # with: + # coverage: ON + # server_version: main + # type: Debug + # secrets: + # CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} sanitize-addr: name: "Sanitize address" @@ -44,43 +44,43 @@ jobs: server_version: main lib_msg_delivery: ON - san-addr: - name: "Sanitize address (lib_write_deadline)" - uses: ./.github/workflows/build-test.yml - with: - sanitize: address - server_version: main - lib_write_deadline: ON + # san-addr: + # name: "Sanitize address (lib_write_deadline)" + # uses: ./.github/workflows/build-test.yml + # with: + # sanitize: address + # server_version: main + # lib_write_deadline: ON - san-thread: - name: "Sanitize thread" - uses: ./.github/workflows/build-test.yml - with: - sanitize: thread - server_version: main + # san-thread: + # name: "Sanitize thread" + # uses: ./.github/workflows/build-test.yml + # with: + # sanitize: thread + # server_version: main - Windows: - name: "Windows" - runs-on: windows-latest - steps: - - name: Export GitHub Actions cache environment variables - uses: actions/github-script@v7 - with: - script: | - core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); - core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); + # Windows: + # name: "Windows" + # runs-on: windows-latest + # steps: + # - name: Export GitHub Actions cache environment variables + # uses: actions/github-script@v7 + # with: + # script: | + # core.exportVariable('ACTIONS_CACHE_URL', process.env.ACTIONS_CACHE_URL || ''); + # core.exportVariable('ACTIONS_RUNTIME_TOKEN', process.env.ACTIONS_RUNTIME_TOKEN || ''); - - name: Checkout nats.c - uses: actions/checkout@v4 + # - name: Checkout nats.c + # uses: actions/checkout@v4 - - name: Build - env: - VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" - run: | - cmake -B build -S . -DCMAKE_C_FLAGS=/W4 -DNATS_BUILD_STREAMING=OFF - cmake --build build --config Debug + # - name: Build + # env: + # VCPKG_BINARY_SOURCES: "clear;x-gha,readwrite" + # run: | + # cmake -B build -S . -DCMAKE_C_FLAGS=/W4 -DNATS_BUILD_STREAMING=OFF + # cmake --build build --config Debug - - name: Test - run: | - cd build - ./bin/Debug/testsuite + # - name: Test + # run: | + # cd build + # ./bin/Debug/testsuite diff --git a/.github/workflows/on-push-release-extra.yml b/.github/workflows/on-push-release-extra.yml index f11aaf4fd..8e1340c48 100644 --- a/.github/workflows/on-push-release-extra.yml +++ b/.github/workflows/on-push-release-extra.yml @@ -1,69 +1,69 @@ -name: "Release" -on: - push: - branches: - - main - - release_* +# name: "Release" +# on: +# push: +# branches: +# - main +# - release_* -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: - flakes: - name: "check for flaky tests" - uses: ./.github/workflows/build-test.yml - with: - server_version: main - repeat: 5 +# jobs: +# flakes: +# name: "check for flaky tests" +# uses: ./.github/workflows/build-test.yml +# with: +# server_version: main +# repeat: 5 - server-versions: - strategy: - fail-fast: false - matrix: - server_version: [latest, v2.9.11] - uses: ./.github/workflows/build-test.yml - name: "Other servers" - with: - server_version: ${{ matrix.server_version }} +# server-versions: +# strategy: +# fail-fast: false +# matrix: +# server_version: [latest, v2.9.11] +# uses: ./.github/workflows/build-test.yml +# name: "Other servers" +# with: +# server_version: ${{ matrix.server_version }} - TLS-OFF: - strategy: - fail-fast: false - matrix: - compiler: [gcc, clang] - uses: ./.github/workflows/build-test.yml - name: "No TLS" - with: - tls: OFF +# TLS-OFF: +# strategy: +# fail-fast: false +# matrix: +# compiler: [gcc, clang] +# uses: ./.github/workflows/build-test.yml +# name: "No TLS" +# with: +# tls: OFF - older-cc: - strategy: - fail-fast: false - matrix: - compiler: [gcc-7, gcc-8, clang-8] - uses: ./.github/workflows/build-test.yml - name: "Older compilers" - with: - ubuntu_version: 20.04 - compiler: ${{ matrix.compiler }} +# older-cc: +# strategy: +# fail-fast: false +# matrix: +# compiler: [gcc-7, gcc-8, clang-8] +# uses: ./.github/workflows/build-test.yml +# name: "Older compilers" +# with: +# ubuntu_version: 20.04 +# compiler: ${{ matrix.compiler }} - no-streaming: - uses: ./.github/workflows/build-test.yml - name: "No Streaming" - with: - streaming: OFF +# no-streaming: +# uses: ./.github/workflows/build-test.yml +# name: "No Streaming" +# with: +# streaming: OFF - coverage: - name: "Coverage" - uses: ./.github/workflows/build-test.yml - with: - coverage: ON - server_version: main - type: Debug - secrets: - CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} +# coverage: +# name: "Coverage" +# uses: ./.github/workflows/build-test.yml +# with: +# coverage: ON +# server_version: main +# type: Debug +# secrets: +# CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }} diff --git a/.github/workflows/on-push-release.yml b/.github/workflows/on-push-release.yml index d47c20308..54c36d47a 100644 --- a/.github/workflows/on-push-release.yml +++ b/.github/workflows/on-push-release.yml @@ -1,24 +1,24 @@ -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 }} +# 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 }}