Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
6afa273
Upgrade up spec version and fix CI (#308)
lukas-he Mar 3, 2025
7ba0e64
Adding consumer for uSubscription service compatible with up-spec alp…
lukas-he Mar 3, 2025
c2872b6
Payload Builder supporting google.protobuf.Any (#306)
lukas-he Mar 5, 2025
3c36e85
Adding exception type for empty callback functions (reopening of PR #…
lukas-he Mar 7, 2025
4ef9c7f
work on clang-tidy warnings
MaximilianToe Mar 6, 2025
4b1fc5e
changed const to const ref in validator/uuid
MaximilianToe Mar 6, 2025
cae2218
removed more linter warnings and errors
MaximilianToe Mar 9, 2025
4842943
fixed more linting errors
MaximilianToe Mar 9, 2025
149a548
linting fixes and pinned clang-tidy 13 in ci.yml
MaximilianToe Mar 10, 2025
4dc790c
fixed more liting errors
MaximilianToe Mar 10, 2025
f4d6294
fixed most warnings/errors except magic numbers and closure
MaximilianToe Mar 12, 2025
ecd833d
fixed linting errors in RpcClient.cpp
MaximilianToe Mar 13, 2025
d69ce89
fixed all errors, only warnings remainings
MaximilianToe Mar 14, 2025
ae9d4e4
test pipeline
MaximilianToe Mar 14, 2025
3a12552
fixed all errors during build
MaximilianToe Mar 15, 2025
98a60bb
fixed signature mismatch in header file
MaximilianToe Mar 15, 2025
6b32b76
save
MaximilianToe Mar 15, 2025
b0469d3
builds and all tests pass
MaximilianToe Mar 15, 2025
6f3bfce
save
MaximilianToe Mar 15, 2025
65b4cf9
replaced some magic numbers
MaximilianToe Mar 15, 2025
92cfb27
fixed magic numbers in uuid.cpp
MaximilianToe Mar 16, 2025
f3dcb85
replaced all magic numbers
MaximilianToe Mar 16, 2025
f3ae10e
modified PendingRequest in RpcClient.cpp with public constructor
MaximilianToe Mar 16, 2025
39fde4a
deleted unsued code
MaximilianToe Mar 16, 2025
a94353e
removed unused setters
MaximilianToe Mar 16, 2025
f91e936
fixed formatting
MaximilianToe Mar 20, 2025
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
75 changes: 41 additions & 34 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,20 +12,20 @@ permissions:
jobs:
build:
name: Build up-cpp and dependencies
runs-on: ubuntu-latest
runs-on: ubuntu-22.04

steps:
- name: Fetch up-cpp
uses: actions/checkout@v4
with:
path: up-cpp

- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.3.2

- name: Fetch up-cpp
uses: actions/checkout@v4
with:
path: up-cpp

- name: Install conan CI profile
shell: bash
run: |
Expand All @@ -42,7 +42,7 @@ jobs:
- name: Build up-core-api conan package
shell: bash
run: |
conan create --version 1.6.0-alpha3 up-conan-recipes/up-core-api/release
conan create --version 1.6.0-alpha4 up-conan-recipes/up-core-api/release

- name: Build up-cpp with tests
shell: bash
Expand Down Expand Up @@ -78,7 +78,7 @@ jobs:

test:
name: Run up-cpp tests
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand All @@ -105,7 +105,7 @@ jobs:
# NOTE: Run dynamic analysis in unit tests
memcheck:
name: Run Valgrind Memcheck
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand Down Expand Up @@ -173,7 +173,7 @@ jobs:

threadcheck:
name: Run Valgrind ThreadCheck
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand Down Expand Up @@ -242,7 +242,7 @@ jobs:

helgrind:
name: Run Valgrind Helgrind
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand Down Expand Up @@ -311,7 +311,7 @@ jobs:

dhat:
name: Run Valgrind DHAT
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build

steps:
Expand Down Expand Up @@ -380,47 +380,48 @@ jobs:

lint:
name: Lint C++ sources
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: build
permissions:
contents: write
pull-requests: read

steps:
- name: Get build commands
uses: actions/download-artifact@v4
- name: Fetch up-cpp
uses: actions/checkout@v4
with:
name: compile-commands
path: up-cpp

- name: Install Conan
id: conan
uses: turtlebrowser/get-conan@main
with:
version: 2.3.2

- name: Create default Conan profile
run: conan profile detect

- name: Get conan cache
uses: actions/download-artifact@v4
with:
name: conan-cache

- name: Restore conan cache from archive
- name: Install conan CI profile
shell: bash
run: |
conan cache restore conan-cache.tgz
conan profile detect
cp up-cpp/.github/workflows/ci_conan_profile "$(conan profile path default)"
conan profile show

- name: Fetch up-cpp
- name: Fetch up-core-api conan recipe
uses: actions/checkout@v4
with:
path: up-cpp
path: up-conan-recipes
repository: eclipse-uprotocol/up-conan-recipes

- name: Get build artifacts
uses: actions/download-artifact@v4
with:
name: build-artifacts
path: up-cpp/build/Release
- name: Build up-core-api conan package
shell: bash
run: |
conan create --version 1.6.0-alpha4 up-conan-recipes/up-core-api/release

- name: Build up-cpp with tests
shell: bash
run: |
cd up-cpp
conan install --build=missing .
cmake --preset conan-release -DCMAKE_EXPORT_COMPILE_COMMANDS=yes

- name: Run linters on source
continue-on-error: true
Expand All @@ -430,11 +431,14 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
repo-root: up-cpp
version: 13
ignore: 'test'
style: 'file' # read .clang-format for configuration
tidy-checks: '' # Read .clang-tidy for configuration
database: build/Release/compile_commands.json
version: 12


- name: Run linters on tests
continue-on-error: true
id: test-linter
Expand All @@ -447,6 +451,8 @@ jobs:
style: 'file' # read .clang-format for configuration
tidy-checks: '' # Read .clang-tidy for configuration
database: build/Release/compile_commands.json
version: 12


- name: Report lint failure
if: steps.source-linter.outputs.checks-failed > 0 || steps.test-linter.outputs.checks-failed > 0
Expand All @@ -460,9 +466,10 @@ jobs:
# job to signal whether all CI checks have passed.
ci:
name: CI status checks
runs-on: ubuntu-latest
runs-on: ubuntu-22.04
needs: [build, test, memcheck, threadcheck, helgrind, dhat]
if: always()
steps:
- name: Check whether all jobs pass
run: echo '${{ toJson(needs) }}' | jq -e 'all(.result == "success")'

2 changes: 1 addition & 1 deletion .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
name: Build up-core-api conan package
shell: bash
run: |
conan create --version 1.6.0-alpha3 up-conan-recipes/up-core-api/release
conan create --version 1.6.0-alpha4 up-conan-recipes/up-core-api/release

- if: matrix.build-mode == 'manual'
name: Build up-cpp with tests
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ jobs:
- name: Build up-core-api conan package
shell: bash
run: |
conan create --version 1.6.0-alpha3 up-conan-recipes/up-core-api/release
conan create --version 1.6.0-alpha4 up-conan-recipes/up-core-api/release

- name: Build up-cpp with tests
shell: bash
Expand All @@ -65,7 +65,7 @@ jobs:
run: |
cd up-cpp/build/Release
mkdir -p ../Coverage
gcovr -r ../../ --html --html-details -o ../Coverage/index.html -e '.*test.*'
gcovr -r ../../ --html --html-details -o ../Coverage/index.html -e '.*test.*' --gcov-ignore-parse-errors negative_hits.warn_once_per_file
cd ..
echo "Coverage report can be found here: ../Coverage/index.html"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ implementation, such as [up-transport-zenoh-cpp][zenoh-transport-repo].
Using the recipes found in [up-conan-recipes][conan-recipe-repo], build these
Conan packages:

1. [up-core-api][spec-repo]: `conan create --version 1.6.0-alpha3 --build=missing up-core-api/release`
1. [up-core-api][spec-repo]: `conan create --version 1.6.0-alpha4 --build=missing up-core-api/release`

**NOTE:** all `conan` commands in this document use Conan 2.x syntax. Please
adjust accordingly when using Conan 1.x.
Expand Down
2 changes: 1 addition & 1 deletion conanfile.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[requires]
up-core-api/[~1.6, include_prerelease]
up-core-api/1.6.0-alpha4
spdlog/[~1.13]
protobuf/[~3.21]

Expand Down
Loading