已合并
docs(knowledge): 补充 RS 进程启动、SA 注册和生命周期管理知识文档 #31952
docs(knowledge): 补充 RS 进程启动、SA 注册和生命周期管理知识文档 #31952
已合并
huaixu-y创建于 8月4日
huaixu-y
huaixu-y
8月4日

变更说明

补充 docs/knowledge/rs-process-entry.md(RS 进程入口知识文档),范围限定为 RenderService 进程启动、SA 注册和生命周期管理,内容均经代码逐一核对:

  • 新增 graphic.cfg init 服务配置说明(uid/gid/caps/secon、critical 重启策略、on-restart 联动 reset foundation/allocator_host/composer_host)
  • 细化启动流程(bootevent.renderservice.ready 先置 false、SAMgr 注册成功后置 true;Watchdog、tcache、组件初始化顺序)
  • 新增 SA 注册小节:SA ID RENDER_SERVICE = 10(外部仓 samgr system_ability_definition.h)、descriptor ohos.rosen.RenderService、bootevent.samgr.ready 等待逻辑;说明 RSRenderService 不继承 SystemAbility 基类,生命周期即进程生命周期
  • 新增生命周期与异常恢复表(init critical 重启、Watchdog、DeathRecipient、子进程死亡熔断 180s/2 次)
  • 新增行为限制表(等 samgr 就绪 5s、Watchdog 5000ms、死亡熔断窗口)
  • 修正 rs_render_pipeline.h 路径(实际位于 core/ 目录)

关联 issue

#25483

验证

  • 文档内所有仓内路径锚点已核对存在
  • 全部行 ≤120 字符,git diff --check 通过
  • 纯文档改动,按 docs/review-gates/README.md 判定稳定性检视不适用
  • SA ID 数值定义在外部 samgr 仓;critical 重启联动等设备行为已在文档中标注为验证缺口
likedislike
Pull Request已成功合入, 合并人@openharmony_ci
(感谢 huaixu-y 的贡献)
openharmony_ciopenharmony_ci成员
8月4日 添加了label:waiting_on_author
openharmony_ci
openharmony_ci成员
8月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成员
8月4日 添加了label:dco检查成功
huaixu-yhuaixu-y
8月4日 修改了pull request 的描述
huaixu-yhuaixu-y
8月4日 审查状态已重置,审查人: yaozhupeng
huaixu-yhuaixu-y
8月4日 强制推送  1 个提交:328ac54e-docs(knowledge): supplement RS process entry/SA registration/lifecycle doc
huaixu-yhuaixu-y
8月4日 修改了pull request 的描述
openharmony_ci
openharmony_ci成员
8月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
huaixu-y
huaixu-y
8月4日 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
8月4日 评论:

首次触发
门禁构建开始,包含静态检查【格式化检查】,预计在60分钟内完成,门禁结果会同步发送到注册邮箱。您可以通过如下链接跟踪门禁进展:http://dcp.openharmony.cn/workbench/cicd/detail/6a7188d964650f998b36e4bb/runlist

likedislike
openharmony_ciopenharmony_ci成员
8月4日 添加了label:静态检查失败
openharmony_ci
openharmony_ci成员
8月4日 评论:

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

静态检查:

# check type result report
1 codeCheck noPass >>>

编译测试:
# Device build result package
1 format_check pending NA

likedislike
huaixu-yhuaixu-y
8月4日 审查状态已重置,审查人: yaozhupeng
huaixu-yhuaixu-y
8月4日 强制推送  1 个提交:cd855717-docs(knowledge): supplement RS process entry/SA registration/lifecycle doc
openharmony_ciopenharmony_ci成员
8月4日 删除了label:静态检查失败
openharmony_ci
openharmony_ci成员
8月4日 评论:

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

likedislike
openharmony_ci
openharmony_ci成员
8月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
LyBbq成员8月4日进行代码检视2
docs/knowledge/rs-process-entry.md
已过期
@@ -49,3 +95,4 @@
95+ 
4996### IPC 连接模型
5097 
5198- 客户端通过 `RegisterRenderProcessConnection()` 获取 `RSIClientToServiceConnection` + `RSIClientToRenderConnection`。
LyBbq8月4日评论:

这个RSIClientToRenderConnection和RSIClientToServiceConnection 不太对,这是内部的IPC,应该是ServiceToRender,如果是客户端应用的话,是另外接口比如RSIClientToServiceConnection是客户端hub里面,toRender可以看到是RSRenderPipelineClient创建toRender通路

likedislike
huaixu-y
huaixu-y
8月4日 评论:

已修改,感谢指出。原句沿用了旧文档的错误表述,现"IPC 连接模型"小节已按代码实际重写:

  • 应用客户端经 RSRenderServiceConnectHub::GetClientToServiceConnection() 获取 RSIClientToServiceConnection(hub 内部调 SA 的 CreateConnection);
  • toRender 通路(RSIClientToRenderConnection)由 RSRenderPipelineClient 经 RSIConnectToRenderProcess::CreateRenderConnection 按渲染进程(tokenMaskId)创建;
  • RegisterRenderProcessConnection() 明确标注为 RenderProcess 子进程使用的内部接口,返回 RSIRenderToServiceConnection,不面向应用客户端。

同时将"按 pid 索引"修正为按 ProcessUniqueId 索引(rs_render_multi_process_manager_repository.h)。新提交 e87ba21b。

huaixu-yhuaixu-y
8月4日 审查状态已重置,审查人: yaozhupeng
huaixu-yhuaixu-y
8月4日 强制推送  1 个提交:e87ba21b-docs(knowledge): supplement RS process entry/SA registration/lifecycle doc
openharmony_ci
openharmony_ci成员
8月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
huaixu-yhuaixu-y
8月4日 审查状态已重置,审查人: yaozhupeng
huaixu-yhuaixu-y
8月4日 强制推送  1 个提交:0e25f7ce-docs(knowledge): supplement RS process entry/SA registration/lifecycle doc
openharmony_ci
openharmony_ci成员
8月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
huaixu-y
huaixu-y
8月4日 评论:

start build

likedislike
huaixu-y
huaixu-y
8月4日 评论:

start build

likedislike
openharmony_ci
openharmony_ci成员
8月4日 评论:

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

likedislike
openharmony_ciopenharmony_ci成员
8月4日 添加了label:格式化检查成功
openharmony_ciopenharmony_ci成员
8月4日 添加了label:静态检查成功
openharmony_ciopenharmony_ci成员
8月4日 通过测试
openharmony_ci
openharmony_ci成员
8月4日 评论:

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

静态检查:

# check type result report
1 codeCheck pass >>>

编译测试:
# Device build result package
1 format_check success >>>

likedislike
openharmony_ciopenharmony_ci成员
8月4日 删除了label:waiting_on_author
openharmony_ciopenharmony_ci成员
8月4日 添加了label:waiting_for_review
openharmony_ci
openharmony_ci成员
8月4日 评论:

您好,Committer @liumingxiang1 @comicchang @aslklw @wang-luyu4 @lijj01 @stonesxd @xuyuqiong @kroswang @djnash @gmiao522 @wh_qwe @liuchao-huawei @BruceXu @liuchuan666 @gaoweihua ,请分配检视人员检视该PR,可以通过命令"assign [@someone_id]"分配检视人员,也可以直接评论"assign"分配给自己进行检视。


Hello, Committer @liumingxiang1 @comicchang @aslklw @wang-luyu4 @lijj01 @stonesxd @xuyuqiong @kroswang @djnash @gmiao522 @wh_qwe @liuchao-huawei @BruceXu @liuchuan666 @gaoweihua . 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
aslklwaslklw成员
8月4日 通过审查
yaozhupengyaozhupeng成员
8月4日 通过审查
openharmony_ciopenharmony_ci成员
8月4日 关闭了关联的issue
openharmony_ciopenharmony_ci成员
8月4日 合入了pull request,合并节点 SHA:8f159ebeb9b6222d60ed0b35576d7f6e4bdd4dd1
openharmony_ciopenharmony_ci成员
8月4日 删除了label:waiting_for_review
openharmony_ciopenharmony_ci成员
8月4日 添加了label:merged