Open
【开源之夏】:nghttp2使用libverto替代libev #47
AtomGit-BotAdd on Oct 27, 2023
【开源之夏】:nghttp2使用libverto替代libev #47
Open
AtomGit-BotAdd on Oct 27, 2023
Merged fromrefs/pull/47/headintomaster
A
AtomGit-Bot
Oct 27, 2023

【项目难度】:进阶
【项目描述】:nghttp2使用libverto替代libev

【项目测试说明文档】: https://github.com/Flipped-coder/summer_ospp/blob/master/OSPP项目说明文档.pdf

【项目要求】:由于libverto项目更为灵活,支持更多不同的事件库,因此该项目主要通过修改nghttp2软件中对libev的依赖,将对libev的依赖替代为使用libverto。该项目的主要目标如下:
将nghttp2中使用到libev中至少50%的接口替代为使用libverto的接口,并且保持原有软件功能正常。

【项目产出】:
patch1:对nghttp客户端工具进行libverto替换
patch2:对nghttpd服务器工具进行libverto替换
patch3:对h2load基准测试工具进行libverto替换
patch4:修改makefile与configure,能够通过编译构建参数控制新代码是否参与编译

likedislike
Merge blocked
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

Hi Flipped-coder, welcome to the openEuler Community.
I'm the Bot here serving you. You can find the instructions on how to interact with me at Here.
If you have any questions, please contact the SIG: Networking, and any of the maintainers: @seuzw , @MrRlu , @kircher , @gebidelidaye , @zengwefeng , @robertxw , @sunsuwan

likedislike
A
AtomGit-Bot
Oct 27, 2023 Comments:

当前仓库存在以下 保护分支 :

Protected Branch Version Release
* master 1.55.1 2
openEuler-20.03-LTS-SP1 1.41.0 4
openEuler-20.03-LTS-SP3 1.41.0 5
openEuler-20.03-LTS-SP4 1.41.0 5
openEuler-22.03-LTS 1.46.0 4
openEuler-22.03-LTS-LoongArch 1.46.0 2
openEuler-22.03-LTS-Next 1.46.0 5
openEuler-22.03-LTS-SP1 1.46.0 5
openEuler-22.03-LTS-SP2 1.46.0 5
openEuler-23.09 1.55.1 1

评论 /sync <branch1> <branch2> ... 可将当前 PR 修改同步到其它分支(创建同步 PR):
a) 如果当前 PR 是 Open 状态,同步操作将延迟到 PR 被合并时执行
b) 如果当前 PR 已经 Merged,将立即执行同步操作

注意:

  1. /sync 命令可以指定同步到多个分支,仅最后一个 /sync 命令生效
  2. 如果创建的同步 PR 不正确,可通过向同步 PR 的源分支提交轻量级 PR 完善,或使用 /close 命令关闭
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; sig/Networking 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; openeuler-cla/yes 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/nghttp2, 当前构建号为 120
构建及构建后检查: multiarch/src-openeuler/x86-64/nghttp2, multiarch/src-openeuler/aarch64/nghttp2
门禁结果回显: multiarch/src-openeuler/comment/nghttp2
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; ci_processing 标签
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 移除了 &nbsp; ci_processing 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:
Check Name Build Result Build Details
check_binary_file ✅SUCCESS #120
check_package_license 🐛WARNING
check_package_yaml_file ✅SUCCESS
check_consistency 🐛WARNING
check_spec_file ✅SUCCESS
aarch64 check_build ✅SUCCESS #113
check_install ✅SUCCESS
x86_64 check_build ✅SUCCESS #116
check_install ✅SUCCESS
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; ci_successful 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:
Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms ✅SUCCESS #116
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_service ✅SUCCESS
rpm_symbol ✅SUCCESS
service_detail ✅SUCCESS
compare_package(aarch64) add_rpms ✅SUCCESS #113
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_service ✅SUCCESS
rpm_symbol ✅SUCCESS
service_detail ✅SUCCESS
likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

@Flipped-coder

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

门禁常见失败问题及解决方案, 可参考门禁问题排查手册
若门禁存在误报,您可以评论/ci_mistake 120进行误报标记,120表示本次构建号
也可带上误报的门禁检查项以及误报类型(ci、obs、infra),比如/ci_mistake 120 obs check_build check_install表示的是check_build和check_install存在误报,误报类型为obs
若想取消误报标记,可以评论/ci_unmistake 120取消
也可在评论后加上一段文字描述,但请另起一行

likedislike
tong_1001
tong_1001Oct 27, 2023Start code review1
nghttp2.spec
@@ -1,12 +1,13 @@
1+%bcond_with verto
2+ 
13Name: nghttp2
24Version: 1.55.1
3-Release: 2
5+Release: 3
46Summary: Contains the HTTP/2 client, server and proxy programs.
57License: MIT
68URL: https://nghttp2.org/
@@ -8,10 +10,17 @@ Source0: https://github.com/nghttp2/nghttp2/releases/download/v%{version}
810 
911Patch0: backport-CVE-2023-44487.patch
1012Patch1: backport-Fix-build-error-when-both-clock_gettime-and-GetTickCount64.patch
13+Patch2: 0001-nghttp-client-implementation-based-on-libverto.patch
tong_1001
tong_1001Oct 27, 2023Comments:

这里的%if %{with verto}控制区别,建议补丁默认要生效,但是最后是否基于libverto编译,这个可以控制。因为补丁 0004-updata-build-file.patch 中修改了configure.ac和src/Makefile.am,属于公共文件,修改需要合入,否则以后如果有人同样提交了修改这2个文件的补丁,届时再放开这个补丁,则可能导致文件冲突,使用patch命令无法使得补丁修改生效。

likedislike
AAtomGit-Bot
Oct 27, 2023 强制推送 了代码
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

/retest

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 移除了 &nbsp; ci_successful 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

This pull request source branch has changed, so removes the following label(s): ci_successful.

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

门禁正在运行, 您可以通过以下链接查看实时门禁检查结果.
门禁入口及编码规范检查: multiarch/src-openeuler/trigger/nghttp2, 当前构建号为 121
构建及构建后检查: multiarch/src-openeuler/x86-64/nghttp2, multiarch/src-openeuler/aarch64/nghttp2
门禁结果回显: multiarch/src-openeuler/comment/nghttp2
若您对门禁结果含义不清晰或者遇到问题不知如何解决,可参考门禁指导手册

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; ci_processing 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:
Check Name Build Result Build Details
check_binary_file ✅SUCCESS #121
check_package_license 🐛WARNING
check_package_yaml_file ✅SUCCESS
check_consistency 🐛WARNING
check_spec_file ✅SUCCESS
aarch64 check_build ✅SUCCESS #114
check_install ✅SUCCESS
x86_64 check_build ✅SUCCESS #117
check_install ✅SUCCESS
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 移除了 &nbsp; ci_processing 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:
Arch Name Check Items Rpm Name Check Result Build Details
compare_package(x86_64) add_rpms ✅SUCCESS #117
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_service ✅SUCCESS
rpm_symbol ✅SUCCESS
service_detail ✅SUCCESS
compare_package(aarch64) add_rpms ✅SUCCESS #114
delete_rpms ✅SUCCESS
rpm_abi ✅SUCCESS
rpm_cmd ✅SUCCESS
rpm_files ✅SUCCESS
rpm_header ✅SUCCESS
rpm_lib ✅SUCCESS
rpm_provides ✅SUCCESS
rpm_requires ✅SUCCESS
rpm_service ✅SUCCESS
rpm_symbol ✅SUCCESS
service_detail ✅SUCCESS
likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Oct 27, 2023 添加了 &nbsp; ci_successful 标签
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

@Flipped-coder

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Oct 27, 2023 Comments:

门禁常见失败问题及解决方案, 可参考门禁问题排查手册
若门禁存在误报,您可以评论/ci_mistake 121进行误报标记,121表示本次构建号
也可带上误报的门禁检查项以及误报类型(ci、obs、infra),比如/ci_mistake 121 obs check_build check_install表示的是check_build和check_install存在误报,误报类型为obs
若想取消误报标记,可以评论/ci_unmistake 121取消
也可在评论后加上一段文字描述,但请另起一行

likedislike
robertxw
robertxwCollaboratorsNov 15, 2023Start code review1
nghttp2.spec
@@ -44,3 +53,2 @@
4453autoreconf
45-%configure PYTHON=%{__python3} --disable-hpack-tools --disable-python-bindings\
46- --with-libxml2 --disable-static
54+automake
robertxw
robertxwNov 15, 2023Comments:

为什么加了一句automake,解决什么问题的?

likedislike
Funda Wang
Funda WangCollaborators
Aug 25, 2024 Comments:

从维护角度来说,libverto 代码库最新更新也是三年前了,更换的意义不大。

likedislike
openeuler-ci-bot
openeuler-ci-botCollaborators
Aug 22 Comments:

/check-cla

likedislike
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 22 Removed label: openeuler-cla/yes
openeuler-ci-botopeneuler-ci-botCollaborators
Aug 22 Added label: openeuler-cla/yes
openeuler-ci-bot
openeuler-ci-botCollaborators
Aug 22 Comments:

CLA Signature Pass

Flipped-coder, thanks for your pull request. All authors of the commits have signed the CLA. 👍

likedislike