Skip to content

Commit

Permalink
fewer CI jobs
Browse files Browse the repository at this point in the history
  • Loading branch information
levb committed Jul 11, 2024
1 parent 7158f56 commit 6e985ef
Show file tree
Hide file tree
Showing 4 changed files with 136 additions and 136 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
108 changes: 54 additions & 54 deletions .github/workflows/on-pr-debug.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
120 changes: 60 additions & 60 deletions .github/workflows/on-push-release-extra.yml
Original file line number Diff line number Diff line change
@@ -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 }}
42 changes: 21 additions & 21 deletions .github/workflows/on-push-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 6e985ef

Please sign in to comment.