已关闭
four step power on/off for concurrentuser #20075
four step power on/off for concurrentuser #20075
已关闭
wsen创建于 28 天前关闭于 4 天前
wsen
wsen
28 天前

Description:

Issue number:

Test & Result:

CodeCheck:

类型自检项自检结果
多线程相关在类的成员变量中定义了vector/map/list等容器类型,且在多个成员函数中有操作时,需要加锁保护自检结果:
定义全局变量,在多个函数中都有操作时,需要加锁保护自检结果:
内存相关调用外部接口时,确认是否对返回值做了判断,尤其外部接口返回了nullptr的情况,避免进程崩溃自检结果:
调用安全函数时,如memcpy_s等,是否检查其返回值自检结果:
检查函数中是否涉及了内存或资源申请(如文件句柄),注意每个异常退出流程,是否都已经将资源释放(推荐使用RAII)自检结果:
隐式内存分配场景:realpath、ReadParcelable序列化、cJSON相关函数时等,需主动释放或使用智能指针自检结果:
校验外部输入使用nlohmann:json解析外部输入时,需判断参数类型是否符合预期自检结果:
所有外部输入均不可信,需判断外部输入是否直接作为内存分配的大小,数组下标、循环条件、SQL查询等自检结果:
外部输入的路径不可信,需使用realpath做标准化处理,并判断路径的合法性自检结果:
外部输入包括对外提供的接口,IPC的proxy/stub接口,序列化/反序列化接口等自检结果:
数学运算代码中是否混合了加减乘除等运算,需检查是否可能导致整数溢出或符号翻转自检结果:
需检查代码是否有高精度数字转换为低精度的操作,如果必须,建议使用C++安全类型转换接口自检结果:
检查代码在计算时是否有除零操作(包括除数是计算出来的结果可能为0的情况)自检结果:
权限相关作为系统服务对外提供了接口,是否做了权限保护和校验(如需要),只允许申请了权限的应用访问自检结果:
提供给其他系统服务的接口默认需要做SA服务校验自检结果:
跨进程通信优先使用异步IPC,若必须使用同步IPC需要考虑对端卡死或高延时影响自检结果:
序列化/反序列化中数据读写顺序要严格对齐自检结果:
likedislike
当前Pull Request已关闭, 关闭人@wsen
wsenwsen
28 天前 关联了issue:四步上下电不通知
openharmony_ciopenharmony_ci成员
28 天前 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
28 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
28 天前 添加了label:dco检查成功
wsenwsen
27 天前 推送  2 个提交:736985b4-add fix,fbaa824d-add tdd
openharmony_ci
openharmony_ci成员
27 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
wulong158
wulong158成员26 天前进行代码检视1
dm/include/zidl/idisplay_manager_agent.h
已过期
@@ -57,2 +57,4 @@
5757 TRANS_ID_NOTIFY_DISPLAY_POWER_EVENT = 1,
58+ TRANS_ID_NOTIFY_SPECIFIED_DISPLAY_POWER_EVENT,
5859 TRANS_ID_NOTIFY_DISPLAY_STATE_CHANGED,
60+ TRANS_ID_NOTIFY_DISPLAY_STATE_CHANGED_BY_ID,
wulong158
wulong15826 天前评论:

新增枚举加在后面

likedislike
wulong158
wulong158成员26 天前进行代码检视1
dm/include/zidl/display_manager_agent_proxy.h
已过期
@@ -29,6 +29,7 @@ public:
2929 
3030 virtual void NotifyDisplayPowerEvent(DisplayPowerEvent event, EventStatus status) override;
3131 virtual void NotifyDisplayStateChanged(DisplayId id, DisplayState state) override;
32+ virtual void NotifyDisplayStateChangedById(ScreenId screenId, DisplayState state) override;
wulong158
wulong15826 天前评论:

这里为什么使用ScreenId 而不是DisplayId

likedislike
wsenwsen
25 天前 推送  1 个提交:0db12eaa-revert(dms): restore test files to pre-fbaa824 state
openharmony_ci
openharmony_ci成员
25 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
wsenwsen
22 天前 推送  1 个提交:4b986011-add fix
wsen
wsen
22 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

首次触发
门禁构建开始,包含静态检查、代码编译和测试【dayu200编译, dayu600_7885测试, ohos-host_mini_tdd编译, dayu600_7885编译, dayu200测试, master_inner_build编译, x86_64_virt编译, mac-sdk编译, ohos-sdk编译, dayu200_tdd编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a92448864650f998b48ea8e/runlist

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
22 天前 添加了label:静态检查失败
openharmony_ci
openharmony_ci成员
22 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a92448864650f998b48ea8e/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 ohos-sdk pending NA
2 dayu200 pending NA
3 dayu200_tdd pending NA
4 master_inner_build pending NA
5 mac-sdk pending NA
6 ohos-host_mini_tdd pending NA
7 dayu600_7885 pending NA
8 x86_64_virt pending NA

likedislike
wsenwsen
22 天前 推送  1 个提交:bcae1235-fix codecheck
wsen
wsen
22 天前 评论:

start rebuild

likedislike
openharmony_ciopenharmony_ci成员
22 天前 删除了label:静态检查失败
openharmony_ci
openharmony_ci成员
22 天前 评论:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
wsen
wsen
22 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
22 天前 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【dayu200测试, dayu600_7885编译, dayu200编译, master_inner_build编译, x86_64_virt编译, dayu200_tdd编译, ohos-sdk编译, mac-sdk编译, ohos-host_mini_tdd编译, dayu600_7885测试】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a924b6564650f998b4b48fd/runlist

likedislike
openharmony_ciopenharmony_ci成员
22 天前 添加了label:静态检查失败
openharmony_ci
openharmony_ci成员
22 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a924b6564650f998b4b48fd/runlist

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 ohos-sdk pending NA
2 dayu200 pending NA
3 dayu200_tdd pending NA
4 master_inner_build pending NA
5 mac-sdk pending NA
6 ohos-host_mini_tdd pending NA
7 dayu600_7885 pending NA
8 x86_64_virt pending NA

likedislike
wsenwsen
19 天前 推送  1 个提交:b14b0e94-fix code check
wsen
wsen
19 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
19 天前 删除了label:静态检查失败
openharmony_ci
openharmony_ci成员
19 天前 评论:

代码有更新,重置PR验证状态

likedislike
openharmony_ci
openharmony_ci成员
19 天前 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【dayu600_7885测试, dayu200_tdd编译, dayu200编译, mac-sdk编译, ohos-sdk编译, master_inner_build编译, x86_64_virt编译, dayu600_7885编译, ohos-host_mini_tdd编译, dayu200测试】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a96311264650f998b59ac3e/runlist

likedislike
openharmony_ci
openharmony_ci成员
19 天前 评论:

感谢提交 Pull Requests!如果您提交的PR已经开发完毕,请评论 "start build" 触发门禁,更多交互操作,请访问OpenHarmony社区支持命令清单。如果需要调整订阅PR、Issue的变更状态,请访问订阅链接


Thanks for submitting the pull request. If your Pull Request has already been developed, you can leave a "start build" comment to trigger the gated system. For more commands, please visit OpenHarmony Command List. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
19 天前 添加了label:编译失败
openharmony_ciopenharmony_ci成员
19 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
19 天前 添加了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
19 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6a96311264650f998b59ac3e/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 ohos-sdk success >>>
2 dayu200 failed(compile failed) >>>
3 dayu200_tdd failed(compile failed) >>>
4 master_inner_build failed(IGNORE)(代码同步失败) >>>
5 mac-sdk success >>>
6 ohos-host_mini_tdd success >>>
7 dayu600_7885 failed(compile failed) >>>
8 x86_64_virt failed(compile failed) >>>

likedislike
openharmony_dcp
openharmony_dcp成员
19 天前 评论:

你因提交次数过多被限制提交,为保障上库效率、避免资源浪费,请先观看学习视频:https://dcp.openharmony.cn/workbench/video/videoDisplay

likedislike
wsen
wsen
11 天前 评论:

start build

likedislike
openharmony_ciopenharmony_ci成员
11 天前 删除了label:编译失败
openharmony_ciopenharmony_ci成员
11 天前 删除了label:静态检查成功
openharmony_ciopenharmony_ci成员
11 天前 删除了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
11 天前 评论:

本地或库上代码有更新,全量重新构建,重置所有关联PR的验证状态
门禁构建开始,包含静态检查、代码编译和测试【ohos-host_mini_tdd编译, dayu200编译, dayu200测试, dayu600_7885测试, x86_64_virt编译, ohos-sdk编译, mac-sdk编译, dayu600_7885编译, master_inner_build编译, dayu200_tdd编译】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6aa0c67964650f998b8508e7/runlist

likedislike
openharmony_ciopenharmony_ci成员
11 天前 添加了label:编译失败
openharmony_ciopenharmony_ci成员
11 天前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
11 天前 添加了label:冒烟测试失败
openharmony_ci
openharmony_ci成员
11 天前 评论:

代码门禁未通过
您可以通过如下链接查看门禁报告:http://dcp.openharmony.cn/workbench/cicd/detail/6aa0c67964650f998b8508e7/runlist

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 ohos-sdk success >>>
2 dayu200 failed(compile failed) >>>
3 dayu200_tdd failed(compile failed) >>>
4 master_inner_build failed(IGNORE)(代码同步失败) >>>
5 mac-sdk success >>>
6 ohos-host_mini_tdd failed(compile failed) >>>
7 dayu600_7885 failed(compile failed) >>>
8 x86_64_virt failed(compile failed) >>>

likedislike
openharmony_dcp
openharmony_dcp成员
9 天前 评论:

你因提交次数过多被限制提交,为保障上库效率、避免资源浪费,请先观看学习视频:https://dcp.openharmony.cn/workbench/video/videoDisplay

likedislike
wsenwsen
4 天前 关闭了 pull request