WO2019136842A1 - 组件发布与编译方法、存储介质、电子设备及系统 - Google Patents

组件发布与编译方法、存储介质、电子设备及系统 Download PDF

Info

Publication number
WO2019136842A1
WO2019136842A1 PCT/CN2018/081287 CN2018081287W WO2019136842A1 WO 2019136842 A1 WO2019136842 A1 WO 2019136842A1 CN 2018081287 W CN2018081287 W CN 2018081287W WO 2019136842 A1 WO2019136842 A1 WO 2019136842A1
Authority
WO
WIPO (PCT)
Prior art keywords
component
compiling
bridge
information
task
Prior art date
Application number
PCT/CN2018/081287
Other languages
English (en)
French (fr)
Inventor
张磊
张文明
陈少杰
Original Assignee
武汉斗鱼网络科技有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 武汉斗鱼网络科技有限公司 filed Critical 武汉斗鱼网络科技有限公司
Publication of WO2019136842A1 publication Critical patent/WO2019136842A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/40Transformation of program code
    • G06F8/41Compilation

Definitions

  • the present invention relates to the field of computer application technologies, and in particular, to a component publishing and compiling method, a storage medium, an electronic device, and a system.
  • the componentization platform is used in the componentization process of the live client.
  • the componentization platform is mainly used to publish components during the componentization process. Once the new component is released, the componentization platform needs to trigger the compilation platform to automatically package the new component and generate a corresponding new installation package file.
  • the prior art usually triggers the entire compilation process by releasing a new component package on the componentization platform, and then manually adjusting the compiled package version information to the new component package version information on the compilation platform, and then manually clicking the compile button on the compilation platform.
  • this manual triggering method has many defects, each time the user needs to switch between the two platforms, and the process of one-click publishing and automatic compilation cannot be performed.
  • the object of the present invention is to provide a component publishing and compiling method, a storage medium, an electronic device and a system, and effectively integrate the publishing platform and the compiling platform, thereby greatly improving work efficiency and reducing Labor costs.
  • the present invention discloses a component publishing and compiling method:
  • the bridge is used to obtain component information of the component to be released from the component publishing platform, and store the compiling task to be executed and the corresponding task information published by the component publishing platform, and send the compiling task to the compiling platform. After the compiling platform completes the compiling task, the compiled result is returned to the bridge, and the bridge notifies the user of the compiling result.
  • the bridge calculates the maximum number of compiled tasks M that can be submitted to the compiling server according to the CPU usage and memory usage of the compile server.
  • a compiling task queue is provided in the bridge, where the compiling task queue is used to store a compiling task to be executed and a corresponding task information published by the component publishing platform; the bridge compiles the compiler The first M compilation tasks and their corresponding task information in the task queue are submitted to the compilation server.
  • the component publishing platform acquires component information of the component to be released and verifies whether the branch information in the component information is correct, and sends the component information to the bridge after the verification succeeds.
  • the invention also discloses a storage medium on which a computer program is stored, characterized in that the computer program is implemented by a processor to implement a component publishing and compiling method.
  • the invention also discloses an electronic device comprising a memory and a processor, wherein the memory stores a computer program running on the processor, wherein the processor executes the component publishing and compiling method when executing the computer program.
  • the invention also discloses a component publishing and compiling system, which comprises a component publishing platform, a bridge and a compiling server, wherein:
  • a component publishing platform configured to acquire component information of a component to be released and send the component information to a bridge; and issue a compilation task to be executed and a corresponding task information to the bridge;
  • a bridge configured to acquire component information of the component to be released from the component publishing platform, and store the compiled task to be executed and the corresponding task information published by the component publishing platform, and send the compiling task to the compiling platform; receive the compiling server After the compiled result is returned, the user is notified of the compilation result;
  • the bridge is configured to calculate the maximum number of compiled tasks M that can be submitted to the compiling server according to the CPU usage and memory usage of the compile server.
  • a compiling task queue is provided in the bridge, where the compiling task queue is used to store a compiling task to be executed and a corresponding task information published by the component publishing platform; the bridge is used to The first M compilation tasks and their corresponding task information in the compilation task queue are submitted to the compilation server.
  • the component publishing platform is further configured to obtain component information of the component to be released and verify whether the branch information in the component information is correct, and send the component information to the bridge after the verification succeeds. .
  • the invention integrates the publishing platform and the compiling platform through the bridge, the bridge acquires component information of the component to be released from the component publishing platform, and stores the compiling task to be executed and the corresponding task information released by the component publishing platform, and compiles The task is sent to the compiling platform; after receiving the compiled result returned by the compiling server, the user is notified of the compiling result, so that there is no need to switch between the two platforms, automatic publishing and automatic compiling, greatly improving work efficiency and reducing manpower cost.
  • the bridge Before the bridge sends the compile server to the compile server, it requests the CPU usage and memory usage of the compile server, and then calculates the maximum number of compile tasks that the bridge can submit to the compile server according to the CPU usage and memory usage, avoiding the compiling platform.
  • the resource consumption is very high, new tasks are added, which leads to a decrease in the efficiency of the compilation platform, and in serious cases, the compilation platform may crash.
  • the branch information in the component information is verified, and the branch information failure is caused to cause the branch switching of the code to fail, thereby causing the entire code to fail to be built, thereby ensuring the security and stability of the component release and compilation. Sex.
  • FIG. 1 is a schematic flowchart of a component publishing and compiling method according to an embodiment of the present invention
  • FIG. 2 is a block diagram showing the connection of an electronic device in an embodiment of the present invention.
  • an embodiment of the present invention provides a component publishing and compiling method:
  • a bridge is set, the bridge is used to obtain component information of the component to be released from the component publishing platform, and store the compiling task to be executed and the corresponding task information published by the component publishing platform, and send the compiling task to the compiling platform;
  • the invention integrates the publishing platform and the compiling platform through the bridge, the bridge acquires component information of the component to be released from the component publishing platform, and stores the compiling task to be executed and the corresponding task information released by the component publishing platform, and compiles The task is sent to the compiling platform; after receiving the compiled result returned by the compiling server, the user is notified of the compiling result, so that there is no need to switch between the two platforms, automatic publishing and automatic compiling, greatly improving work efficiency and reducing manpower cost.
  • the component information includes a component name, component version information, release time information, branch information, request user information, and extended information bits.
  • the code corresponding to the component information is as follows:
  • time is the release time information
  • BranchName represents the branch name information of the component, which is used to indicate the branch related information of the component that needs to be released.
  • Extr represents the extension to information, which facilitates the upgrade of the later protocols.
  • the maximum number of compilation tasks M that can be submitted to the compile server is calculated according to the CPU usage and memory usage of the compile server.
  • the maximum number of compiled tasks M is calculated internally by the bridge based on a mapping relationship. The specific formula is shown in the following figure:
  • Count represents the maximum number of tasks that the current bridge can submit, that is, the maximum number of compiled tasks that can be submitted.
  • a indicates the CPU occupancy factor, which means that the CPU is more important in the overall impact environment. If the CPU is more important, then a is larger, and vice versa.
  • k represents an adjustment coefficient
  • the user scales the value of the above mapping relationship in equal proportions, mainly for controlling the magnitude range.
  • the compiling task queue is configured in the bridge, and the compiling task queue is used to store the compiling task to be executed and the corresponding task information published by the component publishing platform; the bridge compiles the first M compiling tasks and corresponding task information in the task queue. Submit to the build server.
  • the bridge of the present invention requests the CPU usage and memory usage of the compile server before sending the compile task to the compiling server, and then calculates the maximum number of compiling tasks that the bridge can submit to the compiling server according to the CPU usage and the memory usage rate, to avoid
  • the resource consumption of the compiling platform is very high, new tasks are added, which leads to a decrease in the efficiency of the compiling platform, and in serious cases, the compiling platform may crash.
  • the security and stability of component release and compilation are guaranteed.
  • the component publishing platform obtains the component information of the component to be released, it is necessary to verify whether the branch information in the component information is correct.
  • the component information is sent to the bridge when the test is successful.
  • the verification method is: obtaining all the branch information of the remote, and determining whether there is the same branch information as the branch information in the component information in all the branch information of the remote. That is, the remote branch git pull remote/branch is taken to obtain all the branch information of the remote, and then the filled branch information is compared with the remote branch information. If the branch information is found in the remote branch information set. , indicating that the branch information filled in is correct. Otherwise, the branch is incorrect. If you fill in the branch error, a dialog box will pop up to prompt the user, the branch error.
  • the component publishing platform verifies the branch information in the component information, and avoids the branch information failure, which causes the branch switching of the code to fail, thereby causing the entire code to fail to be built.
  • a second check will be performed, and a dialog box will pop up to let the user confirm whether the branch name is to be released. If the user clicks the confirmation to confirm the correctness of the branch and publish the operation, refill and confirm the branch information.
  • the notification system is designed in the bridge. After receiving the compilation result, the bridge will send the compilation result as an email, and the sent email will carry the confirmation attribute. Compile result: success will return the download address of apk, failure will return error stack information.
  • the email When it is found that the email has not been confirmed for a long time, it indicates that the user does not view the email. At this time, the second level notification function short message function of the bridge is triggered, and the compiled result information is notified to the user in the form of a short message. Large increases the probability that the bridge's notification message will be received.
  • the embodiment of the invention further discloses a storage medium on which a computer program is stored, characterized in that the computer program is implemented by the processor to implement a component publishing and compiling method.
  • an embodiment of the present invention further discloses an electronic device, including a memory and a processor, where the computer program stores a computer program running on the processor, wherein the component is released when the processor executes the computer program. And the compilation method.
  • the embodiment of the invention also discloses a component publishing and compiling system, comprising a component publishing platform, a bridge and a compiling server, wherein:
  • a component publishing platform configured to acquire component information of the component to be released and send the component information to the bridge; and issue the compiling task to be executed and the corresponding task information to the bridge;
  • a bridge configured to acquire component information of the component to be released from the component publishing platform, and store the compiled task to be executed and the corresponding task information published by the component publishing platform, and send the compiling task to the compiling platform; receive the compiling server After the compiled result is returned, the user is notified of the result of the compilation;
  • Compile the server which is used to execute the compile task submitted by the bridge and return the compilation result to the bridge.
  • the invention integrates the publishing platform and the compiling platform through the bridge, the bridge acquires component information of the component to be released from the component publishing platform, and stores the compiling task to be executed and the corresponding task information released by the component publishing platform, and compiles The task is sent to the compiling platform; after receiving the compiled result returned by the compiling server, the user is notified of the compiling result, so that there is no need to switch between the two platforms, automatic publishing and automatic compiling, greatly improving work efficiency and reducing manpower cost.
  • the bridge is used to calculate the maximum number of compiled tasks M that can be submitted to the compile server based on the CPU usage and memory usage of the compile server.
  • the compiling task queue is configured in the bridge, and the compiling task queue is used to store the compiling task to be executed and the corresponding task information published by the component publishing platform; the bridge is used to compile the first M compiling tasks and corresponding tasks in the compiling task queue. The information is submitted to the compile server.
  • the bridge Before the bridge sends the compile server to the compile server, it requests the CPU usage and memory usage of the compile server, and then calculates the maximum number of compile tasks that the bridge can submit to the compile server according to the CPU usage and memory usage, avoiding the compiling platform.
  • the resource consumption is very high, new tasks are added, which leads to a decrease in the efficiency of the compilation platform, and in serious cases, the compilation platform may crash.
  • the component publishing platform is also used to obtain component information of the component to be released and verify whether the branch information in the component information is correct, and then send the component information to the bridge after the verification is successful.
  • the component publishing platform verifies the branch information in the component information, and avoids the branch information failure, which causes the branch switching of the code to fail, thereby causing the entire code to fail to be built.
  • the notification system is designed in the bridge. After receiving the compilation result, the bridge will send the compilation result as an email, and the sent email will carry the confirmation attribute. Compile result: success will return the download address of apk, failure will return error stack information. When it is found that the email has not been confirmed for a long time, it indicates that the user does not view the email. At this time, the second level notification function short message function of the bridge is triggered, and the compiled result information is notified to the user in the form of a short message. Large increases the probability that the bridge's notification message will be received.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Software Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Stored Programmes (AREA)

Abstract

本发明公开了一种组件发布与编译方法、存储介质、电子设备及系统,涉及计算机应用技术领域,本发明通过桥接器将发布平台及编译平台进行整合,桥接器从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将编译结果通知用户,从而不需要在两个平台之间进行切换,实现自动发布并自动编译,极大的提高工作效率,降低人力成本。

Description

组件发布与编译方法、存储介质、电子设备及系统 技术领域
本发明涉及计算机应用技术领域,具体涉及一种组件发布与编译方法、存储介质、电子设备及系统。
背景技术
在直播客户端的组件化过程中会使用到组件化平台,组件化平台主要用于在组件化过程中对组件进行发布。一旦发布了新的组件,组件化平台需要触发编译平台自动对新的组件进行打包并生成对应的新的安装包文件。
现有技术通常通过在组件化平台发布新的组件包,然后在编译平台手动将编译的包版本信息调整为新的组件包版本信息,然后在编译平台上手动点击编译按钮来触发整个编译过程。传统方案中这种手动触发的方式存在很多的缺陷,每次需要用户在两个平台之间进行切换,无法做到一键发布并自动编译的流程。
发明内容
针对现有技术中存在的缺陷,本发明的目的在于提供一种组件发布与编译方法、存储介质、电子设备及系统,有效的将发布平台及编译平台进行整合,极大的提高工作效率,降低人力成本。
为达到以上目的,本发明采取的技术方案是:本发明公开了一种组件发布与编译方法:
设置一桥接器,所述桥接器用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应 的任务信息,并将编译任务发送给编译平台,编译平台完成编译任务后将编译结果返回给桥接器,所述桥接器将所述编译结果通知用户。
在上述技术方案的基础上,所述桥接器根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。
在上述技术方案的基础上,桥接器中设有编译任务队列,所述编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;所述桥接器将所述编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
在上述技术方案的基础上,所述组件发布平台获取待发布的组件的组件信息并校验所述组件信息中的分支信息是否正确,校验成功后再将所述组件信息发送至桥接器。
本发明还公开了一种存储介质,该存储介质上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现组件发布与编译方法。
本发明还公开了一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,其特征在于:处理器执行计算机程序时实现组件发布与编译方法。
本发明还公开了一种组件发布与编译系统,其特征在于:包括组件发布平台,桥接器和编译服务器,其中:
组件发布平台,其用于获取待发布的组件的组件信息并将所述组件信息发送至桥接器;向桥接器发布待执行的编译任务及其对应的任务信息;
桥接器,其用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将 所述编译结果通知用户;
编译服务器,其用于执行桥接器提交的编译任务并将编译结果返回给所述桥接器。
在上述技术方案的基础上,所述桥接器用于根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。
在上述技术方案的基础上,桥接器中设有编译任务队列,所述编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;所述桥接器用于将所述编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
在上述技术方案的基础上,组件发布平台还用于获取待发布的组件的组件信息并校验所述组件信息中的分支信息是否正确,校验成功后再将所述组件信息发送至桥接器。
与现有技术相比,本发明的优点在于:
本发明通过桥接器将发布平台及编译平台进行整合,桥接器从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将编译结果通知用户,从而不需要在两个平台之间进行切换,实现自动发布并自动编译,极大的提高工作效率,降低人力成本。
桥接器向编译服务器发送编译任务前先请求查询编译服务器的CPU使用率及内存使用率再根据CPU使用率及内存使用率计算桥接器可向编译服务器提交的最大编译任务数M,避免在编译平台的资源消耗非常高时增加新任务,导致编译平台的效率降低,严重的时候会导致编译平台死机的问题。
组件发布平台将组件信息发送至桥接器之前,校验组件信息中的分支信息,避免分支信息错误导致代码的分支切换失败,从而导致整个代码构建失败,保障了组件发布和编译的安全性和稳定性。
附图说明
图1为本发明实施例中组件发布与编译方法的流程示意图;
图2为本发明实施例中电子设备的连接框图。
具体实施方式
以下结合附图及实施例对本发明作进一步详细说明。
参见图1所示,本发明实施例提供一种组件发布与编译方法:
S1,设置一桥接器,桥接器用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;
S2,编译平台完成编译任务后将编译结果返回给桥接器;
S3,桥接器将编译结果通知用户。
本发明通过桥接器将发布平台及编译平台进行整合,桥接器从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将编译结果通知用户,从而不需要在两个平台之间进行切换,实现自动发布并自动编译,极大的提高工作效率,降低人力成本。
其中,组件信息包括组件名称、组件版本信息、发布时间信息、分支信息、请求用户信息和扩展信息位。组件信息对应的代码如下:
Figure PCTCN2018081287-appb-000001
Figure PCTCN2018081287-appb-000002
上述代码中,time是发布时间信息,BranchName表示的是组件的分支名称信息,该信息用于表明需要被发布的组件所在的分支相关信息。Extr表示的是扩展为信息,方便后期协议的升级使用。
桥接器将编译任务发送给编译平台之前,会根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。桥接器内部会根据一个映射关系来计算最大编译任务数M,具体的公式如下图所示:
Count=k*(a/cpuUsage+b/memUsage)
其中:
Count表示当前的桥接器可以提交的最大任务数量,也就是说能够提交的最大编译任务数。
a表示CPU占用因子,也就是说CPU在整个影响环境中的重要性占比,如果CPU越重要那么a就越大,反之则越小。
b表示的是内存的占用因子,也就是说内存在整个影响环境中的重要性占比,如果内存重要性越大,那么b越大,反之则越小。(本方案中只有cpu和内存的重要性,所以a+b=1)
k表示的是一个调节系数,用户将上述映射关系的值进行等比例的放大和缩小系数,主要是用于控制数量级范围使用的。
cpu或者内存的使用率越高,那么可以提交的任务数量就越低,反之则亦然。
桥接器中设有编译任务队列,编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;桥接器将编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
本发明的桥接器向编译服务器发送编译任务前先请求查询编译服务器的CPU使用率及内存使用率再根据CPU使用率及内存使用率计算桥接器可向编译服务器提交的最大编译任务数M,避免在编译平台的资源消耗非常高时增加新任务,导致编译平台的效率降低,严重的时候会导致编译平台死机的问题。
为了避免分支信息错误导致代码的分支切换失败,保障了组件发布和编译的安全性和稳定性,组件发布平台获取待发布的组件的组件信息时需校验组件信息中的分支信息是否正确,校验成功时才将组件信息发送至桥接器。
校验方法为:获取远程的所有分支信息,判断在远程的所有分支信息中是否存在与组件信息中的分支信息同样的分支信息。即主要是通过拉取远程的分支git pull remote/branch来获取远程的所有分支信息,然后将填写的分支信息与远程的分支信息进行对比,如果在远程分支信息集合中找到了所填写的分支信息,说明填写的分支信息是正确的。否则,填写的分支错误,如果填写分支错误会弹出一个对话框来提示用户,分支错误。组件发布平台校验组件信息中的分支信息,避免分支信息错误导致代码的分支切换失败,从而导致整个代码构建失败。
如果分支正确的情况下,会进行二次校验,弹出一个对话框让用户确认分支名称是否开始发布,如果用户点击确认说明确认分支的正确性并进行发布操作,否则重新填写并确认分支信息。
为了能够让用户及时的知道编译的状态信息,在桥接器中设计了 通知系统,桥接器在接收到编译结果后,会将编译结果以邮件的形式发送出去,并且发送的邮件会携带确认属性。编译结果:成功会返回apk的下载地址,失败会返回错误堆栈信息。
当发现邮件长时间没有被确认的时候,说明用户并没有查看该邮件,此时会触发桥接器的第二级的通知功能短信功能,会将编译的结果信息以短信的形式告知给用户,极大的提高了桥接器的通知消息被接收的概率。
本发明实施例还公开了一种存储介质,该存储介质上存储有计算机程序,其特征在于:计算机程序被处理器执行时实现组件发布与编译方法。
参见图2所示,本发明实施例还公开了一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,其特征在于:处理器执行计算机程序时实现组件发布与编译方法。
本发明实施例还公开了一种组件发布与编译系统,包括组件发布平台,桥接器和编译服务器,其中:
组件发布平台,其用于获取待发布的组件的组件信息并将组件信息发送至桥接器;向桥接器发布待执行的编译任务及其对应的任务信息;
桥接器,其用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将编译结果通知用户;
编译服务器,其用于执行桥接器提交的编译任务并将编译结果返回给桥接器。
本发明通过桥接器将发布平台及编译平台进行整合,桥接器从组 件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将编译结果通知用户,从而不需要在两个平台之间进行切换,实现自动发布并自动编译,极大的提高工作效率,降低人力成本。
桥接器用于根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。桥接器中设有编译任务队列,编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;桥接器用于将编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
桥接器向编译服务器发送编译任务前先请求查询编译服务器的CPU使用率及内存使用率再根据CPU使用率及内存使用率计算桥接器可向编译服务器提交的最大编译任务数M,避免在编译平台的资源消耗非常高时增加新任务,导致编译平台的效率降低,严重的时候会导致编译平台死机的问题。
组件发布平台还用于获取待发布的组件的组件信息并校验组件信息中的分支信息是否正确,校验成功后再将组件信息发送至桥接器。组件发布平台校验组件信息中的分支信息,避免分支信息错误导致代码的分支切换失败,从而导致整个代码构建失败。
为了能够让用户及时的知道编译的状态信息,在桥接器中设计了通知系统,桥接器在接收到编译结果后,会将编译结果以邮件的形式发送出去,并且发送的邮件会携带确认属性。编译结果:成功会返回apk的下载地址,失败会返回错误堆栈信息。当发现邮件长时间没有被确认的时候,说明用户并没有查看该邮件,此时会触发桥接器的第二级的通知功能短信功能,会将编译的结果信息以短信的形式告知给 用户,极大的提高了桥接器的通知消息被接收的概率。
本发明不局限于上述实施方式,对于本技术领域的普通技术人员来说,在不脱离本发明原理的前提下,还可以做出若干改进和润饰,这些改进和润饰也视为本发明的保护范围之内。本说明书中未作详细描述的内容属于本领域专业技术人员公知的现有技术。

Claims (10)

  1. 一种组件发布与编译方法,其特征在于:设置一桥接器,所述桥接器用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台,编译平台完成编译任务后将编译结果返回给桥接器,所述桥接器将所述编译结果通知用户。
  2. 如权利要求1所述的一种组件发布与编译方法,其特征在于:所述桥接器根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。
  3. 如权利要求2所述的一种组件发布与编译方法,其特征在于:所述桥接器中设有编译任务队列,所述编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;所述桥接器将所述编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
  4. 如权利要求1所述的一种组件发布与编译方法,其特征在于:所述组件发布平台获取待发布的组件的组件信息并校验所述组件信息中的分支信息是否正确,校验成功后再将所述组件信息发送至桥接器。
  5. 一种存储介质,该存储介质上存储有计算机程序,其特征在于:所述计算机程序被处理器执行时实现权利要求1至4任一项所述的方法。
  6. 一种电子设备,包括存储器和处理器,存储器上储存有在处理器上运行的计算机程序,其特征在于:处理器执行计算机程序时实现权利要求1至4任一项所述的方法。
  7. 一种组件发布与编译系统,其特征在于:包括组件发布平台, 桥接器和编译服务器,其中:
    组件发布平台用于获取待发布的组件的组件信息并将所述组件信息发送至桥接器;向桥接器发布待执行的编译任务及其对应的任务信息;
    桥接器用于从组件发布平台获取待发布组件的组件信息,并存储组件发布平台发布的待执行的编译任务及其对应的任务信息,并将编译任务发送给编译平台;收到编译服务器返回的编译结果后,将所述编译结果通知用户;
    编译服务器用于执行桥接器提交的编译任务并将编译结果返回给所述桥接器。
  8. 如权利要求7所述的一种组件发布与编译系统,其特征在于:所述桥接器用于根据编译服务器的CPU使用率及内存使用率计算可向编译服务器提交的最大编译任务数M。
  9. 如权利要求8所述的一种组件发布与编译系统,其特征在于:所述桥接器中设有编译任务队列,所述编译任务队列用于存储组件发布平台发布的待执行的编译任务及其对应的任务信息;所述桥接器用于将所述编译任务队列中前M个编译任务及其对应的任务信息提交至编译服务器。
  10. 如权利要求7所述的一种组件发布与编译系统,其特征在于:所述组件发布平台还用于获取待发布的组件的组件信息并校验所述组件信息中的分支信息是否正确,校验成功后再将所述组件信息发送至桥接器。
PCT/CN2018/081287 2018-01-09 2018-03-30 组件发布与编译方法、存储介质、电子设备及系统 WO2019136842A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201810019240.4 2018-01-09
CN201810019240.4A CN108255493B (zh) 2018-01-09 2018-01-09 组件发布与编译方法、存储介质、电子设备及系统

Publications (1)

Publication Number Publication Date
WO2019136842A1 true WO2019136842A1 (zh) 2019-07-18

Family

ID=62724881

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/081287 WO2019136842A1 (zh) 2018-01-09 2018-03-30 组件发布与编译方法、存储介质、电子设备及系统

Country Status (2)

Country Link
CN (1) CN108255493B (zh)
WO (1) WO2019136842A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416113A (zh) * 2021-12-30 2022-04-29 中国电信股份有限公司 一种基于容器化的数据发布系统、方法和装置

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880482A (zh) * 2012-08-06 2013-01-16 厦门市美亚柏科信息股份有限公司 一种主机批量控制虚拟机中软件自动升级的系统及技术方法
CN104462131A (zh) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 信息发布页面的处理方法及装置
CN105468427A (zh) * 2015-11-19 2016-04-06 深圳创维数字技术有限公司 一种自动编译和发布的实现方法及系统
US20170109142A1 (en) * 2015-10-19 2017-04-20 Cogitate Technology Solutions, Inc. System and method to build a mobile application
CN107015842A (zh) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 一种服务器端程序编译和发布的管理方法及系统

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100505689C (zh) * 2005-11-30 2009-06-24 中兴通讯股份有限公司 在异步传输模式的永久虚电路端口实现服务质量的方法
US9430470B2 (en) * 2010-05-26 2016-08-30 Content Catalyst Limited Automated report service tracking system and method
CN102521008B (zh) * 2011-12-28 2014-12-10 用友软件股份有限公司 程序编译装置和程序编译方法
JP2014010759A (ja) * 2012-07-02 2014-01-20 Toshiba Corp ブリッジ装置およびその方法、ストレージ装置、ならびにプログラム
US9378065B2 (en) * 2013-03-15 2016-06-28 Advanced Elemental Technologies, Inc. Purposeful computing
CN104077140B (zh) * 2014-07-04 2017-11-07 用友网络科技股份有限公司 用于持续集成的自动化编译方法和编译装置
CN104090763A (zh) * 2014-07-11 2014-10-08 携程计算机技术(上海)有限公司 编译发布方法及发布服务器
CN107168758A (zh) * 2017-04-12 2017-09-15 北京小米移动软件有限公司 多代码库的代码编译检查方法及装置
CN107247601B (zh) * 2017-07-04 2021-01-01 武汉斗鱼网络科技有限公司 开发流程优化方法、装置及存储介质
CN107547629B (zh) * 2017-07-20 2021-02-26 北京京东尚科信息技术有限公司 客户端静态资源下载的方法、装置、电子设备和可读介质

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102880482A (zh) * 2012-08-06 2013-01-16 厦门市美亚柏科信息股份有限公司 一种主机批量控制虚拟机中软件自动升级的系统及技术方法
CN104462131A (zh) * 2013-09-23 2015-03-25 阿里巴巴集团控股有限公司 信息发布页面的处理方法及装置
US20170109142A1 (en) * 2015-10-19 2017-04-20 Cogitate Technology Solutions, Inc. System and method to build a mobile application
CN105468427A (zh) * 2015-11-19 2016-04-06 深圳创维数字技术有限公司 一种自动编译和发布的实现方法及系统
CN107015842A (zh) * 2017-03-31 2017-08-04 武汉票据交易中心有限公司 一种服务器端程序编译和发布的管理方法及系统

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114416113A (zh) * 2021-12-30 2022-04-29 中国电信股份有限公司 一种基于容器化的数据发布系统、方法和装置

Also Published As

Publication number Publication date
CN108255493B (zh) 2021-04-23
CN108255493A (zh) 2018-07-06

Similar Documents

Publication Publication Date Title
US8381216B2 (en) Dynamic thread pool management
US10613853B2 (en) Updating software components through online stores
JP2020536318A5 (zh)
US6804773B1 (en) System and method for transferring information over a network
US11507417B2 (en) Job scheduling based on job execution history
US11363117B2 (en) Software-specific auto scaling
JP2019505056A5 (zh)
CN109710695B (zh) 事务请求有效性识别和发起方法、装置、设备和介质
KR20150119949A (ko) 클라이언트를 갱신하기 위한 방법 및 디바이스
CN106790167B (zh) 一种客户端注册方法及集中管理平台
US20170352115A1 (en) Mobile application licensing tool
US9043779B2 (en) Loading remote binaries onto a write-protected device
WO2012080262A1 (en) Software error code injection
Le et al. Towards formal verification of real-world SystemC TLM peripheral models-a case study
US9020856B2 (en) License compliance management
WO2019136842A1 (zh) 组件发布与编译方法、存储介质、电子设备及系统
CN106161082B (zh) 服务器uuid的设置方法、系统及基板管理控制器
CN111984520A (zh) 埋点测试方法、计算机设备及计算机可读存储介质
US10992733B1 (en) Workload management in hybrid clouds
US20150277892A1 (en) Multi-phase software delivery
CN110795441B (zh) 报表数据处理方法、装置、设备及存储介质
JP6659521B2 (ja) 検証システムおよび検証方法
CN111078485B (zh) 一种实训结果智能检测方法
TWI663509B (zh) 系統資訊管理方法
US20220334825A1 (en) Modular firmware update

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18900487

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18900487

Country of ref document: EP

Kind code of ref document: A1