Unlock instant, AI-driven research and patent intelligence for your innovation.

Code submitting method and device and electronic equipment

A code and code library technology, applied in the fields of code submission methods, devices and electronic equipment, can solve problems such as prolonging the online cycle of the developed software, merging error codes, and substandard codes of the main code

Pending Publication Date: 2020-07-07
ALIBABA CLOUD COMPUTING LTD
View PDF0 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

When multiple people are required to collaborate to submit code on the same code branch, due to the difference in the developer's local development environment, wrong code merging, and lax verification process and other artificial or objective environmental problems, it may cause the main branch after submitting the code. The code introduces code that does not meet the standards, and it takes a long time to perform an integrated function test on the merged main code. After the test passes, it can be released online, which prolongs the online cycle of the developed software
[0003] Although, in a scheme such as gitlab's merge request, code review (such as code review) is allowed before code merging, but the review content is mainly aimed at conflict verification in code content merging, and it still cannot avoid the main code caused by code submission Introduced the problem of integrating substandard code

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
  • Code submitting method and device and electronic equipment
  • Code submitting method and device and electronic equipment
  • Code submitting method and device and electronic equipment

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0051] Based on the solution idea submitted by the above code, such as figure 2 As shown, it is the flow of the code submission method shown in the embodiment of the present invention Figure 1 , which can be accessed via figure 1 The dispatch shown in Distributor Coordinates Execution Completion. Such as figure 2 As shown, the code submission method includes the following steps:

[0052] S210. Obtain the incremental code to be submitted to the specified code branch of the code base.

[0053] After the developer generates incremental code for the function update on a code branch in the code base in the local development environment, he can submit the incremental code to the corresponding code branch of the code base to realize branch merging.

[0054] Among them, the incremental code can generally refer to any functional type of code to be submitted to the code branch, and the following will use the patch as an example to illustrate the incremental code.

[0055] S220, ...

Embodiment 2

[0065] The method steps shown in this embodiment can be regarded as an expansion of the program in the pre-verification phase of the incremental code, mainly after the pre-verification is passed, to generate verification information and perform some associated settings, so as to facilitate the subsequent code submission phase. Safely and smoothly submit the incremental code to the specified code branch.

[0066] First, if image 3 Shown is the process flow of the processing method in the pre-verification stage of the embodiment of the present invention Figure 1 . On the basis of the method shown in the first embodiment, after the incremental code has passed the pre-verification, verification information required in the stage of generating and submitting the code is also included. Such as image 3 As shown, after step S220, the following steps can also be performed:

[0067] S310. If the pre-verification is passed, generate verification information for submitting the incre...

Embodiment 3

[0086] The method steps shown in this embodiment can be regarded as the refinement of the scheme for the code submission phase of the incremental code, mainly based on the expansion of the execution content of the pre-verification phase shown in Embodiment 2, and the corresponding implementation of the code submission phase The corresponding execution process is described in detail.

[0087] First, if Figure 5 As shown, it is the processing method flow of the code submission stage of the embodiment of the present invention Figure 1 . exist image 3 On the basis of the method shown, this embodiment refines the submission process of the incremental code. Such as Figure 5 As shown, the above step S230 may include performing the following steps:

[0088] S510. Receive a submission request of the incremental code that has passed the pre-authentication, and the submission request carries a verification token.

[0089] Developers who submit patches in the pre-verification st...

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 embodiment of the invention provides a code submitting method and device and electronic equipment, and the method comprises: obtaining an incremental code to be submitted to a specified code branch of a code library; performing pre-verification on the incremental code, the pre-verification including combining a baseline code in the current code library with the incremental code, and performingan integration function test on the combined code through a preset test set code; and submitting the incremental code passing the pre-verification to a specified code branch of the code library. According to the scheme of the embodiment of the invention, the code subjected to the integration function test is submitted to the target code branch, so that the problem that the integration function quality of the main code does not reach the standard after the code is submitted is avoided, and the main code is in a deliverable state at any time.

Description

technical field [0001] The present application relates to the field of communication technologies, and in particular to a code submission method, device and electronic equipment. Background technique [0002] At present, in the process of software development, generally multiple project teams develop in parallel on the same project. After the development is completed, the branch code needs to be merged into the main code. When multiple people are required to collaborate to submit code on the same code branch, due to the difference in the developer's local development environment, wrong code merging, and lax verification process and other artificial or objective environmental problems, it may cause the main branch after submitting the code. The code introduces code that does not meet the standards, and it takes a long time to perform an integrated function test on the merged backbone code. Only after the test passes can it be released and launched, which prolongs the launch c...

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
IPC IPC(8): G06F11/36
CPCG06F11/3608G06F11/3668
Inventor 吕琳
Owner ALIBABA CLOUD COMPUTING LTD