Skip to content
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

handle_child_terminated #894

Merged
merged 8 commits into from
Oct 18, 2024
Merged

handle_child_terminated #894

merged 8 commits into from
Oct 18, 2024

Conversation

FelonEkonom
Copy link
Member

@FelonEkonom FelonEkonom commented Oct 10, 2024

Relates to #889

@FelonEkonom FelonEkonom self-assigned this Oct 10, 2024
@FelonEkonom FelonEkonom force-pushed the handle-child-terminated branch from 8b287af to 010ef5c Compare October 17, 2024 14:45
@FelonEkonom FelonEkonom requested a review from varsill October 18, 2024 09:04
@FelonEkonom FelonEkonom marked this pull request as ready for review October 18, 2024 09:04
@FelonEkonom FelonEkonom requested a review from mat-hek as a code owner October 18, 2024 09:04
@doc """
Callback invoked after a child terminates.

Terminated child won't occur in the callback context. It is allowed to spawn a new child with the same
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Terminated child won't occur in the callback context. It is allowed to spawn a new child with the same
Terminated child won't be present in the context of this callback. It is allowed to spawn a new child with the same

Copy link
Contributor

Choose a reason for hiding this comment

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

It also applies to changes in Membrane.Pipeline

defp assert_child_playing(pipeline, child) do
assert_pipeline_notified(pipeline, child, :handle_playing)
end

defp assert_grandhild_playing(pipeline, child, grandchild) do
Copy link
Contributor

Choose a reason for hiding this comment

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

Since you are already touching that file, please rename assert_grandhild_playing into assert_grandchild_playing ;)

use Membrane.Endpoint
end

defmodule PadlessElemeentPipeline do
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
defmodule PadlessElemeentPipeline do
defmodule PadlessElementPipeline do

CHANGELOG.md Outdated
@@ -1,7 +1,8 @@
# Changelog

## 1.1.2
* Remove 'failed to insert a metric' stalker warning [#849](https://github.com/membraneframework/membrane_core/pull/849)
* Add new callback `handle_chiild_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Add new callback `handle_chiild_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894)
* Add new callback `handle_child_terminated/3`. [#894](https://github.com/membraneframework/membrane_core/pull/894)

Copy link
Contributor

Choose a reason for hiding this comment

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

And remember to write about all those assert_handle_child_terminated assertions

refution = :"refute_#{action}"

@doc """
Asserts `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Asserts `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific
Asserts that `Membrane.Testing.Pipeline` executed callback `#{callback}/3` for a specific

end

@doc """
Refutes that `Membrane.Testing.Pipeline` won't execute callback `#{callback}/3` for
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
Refutes that `Membrane.Testing.Pipeline` won't execute callback `#{callback}/3` for
Refutes that `Membrane.Testing.Pipeline` will execute callback `#{callback}/3` for

@FelonEkonom FelonEkonom requested a review from varsill October 18, 2024 12:33
Copy link
Contributor

@varsill varsill left a comment

Choose a reason for hiding this comment

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

🥇

CHANGELOG.md Outdated
@@ -1,7 +1,8 @@
# Changelog

## 1.1.2
* Remove 'failed to insert a metric' stalker warning [#849](https://github.com/membraneframework/membrane_core/pull/849)
* Add new callback `handle_chiild_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894)
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
* Add new callback `handle_chiild_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894)
* Add new callback `handle_child_terminated/3` along with new assertions. [#894](https://github.com/membraneframework/membrane_core/pull/894)

@FelonEkonom FelonEkonom merged commit 0f3e838 into master Oct 18, 2024
5 of 6 checks passed
@FelonEkonom FelonEkonom deleted the handle-child-terminated branch October 18, 2024 13:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants