Skip to content

Nojira/fix cov build - #102

Open
brendanobra wants to merge 2 commits into
developfrom
nojira/fix-cov-build
Open

Nojira/fix cov build#102
brendanobra wants to merge 2 commits into
developfrom
nojira/fix-cov-build

Conversation

@brendanobra

Copy link
Copy Markdown
Contributor

No description provided.

Copilot AI lite review requested due to automatic review settings August 19, 2026 22:40

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR focuses on making the coverage (Coverity) build more reliable by addressing dependency and toolchain mismatches (notably around GTest headers and transport bootstrapping), and by fixing missing standard library includes required by the SpeechSynthesis API.

Changes:

  • Adds a CMake-time GTest header override mechanism to avoid header/version collisions during test builds.
  • Fixes SpeechSynthesis compilation by including <memory_resource> where std::pmr::vector is part of the public API surface.
  • Makes transport bootstrapping more robust by parsing the transport release archive top-level directory without a fragile pipeline, and bumps the pinned transport version.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
test/CMakeLists.txt Adds logic to detect/override conflicting GTest headers and applies it to unit/component test targets.
src/speechsynthesis_impl.h Adds <memory_resource> include related to std::pmr::vector usage.
src/json_types/speechsynthesis.h Adds <memory_resource> include related to std::pmr::vector usage in JSON adapters.
include/firebolt/speechsynthesis.h Adds <memory_resource> to support std::pmr::vector in the public interface.
cov_build.sh Changes transport archive root-dir detection to a safer approach.
.transport.version Updates FireboltTransport version used by the coverage build bootstrap.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread test/CMakeLists.txt
Comment on lines +66 to +71
file(STRINGS "/usr/local/include/gtest/internal/gtest-internal.h" FIREBOLT_GTEST_LOCAL_SIGNATURE
REGEX "std::string test_suite_name" LIMIT_COUNT 1)
file(STRINGS "${FIREBOLT_GTEST_HEADER_ROOT}/gtest/internal/gtest-internal.h" FIREBOLT_GTEST_SELECTED_SIGNATURE
REGEX "const char\\* test_suite_name" LIMIT_COUNT 1)

if(FIREBOLT_GTEST_LOCAL_SIGNATURE AND FIREBOLT_GTEST_SELECTED_SIGNATURE)
Comment thread test/CMakeLists.txt
Comment on lines +75 to +82
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
"${FIREBOLT_GTEST_HEADER_ROOT}/gtest"
"${FIREBOLT_GTEST_OVERRIDE_DIR}/gtest")
if(EXISTS "${FIREBOLT_GTEST_HEADER_ROOT}/gmock")
execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink
"${FIREBOLT_GTEST_HEADER_ROOT}/gmock"
"${FIREBOLT_GTEST_OVERRIDE_DIR}/gmock")
endif()
Comment on lines 18 to 25

#pragma once

#include <memory_resource>

#include <firebolt/helpers.h>
#include <firebolt/speechsynthesis.h>

Comment on lines 18 to 25

#pragma once

#include <memory_resource>

#include "firebolt/speechsynthesis.h"
#include <firebolt/json_types.h>

Comment thread cov_build.sh
Comment on lines +141 to +146
while IFS= read -r entry; do
entry="${entry#./}"
if [[ -z "${release_dir}" && -n "${entry}" ]]; then
release_dir="${entry%%/*}"
fi
done < <(tar -tzf "${release_archive}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants