Skip to content
项目
群组
代码片段
帮助
正在加载...
登录
切换导航
M
mediasoup
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分枝图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
分枝图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
聂卓夫
mediasoup
Commits
1c0121b2
Unverified
提交
1c0121b2
authored
7月 18, 2024
作者:
Iñaki Baz Castillo
提交者:
GitHub
7月 18, 2024
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Update Meson to 1.5.0 (#1424)
上级
24dc5723
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
27 行增加
和
8 行删除
+27
-8
mediasoup-worker.yaml
.github/workflows/mediasoup-worker.yaml
+20
-1
CHANGELOG.md
CHANGELOG.md
+2
-1
tasks.py
worker/tasks.py
+5
-6
没有找到文件。
.github/workflows/mediasoup-worker.yaml
浏览文件 @
1c0121b2
...
@@ -11,6 +11,7 @@ concurrency:
...
@@ -11,6 +11,7 @@ concurrency:
jobs
:
jobs
:
ci
:
ci
:
strategy
:
strategy
:
# Here we want to see all errors, not just the first one.
fail-fast
:
false
fail-fast
:
false
matrix
:
matrix
:
build
:
build
:
...
@@ -48,7 +49,7 @@ jobs:
...
@@ -48,7 +49,7 @@ jobs:
CC
:
${{ matrix.build.cc }}
CC
:
${{ matrix.build.cc }}
CXX
:
${{ matrix.build.cxx }}
CXX
:
${{ matrix.build.cxx }}
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_SKIP_WORKER_PREBUILT_DOWNLOAD
:
'
true'
MEDIASOUP_LOCAL_DEV
:
'
tru
e'
MEDIASOUP_LOCAL_DEV
:
'
fals
e'
MEDIASOUP_BUILDTYPE
:
${{ matrix.build-type }}
MEDIASOUP_BUILDTYPE
:
${{ matrix.build-type }}
steps
:
steps
:
...
@@ -98,11 +99,23 @@ jobs:
...
@@ -98,11 +99,23 @@ jobs:
# TODO: Maybe fix this one day.
# TODO: Maybe fix this one day.
if
:
runner.os != 'Windows'
if
:
runner.os != 'Windows'
# Let's clean everything before rebuilding worker tests with ASAN.
-
name
:
invoke -r worker clean-all
run
:
invoke -r worker clean-all
# Address Sanitizer only works on Linux.
if
:
runner.os == 'Linux'
-
name
:
invoke -r worker test-asan-address
-
name
:
invoke -r worker test-asan-address
run
:
invoke -r worker test-asan-address
run
:
invoke -r worker test-asan-address
# Address Sanitizer only works on Linux.
# Address Sanitizer only works on Linux.
if
:
runner.os == 'Linux'
if
:
runner.os == 'Linux'
# Let's clean everything before rebuilding worker tests with ASAN.
# - name: invoke -r worker clean-all
# run: invoke -r worker clean-all
# # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux'
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed.
# is fixed.
# - name: invoke -r worker test-asan-undefined
# - name: invoke -r worker test-asan-undefined
...
@@ -110,6 +123,12 @@ jobs:
...
@@ -110,6 +123,12 @@ jobs:
# # Address Sanitizer only works on Linux.
# # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux'
# if: runner.os == 'Linux'
# Let's clean everything before rebuilding worker tests with ASAN.
# - name: invoke -r worker clean-all
# run: invoke -r worker clean-all
# # Address Sanitizer only works on Linux.
# if: runner.os == 'Linux'
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# TODO: Uncomment once https://github.com/versatica/mediasoup/issues/1417
# is fixed.
# is fixed.
# - name: invoke -r worker test-asan-thread
# - name: invoke -r worker test-asan-thread
...
...
CHANGELOG.md
浏览文件 @
1c0121b2
...
@@ -3,6 +3,7 @@
...
@@ -3,6 +3,7 @@
### NEXT
### NEXT
-
Worker: Test, fix buffer overflow (
[
PR #1419
](
https://github.com/versatica/mediasoup/pull/1419
)
).
-
Worker: Test, fix buffer overflow (
[
PR #1419
](
https://github.com/versatica/mediasoup/pull/1419
)
).
-
Bump up Meson from 1.3.0 to 1.5.0 (
[
PR #1424
](
https://github.com/versatica/mediasoup/pull/1424
)
).
### 3.14.8
### 3.14.8
...
@@ -434,7 +435,7 @@ Migrate `npm-scripts.js` to `npm-scripts.mjs` (ES Module) ([PR #1093](https://gi
...
@@ -434,7 +435,7 @@ Migrate `npm-scripts.js` to `npm-scripts.mjs` (ES Module) ([PR #1093](https://gi
### 3.10.2
### 3.10.2
-
Fix release contents by including
meson_options.txt
(
[
PR #863
](
https://github.com/versatica/mediasoup/pull/863
)
).
-
Fix release contents by including
`meson_options.txt`
(
[
PR #863
](
https://github.com/versatica/mediasoup/pull/863
)
).
### 3.10.1
### 3.10.1
...
...
worker/tasks.py
浏览文件 @
1c0121b2
...
@@ -50,7 +50,7 @@ PIP_PYLINT_DIR = f'{MEDIASOUP_OUT_DIR}/pip_pylint';
...
@@ -50,7 +50,7 @@ PIP_PYLINT_DIR = f'{MEDIASOUP_OUT_DIR}/pip_pylint';
NUM_CORES
=
len
(
os
.
sched_getaffinity
(
0
))
if
hasattr
(
os
,
'sched_getaffinity'
)
else
os
.
cpu_count
();
NUM_CORES
=
len
(
os
.
sched_getaffinity
(
0
))
if
hasattr
(
os
,
'sched_getaffinity'
)
else
os
.
cpu_count
();
PYTHON
=
os
.
getenv
(
'PYTHON'
)
or
sys
.
executable
;
PYTHON
=
os
.
getenv
(
'PYTHON'
)
or
sys
.
executable
;
MESON
=
os
.
getenv
(
'MESON'
)
or
f
'{PIP_MESON_NINJA_DIR}/bin/meson'
;
MESON
=
os
.
getenv
(
'MESON'
)
or
f
'{PIP_MESON_NINJA_DIR}/bin/meson'
;
MESON_VERSION
=
os
.
getenv
(
'MESON_VERSION'
)
or
'1.
3
.0'
;
MESON_VERSION
=
os
.
getenv
(
'MESON_VERSION'
)
or
'1.
5
.0'
;
# MESON_ARGS can be used to provide extra configuration parameters to meson,
# MESON_ARGS can be used to provide extra configuration parameters to meson,
# such as adding defines or changing optimization options. For instance, use
# such as adding defines or changing optimization options. For instance, use
# `MESON_ARGS="-Dms_log_trace=true -Dms_log_file_line=true" npm i` to compile
# `MESON_ARGS="-Dms_log_trace=true -Dms_log_file_line=true" npm i` to compile
...
@@ -61,7 +61,6 @@ MESON_ARGS = os.getenv('MESON_ARGS') if os.getenv('MESON_ARGS') else '--vsenv' i
...
@@ -61,7 +61,6 @@ MESON_ARGS = os.getenv('MESON_ARGS') if os.getenv('MESON_ARGS') else '--vsenv' i
# Let's use a specific version of ninja to avoid buggy version 1.11.1:
# Let's use a specific version of ninja to avoid buggy version 1.11.1:
# https://mediasoup.discourse.group/t/partly-solved-could-not-detect-ninja-v1-8-2-or-newer/
# https://mediasoup.discourse.group/t/partly-solved-could-not-detect-ninja-v1-8-2-or-newer/
# https://github.com/ninja-build/ninja/issues/2211
# https://github.com/ninja-build/ninja/issues/2211
# https://github.com/ninja-build/ninja/issues/2212
NINJA_VERSION
=
os
.
getenv
(
'NINJA_VERSION'
)
or
'1.10.2.4'
;
NINJA_VERSION
=
os
.
getenv
(
'NINJA_VERSION'
)
or
'1.10.2.4'
;
PYLINT_VERSION
=
os
.
getenv
(
'PYLINT_VERSION'
)
or
'3.0.2'
;
PYLINT_VERSION
=
os
.
getenv
(
'PYLINT_VERSION'
)
or
'3.0.2'
;
NPM
=
os
.
getenv
(
'NPM'
)
or
'npm'
;
NPM
=
os
.
getenv
(
'NPM'
)
or
'npm'
;
...
@@ -389,7 +388,7 @@ def test(ctx):
...
@@ -389,7 +388,7 @@ def test(ctx):
);
);
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=address'
),
flatc
])
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=address
-Db_lundef=false
'
),
flatc
])
def
test_asan_address
(
ctx
):
def
test_asan_address
(
ctx
):
"""
"""
Run worker test with Address Sanitizer with '-fsanitize=address'
Run worker test with Address Sanitizer with '-fsanitize=address'
...
@@ -420,7 +419,7 @@ def test_asan_address(ctx):
...
@@ -420,7 +419,7 @@ def test_asan_address(ctx):
);
);
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=undefined'
),
flatc
])
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=undefined
-Db_lundef=false
'
),
flatc
])
def
test_asan_undefined
(
ctx
):
def
test_asan_undefined
(
ctx
):
"""
"""
Run worker test with undefined Sanitizer with -fsanitize=undefined
Run worker test with undefined Sanitizer with -fsanitize=undefined
...
@@ -451,7 +450,7 @@ def test_asan_undefined(ctx):
...
@@ -451,7 +450,7 @@ def test_asan_undefined(ctx):
);
);
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=thread'
),
flatc
])
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=thread
-Db_lundef=false
'
),
flatc
])
def
test_asan_thread
(
ctx
):
def
test_asan_thread
(
ctx
):
"""
"""
Run worker test with thread Sanitizer with -fsanitize=thread
Run worker test with thread Sanitizer with -fsanitize=thread
...
@@ -511,7 +510,7 @@ def tidy(ctx):
...
@@ -511,7 +510,7 @@ def tidy(ctx):
);
);
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=address'
),
flatc
])
@task
(
pre
=
[
call
(
setup
,
meson_args
=
MESON_ARGS
+
' -Db_sanitize=address
-Db_lundef=false
'
),
flatc
])
def
fuzzer
(
ctx
):
def
fuzzer
(
ctx
):
"""
"""
Build the mediasoup-worker-fuzzer binary (which uses libFuzzer)
Build the mediasoup-worker-fuzzer binary (which uses libFuzzer)
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论