Skip to content

Commit

Permalink
Cherry-picks for 2.10.17-RC.7 (#5572)
Browse files Browse the repository at this point in the history
Includes:

* #5571 
* #5082
* #5573
* #5574
* #5575
* #5577
* #5578
* #5580 
* #5559 

Signed-off-by: Neil Twigg <[email protected]>
  • Loading branch information
wallyqs authored Jun 21, 2024
2 parents 8e88ba5 + c04faf1 commit 8ef49c4
Show file tree
Hide file tree
Showing 11 changed files with 799 additions and 380 deletions.
67 changes: 0 additions & 67 deletions .github/workflows/MQTT_test.yaml

This file was deleted.

48 changes: 48 additions & 0 deletions .github/workflows/mqtt-test.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: MQTT external test
on: [pull_request]

jobs:
test:
env:
GOPATH: /home/runner/work/nats-server
GO111MODULE: "on"
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
path: src/github.com/nats-io/nats-server

- name: Setup Go
uses: actions/setup-go@v5
with:
go-version-file: src/github.com/nats-io/nats-server/go.mod
cache-dependency-path: src/github.com/nats-io/nats-server/go.sum

- name: Set up testing tools and environment
shell: bash --noprofile --norc -eo pipefail {0}
id: setup
run: |
wget https://github.com/hivemq/mqtt-cli/releases/download/v4.20.0/mqtt-cli-4.20.0.deb
sudo apt install ./mqtt-cli-4.20.0.deb
go install github.com/ConnectEverything/[email protected]
- name: Run tests (3 times to detect flappers)
shell: bash --noprofile --norc -eo pipefail {0}
run: |
cd src/github.com/nats-io/nats-server
go test -v --count=3 --run='TestXMQTT' ./server
- name: Run tests with --race
shell: bash --noprofile --norc -eo pipefail {0}
run: |
cd src/github.com/nats-io/nats-server
go test -v --race --failfast --run='TestXMQTT' ./server
- name: Run benchmarks
shell: bash --noprofile --norc -eo pipefail {0}
run: |
cd src/github.com/nats-io/nats-server
go test --run='-' --count=3 --bench 'BenchmarkXMQTT' --benchtime=100x ./server
# TODO: compare benchmarks
Loading

0 comments on commit 8ef49c4

Please sign in to comment.