-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
kvssink CI enhancements! #1226
Open
sirknightj
wants to merge
7
commits into
develop
Choose a base branch
from
kvssink-tests
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
kvssink CI enhancements! #1226
Conversation
This file contains 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
59526a2
to
cc57fab
Compare
cc57fab
to
d88e505
Compare
b66fb9f
to
b5b6278
Compare
b5b6278
to
ecb5342
Compare
fd1514b
to
c21ae41
Compare
543e32a
to
adb4c62
Compare
adb4c62
to
139cdc0
Compare
139cdc0
to
9522feb
Compare
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.
Issue #, if available:
#1225
Description of changes:
1. Fixing the unit tests with kvssink.
Unit tests were reported broken in the issue above. Due to a combination of two combined issues:
In KVS client & stream initialization, the
kvssink->content_type
(gchar*) field is obtained from the element directly to the left (pad). However, in the unit tests, the pad was not constructed or attached. As such, thatkvssink->content_type
is a nullptr. When it gets passed into the StreamDefinition constructor, it gets implicitly cast into thestd::string
.Note that the null inputs case is only possible through programatic use of GStreamer and kvssink. When using
gst-launch-1.0
orgst_parse_launch()
, properties can't be set to null, since the kvssink properties are configured with default values. Hence, this effort will assist developers usingkvssink
programatically.To fix this:
2. Adding a github action to build and run the unit tests
2.1. Adding a session token parameter to the unit tests
2.2. Running the repaired gstreamer tests automatically for every pull request
Testing:
GST_DEBUG=4 ./tst/gstkvsplugintest
.3. Verifying the debug dump dir and kvssink on different flavors (Windows, mac, linux).
mkvinfo
on the output MKV file to verify that it's generated.Note
The valgrind checks currently work but have been commented out as they are failing. Fixing the memory leak in the kvssink unit tests can come as part of a future development.
By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.