Repository navigation
Conversation
Member
Author
|
Relayed review: this comment was written by another AI agent (an automated code-review pass), not by a human reviewer. It is posted on behalf of the maintainer for the record. Scope reviewed: the two commits of this PR, against the current Verified
Findings
VerdictApprove in substance (no blocking issues): the test change is correct and deterministic, the remark is accurate, and nothing else needs the same edit. Only pending items are the VERIFY_PENDING Tizen run and the optional follow-up test in finding 1. |
myungjoo
force-pushed
the
i5240-get-property-string
branch
from
November 27, 2026 09:16
d7a71a1 to
d1b2fec
Compare
myungjoo
marked this pull request as ready for review
November 27, 2026 09:55
myungjoo
requested review from
again4you,
anyj0527,
gichan-jang,
jaeyun-jung,
jijoongmoon and
songgot
as code owners
November 27, 2026 09:55
get_property_string_01_p sets "framework" to "nnfw" on a constructed (PAUSED) pipeline and expects to read "nnfw" back. Since nnstreamer/nnstreamer@9b1258e4 (nnstreamer/nnstreamer#4960 C2), a tensor_filter that has an open framework and a configured input stream with a non-zero framerate denominator keeps its framework and only logs a warning; set_property still succeeds. appsrc negotiates the caps of its "caps" property in its streaming thread in PAUSED, before any buffer, so the filter is configured by the time the test switches the framework and "tensorflow-lite" is read back (seen on Tizen once its nnstreamer includes 9b1258e4). Drop the caps from the appsrc of this test so the filter is never configured and the read-back checks the string property round trip it was written for. Refs nnstreamer/nnstreamer#5240 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ml_pipeline_element_set_property_*() returns ML_ERROR_NONE once g_object_set() is called, but an element may keep its old value in its current state; for example, tensor_filter keeps its framework after its input stream is configured (nnstreamer/nnstreamer#4960 C2). Say so in @remarks of the eight setters and point to the matching getter, noting that a getter may report the stored value instead of the one in use (the model of a tensor_filter that does not reload models). Documentation only; no behavior change. Refs nnstreamer/nnstreamer#5240 Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com> Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
myungjoo
force-pushed
the
i5240-get-property-string
branch
from
December 3, 2026 06:24
d1b2fec to
548346f
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
nnstreamer_capi_element.get_property_string_01_pfails on Tizen against nnstreamer main. It reads back"tensorflow-lite"after settingframeworkto"nnfw"([CI] Daily GBS and Docker workflows on main fail every day: 32-bit sparse test, blocked coverage push, Docker openvino nnstreamer#5240). Since nnstreamer/nnstreamer@9b1258e4 ([Security] Security audit of the NNStreamer core (gst/): tracking checklist nnstreamer#4960 C2), a tensor_filter that has an open framework and negotiated input caps keeps its framework, with only a warning.appsrcnegotiates the caps of itscapsproperty in its streaming thread in PAUSED, before any buffer, so the filter is already configured when the test switches. The setter still returnsML_ERROR_NONE.ml_pipeline_element_set_property_*()functions get an@remarkssaying that an element may ignore a value in its current state while the call still returnsML_ERROR_NONE, and that the matching getter usually tells whether the value was applied, except for properties that report the stored value, such as the model of a tensor_filter that does not reload models (commit 2, documentation only)."tensorflow-lite"; fork run). No library code changes.The nnstreamer side documents the same rule in the tensor_filter README: nnstreamer/nnstreamer#5314. The guard itself stays as it is.
Same pattern elsewhere:
set_property_string_01_psetsframeworkon the same pipeline but never reads it back, so it passes either way and is left as is. Every other set/get test uses state-independent properties (videotestsrc, videoscale, udpsrc, input-selector, tensor_demux).No new test: this fixes an existing test, and the header change is documentation. The relayed review suggested a test that pins the new remark: push a buffer, then expect the switch to be ignored. It is left out. This repository's CI builds against the nnstreamer packages of the Tizen repositories, and such a test would fail until those packages include nnstreamer/nnstreamer@9b1258e4. It would also test nnstreamer's behavior rather than this API's. nnstreamer covers it in its own tests (
unittest_filter_event.cc,unittest_filter_custom.cc).Notes for agents
i5240_mlapi_diag.ymlon myungjoo/nnstreamer; the test'sEXPECT_TRUE (g_str_equal ...)is rewritten toEXPECT_STREQso that the value is printed). Results: 9c651dcf (parent of 9b1258e4) 240/240; 9b1258e4, 637ca3a8, 846c13ba and 363f3127 fail withWhich is: "tensorflow-lite". The nnfw V1 conversion is not the cause.gst_app_src_create()also negotiates queued caps before it waits for a buffer._gtfc_setprop_FRAMEWORKrefuses whenwatchdog_h != NULL || (fw_opened && configured && !is_suspended && in_config.rate_d > 0).🤖 Generated with Claude Code