Software continuous integration method, device and system

A continuous integration and software technology, applied in transmission systems, multi-programming devices, electrical components, etc., can solve problems such as low resource utilization and low CI agent resource sharing

Inactive Publication Date: 2011-01-26
HUAWEI TECH CO LTD
View PDF3 Cites 11 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] In the existing continuous integration system, since the types of CI tasks that the CI agents are responsible for executing are fixed, the CI master can only deliver fixed CI tasks to the corresponding CI agents, and there is no possibility of selection, so the sharing of CI agent resources Low level, low resource utilization

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Software continuous integration method, device and system
  • Software continuous integration method, device and system
  • Software continuous integration method, device and system

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0028] Such as figure 2 As shown, the embodiment of the present invention provides a method for continuous software integration, the method includes the following steps:

[0029] S101: Receive the CI subtask sent by the CI master;

[0030] S102: According to the online communication status of at least two CI agents in the currently managed CI agent resource pool, and the idle status of computing resources of the at least two CI agents, determine to execute the current executable subtask in at least one CI subtask currently managed The task is a target CI agent, and the current executable subtask is sent to the target CI agent, so that the target CI agent executes the executable subtask, and the at least two CI agents are general computing units.

[0031] In this embodiment, the currently executable subtask in at least one currently managed CI subtask may be the currently received CI subtask, or a previously received CI subtask.

[0032] It can be seen that in this embodimen...

Embodiment 2

[0034] Such as image 3 As shown, the embodiment of the present invention provides a method for continuous software integration, the method includes the following steps:

[0035] S201: The CI management machine receives the registration request sent by the CI master and the CI agent;

[0036] Specifically, when the CI master and the CI agent are started, they send a registration request to the CI management machine in the form of a heartbeat, and establish a communication connection with the CI management machine. A CI composed of all CI agents registered with it will be generated in the CI management machine. Agent resource pool, the CI agent in the resource pool is a common computing unit.

[0037] Wherein, the request information of the registration request sent by the CI master includes the subtask dependencies between the CI masters and the CI agent type specified by it, and different types of CI agents can support different operating systems and special CI tasks.

[00...

Embodiment 3

[0090] Such as Figure 4 As shown, the embodiment of the present invention also provides a method for continuous software integration, which includes the following steps:

[0091] Steps S301-S304 are the same as S201-S204 in Embodiment 3, see Embodiment 3 for details, and will not be repeated here.

[0092] S305: The CI master control sends a request for acquiring the weight of idle computing resources to the CI management machine;

[0093] S306: The CI management machine responds to the acquisition request, and sends the idle computing resource weight to the CI master;

[0094] Specifically, when the CI agents in the CI agent resource pool currently managed by the CI management machine are all in the online communication state, according to the idle status query responses returned by the at least two CI agents, obtain the idle computing resources of at least two CI agents. State: generating idle computing resource weights of the at least two CI agents according to the idle ...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention discloses a software continuous integration method, comprising the following steps: receiving and managing a CI subtask sent by a CI main control; determining the target CI agency of the current executable subtask in at least one CI subtask which executes the current managing according to the on-line communication states of at least two CI agencies in the current-managed CI agency resource pool and the computing resource idle states of the at least two CI agencies; sending the current executable subtask to the target CI agency; and performing the executable subtask by utilizing the target CI agency, wherein the at least two CI agencies are general computing units. The invention also discloses a software continuous integration device, comprising an executable subtask receiving module and a target CI agency determining module. The device of the invention enhances the selection of the CI agencies to execute the CI subtask through sending the executable subtask to the target CI agency of the general computing units. A dynamic registration mechanism is utilized for the communication among the devices of the system so as to achieve the dynamic hot plug and the horizontal expansion of the CI main control and the CI agencies, thereby effectively enhancing the expansibility of the system.

Description

technical field [0001] The invention relates to the technical field of continuous integration, in particular to a method, device and system for continuous integration of software. Background technique [0002] CI (Continuous Integration) is an automated software creation and testing process. In a software development project, the CI system decomposes each CI task into multiple CI subtasks, such as decomposing a CI task for a certain software into CI subtasks such as obtaining the latest code, compiling code, packaging, publishing, installation, automatic testing, quality inspection and data measurement, etc., through continuous execution of CI subtasks, software defects can be found as early as possible and repaired. It can be seen that the pros and cons of different CI systems can have different impacts on software development efficiency and investment costs. [0003] Existing CI systems such as figure 1 As shown, it is mainly composed of a CI master and a CI agent. The m...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
Patent Type & Authority Applications(China)
IPC IPC(8): G06F9/46G06F9/50H04L29/06
CPCG06F9/5055
Inventor 王佥孙达
Owner HUAWEI TECH CO LTD
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products