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 hevc test failures #4087

Merged
merged 5 commits into from
Jun 14, 2024
Merged

Fix hevc test failures #4087

merged 5 commits into from
Jun 14, 2024

Conversation

suzp1984
Copy link
Contributor

@suzp1984 suzp1984 commented Jun 13, 2024

Try to fix two blackbox test:

  1. TestSlow_SrtPublish_HttpTsPlay_HEVC_Basic: fixed by enlarge the wait time from 3 seconds to 4 before run ffprobe task, which will record the stream by ffmpeg first.
    2 TestSlow_SrtPublish_HlsPlay_HEVC_Basic: fixed by wait 16 seconds before run ffprobe task.
    About the 2 case: it seems ridiculous to add 16 seconds delay before run ffprobe task.

So, I start #4088 to check the github action workflow process, I start this branch from a very earlier version 6.0.113 (srs/core/srs_core_version6.hpp), what I found it that, inside SRS blackbox-test, the srs version 6.0.128, the latest version, was printed. That's really wired.

I confirmed this is not the SRS source code's problem, check https://github.com/suzp1984/srs/actions/runs/9511600525/job/26218025559
the srs code 6.0.113 was checkout and running actions based on them, still met same problem.

@winlinvip winlinvip added the EnglishNative This issue is conveyed exclusively in English. label Jun 13, 2024
@suzp1984 suzp1984 force-pushed the fix/hevc_test_fail branch 10 times, most recently from cca9e35 to da6a7d7 Compare June 14, 2024 01:46
@suzp1984 suzp1984 force-pushed the fix/hevc_test_fail branch from da6a7d7 to cfda86c Compare June 14, 2024 01:52
@suzp1984 suzp1984 changed the title fix hevc test failures WIP: fix hevc test failures Jun 14, 2024
@suzp1984 suzp1984 changed the title WIP: fix hevc test failures fix hevc test failures Jun 14, 2024
@winlinvip winlinvip changed the title fix hevc test failures Fix hevc test failures Jun 14, 2024
@@ -995,11 +994,14 @@ func TestSlow_SrtPublish_HlsPlay_HEVC_Basic(t *testing.T) {
defer wg.Done()
<-svr.ReadyCtx().Done()

// wait for ffmpeg
time.Sleep(3 * time.Second)

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No need to sleep here, ffmpeg can publish stream immediately after srs ready.

@winlinvip winlinvip merged commit 908c2f2 into ossrs:develop Jun 14, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
EnglishNative This issue is conveyed exclusively in English.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants