Skip to content

Commit

Permalink
Merge pull request #836 from ApexAI/iox-#828-iceoryx-release-1.0.1
Browse files Browse the repository at this point in the history
iox-#828 Prepare iceoryx 1.0.1 release
  • Loading branch information
dkroenke authored Jun 15, 2021
2 parents 0d48a85 + 4a41101 commit a07d83b
Show file tree
Hide file tree
Showing 24 changed files with 78 additions and 36 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Build & Test
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master ]
branches: [ master, release* ]
pull_request:
branches: [ master, release* ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/coverage_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Test Coverage + Doxygen Documentation
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master ]
branches: [ master, release* ]
pull_request:
branches: [ master, release* ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/experimental_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Experimental build
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [ master, release* ]
pull_request:
branches: [ master, release* ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/integrationtest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: Iceoryx Integrationtests
# events but only for the master branch
on:
push:
branches: [ master ]
branches: [ master, release* ]
pull_request:
branches: [ master, release* ]

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanitize.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ name: Sanitize
# Triggers the workflow on push or pull request events but only for the master branch
on:
push:
branches: [ master ]
branches: [ master, release* ]
pull_request:
branches: [ master, release* ]

Expand Down
18 changes: 18 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,23 @@
# Change Log

## [v1.0.1](https://github.com/eclipse-iceoryx/iceoryx/tree/v1.0.0) (2021-06-15)

[Full Changelog](https://github.com/eclipse-iceoryx/iceoryx/compare/v1.0.0...v1.0.1)

Description:
This is the first bugfix release for Eclipse iceoryx 1.0.0. We made minor changes in the documentation and added several patches.

Compared to the feature content of the release 1.0.0, the following bug tickets were resolved:

**Bugfixes:**

- Github CI Integrationtests failing[\#825](https://github.com/eclipse-iceoryx/iceoryx/issues/825)
- Segmentation Fault in FileLock [\#808](https://github.com/eclipse-iceoryx/iceoryx/issues/808)
- Cpptoml cannot be build due to failing examples [\#791](https://github.com/eclipse-iceoryx/iceoryx/issues/791)
- Missing template parameter for user-header in typed C++ API [\#768](https://github.com/eclipse-iceoryx/iceoryx/issues/768)
- Fix issues with generating website documentation [\#743](https://github.com/eclipse-iceoryx/iceoryx/issues/743)
- Starting an application after RouDi was terminated floods the cmd line with error messages [\#654](https://github.com/eclipse-iceoryx/iceoryx/issues/654)

## [v1.0.0](https://github.com/eclipse-iceoryx/iceoryx/tree/v1.0.0) (2021-04-15)

[Full Changelog](https://github.com/eclipse-iceoryx/iceoryx/compare/v0.90.7...v1.0.0)
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.0.0
1.0.1
2 changes: 1 addition & 1 deletion cmake/package/package.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
#
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.5)
set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")

project(iceoryx_package VERSION ${IOX_VERSION_STRING})

Expand Down
2 changes: 1 addition & 1 deletion doc/aspice_swe3_4/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

cmake_minimum_required(VERSION 3.10)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")

#find_package(iceoryx_utils REQUIRED)

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.7)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")



Expand Down
2 changes: 1 addition & 1 deletion iceoryx_binding_c/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>iceoryx_binding_c</name>
<version>1.0.0</version>
<version>1.0.1</version>
<description>Eclipse iceoryx inter-process-communication (IPC) middleware C-Language Binding</description>
<maintainer email="michael.poehnl@apex.ai">Eclipse Foundation, Inc.</maintainer>
<license>Apache 2.0</license>
Expand Down
7 changes: 7 additions & 0 deletions iceoryx_binding_c/test/moduletests/test_publisher.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,14 @@ TEST(iox_pub_options_test, publisherOptionsInitializationCheckReturnsTrueAfterDe
TEST(iox_pub_options_test, publisherOptionsInitializationCheckReturnsFalseWithoutDefaultInit)
{
iox_pub_options_t sut;
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
EXPECT_FALSE(iox_pub_options_is_initialized(&sut));
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
#pragma GCC diagnostic pop
#endif
}

TEST(iox_pub_options_test, publisherOptionInitializationWithNullptrDoesNotCrash)
Expand Down
7 changes: 7 additions & 0 deletions iceoryx_binding_c/test/moduletests/test_subscriber.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,14 @@ TEST(iox_sub_options_test, subscriberOptionsInitializationCheckReturnsTrueAfterD
TEST(iox_sub_options_test, subscriberOptionsInitializationCheckReturnsFalseWithoutDefaultInit)
{
iox_sub_options_t sut;
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wmaybe-uninitialized"
#endif
EXPECT_FALSE(iox_sub_options_is_initialized(&sut));
#if (defined(__GNUC__) && __GNUC__ >= 7 && !defined(__clang__))
#pragma GCC diagnostic pop
#endif
}

TEST(iox_sub_options_test, subscriberOptionInitializationWithNullptrDoesNotCrash)
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_dds/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.7)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")

project(iceoryx_dds VERSION ${IOX_VERSION_STRING})

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_integrationtest/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>iceoryx_integrationtest</name>
<version>1.0.0</version>
<version>1.0.1</version>
<description>iceoryx Software Integrationtest</description>
<maintainer email="michael.poehnl@apex.ai">Eclipse Foundation, Inc.</maintainer>
<license>Apache 2.0</license>
Expand Down
6 changes: 6 additions & 0 deletions iceoryx_meta/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,12 @@ include(${CMAKE_CURRENT_SOURCE_DIR}/build_options.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/tests.cmake)
include(${CMAKE_CURRENT_SOURCE_DIR}/install_help_and_config.cmake)

# set rpath for finding shared libraries outside of the build-tree
# see https://gitlab.kitware.com/cmake/community/-/wikis/doc/cmake/RPATH-handling#cmake-and-the-rpath
list(FIND CMAKE_PLATFORM_IMPLICIT_LINK_DIRECTORIES "${CMAKE_INSTALL_PREFIX}/lib" isSystemDir)
if("${isSystemDir}" STREQUAL "-1")
set(CMAKE_INSTALL_RPATH "${CMAKE_INSTALL_PREFIX}/lib")
endif()

# ===== Core
add_subdirectory(${CMAKE_CURRENT_SOURCE_DIR}/../iceoryx_utils ${CMAKE_BINARY_DIR}/utils)
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# SPDX-License-Identifier: Apache-2.0
cmake_minimum_required(VERSION 3.5)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")

project(iceoryx_posh VERSION ${IOX_VERSION_STRING})

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_posh/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>iceoryx_posh</name>
<version>1.0.0</version>
<version>1.0.1</version>
<description>Eclipse iceoryx inter-process-communication (IPC) middleware Posix Shared Memory Library and middleware daemon (RouDi)</description>
<maintainer email="michael.poehnl@apex.ai">Eclipse Foundation, Inc.</maintainer>
<license>Apache 2.0</license>
Expand Down
5 changes: 3 additions & 2 deletions iceoryx_posh/source/version/version_info.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2020 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI Inc. 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 @@ -50,8 +51,8 @@ VersionInfo::VersionInfo(const cxx::Serialization& serial) noexcept
/// @brief Serialization of the VersionInfo.
VersionInfo::operator cxx::Serialization() const noexcept
{
SerializationString_t tmp_m_buildDateString(cxx::TruncateToCapacity, m_buildDateString.c_str());
SerializationString_t tmp_commitIdString(cxx::TruncateToCapacity, m_commitIdString.c_str());
SerializationString_t tmp_m_buildDateString = m_buildDateString;
SerializationString_t tmp_commitIdString = m_commitIdString;
return cxx::Serialization::create(
m_versionMajor, m_versionMinor, m_versionPatch, m_versionTweak, tmp_m_buildDateString, tmp_commitIdString);
}
Expand Down
2 changes: 1 addition & 1 deletion iceoryx_utils/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

cmake_minimum_required(VERSION 3.5)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")


#include("${CMAKE_CURRENT_LIST_DIR}/cmake/IceoryxVersion.cmake")
Expand Down
33 changes: 17 additions & 16 deletions iceoryx_utils/include/iceoryx_utils/internal/cxx/string.inl
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ inline string<Capacity>::string(const char (&other)[N]) noexcept

template <uint64_t Capacity>
inline string<Capacity>::string(TruncateToCapacity_t, const char* const other) noexcept
: string(TruncateToCapacity, other, strnlen(other, Capacity + 1U))
: string(TruncateToCapacity, other, strnlen(other, Capacity))
{
}

Expand Down Expand Up @@ -143,7 +143,7 @@ inline string<Capacity>& string<Capacity>::operator=(const char (&rhs)[N]) noexc
return *this;
}

m_rawstringSize = strnlen(rhs, Capacity);
m_rawstringSize = std::min(Capacity, static_cast<uint64_t>(strnlen(rhs, N)));
std::memcpy(&(m_rawstring[0]), rhs, m_rawstringSize);
m_rawstring[m_rawstringSize] = '\0';

Expand Down Expand Up @@ -465,14 +465,18 @@ inline typename std::enable_if<internal::IsCharArray<T>::value || internal::IsCx
string<Capacity>::unsafe_append(const T& t) noexcept
{
uint64_t tSize = internal::GetSize<T>::call(t);
if (Capacity < (m_rawstringSize + tSize))
const char* tData = internal::GetData<T>::call(t);
uint64_t clampedTSize = std::min(Capacity - m_rawstringSize, tSize);

if (tSize > clampedTSize)
{
std::cerr << "Appending failed because the sum of sizes exceeds this' capacity." << std::endl;
return false;
}
std::memcpy(&(m_rawstring[0]) + m_rawstringSize, internal::GetData<T>::call(t), tSize);
m_rawstring[m_rawstringSize + tSize] = '\0';
m_rawstringSize += tSize;

std::memcpy(&(m_rawstring[m_rawstringSize]), tData, clampedTSize);
m_rawstringSize += clampedTSize;
m_rawstring[m_rawstringSize] = '\0';
return true;
}

Expand All @@ -484,20 +488,17 @@ inline
{
uint64_t tSize = internal::GetSize<T>::call(t);
const char* tData = internal::GetData<T>::call(t);
if (Capacity < (m_rawstringSize + tSize))
uint64_t clampedTSize = std::min(Capacity - m_rawstringSize, tSize);

std::memcpy(&(m_rawstring[m_rawstringSize]), tData, clampedTSize);
if (tSize > clampedTSize)
{
std::cerr << "The last " << tSize - Capacity + m_rawstringSize << " characters of " << tData
<< " are truncated, because the length is larger than the capacity." << std::endl;
std::memcpy(&(m_rawstring[0]) + m_rawstringSize, tData, Capacity - m_rawstringSize);
m_rawstring[Capacity] = '\0';
m_rawstringSize = Capacity;
}
else
{
std::memcpy(&(m_rawstring[0]) + m_rawstringSize, tData, tSize);
m_rawstring[m_rawstringSize + tSize] = '\0';
m_rawstringSize += tSize;
}

m_rawstringSize += clampedTSize;
m_rawstring[m_rawstringSize] = '\0';
return *this;
}

Expand Down
2 changes: 1 addition & 1 deletion iceoryx_utils/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
<package format="3">
<name>iceoryx_utils</name>
<version>1.0.0</version>
<version>1.0.1</version>
<description>Eclipse iceoryx inter-process-communication (IPC) middleware basic building blocks</description>
<maintainer email="michael.poehnl@apex.ai">Eclipse Foundation, Inc.</maintainer>
<license>Apache 2.0</license>
Expand Down
4 changes: 3 additions & 1 deletion iceoryx_utils/test/moduletests/test_cxx_string.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// Copyright (c) 2019 by Robert Bosch GmbH. All rights reserved.
// Copyright (c) 2021 by Apex.AI Inc. 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 @@ -251,7 +252,8 @@ TYPED_TEST(stringTyped_test, UnsafeCharToStringConvConstrWithSizeCapaResultsInSi
{
using MyString = typename TestFixture::stringType;
constexpr auto STRINGCAP = MyString().capacity();
char testChar[STRINGCAP];
// increase capacity by one to circumvent gcc -Werror=array-bounds
char testChar[STRINGCAP + 1];
for (uint64_t i = 0U; i < STRINGCAP - 1U; i++)
{
testChar[i] = 'M';
Expand Down
2 changes: 1 addition & 1 deletion tools/introspection/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

cmake_minimum_required(VERSION 3.5)

set(IOX_VERSION_STRING "1.0.0")
set(IOX_VERSION_STRING "1.0.1")

project(iceoryx_introspection VERSION ${IOX_VERSION_STRING})

Expand Down

0 comments on commit a07d83b

Please sign in to comment.