CN115934500A - Pipeline construction method and device, computer equipment and storage medium - Google Patents

Pipeline construction method and device, computer equipment and storage medium Download PDF

Info

Publication number
CN115934500A
CN115934500A CN202210693528.6A CN202210693528A CN115934500A CN 115934500 A CN115934500 A CN 115934500A CN 202210693528 A CN202210693528 A CN 202210693528A CN 115934500 A CN115934500 A CN 115934500A
Authority
CN
China
Prior art keywords
flow
pipeline
item
items
task
Prior art date
Legal status (The legal status 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 status listed.)
Pending
Application number
CN202210693528.6A
Other languages
Chinese (zh)
Inventor
蔡雄
马坤
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Ping An Bank Co Ltd
Original Assignee
Ping An Bank Co Ltd
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 Ping An Bank Co Ltd filed Critical Ping An Bank Co Ltd
Priority to CN202210693528.6A priority Critical patent/CN115934500A/en
Publication of CN115934500A publication Critical patent/CN115934500A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Stored Programmes (AREA)

Abstract

The application relates to a pipeline construction method, a pipeline construction device, computer equipment and a storage medium. The method includes the steps of obtaining flow items of the pipeline task and configuration parameters of the pipeline task, configuring flow calling items based on item types of the flow items, generating pipeline codes of the pipeline task according to script codes of the flow items and the flow calling items, finally constructing a target pipeline corresponding to the pipeline task according to the configuration parameters and the pipeline codes of the flow items, achieving flexible configuration of the flow items of the pipeline task and the flow calling items corresponding to the flow items, automatically generating the target pipeline corresponding to the pipeline task based on the script codes of the flow items and the flow calling items, reducing time consumption of configuration of the pipeline, and improving efficiency.

Description

Pipeline construction method and device, computer equipment and storage medium
Technical Field
The present application relates to the field of computer software technologies, and in particular, to a method and an apparatus for constructing a pipeline, a computer device, and a computer-readable storage medium (storage medium for short).
Background
Version upgrades are often required during application software development to provide new functionality or to repair bugs. During version upgrade, research and development personnel often need to perform extraction and test on the upgraded application software version so as to perform a series of work such as packaging, testing, deployment and the like on different testing tasks of the application software. In the prior art, the pipeline is often configured to automatically complete the test task, but different application software or test tasks and different corresponding pipeline tasks lead to the need of frequent manual configuration of the pipeline by research and development personnel, which is long in time consumption and low in efficiency.
Disclosure of Invention
In view of the foregoing, it is necessary to provide a pipeline building method, apparatus, computer device and storage medium.
In a first aspect, the present application provides a pipeline construction method, including:
receiving a pipeline task construction instruction, wherein the pipeline task construction instruction comprises the extraction and measurement information;
analyzing the extracted information to obtain a flow item of the pipeline task and a configuration parameter of the pipeline task corresponding to the extracted information;
identifying the item type of the flow item, and configuring a flow calling item based on the item type of the flow item;
acquiring script codes of the flow items, and generating pipeline codes of the pipeline tasks according to the script codes of the flow items and the flow calling items;
and combining the configuration parameters and the flow line codes of the flow items to obtain a target flow line corresponding to the flow line task.
In some embodiments of the present application, analyzing the test information to obtain a flow item of a pipeline task corresponding to the test information includes:
screening a historical production line record matched with the extracted information according to the extracted information;
configuring basic flow items of the pipeline tasks based on historical pipeline records;
and editing the basic flow item to generate a flow item of the pipeline task.
In some embodiments of the present application, editing a basic flow item to generate a flow item of a pipeline task, including:
displaying a flow item editing page, wherein the flow item editing page comprises basic flow items of the pipeline task;
and responding to the editing operation acted on the flow item editing page, and editing the basic flow item to obtain the flow item of the pipeline task.
In some embodiments of the present application, configuring a process call item based on an item type of the process item includes:
acquiring development language information of the pipeline task according to the configuration parameters;
and screening the flow calling items matched with the development language information from the flow calling items of the project types of the flow items as the flow calling items of the flow items.
In some embodiments of the present application, screening, from the flow call items of the item types of the flow items, the flow call item matching the development language information as the flow call item of the flow item, includes:
displaying a flow calling item selection page, wherein the flow calling item selection page comprises a flow calling item matched with the development language information;
and responding to the selection operation acted on the flow calling item selection page, and determining the flow calling item of each flow item.
In some embodiments of the present application, the configuration parameters of the pipeline task include pipeline trigger information and handover object information;
combining the configuration parameters and the pipeline codes of the process items to obtain a target pipeline corresponding to the pipeline task, wherein the method comprises the following steps:
configuring a data input interface of the pipeline code according to the pipeline trigger information;
configuring a data output interface of the pipeline code according to the handover object information;
and constructing a target pipeline based on the pipeline code, the data input interface and the data output interface.
In some embodiments of the present application, after the combining the configuration parameters and the pipeline codes of the flow items to obtain the target pipeline corresponding to the pipeline task, the method further includes:
acquiring a sample extracting code, and running a target pipeline of a pipeline task based on the sample extracting code;
if the target pipeline fails to operate, acquiring a pipeline operation log, positioning a flow item failed to operate from the pipeline operation log, and displaying the flow item failed to operate through a user interface.
In a second aspect, the present application provides a pipeline building apparatus, including:
the extraction and measurement information acquisition module is used for receiving a pipeline task construction instruction, and the pipeline task construction instruction comprises extraction and measurement information
The flow item acquisition module is used for analyzing the extraction and measurement information to obtain a flow item of a pipeline task corresponding to the extraction and measurement information and configuration parameters of the pipeline task;
the calling item acquisition module is used for identifying the item type of the flow item and configuring a flow calling item based on the item type of the flow item;
the production line code generation module is used for acquiring the script codes of the flow items and generating the production line codes of the production line tasks according to the script codes of the flow items and the flow calling items;
and the pipeline task generating module is used for combining the configuration parameters and the pipeline codes of the flow items to obtain a target pipeline corresponding to the pipeline task.
In a third aspect, the present application further provides a computer device, comprising:
one or more processors; a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pipeline building method.
In a fourth aspect, the present application also provides a computer-readable storage medium having a computer program stored thereon, the computer program being loaded by a processor to perform the steps of the pipeline construction method.
In a fifth aspect, embodiments of the present application provide a computer program product or a computer program comprising computer instructions stored in a computer-readable storage medium. The processor of the computer device reads the computer instructions from the computer-readable storage medium, and executes the computer instructions, so that the computer device executes the method provided by the first aspect.
According to the pipeline construction method, the pipeline construction device, the computer equipment and the storage medium, the pipeline task construction instruction is received, and the pipeline task construction instruction comprises the extraction and measurement information; analyzing the extracted information to obtain a flow item of the pipeline task and a configuration parameter of the pipeline task corresponding to the extracted information; identifying the item type of the flow item, and configuring a flow calling item based on the item type of the flow item; acquiring script codes of the flow items, and generating pipeline codes of the pipeline tasks according to the script codes of the flow items and the flow calling items; the configuration parameters and the flow line codes of the flow items are combined to obtain a target flow line corresponding to the flow line task, the flow items of the flow line task and the flow calling items corresponding to the flow items are flexibly configured, the target flow line corresponding to the flow line task is automatically generated based on the script codes of the flow items and the flow calling items, time consumption for configuring the flow line is reduced, and efficiency is improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
FIG. 1 is a schematic view of a pipeline construction method in an embodiment of the present application;
FIG. 2 is a schematic flow chart of a pipeline construction method in an embodiment of the present application;
FIG. 3 is a schematic diagram of a visualization interface of flow items of a pipeline task in an embodiment of the application;
FIG. 4 is a flowchart illustrating a flow item obtaining step of a pipeline task in an embodiment of the present application;
FIG. 5 is a schematic diagram of a flow calling item selection page corresponding to a task building flow item in an embodiment of the present application;
FIG. 6 is a flowchart illustrating a target pipeline testing step in an embodiment of the present application;
FIG. 7 is a schematic structural diagram of a pipeline construction apparatus in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a computer device in an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
In the description of the present application, it is to be understood that the terms "first", "second" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implying any number of technical features indicated. Thus, features defined as "first" and "second" may explicitly or implicitly include one or more of the described features. In the description of the present application, "a plurality" means two or more unless specifically limited otherwise.
In the description of the present application, the word "such as" is used to mean "serving as an example, instance, or illustration. Any embodiment described herein as "for example" is not necessarily to be construed as preferred or advantageous over other embodiments. The following description is presented to enable any person skilled in the art to make and use the invention. In the following description, details are set forth for the purpose of explanation. It will be apparent to one of ordinary skill in the art that the present invention may be practiced without these specific details. In other instances, well-known structures and processes are not shown in detail to avoid obscuring the description of the invention with unnecessary detail. Thus, the present invention is not intended to be limited to the embodiments shown, but is to be accorded the widest scope consistent with the principles and features disclosed herein.
The pipeline construction method provided by the embodiment of the application can be applied to the computer device 100 shown in fig. 1. Wherein, the pipeline management platform 102 communicates with the background server 104 via a network. The pipeline management platform 102 may be, but is not limited to, various personal computers, notebook computers, smart phones, tablet computers, and portable wearable devices, and the background server 104 may be implemented by an independent server or a server cluster formed by a plurality of servers. Specifically, a software application developer may submit relevant information of the pipeline task, such as configuration parameters, to the background server 104 through the pipeline management platform 102, and after the background server 104 acquires the relevant information of the pipeline task, analyze the extracted information to obtain a flow item of the pipeline task and configuration parameters of the pipeline task, where the flow item corresponds to the extracted information; configuring a flow calling item based on the item type of the flow item, and generating a pipeline code of a pipeline task according to the script code of the flow item and the flow calling item; and combining the configuration parameters and the flow line codes of the flow items to obtain a target flow line corresponding to the flow line task. When a developer submits a new version of the software application for promotion, a target pipeline corresponding to the pipeline task can be triggered to be executed, and the new version can be tested.
Those skilled in the art will appreciate that the application environment shown in fig. 1 is only one application scenario related to the present application, and does not constitute a limitation to the application scenario of the present application, and that other application environments may further include more or less computer devices than those shown in fig. 1, for example, only 1 background server 104 is shown in fig. 1, and it is understood that the pipeline building system may further include one or more other servers, and is not limited herein. In addition, as shown in fig. 1, the pipeline building system may further include a memory for storing data, such as configuration parameters and flow call items of the pipeline task.
It should be further noted that the scenario diagram of the pipeline building system shown in fig. 1 is merely an example, and the pipeline building system and the scenario described in the embodiment of the present invention are for more clearly illustrating the technical solution of the embodiment of the present invention, and do not form a limitation on the technical solution provided in the embodiment of the present invention.
Referring to fig. 2, an embodiment of the present application provides a pipeline construction method, which is mainly illustrated by applying the method to the background server 104 in fig. 1, where the method includes steps S210 to S250, which are specifically as follows:
s210, receiving a pipeline task construction instruction, wherein the pipeline task construction instruction comprises the extraction and test information.
The test information is a requirement description of the test content, namely a requirement description of the pipeline task. In the process of developing the application software, after the application software is developed, in order to ensure that the application can normally run and use, the application software such as a code needs to be subjected to various tests, such as a functional test; different pipeline tasks may be constructed for different types of tests to implement the corresponding tests.
And S220, analyzing the test information to obtain the flow item of the pipeline task corresponding to the test information and the configuration parameters of the pipeline task.
The flow items refer to items executed according to a certain route and link sequence in the pipeline task, such as code submission, construction, deployment, testing to release, and the like. Specifically, the flow items include at least an automation test, a security coding rule scan, and a code static scan.
The configuration parameters of the pipeline task refer to necessary parameters for constructing the pipeline, such as information of a lifting object address, a triggering time, a construction environment, a triggering mode, a handover object and the like of the pipeline; more specifically, the test object address is used for providing a source basis of the source code, and the construction environment is used for providing a construction environment for selecting different versions of different languages or different construction tools; the handover object is used to specify an object address of an execution result of the reception pipeline.
Specifically, the extracted information is analyzed to obtain a flow item of the pipeline task and a configuration parameter of the pipeline task corresponding to the extracted information, a visual interface can be specifically set on the pipeline management platform, research and development personnel can realize clicking, modifying and other operations through the visual interface to realize the input of the flow item and the configuration parameter of the pipeline task, the pipeline management platform sends the flow item and the configuration parameter to the background server, as shown in fig. 3, fig. 3 shows a schematic diagram of the visual interface of the flow item of the pipeline task; or, research and development personnel can submit the extracted and tested information through the pipeline management platform, and the background server analyzes the extracted and tested information to obtain the process items and the configuration parameters.
In one embodiment, as shown in fig. 4, analyzing the test information to obtain a flow item of the pipeline task corresponding to the test information includes:
s410, screening historical pipeline records matched with the extracted information according to the extracted information;
s420, configuring basic flow items of the pipeline tasks based on the historical pipeline records;
and S430, editing the basic flow item to generate a flow item of the pipeline task.
The historical pipeline record is a pipeline deployment historical record, the historical lifting information of the software application has a corresponding historical pipeline record, the current lifting information and the historical lifting information can be compared, the historical lifting information which is the same as the current lifting information is determined in the historical lifting information, and the historical pipeline record corresponding to the same historical lifting information is determined to be the historical pipeline record matched with the lifting information.
Specifically, research and development personnel submit and submit the extraction and measurement information through the pipeline management platform, and the background server screens and analyzes the historical pipeline records matched with the extraction and measurement information according to the extraction and measurement information after acquiring the extraction and measurement information so as to extract common flow items with commonality in the historical pipeline records and configure the common flow items into basic flow items of pipeline tasks.
After the background server acquires the basic flow item of the pipeline task, the basic flow item can be directly used as the flow item of the pipeline task; and after a research and development worker inputs a flow item editing operation based on the visual interface, the background server edits and adjusts the basic flow item based on the flow item editing operation to generate a flow item of the pipeline task.
In one embodiment, editing a basic flow item to generate a flow item of a pipeline task, includes: displaying a flow item editing page, wherein the flow item editing page comprises basic flow items of the pipeline task; and responding to the editing operation acted on the flow item editing page, and editing the basic flow item to obtain the flow item of the pipeline task.
The process item editing page can be used as a visual interface and displayed to research and development personnel through a pipeline management platform. The process item editing operation refers to an operation input by a research and development worker through the pipeline management platform, and may include a process item deleting operation, a process item adding operation, a process item moving operation, and the like. Specifically, the flow item editing page further includes a plurality of controls such as a flow item deletion control, a flow item addition control, and a flow item editing control, as shown in fig. 3, the flow item editing page of fig. 3 further includes a flow item deletion control 310, a flow item addition control 320, and a flow item configuration control 330; and triggering the adjustment of the flow item on the basic flow item by receiving the editing operation acted on different controls in the flow item editing page so as to generate the flow item of the pipeline task.
And S230, identifying the item type of the flow item, and configuring a flow calling item based on the item type of the flow item.
The flow calling item refers to a plug-in or a program called when the task corresponding to the flow item is executed; for example, in the flow item of "code static scanning", the flow calling item can be configured as a Sonar platform, and a code analysis tool of the Sonar platform is called to perform code static scanning on source code when a pipeline task is executed. For another example, in the "build" flow item, the flow call item may be configured as a Maven build tool, and the Maven build tool is called to build the project when the pipeline task is executed.
Specifically, the flow calling item of the flow item may be determined according to the item type of the flow item; if the project type of the flow item corresponds to multiple flow calling items, a visual interface can also be set on the pipeline management platform, for example, a flow calling item selection page, the multiple flow calling items corresponding to the project type of the flow item are provided in an option manner, and then the flow calling item of the flow item is determined based on the selection operation of the visual interface acquisition research and development personnel.
S240, acquiring the script code of the flow item, and generating the pipeline code of the pipeline task according to the script code of the flow item and the flow calling item.
The script code of the flow item refers to a code for implementing a corresponding flow item, such as a construction code of an operating environment of the flow item, a calling code of a flow calling item corresponding to an item type of the flow item, and the like; the pipeline code of the pipeline task includes pipeline code of each flow item.
Specifically, after determining the flow item involved in the pipeline task, the flow calling item may be configured based on the item type of the flow item, and call information such as a call interface, a call function, and the like configuring the flow calling item is written into the script code of the flow item to generate the pipeline code of the pipeline task.
Further, in one embodiment, configuring the flow call item based on the item type of the flow item includes: acquiring development language information of the pipeline task according to the configuration parameters; and screening the flow calling items matched with the development language information from the flow calling items of the project types of the flow items as the flow calling items of the flow items.
The development language information is used for reflecting the construction environment of the pipeline task, and the flow calling items called by different development language information are different. After the development language information of the pipeline task is determined, the corresponding flow calling item can be matched based on the project type of the flow item and the development language information to serve as the flow calling item of the flow item.
In one embodiment, screening the flow calling items matched with the development language information from the flow calling items of the project types of the flow items as the flow calling items of the flow items comprises: displaying a process calling item selection page, wherein the process calling item selection page comprises process calling items matched with the development language information; and responding to the selection operation acted on the flow calling item selection page, and determining the flow calling item of each flow item.
The process calling item selection page refers to setting a visual interface on the pipeline management platform. After the configuration parameters of the pipeline task are obtained, the background server determines development language information of the pipeline task according to the configuration parameters, screens flow calling items matched with the development language information from flow calling items corresponding to all the flow items, and displays the screened flow calling items in a flow calling item selection page. After the selection operation acting on the flow calling item selection page is obtained, the background server determines the flow calling item of the flow item based on the selection operation information.
For example, when a developer clicks the flow item configuration control 330 for "building" a flow item in the visualization interface of the flow item of the pipeline task shown in fig. 3, and triggers the pop-up of the flow call item selection page 500 shown in fig. 5, at this time, the flow call item selection page includes a flow call item a, a flow call item B, and a flow call item C that match with the development language information, the developer can select the flow call item based on the flow call item selection page, and the background server determines the flow call item of the flow item based on the selection operation information.
And S250, combining the configuration parameters and the flow line codes of the flow items to obtain a target flow line corresponding to the flow line task.
After the pipeline codes of the process items are obtained, the process items can be combined to form a target pipeline corresponding to the pipeline task according to the execution sequence relation based on the configuration parameters and the pipeline codes of the process items. It is understood that the target pipeline is a whole set of pipelines for completing software extraction tasks, for example, the whole flow from pulling software source codes, compiling software source codes, packing compiling results to automatically testing packed packages.
In one embodiment, the configuration parameters of the pipeline task include pipeline trigger information and handover object information; the method for combining the configuration parameters and the flow line codes of the flow items to obtain a target flow line corresponding to the flow line task comprises the following steps: configuring a data input interface of the pipeline code according to the pipeline trigger information; configuring a data output interface of the pipeline code according to the handover object information; and constructing a target pipeline based on the pipeline code, the data input interface and the data output interface.
The data input interface can be generated based on the address of the object to be extracted, and the object to be extracted can be fetched through the data input interface, such as the code of application software; the data output interface may be generated based on an address of the handover object, and the execution result of the pipeline may be submitted to the handover object through the data input interface.
Specifically, as described above, the pipeline code of the flow item is a script code for implementing a certain step in the pipeline task, and after the pipeline code of each flow item in the pipeline task is obtained, the data input interface of the pipeline code and the data output interface of the pipeline code may be determined based on the configuration parameters of the pipeline task, and then each flow item is combined to form the full flow of the pipeline task according to the data input interface, the data output interface and the pipeline code of the flow item, so as to implement the target pipeline for configuring the full flow of the pipeline task.
According to the method for constructing the assembly line, the flow item of the assembly line task and the configuration parameter of the assembly line task corresponding to the extraction information are obtained by analyzing the extraction information, the flow calling item is configured based on the item type of the flow item, the assembly line code of the assembly line task is generated according to the script code of the flow item and the flow calling item, and finally the configuration parameter and the assembly line code of the flow item are combined to obtain the target assembly line corresponding to the assembly line task, so that the flow item of the assembly line task and the flow calling item corresponding to each flow item are flexibly configured, the target assembly line corresponding to the assembly line task is automatically generated based on the script code of the flow item and the flow calling item, the time consumption of the assembly line is reduced, and the efficiency is improved.
In an embodiment, as shown in fig. 6, after the combining the configuration parameters and the pipeline codes of the flow items to obtain the target pipeline corresponding to the pipeline task, the method further includes:
s610, obtaining a sample code to be extracted, and running a target pipeline of a pipeline task based on the sample code to be extracted;
s620, if the target pipeline fails to operate, acquiring a pipeline operation log, positioning the flow item which fails to operate from the pipeline operation log, and displaying the flow item which fails to operate through a user interface.
After the target pipeline corresponding to the pipeline task is obtained, the extraction sample code can be obtained, and the target pipeline is tested, so that the condition of operation failure after the target pipeline is on line is reduced.
Specifically, the sample code to be extracted may be input as a source code into a target pipeline corresponding to the pipeline task, the target pipeline is executed, and the sample code to be extracted is processed through an item call item called by each flow item in the target pipeline, where a pipeline operation log is further generated in the process of processing the sample code to be extracted.
In the process of running the target pipeline, if operation failure occurs, for example, pipeline code execution failure of the target pipeline, sample code compilation failure extraction and the like, the pipeline running log can be called, the reason of the running failure is analyzed from the pipeline running log, and the flow item of the running failure is positioned. After the failed operation flow item is obtained, the failed operation flow item can be displayed through a user interface, and technicians are instructed to repair the failed operation flow item.
Further, in an embodiment, after identifying the flow node on the display interface, the method further includes: in response to the rerun instruction, the target pipeline of the pipeline task is executed starting with the flow item that failed to run.
After the technician repairs the flow item which fails to operate, the target flow line of the flow line task can be executed from the flow item which fails to operate, so that the test time of the target flow line is shortened, and the test efficiency is improved.
In order to better implement the pipeline construction method provided in the embodiment of the present application, on the basis of the pipeline construction method provided in the embodiment of the present application, an embodiment of the present application further provides a pipeline construction apparatus, as shown in fig. 7, the pipeline construction apparatus 700 includes:
a fetch information obtaining module 710 for receiving a pipeline task construction instruction, where the pipeline task construction instruction includes fetch information
The flow item acquisition module 720 is configured to analyze the extraction information to obtain a flow item of the pipeline task and a configuration parameter of the pipeline task, where the flow item corresponds to the extraction information;
a calling item obtaining module 730, configured to identify an item type of the flow item, and configure a flow calling item based on the item type of the flow item;
the pipeline code generating module 740 is configured to obtain a script code of the flow item, and generate a pipeline code of the pipeline task according to the script code of the flow item and the flow call item;
and the pipeline task generating module 750 is configured to combine the configuration parameters and the pipeline codes of the flow items to obtain a target pipeline corresponding to the pipeline task.
In some embodiments of the present application, the flow item obtaining module 720 is specifically configured to filter, according to the extracted information, a historical pipeline record matched with the extracted information; configuring basic flow items of the pipeline tasks based on historical pipeline records; and editing the basic flow item to generate a flow item of the pipeline task.
In some embodiments of the present application, the flow item obtaining module 720 is specifically configured to display a flow item editing page, where the flow item editing page includes a basic flow item of a pipeline task; and responding to the editing operation acted on the flow item editing page, and editing the basic flow item to obtain the flow item of the assembly line task.
In some embodiments of the present application, the calling item obtaining module 730 is specifically configured to obtain development language information of the pipeline task according to the configuration parameter; and screening the flow calling items matched with the development language information from the flow calling items of the project types of the flow items as the flow calling items of the flow items.
In some embodiments of the present application, the calling item obtaining module 730 is specifically configured to display a flow calling item selection page, where the flow calling item selection page includes a flow calling item matched with the development language information; and responding to the selection operation acted on the flow calling item selection page, and determining the flow calling item of each flow item.
In some embodiments of the present application, the configuration parameters of the pipeline task include pipeline trigger information and handover object information; the pipeline task generating module 750 is specifically configured to configure a data input interface of the pipeline code according to the pipeline trigger information; configuring a data output interface of the pipeline code according to the handover object information; and constructing a target pipeline based on the pipeline code, the data input interface and the data output interface.
In some embodiments of the present application, the pipeline constructing apparatus 700 further includes a pipeline testing module, where the pipeline testing module is specifically configured to obtain the extracted sample code, and run a target pipeline of the pipeline task based on the extracted sample code; and when the target pipeline fails to operate, acquiring a pipeline operation log, positioning the flow item failed to operate from the pipeline operation log, and displaying the flow item failed to operate through a user interface.
According to the assembly line construction device, the flow item of the assembly line task and the configuration parameter of the assembly line task corresponding to the extracted information are obtained by analyzing the extracted information, the flow calling item is configured based on the item type of the flow item, the assembly line code of the assembly line task is generated according to the script code of the flow item and the flow calling item, and finally the configuration parameter and the assembly line code of the flow item are combined to obtain the target assembly line corresponding to the assembly line task, so that the flow item of the assembly line task and the flow calling item corresponding to each flow item are flexibly configured, the target assembly line corresponding to the assembly line task is automatically generated based on the script code of the flow item and the flow calling item, the time consumption of the assembly line is reduced, and the efficiency is improved.
In some embodiments of the present application, pipeline building apparatus 700 may be implemented in the form of a computer program that is executable on a computer device such as that shown in FIG. 8. The memory of the computer device may store various program modules constituting the pipeline construction apparatus 700, such as the provision information acquisition module 710, the flow item acquisition module 720, the call item acquisition module 730, the pipeline code generation module 740, and the pipeline task generation module 750 shown in fig. 7. The computer program constituted by the respective program modules causes the processor to execute the steps in the pipeline construction method of the embodiments of the present application described in the present specification.
For example, the computer device shown in fig. 8 may execute step S210 by the provision information acquisition module 710 in the pipeline construction apparatus 700 shown in fig. 7. The computer device may perform step S220 through the flow item acquisition module 720. The computer device may perform step S230 by calling the item acquisition module 730. The computer apparatus may perform step S240 through the pipeline code generation module 740. The computer device may perform step S250 through the pipeline task generation module 750. The computer device includes a processor, a memory, and a network interface connected by a system bus. Wherein the processor of the computer device is configured to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system and a computer program. The internal memory provides an environment for the operating system and the computer program to run on the non-volatile storage medium. The network interface of the computer device is used for communicating with an external computer device through a network connection. The computer program is executed by a processor to implement a pipeline construction method.
Those skilled in the art will appreciate that the architecture shown in fig. 7 is merely a block diagram of some of the structures associated with the disclosed aspects and is not intended to limit the computing devices to which the disclosed aspects apply, as particular computing devices may include more or less components than those shown, or may combine certain components, or have a different arrangement of components.
In some embodiments of the present application, there is provided a computer device comprising one or more processors; a memory; and one or more application programs, wherein the one or more application programs are stored in the memory and configured to be executed by the processor to perform the steps of the above pipeline building method. Here, the steps of the pipeline construction method may be steps in the pipeline construction methods of the above-described respective embodiments.
In some embodiments of the present application, a computer-readable storage medium is provided, in which a computer program is stored, and the computer program is loaded by a processor, so that the processor executes the steps of the pipeline construction method. Here, the steps of the pipeline building method may be steps in the pipeline building methods of the above-described embodiments.
It will be understood by those of ordinary skill in the art that all or part of the processes of the methods of the embodiments described above can be implemented by a computer program, which can be stored in a non-volatile computer-readable storage medium, and can include the processes of the embodiments of the methods described above when executed. Any reference to memory, storage, database or other medium used in the embodiments provided herein can include at least one of non-volatile and volatile memory. Non-volatile Memory may include Read-Only Memory (ROM), magnetic tape, floppy disk, flash Memory, optical Memory, or the like. Volatile Memory can include Random Access Memory (RAM) or external cache Memory. By way of illustration and not limitation, RAM can take many forms, such as Static Random Access Memory (SRAM) or Dynamic Random Access Memory (DRAM).
The technical features of the above embodiments can be arbitrarily combined, and for the sake of brevity, all possible combinations of the technical features in the above embodiments are not described, but should be considered as the scope of the present specification as long as there is no contradiction between the combinations of the technical features.
The method, the apparatus, the computer device, and the storage medium for constructing the pipeline provided in the embodiments of the present application are described in detail above, and a specific example is applied in the present application to explain the principle and the implementation of the present invention, and the description of the above embodiments is only used to help understanding the method and the core idea of the present invention; meanwhile, for those skilled in the art, according to the idea of the present invention, the specific embodiments and the application range may be changed, and in summary, the content of the present specification should not be construed as limiting the present invention.

Claims (10)

1. A method of pipeline construction, the method comprising:
receiving a pipeline task construction instruction, wherein the pipeline task construction instruction comprises extraction and measurement information;
analyzing the extracted information to obtain a flow item of the pipeline task corresponding to the extracted information and a configuration parameter of the pipeline task;
identifying the item type of the flow item, and configuring a flow calling item based on the item type of the flow item;
acquiring script codes of the flow items, and generating pipeline codes of pipeline tasks according to the script codes of the flow items and the flow calling items;
and combining the configuration parameters and the flow line codes of the flow items to obtain a target flow line corresponding to the flow line task.
2. The method of claim 1, wherein analyzing the test information to obtain a flow item of a pipeline task corresponding to the test information comprises:
screening historical production line records matched with the test information according to the test information;
configuring basic flow items of the pipeline tasks based on the historical pipeline records;
and editing the basic flow item to generate the flow item of the pipeline task.
3. The method of claim 2, wherein the performing a flow item edit on the base flow item to generate a flow item of the pipeline task comprises:
displaying a flow item editing page, wherein the flow item editing page comprises basic flow items of the pipeline task;
and responding to the editing operation acted on the flow item editing page, and editing the basic flow item to obtain the flow item of the pipeline task.
4. The method of claim 1, wherein configuring the flow call item based on the item type of the flow item comprises:
acquiring development language information of the pipeline task according to the configuration parameters;
and screening the flow calling items matched with the development language information from the flow calling items of the project types of the flow items as the flow calling items of the flow items.
5. The method according to claim 4, wherein the filtering, from the flow call items of the item types of the flow item, the flow call item matching the development language information as the flow call item of the flow item comprises:
displaying a flow calling item selection page, wherein the flow calling item selection page comprises a flow calling item matched with the development language information;
and responding to the selection operation acted on the flow calling item selection page, and determining the flow calling item of each flow item.
6. The method of claim 1, wherein the configuration parameters of the pipeline task include pipeline trigger information and handover object information;
the step of combining the configuration parameters and the pipeline codes of the process items to obtain a target pipeline corresponding to the pipeline task includes:
configuring a data input interface of the pipeline code according to the pipeline trigger information;
configuring a data output interface of the pipeline code according to the handover object information;
constructing the target pipeline based on the pipeline code, the data input interface, and the data output interface.
7. The method of claim 1, wherein after the combining the configuration parameters and the pipeline codes of the flow items to obtain the target pipeline corresponding to the pipeline task, the method further comprises:
acquiring a sample extracting code, and running a target pipeline of the pipeline task based on the sample extracting code;
if the target pipeline fails to operate, acquiring a pipeline operation log, positioning the flow item failed to operate from the pipeline operation log, and displaying the flow item failed to operate through a user interface.
8. A pipeline building apparatus, the apparatus comprising:
a test information acquisition module for receiving a pipeline task construction instruction including test information
The flow item acquisition module is used for analyzing the extraction and measurement information to obtain a flow item of a pipeline task corresponding to the extraction and measurement information and configuration parameters of the pipeline task;
the calling item acquisition module is used for identifying the item type of the flow item and configuring a flow calling item based on the item type of the flow item;
the production line code generation module is used for acquiring the script codes of the flow items and generating the production line codes of the production line tasks according to the script codes of the flow items and the flow calling items;
and the pipeline task generating module is used for combining the configuration parameters and the pipeline codes of the flow items to obtain a target pipeline corresponding to the pipeline task.
9. A computer device, characterized in that the computer device comprises:
one or more processors;
a memory; and one or more applications, wherein the one or more applications are stored in the memory and configured to be executed by the processor to implement the pipeline building method of any of claims 1-7.
10. A computer-readable storage medium, having stored thereon a computer program which is loaded by a processor to perform the steps of the pipeline building method according to any one of claims 1 to 7.
CN202210693528.6A 2022-06-17 2022-06-17 Pipeline construction method and device, computer equipment and storage medium Pending CN115934500A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210693528.6A CN115934500A (en) 2022-06-17 2022-06-17 Pipeline construction method and device, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210693528.6A CN115934500A (en) 2022-06-17 2022-06-17 Pipeline construction method and device, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN115934500A true CN115934500A (en) 2023-04-07

Family

ID=86653113

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210693528.6A Pending CN115934500A (en) 2022-06-17 2022-06-17 Pipeline construction method and device, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN115934500A (en)

Similar Documents

Publication Publication Date Title
EP0785510B1 (en) Program debugging system for debugging a program having a graphical user interface
US9898387B2 (en) Development tools for logging and analyzing software bugs
CN108319460B (en) Method and device for generating application program installation package, electronic equipment and storage medium
CN111679965A (en) Automatic testing method and device, computer equipment and storage medium
CN110825619A (en) Automatic generation method and device of interface test case and storage medium
CN112685035A (en) Project development method and device, computer-readable storage medium and electronic device
CN113127347A (en) Interface testing method, device, equipment and readable storage medium
US8661414B2 (en) Method and system for testing an order management system
CN111897727A (en) Software testing method and device, computer equipment and storage medium
CN103186463B (en) Determine the method and system of the test specification of software
CN115658529A (en) Automatic testing method for user page and related equipment
CN114297056A (en) Automatic testing method and system
CN112231206A (en) Script editing method for application program test, computer readable storage medium and test platform
CN113742215B (en) Method and system for automatically configuring and calling test tool to perform test analysis
CN113094252A (en) Test case generation method and device, computer equipment and storage medium
CN111831554B (en) Code checking method and device
CN113742224A (en) Test system, method, device, computer equipment and storage medium
CN112988578A (en) Automatic testing method and device
CN110806891B (en) Method and device for generating software version of embedded device
CN116719736A (en) Test case generation method and device for testing software interface
US9710360B2 (en) Optimizing error parsing in an integrated development environment
CN115934500A (en) Pipeline construction method and device, computer equipment and storage medium
CN113986263A (en) Code automation test method, device, electronic equipment and storage medium
CN115705187A (en) Item dependency relationship display method and device, terminal equipment and storage medium
CN113220586A (en) Automatic interface pressure test execution method, device and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination