Skip to content

COVERITY TEST. DO NOT MERGE#77

Closed
snampo768 wants to merge 1 commit into
developfrom
feature/test-workflow
Closed

COVERITY TEST. DO NOT MERGE#77
snampo768 wants to merge 1 commit into
developfrom
feature/test-workflow

Conversation

@snampo768

Copy link
Copy Markdown

COVERITY TEST. DO NOT MERGE

Copilot AI review requested due to automatic review settings June 12, 2026 05:16

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 appears to intentionally introduce a format-string issue and then suppress related compiler enforcement, likely to exercise a Coverity/static-analysis workflow (per title/description).

Changes:

  • Added a printf call in MetricsImpl::startContent() with an invalid format string usage.
  • Added a build flag to disable -Werror promotion for -Wformat warnings.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.

File Description
src/metrics_impl.cpp Adds a debug printf (currently undefined behavior due to missing %s argument) and the associated C stdio include.
src/CMakeLists.txt Disables -Werror=format, weakening compiler diagnostics for format-string issues.

Comment thread src/metrics_impl.cpp
{
parameters["agePolicy"] = Firebolt::JSON::toString(Firebolt::JsonData::AgePolicyEnum, *agePolicy);
}
printf("Test coverity workflow %s\n");
Comment thread src/metrics_impl.cpp
#include "json_types/common.h"
#include "json_types/metrics.h"
#include <firebolt/json_types.h>
#include <stdio.h>
Comment thread src/CMakeLists.txt
${SOURCES}
)

target_compile_options(${TARGET} PRIVATE -Wno-error=format)
Comment thread src/metrics_impl.cpp
{
parameters["agePolicy"] = Firebolt::JSON::toString(Firebolt::JsonData::AgePolicyEnum, *agePolicy);
}
printf("Test coverity workflow %s\n");
Comment thread src/metrics_impl.cpp
{
parameters["agePolicy"] = Firebolt::JSON::toString(Firebolt::JsonData::AgePolicyEnum, *agePolicy);
}
printf("Test coverity workflow %s\n");
@snampo768

Copy link
Copy Markdown
Author

Close test PR

@snampo768 snampo768 closed this Jun 12, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Jun 12, 2026
@snampo768 snampo768 deleted the feature/test-workflow branch June 12, 2026 05:37
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants