已开启
appspawn: PATH环境变量调整优先级及弱沙箱应用保持原有顺序 #2947
appspawn: PATH环境变量调整优先级及弱沙箱应用保持原有顺序 #2947
已开启
soulrequiem创建于 4 天前
soulrequiem
soulrequiem
4 天前

相关的Issue: #2142

变更说明

  1. PATH默认顺序从 HNP_PRIVATE > HNP_PUBLIC > 系统 改为 HNP_PRIVATE > 系统 > HNP_PUBLIC
  2. 弱沙箱应用(custom_sandbox)通过SetLegacyHnpPathOrder恢复原有顺序(HNP_PRIVATE > HNP_PUBLIC > 系统)
  3. CheckPreload调整到InitCommonEnv之前,避免execv后InitCommonEnv重复展开PATH产生冗余(如 /data/app/bin:/data/app/bin:系统:/data/service/hnp/bin:/data/service/hnp/bin)
  4. SetLegacyHnpPathOrder挂在HOOK_PRIO_HIGHEST+1(早于AppEnv JSON的COMMON+1),应用声明的PATH和/etc/environment可覆盖
  5. SetLegacyHnpPathOrder防御:PATH为空/无HNP段/系统段超长时均不重排

测试覆盖

  • 184个集成测试通过(含9个SetLegacyHnpPathOrder专项用例)
  • 设备全量48套件通过
  • 覆盖分支:默认顺序/legacy重排/中间尾部位置/空PATH/重复段去重/仅一段HNP/系统段超长
likedislike
合并受阻
soulrequiemsoulrequiem
4 天前 关联了issue:appspawn: PATH环境变量调整优先级及弱沙箱应用保持原有顺序
soulrequiemsoulrequiem
4 天前 强制推送  1 个提交:01e4b48c-appspawn: 弱沙箱应用(custom_sandbox)保持原有HNP PATH顺序
openharmony_ciopenharmony_ci成员
4 天前 添加了label:waiting_on_author
soulrequiemsoulrequiem
4 天前 修改了pull request 的描述
openharmony_ci
openharmony_ci成员
4 天前 评论:

感谢提交 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成员
4 天前 添加了label:dco检查成功
openharmony_ci
openharmony_ci成员
4 天前 评论:

感谢提交 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
soulrequiemsoulrequiem
4 天前 强制推送  1 个提交:431f8325-appspawn: 弱沙箱应用(custom_sandbox)保持原有HNP PATH顺序
openharmony_ci
openharmony_ci成员
4 天前 评论:

感谢提交 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
soulrequiem
soulrequiem
2 天前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
2 天前 评论:

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

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

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

静态检查:

# check type result report
1 codeCheck noPass >>>

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

likedislike
soulrequiemsoulrequiem
2 天前 强制推送  21 个提交:2c00d066-20 commits from branch master766c98a4-appspawn: PATH环境变量调整优先级及弱沙箱应用保持原有顺序
openharmony_ciopenharmony_ci成员
2 天前 删除了label:静态检查失败
openharmony_ci
openharmony_ci成员
2 天前 评论:

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

likedislike
openharmony_ci
openharmony_ci成员
2 天前 评论:

感谢提交 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
soulrequiemsoulrequiem
2 天前 强制推送  1 个提交:4b1fcbd9-appspawn: PATH环境变量调整优先级及弱沙箱应用保持原有顺序
openharmony_ci
openharmony_ci成员
2 天前 评论:

感谢提交 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
soulrequiem
soulrequiem
2 小时前 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
2 小时前 评论:

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

likedislike
openharmony_ciopenharmony_ci成员
1 小时前 添加了label:编译成功
openharmony_ciopenharmony_ci成员
40 分钟前 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
40 分钟前 添加了label:冒烟测试成功
openharmony_ciopenharmony_ci成员
40 分钟前 通过测试
openharmony_ci
openharmony_ci成员
40 分钟前 评论:

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

静态检查:

# check type result report
1 codeCheck pass >>>

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

likedislike
openharmony_ciopenharmony_ci成员
40 分钟前 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
40 分钟前 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
40 分钟前 评论:

您好,Committer @handyohos @mytide @wangfenging ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @handyohos @mytide @wangfenging . Please assign someone to review the PR. You can assign a reviewer by using the command "assign [@someone_id]", or you can comment "assign" to review the PR by yourself.

likedislike