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

Fix HLS OpenAPI warning #202

Merged
merged 16 commits into from
Jun 4, 2024
Merged

Fix HLS OpenAPI warning #202

merged 16 commits into from
Jun 4, 2024

Conversation

Rados13
Copy link
Contributor

@Rados13 Rados13 commented May 21, 2024

Acknowledging the stipulations set forth:

  • I hereby confirm that a Pull Request involving updates to the Software Development Kit (SDK) has been smoothly merged, currently awaits processing, or is otherwise deemed unnecessary in this context.
  • I also affirm that another Pull Request, specifically addressing updates to the documentation body (commonly referred to as 'docs'), has either been successfully incorporated, is in the process of review, or is considered superfluous under the prevailing circumstances.

OpenAPI warning is fixed by how object S3Credentials is referenced.
Error with AuthCache was fixed by providing AuthConfigAdapter, which is the way AuthCache is tested in ExAws.

@Rados13 Rados13 self-assigned this May 21, 2024
Copy link

codecov bot commented May 21, 2024

Codecov Report

Attention: Patch coverage is 83.33333% with 1 lines in your changes are missing coverage. Please review.

Project coverage is 87.08%. Comparing base (9b57b35) to head (eeac9f0).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #202      +/-   ##
==========================================
- Coverage   87.12%   87.08%   -0.04%     
==========================================
  Files          74       76       +2     
  Lines        1538     1541       +3     
==========================================
+ Hits         1340     1342       +2     
- Misses        198      199       +1     
Files Coverage Δ
lib/fishjam/component/hls/manager.ex 97.14% <100.00%> (+0.08%) ⬆️
lib/fishjam/room_service.ex 87.01% <100.00%> (ø)
lib/fishjam_web/api_spec/component/HLS/S3.ex 100.00% <100.00%> (ø)
lib/fishjam_web/api_spec/component/hls.ex 100.00% <ø> (ø)
lib/fishjam_web/api_spec/component/recording.ex 100.00% <ø> (ø)
lib/fishjam_web/peer_socket.ex 82.00% <100.00%> (ø)
test/support/mock_manager.ex 100.00% <100.00%> (ø)
test/support/adapter.ex 0.00% <0.00%> (ø)

Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9b57b35...eeac9f0. Read the comment docs.

@Rados13 Rados13 changed the title Debug Fix HLS OpenAPI warning May 21, 2024
@Rados13 Rados13 marked this pull request as ready for review May 22, 2024 09:39
@Rados13 Rados13 requested review from Karolk99 and sgfn May 23, 2024 07:49
@Rados13 Rados13 marked this pull request as draft May 23, 2024 09:49
@Rados13 Rados13 force-pushed the debug branch 3 times, most recently from b0a94e2 to 3afc38d Compare May 28, 2024 08:04
@Rados13 Rados13 requested a review from sgfn May 28, 2024 09:48
@Rados13 Rados13 marked this pull request as ready for review May 28, 2024 09:48
.circleci/config.yml Show resolved Hide resolved
lib/fishjam/component/hls/manager.ex Outdated Show resolved Hide resolved
config/config.exs Outdated Show resolved Hide resolved
mix.exs Show resolved Hide resolved
Rados13 and others added 3 commits May 28, 2024 14:52
Co-authored-by: Jakub Pisarek <99591440+sgfn@users.noreply.github.com>
@@ -37,29 +39,34 @@ defmodule Fishjam.Component.HLS.ManagerTest do
hls_dir: hls_dir,
options: options
} do
MockManager.http_mock_expect(0, status_code: 200)
Application.put_env(:ex_aws, :awscli_auth_adapter, Fishjam.Adapter)
Copy link
Contributor

Choose a reason for hiding this comment

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

why do we need this envs?

pid = MockManager.start_mock_engine()

{:ok, manager} = Manager.start(room_id, pid, hls_dir, options)
ref = Process.monitor(manager)

assert Process.alive?(pid)
Copy link
Contributor

Choose a reason for hiding this comment

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

I don't think this is necessary, as next line does the same thing

@@ -24,9 +24,10 @@ defmodule FishjamWeb.Integration.PeerSocketTest do

alias FishjamWeb.PeerSocket

socket "/socket/peer", PeerSocket,
socket("/socket/peer", PeerSocket,
Copy link
Contributor

Choose a reason for hiding this comment

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

👎

@Rados13 Rados13 merged commit f20d6b9 into main Jun 4, 2024
7 checks passed
@Rados13 Rados13 deleted the debug branch June 4, 2024 10:31
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.

3 participants