Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v1.5.0 #15

Merged
merged 63 commits into from
Jan 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
63 commits
Select commit Hold shift + click to select a range
872aae1
chore: bumped up the packaged ccsmp lib to 7.27.0.1
oodigie Oct 6, 2023
66ecded
feat(SOL-103546): Implement code changes to expose context propagatio…
oodigie Oct 6, 2023
39e26f0
test: added unit tests for the new DT functions in the message_impl
oodigie Oct 10, 2023
5ed5619
test[SOL-103572]: Golang: Add the integration tests to support the co…
oodigie Oct 10, 2023
8ab3fec
test: fixed some failing integration tests
oodigie Oct 10, 2023
5e62bce
test: fixed the failing tests in the message impl class
oodigie Oct 10, 2023
d89a1b5
test: fixed some of the failing tests
oodigie Oct 11, 2023
44bad1f
test: fixed the string formating to fix the failing tests
oodigie Oct 11, 2023
ea395fe
test: fixed the string formating to fix the failing tests
oodigie Oct 11, 2023
513edaf
feat: removed the public interfaces for the tracing feature and updat…
oodigie Oct 12, 2023
d27d2c4
CRE-705: Update to dynamically versioned test infrastructure
clarkbains Oct 26, 2023
6d729d0
CRE-705: Point at dev pipeline library
clarkbains Oct 26, 2023
19a4436
Re-arrange Platform order, document go versions
clarkbains Oct 26, 2023
3374290
Use latest and previous versions in go pipeline
clarkbains Oct 27, 2023
a13cfd6
Trigger rebuild
clarkbains Oct 27, 2023
b44199c
Trigger rebuild
clarkbains Oct 27, 2023
e6ffcba
Trigger build
clarkbains Oct 27, 2023
2211495
Revert to using JPL main
clarkbains Oct 27, 2023
131d011
Merge pull request #33 from SolaceDev/CRE-705
clarkbains Oct 30, 2023
f5f851e
feat: fixed the formatting errors within the code
oodigie Oct 30, 2023
f23cf93
test: fixed failing test
oodigie Oct 30, 2023
463fd27
test: updated to fix failing tests and handle nil trace state when se…
oodigie Nov 1, 2023
af7c3a1
feat[SOL-107285]: bumped up the CCSMP library to fix the traceFlag bu…
oodigie Nov 8, 2023
3cd00a2
SOL-106167: Updated go version to 1.21.x latest, this should be 1.21.…
cjwmorgan-sol Nov 10, 2023
611af89
SOL-106205: Added gitactions job to check go source compatibility che…
cjwmorgan-sol Nov 10, 2023
c0c29f7
fix: a fix for the tracestate corruption on a message
oodigie Nov 15, 2023
63dcf9f
SOL-98567: Adjust rebalance delay for partitioned queue tests
cjwmorgan-sol Nov 15, 2023
17a8b20
feat: updated the implementation of how the trace state is retrived f…
oodigie Nov 16, 2023
cc081e6
test: fixed failing test
oodigie Nov 16, 2023
6cbda70
feat: update for trace state
oodigie Nov 16, 2023
0b46e34
feat: updated the string formating method for trace state
oodigie Nov 16, 2023
3d4aa02
feat: mode updates for the trace state clean up
oodigie Nov 17, 2023
90147ca
feat: mode updates for the trace state clean up
oodigie Nov 17, 2023
8db7443
SOL-98567: Tweaked rebalance delay for partition queue to be 15secs
cjwmorgan-sol Nov 17, 2023
9f0dd33
test: updated the trace state to handle non-null terminated strings a…
oodigie Nov 17, 2023
98eddd3
feat: more refactoring of the codebase
oodigie Nov 17, 2023
911e818
Merge pull request #35 from SolaceDev/SOL-98567
RagnarPaulson Nov 20, 2023
e4c0fa1
SOL-78484: merged changes from dev branch
cjwmorgan-sol Nov 20, 2023
5dfb9c7
feat: testing approach for handling trace state string
oodigie Nov 21, 2023
7af7bfd
Merge pull request #34 from SolaceDev/SOL-78484
RagnarPaulson Nov 22, 2023
e53b19e
fix[SOL-108089]: pubsubplus-go-client build is broken on syntax error
oodigie Nov 22, 2023
56e8968
fix[SOL-108089]: pubsubplus-go-client build is broken on syntax error
oodigie Nov 22, 2023
b7562de
Merge branch 'dev' into feat/add-distributed-tracing-support
oodigie Nov 27, 2023
e45f182
feat[SOL-107974]: Message dump with large creation+transport traceSta…
oodigie Dec 5, 2023
58983a2
SOL-107663: Replace license.txt in PS+ Go Repo
oodigie Dec 8, 2023
82569b6
Merge pull request #36 from SolaceDev/SOL-107663-replace-licenses
cjwmorgan-sol Dec 8, 2023
b6655d3
Merge branch 'dev' into feat/add-distributed-tracing-support
oodigie Dec 8, 2023
d7109b2
SOL-107389: Update C API Library in Go to 7.28.0.3
oodigie Dec 10, 2023
87dcf7a
SOL-108125: Updated max cert limit docs for changes to native lib tha…
cjwmorgan-sol Dec 13, 2023
0307137
Merge pull request #38 from SolaceDev/SOL-108125-fix-cert-max-docs
oodigie Dec 13, 2023
6afc240
chore: bumped the ccsmp lib to 7.28.0.3
oodigie Dec 17, 2023
5737ac1
chore: bumped the version for this module to 1.5.0
oodigie Dec 17, 2023
208f1f8
chore: bumped the version to 1.4.1
oodigie Dec 17, 2023
d549bff
Merge pull request #37 from SolaceDev/SOL-107389-update-ccsmp-to-7.28…
RagnarPaulson Dec 21, 2023
c01595f
chore: merged the dev changes into this branch
oodigie Jan 12, 2024
879e4c8
SOL-110595: Update Copyright Notices to 2024 in PubSub+ API for Go
oodigie Jan 15, 2024
21451d7
Merge pull request #39 from SolaceDev/feat-SOL-110595-update-copyright
cjwmorgan-sol Jan 18, 2024
e81828a
Merge branch 'dev' into feat/add-distributed-tracing-support
cjwmorgan-sol Jan 18, 2024
55e06d2
SOL-110595: Update tracing go module from dev merge
cjwmorgan-sol Jan 18, 2024
e2439e1
Merge branch 'dev' into feat/add-distributed-tracing-support
oodigie Jan 18, 2024
e517eb5
Merge branch 'feat/add-distributed-tracing-support' of https://github…
oodigie Jan 18, 2024
f246d5f
Merge pull request #32 from SolaceDev/feat/add-distributed-tracing-su…
cjwmorgan-sol Jan 18, 2024
1907c77
Updated ccsmp binaries to version 7.28.0.4
cjwmorgan-sol Jan 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 30 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,32 @@ on: [push, pull_request, workflow_dispatch]

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
# This workflow contains multiple jobs
# this job sets up the oldest version of go to check lang compatibility
CompatibilityCheck:
runs-on: ubuntu-20.04
#Steps for the compatiblity test
steps:
- uses: actions/checkout@v2
- name: Setup Go Environment
uses: actions/setup-go@v4
with:
go-version: '1.17.0'
- name: Check Go Version
run: go version
- name: Compiles
run: go build ./...
- name: Runs unit tests
if: ${{ success() }}
run: go test -coverprofile ./unitcoverage.out ./...
- name: Uploads artifacts
if: ${{ always() }}
uses: actions/upload-artifact@v2
with:
path: |
./unitcoverage.out

# this job runs linux based tests
Linux:
# The type of runner that the job will run on
runs-on: ubuntu-20.04
Expand All @@ -17,7 +42,10 @@ jobs:
- name: Setup Go environment
uses: actions/[email protected]
with:
go-version: '1.20'
go-version: '1.21'
check-latest: true
- name: Check Go Version
run: go version
- name: Compiles
run: go build ./...

Expand Down
30 changes: 26 additions & 4 deletions Jenkinsfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand All @@ -22,6 +22,28 @@ currentBuild.rawBuild.getParent().setQuietPeriod(0)

library 'jenkins-pipeline-library@main'

stage('Build') {
builder.goapi()
}
/*
Go Version examples:
auto-v1.17.x: Latest patch of 1.17 release
auto-v1.17.2: Specific patch of 1.17 release
auto-v1.17.0: First release of 1.17 (Despite go versioning this as 1.17)
auto-latest: Most recent patch version of latest minor release
auto-previous: Most recent patch version of previous minor release
auto-2previous: Most recent patch version of second last minor release

Adoption of new versions into these may be delayed.
*/

builder.goapi([
"buildCheckGoVer": 'auto-v1.17.x',
"validationGoVer": 'auto-v1.17.x',
"getTestPermutations": {
List<List<String>> permutations = []
for (platform in [builder.LINUX_ARM, builder.LINUX_X86_64, builder.LINUX_MUSL, builder.DARWIN_X86_64, builder.DARWIN_ARM]) {
for (gover in ['auto-latest', 'auto-previous']) {
permutations << [platform, gover]
}
}
return permutations
}
])
2 changes: 1 addition & 1 deletion NOTICE.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pubsubplus-go-client

Copyright 2021-2023 Solace Corporation. All rights reserved.
Copyright 2021-2024 Solace Corporation. All rights reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ https://solace.com/support
- The [Solace Developer Portal](https://dev.solace.com)
- Understanding [Solace technology](https://solace.com/products/tech/)

Copyright 2021-2023 Solace Corporation. All rights reserved.
Copyright 2021-2024 Solace Corporation. All rights reserved.
2 changes: 1 addition & 1 deletion doc.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_callbacks.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_container.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_core.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_endpoint_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_flow.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_flow_event_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 5 additions & 1 deletion internal/ccsmp/ccsmp_flow_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_generate.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_global_prop_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_helper.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down
4 changes: 2 additions & 2 deletions internal/ccsmp/ccsmp_helper.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -49,4 +49,4 @@ typedef struct solClient_errorInfo_wrapper
void *
uintptr_to_void_p(solClient_uint64_t ptr);

#endif
#endif
2 changes: 1 addition & 1 deletion internal/ccsmp/ccsmp_log_level_generated.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 5 additions & 7 deletions internal/ccsmp/ccsmp_message.go
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// pubsubplus-go-client
//
// Copyright 2021-2023 Solace Corporation. All rights reserved.
// Copyright 2021-2024 Solace Corporation. All rights reserved.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -538,8 +538,8 @@ func SolClientMessageSetTimeToLive(messageP SolClientMessagePt, timeToLive int64

// Utility functions

const defaultMsgDumpBufferSize = 1000
const msgDumpMultiplier = 5
// Set the default message dump buffer size to accommodate
// the Distributed Tracing properties in the message dump, SOL-107974
const maxDumpSize = 10000

// SolClientMessageDump function
Expand Down Expand Up @@ -587,11 +587,9 @@ func SolClientMessageDump(messageP SolClientMessagePt) string {
}
}

bufferSize := C.ulong(defaultMsgDumpBufferSize + payloadSize*msgDumpMultiplier)
// Truncate the message after 10,000 characters, SOL-62945
if bufferSize > maxDumpSize {
bufferSize = maxDumpSize
}
// removed the dynamic calculation of buffer size as defaultMsgDumpBufferSize{1000} + (payloadSize * msgDumpMultiplier{5})
bufferSize := C.ulong(maxDumpSize)
buffer := (*C.char)(C.malloc(bufferSize))
defer C.free(unsafe.Pointer(buffer))

Expand Down
Loading
Loading