Skip to content

Fix transfer type for Module.search_streams()#310

Merged
sgallagher merged 3 commits intofedora-modularity:masterfrom
sgallagher:test_search_streams
May 29, 2019
Merged

Fix transfer type for Module.search_streams()#310
sgallagher merged 3 commits intofedora-modularity:masterfrom
sgallagher:test_search_streams

Conversation

@sgallagher
Copy link
Collaborator

Technically this is an API-breaking change, but no one is using it
yet and it was always expected to be managed this way.

Fixes: #308

Signed-off-by: Stephen Gallagher sgallagh@redhat.com

@sgallagher sgallagher requested a review from puiterwijk May 28, 2019 18:38
@sgallagher
Copy link
Collaborator Author

Note that the test does exercise this; if you attempt to run that test against an unmodified 2.5.0, you will see an error modulemd_module_stream_get_stream_name: assertion 'MODULEMD_IS_MODULE_STREAM (self)' failed

This is because the memory management frees the elements of the array unexpectedly.

@sgallagher sgallagher force-pushed the test_search_streams branch from b1556ac to 9a2b0ca Compare May 29, 2019 14:04
This considerably reduces the time needed to perform the valgrind
memory tests on systems with multiple available processors. In the
case of my laptop, the duration was reduced from ~200s to 90s.

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
@sgallagher sgallagher force-pushed the test_search_streams branch 4 times, most recently from f5aa28c to 223837d Compare May 29, 2019 17:59
Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
Technically this is an API-breaking change, but no one is using it
yet and it was always expected to be managed this way.

Fixes: fedora-modularity#308

Signed-off-by: Stephen Gallagher <sgallagh@redhat.com>
@sgallagher sgallagher force-pushed the test_search_streams branch from 223837d to 6e7d928 Compare May 29, 2019 18:24
@sgallagher sgallagher merged commit 6e7d928 into fedora-modularity:master May 29, 2019
@sgallagher sgallagher deleted the test_search_streams branch July 15, 2019 18:44
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.

module.search_streams() should be (transfer container)

1 participant