CN107315687A - Code method for automatically releasing - Google Patents

Code method for automatically releasing Download PDF

Info

Publication number
CN107315687A
CN107315687A CN201710517730.2A CN201710517730A CN107315687A CN 107315687 A CN107315687 A CN 107315687A CN 201710517730 A CN201710517730 A CN 201710517730A CN 107315687 A CN107315687 A CN 107315687A
Authority
CN
China
Prior art keywords
code
released
server
test
publisher server
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
CN201710517730.2A
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.)
Universal Wisdom Technology Beijing Co Ltd
Original Assignee
Universal Wisdom Technology Beijing 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 Universal Wisdom Technology Beijing Co Ltd filed Critical Universal Wisdom Technology Beijing Co Ltd
Priority to CN201710517730.2A priority Critical patent/CN107315687A/en
Publication of CN107315687A publication Critical patent/CN107315687A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/36Preventing errors by testing or debugging software
    • G06F11/3668Software testing
    • G06F11/3672Test management
    • G06F11/3688Test management for test execution, e.g. scheduling of test suites
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/60Software deployment
    • G06F8/65Updates
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Abstract

The present embodiments relate to a kind of code method for automatically releasing, methods described includes treating release code progress local test, if the code to be released meets the first test request, the code to be released is sent into version server;Version server is tested the code to be released under the test environment, if meeting the second test request, and the code to be released is committed into pre- publisher server;The pre- publisher server is tested the code to be released, and the code to be released is sent into code publisher server if the 3rd test request is met;Code synchronisation to be released to aol server is generated release code by the code publisher server.Code method for automatically releasing provided in an embodiment of the present invention is compared and upgraded to item code, the quick and stable upgrading of realization, improves operating efficiency, reduces error caused by manually operated.

Description

Code method for automatically releasing
Technical field
The present invention relates to field of computer technology, more particularly to a kind of code method for automatically releasing.
Background technology
With the growth of corporate business, the platform of company is more and more, current nearly 20 platforms, increasing platform The code upgrade of platform is caused to work more heavy and inefficient, artificial operation and easily error, based on this reason, automatically Change code upgrade demand is more and more urgent, so carrying out writing for this programme.The characteristics of having oneself because of each company, it is most of Company is to carry out self-developing by the business demand of oneself, so general third party software is few in the market, at present Upgrade on similar software such as Wa l l e lines deployment software.Prior art using cumbersome, disposes efficiency low at present, it is impossible to Batch modification prepares file, does not form a complete closed loop.
In internet industry, do service end exploitation engineer program development is finished after, it is necessary to by program code or Person's compiling result, which is deployed on server, to be run, and could indirectly provide the user service, and this process is referred to as code issue.Should With being to write code file by programming personnel to constitute, demand becomes with greater need for code file is changed, the file changed more Server is newly arrived, the order such as file is reloaded in execution, and the process for allowing code to come into force is properly termed as code issue and deployment.
In the prior art, release code is mainly with the mode disposed, and code is submitted to code administration and taken by developer Amended code is sent to central publisher server by business device, post staff, a side test of issue is being performed, when test reaches After being required to issue, amended code is distributed to application server by central publisher server, the corresponding command is performed, makes generation Code comes into force.
Using prior art, code is in code administration server, central publisher server, the uniformity on application server Guarantee in all directions can not be obtained, it is necessary to artificially compare one by one before renewal, the file to be updated is obtained, inefficiency, if Whole codes are all issued one time again, and the efficiency of transmission between server can be very low, especially than larger file, waste very much money Source, the deployment of application needs execution order to allow code to come into force, and has typically issued in the prior art, has carried out corresponding order, Whether implementation procedure is long, does not typically know when order has all performed, and successful, it is necessary to which tester tests Card.
The content of the invention
To solve the problem of prior art is present, the invention provides a kind of code method for automatically releasing, methods described bag Include:
Treat release code and carry out local test, will be described if the code to be released meets the first test request Code to be released is sent to version server;
Version server is tested the code to be released under the test environment, if meeting the second test request, The code to be released is then committed to pre- publisher server;
The pre- publisher server is tested the code to be released, will be described if the 3rd test request is met Code to be released is sent to code publisher server;
Code synchronisation to be released to aol server is generated release code by the code publisher server.
Further, methods described also includes, and the code to be released is pulled in the pre- publisher server, if described Code to be released includes new change code, then sends the new change code to publisher server.
Further, methods described also includes, and the pre- publisher server is timed inspection to the code to be released Survey, if the code to be released includes new change code, the new change code is sent to publisher server.
Further, methods described also includes, and the aol server sends release code to pre- publisher server Carry out version synchronization.
Further, methods described also includes, and release code is sent to code to issue and taken by the pre- publisher server Business device is contrasted with code to be released, has detected whether that code is changed.
Further, methods described also includes, and first test is unit testing, and second test is surveyed for function Examination.
Further, the invention further relates to a kind of automatic distributing device of code, described device includes,
Home server is used to treat release code progress local test, if the code to be released meets the first test It is required that when, the code to be released is sent to version server;
Version server is used to test the code to be released under the test environment, will if meeting the second test Ask, then the code to be released is committed to pre- publisher server;
Pre- publisher server is used to test the code to be released, will be described if the 3rd test request is met Code to be released is sent to code publisher server;
Code publisher server is used to, by code synchronisation to be released to aol server, generate release code;
Aol server is used for release code.
Code method for automatically releasing provided in an embodiment of the present invention is compared and upgraded to item code, realize it is quick and Stable upgrading, improves operating efficiency, reduces error caused by manually operated.
Brief description of the drawings
Fig. 1 is the flow chart of the code method for automatically releasing of the embodiment of the present invention;
Fig. 2 is the schematic diagram of the automatic distributing device of code of the embodiment of the present invention.
Embodiment
Below by drawings and examples, technical scheme is described in further detail.
Fig. 1 is the flow chart of code method for automatically releasing provided in an embodiment of the present invention, as illustrated,
Step 101:Treat release code and carry out whether local test meets the first test request.
Research staff is completed after code to be released, it is necessary to which first treating release code carries out local test, i.e. research staff couple Code to be released carries out unit and tested oneself first, detects whether code to be released has reached desired value set in advance.
Step 102:If code to be released does not meet the first test request, the code to be released is subjected to submission and repaiied Change.
Under normal circumstances, the problem of code to be released may have various, causes the result of its local test not Meet the first test request, when code to be released does not meet the first test request, submit it to research staff, research and develop people Member treats release code and modified.Release code is treated after the completion of modification again and performs step 101, until code to be released is full Untill the first test request of foot.
Step 103:If code to be released meets the first test request, code to be released is sent to version server.
When code to be released meets the first test request, code to be released is sent to version server by research staff, And mail is sent out automatically to tester.The version server is used for the version for detecting and recording code to be released, facilitates each Research staff, tester have clear and definite understanding to present research and development progress and code release.
Step 104:Version server tests whether code to be released to meet the second test request under the test environment.
Version server is received after the code to be released of research staff's transmission, and code to be released is placed under test environment Functional test is carried out, the test specification designed according to research staff carries out DCO.If code to be released is in testing process In go wrong, then mean not meeting the second test request.
Step 105:If code to be released does not meet the second test request, the code to be released is subjected to submission and repaiied Change.
When code to be released does not meet the second test request, submit it to research staff, research staff is to pending Cloth code is modified.Release code is treated after the completion of modification again and performs step 101, restarts test process, until treating Untill release code meets the second test request.The situation that the code to be released does not meet the second test request have a lot, than There is mistake etc. as input/output interface is present inside mistake, or function.
Step 106:If code to be released meets the second test request, the code to be released is committed to pre- issuing service Device.
When code to be released meets the second test request, code to be released is sent to version server by test environment, And mail is sent out automatically to operation maintenance personnel.Code to be released is distributed to company Intranet by operation maintenance personnel by automatic release process On pre- publisher server, tester is then sent mail to automatically.
Step 107:Pre- publisher server treats release code and carries out testing whether to meet the 3rd test request.
Pre- publisher server is received after code to be released, and tester is on pre- publisher server to the generation to be released Code is tested, such as carries out functional test or performance test, and the test specification that tester designs according to research staff enters Row DCO.If code to be released goes wrong in testing process, mean not meeting the 3rd test request.
Step 108:If code to be released does not meet the 3rd test request, the code to be released is subjected to submission and repaiied Change.
When code to be released does not meet three test requests, submit it to research staff, research staff is to pending Cloth code is modified.Release code is treated after the completion of modification again and performs step 101, restarts test process, until treating Untill release code meets the 3rd test request.The situation that the code to be released does not meet the 3rd test request have a lot, than There is mistake etc. as input/output interface is present inside mistake, or function.
Step 109:If code to be released meets the 3rd test request, the code to be released is sent to code issue Server.
Tester treated on pre- publisher server release code carry out third time test and by when, postal is sent automatically Part is to operation maintenance personnel, and code to be released is distributed to code publisher server by the operation maintenance personnel by distribution platform.
Further, methods described also includes, and the code to be released is pulled in the pre- publisher server, if described Code to be released includes new change code, then sends the new change code to publisher server.
The present invention can be additionally used in more fresh code or upgrade code, the Version Control of the present embodiment using version server come It is managed, and is configured with pre- publisher server the synchronization module of related platform.
The pre- publisher server pulls the code to be released according to certain rule, and the code to be released is entered Row detection, if detection finds to include new change code in the code to be released, and the code to be released meets the The requirement of three tests, then send the code to be released to publisher server, publisher server is sent out automatically by after code update Send mail, and the details of build version log recording old version.
Methods described also includes, and the pre-publishing platform is timed detection to the code to be released, if described treat Release code includes new change code, then sends the new change code to distribution platform.
Specifically, the pre- publisher server timing pulls the code to be released, and the code to be released is carried out Detection, if detection finds to include new change code in the code to be released, and the code to be released meets the 3rd The requirement of test, then send the code to be released to publisher server, publisher server is sent automatically by after code update Mail, and the details of build version log recording old version.
Step 110:Code synchronisation to be released to aol server, generation have been issued generation by the code publisher server Code.
After code to be released is distributed on code publisher server by operation maintenance personnel by distribution platform, code issuing service Device is by code synchronisation to be released to aol server, generation release code, and distribution platform sends the code text automatically The mail of part list.
Further, release code is sent to pre- publisher server and carries out version synchronization by the aol server.
In the prior art, the renewal or upgrading for code be by personal monitoring, the present invention on line server and Passage is set up between pre- publisher server, the aol server, which receives code to be released and issued generation, has issued generation After code, the release code is sent to the pre- publisher server, the pre- publisher server will described in release code Update in release code list, complete release code and operated in the version synchronization of each platform.
Further, methods described also includes, and release code is sent to code to issue and taken by the pre- publisher server Business device is contrasted with code to be released, has detected whether that code is changed.
The pre- publisher server receive aol server transmission release code after, by release code send to Code publisher server, code publisher server is contrasted the release code received and code to be released, and detection is treated Whether release code occurs the change of code, while updating code log, records the detailed letter of the release code of each version Breath.If it is fresh code to detect code to be released, the code publisher server sends code to be released to aol server Issued.
Fig. 2 be the automatic distributing device of code of the present invention schematic diagram, as illustrated, described device including home server 1, Version server 2, pre- publisher server 3, code publisher server 4, aol server 5.The home server 1, version clothes Business device 2, pre- publisher server 3, code publisher server 4 pass sequentially through signal with aol server 5 and are connected.
Home server 1 is used to treat release code progress local test, if the code to be released meets the first survey When examination is required, the code to be released is sent to version server 2;
Version server 2 is used to test the code to be released under the test environment, if meeting the second test It is required that, then the code to be released is committed to pre- publisher server 3;
Pre- publisher server 3 is used to test the code to be released, by institute if the 3rd test request is met State code to be released and be sent to code publisher server 4;
Code publisher server 4 is used for code synchronisation to be released to aol server 5,
Aol server 5 is used for code building to be released release code.
Professional should further appreciate that, each example described with reference to the embodiments described herein Unit and algorithm steps, can be realized with electronic hardware, computer software or the combination of the two, hard in order to clearly demonstrate The interchangeability of part and software, generally describes the composition and step of each example according to function in the above description. These functions are performed with hardware or software mode actually, depending on the application-specific and design constraint of technical scheme. Professional and technical personnel can realize described function to each specific application using distinct methods, but this realize It is not considered that beyond the scope of this invention.
The method that is described with reference to the embodiments described herein can use hardware, computing device the step of algorithm Software module, or the two combination are implemented.Software module can be placed in random access memory (RAM), internal memory, read-only storage (ROM), electrically programmable ROM, electrically erasable ROM, register, hard disk, moveable magnetic disc, CD-ROM or technical field In any other form of storage medium well known to interior.
Above-described embodiment, has been carried out further to the purpose of the present invention, technical scheme and beneficial effect Describe in detail, should be understood that the embodiment that the foregoing is only the present invention, be not intended to limit the present invention Protection domain, within the spirit and principles of the invention, any modification, equivalent substitution and improvements done etc. all should be included Within protection scope of the present invention.

Claims (7)

1. a kind of code method for automatically releasing, it is characterised in that methods described includes
Treat release code and carry out local test, will be described pending if the code to be released meets the first test request Cloth code is sent to version server;
Version server is tested the code to be released under the test environment, if meeting the second test request, will The code to be released is committed to pre- publisher server;
The pre- publisher server is tested the code to be released, will be described pending if the 3rd test request is met Cloth code is sent to code publisher server;
Code synchronisation to be released to aol server is generated release code by the code publisher server.
2. according to the method described in claim 1, it is characterised in that methods described also includes, drawn in the pre- publisher server The code to be released is taken, if the code to be released includes new change code, the new change code is sent To publisher server.
3. method according to claim 3, it is characterised in that methods described also includes, the pre- publisher server is to institute State code to be released and be timed detection, if the code to be released includes new change code, by the new change Code is sent to publisher server.
4. according to the method described in claim 1, it is characterised in that methods described also includes, the aol server will have been sent out Cloth code sends to pre- publisher server and carries out version synchronization.
5. method according to claim 4, it is characterised in that methods described also includes, the pre- publisher server is by Release code sends to code publisher server and contrasted with code to be released, has detected whether that code is changed.
6. according to the method described in claim 1, it is characterised in that methods described also includes, first test is surveyed for unit Examination, second test is functional test.
7. a kind of automatic distributing device of code, it is characterised in that described device includes,
Home server is used to treat release code progress local test, if the code to be released meets the first test request When, the code to be released is sent to version server;
Version server is used to test the code to be released under the test environment, if meeting the second test request, The code to be released is then committed to pre- publisher server;
Pre- publisher server is used to test the code to be released, will be described pending if the 3rd test request is met Cloth code is sent to code publisher server;
Code publisher server is used to, by code synchronisation to be released to aol server, generate release code;
Aol server is used for release code.
CN201710517730.2A 2017-06-29 2017-06-29 Code method for automatically releasing Pending CN107315687A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710517730.2A CN107315687A (en) 2017-06-29 2017-06-29 Code method for automatically releasing

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710517730.2A CN107315687A (en) 2017-06-29 2017-06-29 Code method for automatically releasing

Publications (1)

Publication Number Publication Date
CN107315687A true CN107315687A (en) 2017-11-03

Family

ID=60181252

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710517730.2A Pending CN107315687A (en) 2017-06-29 2017-06-29 Code method for automatically releasing

Country Status (1)

Country Link
CN (1) CN107315687A (en)

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool
CN109491886A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 Compatibility test method, device, electronic equipment and storage medium
CN109814873A (en) * 2019-02-14 2019-05-28 北京顺丰同城科技有限公司 A kind of code dissemination method and device
CN109976779A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 Robot software's online upgrading dissemination method, device, equipment and storage medium
CN110764991A (en) * 2018-07-27 2020-02-07 北京国双科技有限公司 Code testing method and device
CN111580858A (en) * 2020-05-07 2020-08-25 虎扑(上海)文化传播股份有限公司 Method and system for regularly releasing codes
TWI710896B (en) * 2019-01-14 2020-11-21 宏碁股份有限公司 Cloud system and method for integrating a cloud system
CN112000568A (en) * 2020-07-10 2020-11-27 西安广和通无线软件有限公司 Technical code testing method and device, computer equipment and storage medium
CN113050982A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Distributed code automatic publishing system and method
CN113050981A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Code on-line automatic publishing method, server and storage medium
CN113094066A (en) * 2021-03-16 2021-07-09 北京优奥创思科技发展有限公司 Multi-server code publishing method and system
CN113760765A (en) * 2021-09-09 2021-12-07 北京百度网讯科技有限公司 Code testing method and device, electronic equipment and storage medium

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103226485A (en) * 2013-05-21 2013-07-31 北京奇虎科技有限公司 Code publishing method, machine and system
US20140344557A1 (en) * 2013-05-14 2014-11-20 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN106383786A (en) * 2016-09-27 2017-02-08 北京金山安全软件有限公司 Interface pressure performance testing method and device and electronic equipment
CN106557423A (en) * 2016-11-22 2017-04-05 深圳市掌世界网络科技有限公司 A kind of internet code method for automatically releasing and system
CN106845947A (en) * 2017-02-10 2017-06-13 中国电建集团成都勘测设计研究院有限公司 The method and system that a kind of enterprise's micro services based on cloud are persistently paid

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140344557A1 (en) * 2013-05-14 2014-11-20 Noblis, Inc. Method and system to automatically enforce a hybrid branching strategy
CN103226485A (en) * 2013-05-21 2013-07-31 北京奇虎科技有限公司 Code publishing method, machine and system
CN106383786A (en) * 2016-09-27 2017-02-08 北京金山安全软件有限公司 Interface pressure performance testing method and device and electronic equipment
CN106557423A (en) * 2016-11-22 2017-04-05 深圳市掌世界网络科技有限公司 A kind of internet code method for automatically releasing and system
CN106845947A (en) * 2017-02-10 2017-06-13 中国电建集团成都勘测设计研究院有限公司 The method and system that a kind of enterprise's micro services based on cloud are persistently paid

Cited By (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109976779A (en) * 2017-12-27 2019-07-05 深圳市优必选科技有限公司 Robot software's online upgrading dissemination method, device, equipment and storage medium
CN110764991A (en) * 2018-07-27 2020-02-07 北京国双科技有限公司 Code testing method and device
CN109491886A (en) * 2018-09-26 2019-03-19 深圳壹账通智能科技有限公司 Compatibility test method, device, electronic equipment and storage medium
CN109408065A (en) * 2018-10-12 2019-03-01 上海庆科信息技术有限公司 A kind of code publishing tool
TWI710896B (en) * 2019-01-14 2020-11-21 宏碁股份有限公司 Cloud system and method for integrating a cloud system
CN109814873A (en) * 2019-02-14 2019-05-28 北京顺丰同城科技有限公司 A kind of code dissemination method and device
CN109814873B (en) * 2019-02-14 2022-03-25 北京顺丰同城科技有限公司 Code publishing method and device
CN111580858A (en) * 2020-05-07 2020-08-25 虎扑(上海)文化传播股份有限公司 Method and system for regularly releasing codes
CN112000568A (en) * 2020-07-10 2020-11-27 西安广和通无线软件有限公司 Technical code testing method and device, computer equipment and storage medium
CN113094066A (en) * 2021-03-16 2021-07-09 北京优奥创思科技发展有限公司 Multi-server code publishing method and system
CN113094066B (en) * 2021-03-16 2024-03-26 北京优奥创思科技发展有限公司 Multi-server code release method and system
CN113050982A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Distributed code automatic publishing system and method
CN113050981A (en) * 2021-03-23 2021-06-29 深圳杰微芯片科技有限公司 Code on-line automatic publishing method, server and storage medium
CN113760765A (en) * 2021-09-09 2021-12-07 北京百度网讯科技有限公司 Code testing method and device, electronic equipment and storage medium
CN113760765B (en) * 2021-09-09 2022-07-19 北京百度网讯科技有限公司 Code testing method and device, electronic equipment and storage medium

Similar Documents

Publication Publication Date Title
CN107315687A (en) Code method for automatically releasing
US8312430B2 (en) Guarding code check-in with test case execution results
US9703692B2 (en) Development supporting system
US20200019492A1 (en) Generating executable test automation code automatically according to a test case
US9454351B2 (en) Continuous deployment system for software development
US20170357809A1 (en) Systems and methods for flaw attribution and correlation
US20130311827A1 (en) METHOD and APPARATUS for automatic testing of automation software
CN107992325B (en) Method for checking and comparing file information through feature codes
US10341465B2 (en) Policy driven flight management
US20030088810A1 (en) Methods and apparatus for determining software component sizes associated with errors
CN108563572A (en) A kind of regression testing method, device and server
US20080163157A1 (en) Identifying and Measuring Adherence to Software Development Requirements
CN108776643A (en) A kind of object code merging control method and system based on Version Control flow
US20140047276A1 (en) Model-based testing of a graphical user interface
CN109889587A (en) Internet of things system automated construction method, device, equipment and storage medium
Zhao et al. How are discussions associated with bug reworking? an empirical study on open source projects
WO2015039793A1 (en) Derivation of generalized test cases
US10248402B2 (en) Automated code deployment system
US11645192B2 (en) Graph-based method for inductive bug localization
CN109710591A (en) Metadata version automatic management method
US10599424B2 (en) Committed program-code management
Jha et al. A framework for testing android apps by reusing test cases
Mondal et al. An empirical study on change recommendation
JP2001350650A (en) Inspecting method and device for software program equivalency, and recording medium therefor
CN111090590A (en) Game program test BUG detection method

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
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20171103

WD01 Invention patent application deemed withdrawn after publication