CN101650653A - Daily constructing method and device - Google Patents

Daily constructing method and device Download PDF

Info

Publication number
CN101650653A
CN101650653A CN200910171458A CN200910171458A CN101650653A CN 101650653 A CN101650653 A CN 101650653A CN 200910171458 A CN200910171458 A CN 200910171458A CN 200910171458 A CN200910171458 A CN 200910171458A CN 101650653 A CN101650653 A CN 101650653A
Authority
CN
China
Prior art keywords
code
day
compiling
journal file
download
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
CN200910171458A
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.)
ZTE Corp
Original Assignee
ZTE Corp
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 ZTE Corp filed Critical ZTE Corp
Priority to CN200910171458A priority Critical patent/CN101650653A/en
Publication of CN101650653A publication Critical patent/CN101650653A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Stored Programmes (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

The invention discloses daily constructing method and device, relating to the technical field of software and solving the problem that a constructing server cannot meet the requirements to translate and edit a great number of codes. The method comprises the following steps: automatically downloading an edition code within the preset constructing time; after finishing downloading the codes, translating, editing and checking the edition code to generate a constructed log file. The technical scheme provided by the invention is suitable for edition quality control.

Description

Every day construction method and device
Technical field
The present invention relates to software technology field, relate in particular to a kind of every day of construction method and device.
Background technology
Make up every day and be also referred to as regularly structure or continue integratedly, comprise that compiling is integrated, code specification inspection and unit testing etc.
Every day, structure was a kind of important means of controlling the version quality, realize as early as possible edition code being changed making a response, and the efficient that make up every day is most important.An important channel of improving the efficient that makes up every day is to improve the automaticity that make up every day, comprises the collection of code, downloads, and compiling is checked and the processing of compiling check result etc., all should be automatical and efficient finish.
Every day, constructing system comprised code server, made up server, testing server, and database.The programmer puts into code server with the redaction of code, and issues steering order to making up server, and indication structure server compiles integrated to the code of redaction.
Make up in the process of the integrated code of compiling every day in above-mentioned use, there are the following problems:
Server is current to compile integrated code if make up, and at this moment, this structure server can't compile integrated to other codes, when the developer numerous, the version complexity, size of code is big, code changes when frequent, makes up the compiling demand that server can't satisfy a large amount of codes of compiling.
Summary of the invention
The invention provides a kind of every day of construction method and device, solved the problem that server can't satisfy the compiling demand of a large amount of codes of compiling that makes up.
A kind of every day construction method, comprising:
In the structure time of presetting, automatic download version code;
After download code is finished, described edition code is compiled and checks, generate and make up journal file.
Further, described in the structure time of presetting, before the step of download version code, also comprise automatically:
Check the integrality of code,, then finish every day and make up if described code is imperfect.
Further, described after download code is finished, described edition code is compiled and checks, generate after the step that makes up journal file, also comprise:
Search key in described structure journal file is analyzed the structure information that extracts.
Further, described structure journal file comprises compiling daily record and audit log, and search key in described structure journal file is analyzed extraction structure information and comprised:
According to the alarm key word, from the compiling daily record, extract the compiling warning information, generate alarm email according to this compiling warning information, send and back up described alarm email; With,
According to the alarm key word, from audit log, extract warning information, generate alarm email according to this warning information, send and back up described alarm email.
Further, described after download code is finished, described edition code is compiled and checks, generate after the step that makes up journal file, also comprise:
Check whether code compile is successful;
If the code compile success is backed up this code; Or,
If the code compile failure finishes every day and makes up.
Further, if described code compile success is backed up this code and to be comprised:
Generate the version backup directory, the time of record structure every day;
Described code copy is arrived the packing backup down of described version backup directory.
A kind of every day construction device, comprising:
The code download module is used for according to the compiling duration of presetting, automatically the download version code;
Compiling and inspection module are used for after download code is finished, and described code is compiled and checks, generate and make up journal file.
Further, above-mentioned every day, construction device also comprised:
The integrity checking module is used to check the integrality of code, if described code is imperfect, then finishes every day and makes up.
Further, above-mentioned every day, construction device also comprised:
The log analysis module is used at described structure journal file search key, analyzes the structure information that extracts;
The compiling result checks module, is used to check whether code compile is successful, when the code compile success this code is backed up, or finish structure every day when code compile is failed.
Further, construction device was integrated in and made up in server or the personal terminal every day this.
Embodiments of the invention provide a kind of every day construction method and device, the structure time of presetting, automatic download version code, and described edition code compiled and check, generate and make up journal file, realized simultaneously the integrated compiling of many groups code has been improved compile efficiency, solved the problem that server can't satisfy the compiling demand of a large amount of codes of compiling that makes up.
Description of drawings
Fig. 1 provides for embodiments of the invention a kind of every day construction method process flow diagram;
Fig. 2 provides for embodiments of the invention a kind of every day construction device structural representation;
Fig. 3 provides for another embodiment of the present invention a kind of every day construction device structural representation;
Fig. 4 provides for another embodiment of the present invention a kind of every day construction device structural representation.
Embodiment
When developer numerous (such as the developer of a software has the hundreds of people), the individual obtains the chance that makes up server controls power and will significantly reduce; The software code amount is big, and each compilation time is all very long, and a people takies when making up server, and the next man will wait for a long time just can use the structure server.This will have influence on development progress.Embodiments of the invention provide a kind of every day construction method, improved the integrated compile efficiency that makes up server, this method can realize by making up server, also can pass through personal terminal, realizes as PC.Embodiments of the invention are example to make up server, and the flow process of using this method to finish to make up every day comprises as shown in Figure 1:
The integrality of step 101, inspection code;
Code can only be stored in a code server and a copy is only arranged on this code server, also can have a plurality of code servers and version copy.Can set a top code server and be used for the developer and be incorporated into code, a plurality of code servers download version from the top code server is set, offer more structure downloaded code.
In the embodiment of the invention, set an environmental variance at code server before the top code server copy, copy finishes the value that the back changes this environmental variance.For example, facility environment variable V ER_ID, when the code server from the top service device download code the time, the value of VER_ID is READY, after it had been downloaded, the value of VER_ID became OK.
In this step, make up server and judge by the value of checking this environmental variance whether the code on the code server is complete; If code is imperfect, then finishes every day and make up; If code is complete, then enter step 102.
Step 102, in the structure time of presetting, automatic download version code;
In the embodiment of the invention, preset a structure time for making up every day, the structure time can be a time point, as point in the mornings 9, also can be a time cycle.
In this step, make up server and download new edition code from code server.
Edition code comprises a plurality of modules, can when making up downloaded, edition code be done as a whole the download with each module stores after upgrading on code server.
Step 103, after download code is finished, described edition code is compiled and checks, generate to make up journal file;
In this step, translation and compiling environment (hardware platform that different editions may rely on, compiler and relevant the setting have difference, add to be applied to different product again, dispose and also have difference) is set according to version.After configuration is finished, make up server and carry out predefined compiler directive, compiled code, compiling information outputs to the compiling journal file.
In compiling, making up server will check described edition code, mainly is to use code static check instrument that code is checked.The embodiment of the invention is example to use the pclint instrument, checks item according to the programming standard configuration pclint that formulates, and whether check has the place that does not meet the programming standard, the fox message that produces is outputed in the audit log file in the code.
Step 104, in described structure journal file search key, analyze to extract structure information;
In the embodiment of the invention, make up compiling journal file and audit log file that journal file specifically comprises step 103 output, now describe analyzing two kinds of processes that make up daily record respectively.
Analysis to the compiling journal file comprises compiling alert analysis statistics and compile error analysis again.
Compiling alert analysis statistics promptly extracts warning information from the compiling journal file, to make up version information and write the mail name, warning file name and alarm number are write message body, generate the text of message body simultaneously, concrete warning information writes Email attachment, call e-mail tool and automatically mail is sent to the person liable, the text name of the message body correspondence that record is sent out sends record as mail; From the mail transmission record of the same day or history, find message body, read corresponding code file alarm quantity, add up the alarm situation that each group is responsible for file according to development group under the code file; Backup message body and mail send record, do the alarm statistics data.
Compile error is analyzed promptly and extract compile error information from the compiling daily record, and concrete can come Search Error information according to the relevant key word of compile error.The different compilers key word that reports an error has difference, is not described further at this.To make up version information and write the mail name, the filename that compile error takes place writes message body, and detailed compile error information writes Email attachment, calls e-mail tool, and mail is sent to the person liable automatically.
Analysis to the audit log file comprises the information that extracts code violation programming standard from journal file, can search some key word particularly, key word is relevant with checking tool, as using " error ", " warning " or key words such as " info " in the pclint instrument.To make up version information and write the mail name, warning file name and alarm quantity will be write message body, generate the text of message body simultaneously, the detailed inspection information of file will be write Email attachment, call e-mail tool, mail will be sent to the person liable automatically; The message body name is sent record as mail.Send record from mail and can find message body, read the inspection alarm quantity, add up the inspection situation of respectively organizing in a period of time or the fixed time section according to development group under the file, statistics is issued the responsible person concerned.
Successfully whether step 105, inspection code compile;
In the embodiment of the invention,, whether exist and the rise time, can judge whether compiling is successful by checking these execute files to generating final execute file after the code compile success.
If the compiling failure then finishes every day and makes up; If compile successfully, then need to back up this code, enter step 106.
Step 106, back up compiling successful code;
In this step, make up server after integrated compiling success, corresponding code backed up, be specially:
At first automatically, generate backup directory, can do directory name, to distinguish the version that different time successfully constructs with the time that compiles successfully; Then code copy is packed to backup directory.
Every function in the above-mentioned flow process can realize by batch processing and perl language, be convenient to safeguard.
Construction method every day that embodiments of the invention provide, be provided with the structure time, and the structure time of presetting, by making up the automatic download version code of server, and described edition code compiled and check, generate and make up journal file, realized simultaneously integrated compiling to many groups code, improve compile efficiency, solved the problem that server can't satisfy the compiling demand of a large amount of codes of compiling that makes up; After generating the structure journal file, analyze making up journal file, give the technician with alarm information noticing, realized quick location and response to software issue; And the warning information that makes up in the daily record is added up, for system performance analysis provides data.In addition, construction method every day that the embodiment of the invention provides can also be applied on the PC, has reduced the cost that makes up every day.
Embodiments of the invention also provide a kind of every day construction device, this installs as shown in Figure 2, comprising:
Code download module 201 is used for according to the compiling duration of presetting, automatically the download version code;
Compiling and inspection module 202 are used for after download code is finished, and described code is compiled and checks, generate and make up journal file.
Further, this every day construction device as shown in Figure 3, also comprise:
Integrity checking module 203 is used to check the integrality of code, if described code is imperfect, then finishes every day and makes up.
Further, this every day construction device as shown in Figure 4, also comprise:
Log analysis module 204 is used at described structure journal file search key, analyzes the structure information that extracts;
The compiling result checks module 205, is used to check whether code compile is successful, when the code compile success this code is backed up, or finish structure every day when code compile is failed.
Above-mentioned every day construction device, can combine with a kind of every day of the construction method that embodiments of the invention provide, the structure time of presetting, automatic download version code, and described edition code compiled and check, generate and make up journal file, realized simultaneously integrated compiling to many groups code, improve compile efficiency, solved the problem that server can't satisfy the compiling demand of a large amount of codes of compiling that makes up.
One of ordinary skill in the art will appreciate that and realize that all or part of step that the foregoing description method is carried is to instruct relevant hardware to finish by program, described program can be stored in a kind of computer-readable recording medium, this program comprises one of step or its combination of method embodiment when carrying out.
In addition, each functional unit in each embodiment of the present invention can adopt the form of hardware to realize, also can adopt the form of software function module to realize.If described integrated module realizes with the form of software function module and during as independently production marketing or use, also can be stored in the computer read/write memory medium.
The above-mentioned storage medium of mentioning can be a ROM (read-only memory), disk or CD etc.
The above; only be the specific embodiment of the present invention, but protection scope of the present invention is not limited thereto, anyly is familiar with those skilled in the art in the technical scope that the present invention discloses; can expect easily changing or replacing, all should be encompassed within protection scope of the present invention.Therefore, protection scope of the present invention should be as the criterion with the described protection domain of claim.

Claims (10)

1, a kind of every day construction method, it is characterized in that, comprising:
In the structure time of presetting, automatic download version code;
After download code is finished, described edition code is compiled and checks, generate and make up journal file.
2, every day according to claim 1 construction method, it is characterized in that, described in the structure time of presetting, before the step of download version code, also comprise automatically:
Check the integrality of code,, then finish every day and make up if described code is imperfect.
3, every day according to claim 1 construction method, it is characterized in that, described after download code is finished, described edition code is compiled and checks, generate after the step that makes up journal file, also comprise:
Search key in described structure journal file is analyzed the structure information that extracts.
4, every day according to claim 3 construction method, it is characterized in that described structure journal file comprises compiling daily record and audit log, search key in described structure journal file, analyze and extract structure information and comprise:
According to the alarm key word, from the compiling daily record, extract the compiling warning information, generate alarm email according to this compiling warning information, send and back up described alarm email; With,
According to the alarm key word, from audit log, extract warning information, generate alarm email according to this warning information, send and back up described alarm email.
5, every day according to claim 1 construction method, it is characterized in that, described after download code is finished, described edition code is compiled and checks, generate after the step that makes up journal file, also comprise:
Check whether code compile is successful;
If the code compile success is backed up this code; Or,
If the code compile failure finishes every day and makes up.
6, every day according to claim 5 construction method, it is characterized in that, if the success of described code compile is backed up this code and to be comprised:
Generate the version backup directory, the time of record structure every day;
Described code copy is arrived the packing backup down of described version backup directory.
7, a kind of every day construction device, it is characterized in that, comprising:
The code download module is used for according to the compiling duration of presetting, automatically the download version code;
Compiling and inspection module are used for after download code is finished, and described code is compiled and checks, generate and make up journal file.
8, every day according to claim 7 construction device, it is characterized in that, also comprise:
The integrity checking module is used to check the integrality of code, if described code is imperfect, then finishes every day and makes up.
9, every day according to claim 7 construction device, it is characterized in that, also comprise:
The log analysis module is used at described structure journal file search key, analyzes the structure information that extracts;
The compiling result checks module, is used to check whether code compile is successful, when the code compile success this code is backed up, or finish structure every day when code compile is failed.
10, according to claim 7 to claim 9 described every day of construction device, it is characterized in that construction device was integrated in and made up in server or the personal terminal every day this.
CN200910171458A 2009-09-04 2009-09-04 Daily constructing method and device Pending CN101650653A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910171458A CN101650653A (en) 2009-09-04 2009-09-04 Daily constructing method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910171458A CN101650653A (en) 2009-09-04 2009-09-04 Daily constructing method and device

Publications (1)

Publication Number Publication Date
CN101650653A true CN101650653A (en) 2010-02-17

Family

ID=41672896

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910171458A Pending CN101650653A (en) 2009-09-04 2009-09-04 Daily constructing method and device

Country Status (1)

Country Link
CN (1) CN101650653A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105549959A (en) * 2015-12-04 2016-05-04 小米科技有限责任公司 Compiling inspection method and device
CN105723336A (en) * 2013-10-04 2016-06-29 微软技术许可有限责任公司 Build-time resolving and type checking references
CN105893104A (en) * 2016-03-28 2016-08-24 乐视控股(北京)有限公司 Code compiling method and device
CN106201481A (en) * 2016-06-30 2016-12-07 传线网络科技(上海)有限公司 Assembly management method and apparatus in application development system
CN106202511A (en) * 2016-07-21 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of alarm method based on log analysis and system
CN106557308A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 A kind of software continuous integrated approach and device
CN108206848A (en) * 2016-12-19 2018-06-26 深圳中兴网信科技有限公司 Build the method and device of SOA service releases
CN111831266A (en) * 2019-04-22 2020-10-27 上海汽车集团股份有限公司 Intelligent driving software integration and tracing system and method
CN112328259A (en) * 2020-11-26 2021-02-05 北京五八信息技术有限公司 Compiling time length processing method and device
CN112346967A (en) * 2020-10-20 2021-02-09 四川长虹电器股份有限公司 Pc-lint cloud service system based on cloud platform, computer equipment and storage medium
CN113127002A (en) * 2021-04-28 2021-07-16 上海米哈游璃月科技有限公司 Code compiling process monitoring method, device, equipment and medium

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105723336B (en) * 2013-10-04 2019-11-05 微软技术许可有限责任公司 The method and system with type checking reference is parsed when for constructing
CN105723336A (en) * 2013-10-04 2016-06-29 微软技术许可有限责任公司 Build-time resolving and type checking references
CN106557308A (en) * 2015-09-29 2017-04-05 腾讯科技(深圳)有限公司 A kind of software continuous integrated approach and device
CN105549959A (en) * 2015-12-04 2016-05-04 小米科技有限责任公司 Compiling inspection method and device
CN105893104A (en) * 2016-03-28 2016-08-24 乐视控股(北京)有限公司 Code compiling method and device
CN106201481A (en) * 2016-06-30 2016-12-07 传线网络科技(上海)有限公司 Assembly management method and apparatus in application development system
CN106202511A (en) * 2016-07-21 2016-12-07 浪潮(北京)电子信息产业有限公司 A kind of alarm method based on log analysis and system
CN108206848A (en) * 2016-12-19 2018-06-26 深圳中兴网信科技有限公司 Build the method and device of SOA service releases
CN111831266A (en) * 2019-04-22 2020-10-27 上海汽车集团股份有限公司 Intelligent driving software integration and tracing system and method
CN112346967A (en) * 2020-10-20 2021-02-09 四川长虹电器股份有限公司 Pc-lint cloud service system based on cloud platform, computer equipment and storage medium
CN112328259A (en) * 2020-11-26 2021-02-05 北京五八信息技术有限公司 Compiling time length processing method and device
CN113127002A (en) * 2021-04-28 2021-07-16 上海米哈游璃月科技有限公司 Code compiling process monitoring method, device, equipment and medium
CN113127002B (en) * 2021-04-28 2024-03-29 上海米哈游璃月科技有限公司 Method, device, equipment and medium for monitoring code compiling process

Similar Documents

Publication Publication Date Title
CN101650653A (en) Daily constructing method and device
CN101876943B (en) Systems and methods for identifying a relationship between multiple interrelated applications in a mainframe environment
US20110161938A1 (en) Including defect content in source code and producing quality reports from the same
CN108763091B (en) Method, device and system for regression testing
CN101515232A (en) Software continuous integration system and method
CN105550001A (en) Distributed automatic construction method and system
CN101866315B (en) Test method and system of software development tool
CN102156643A (en) Software integration method and system thereof
US20070234328A1 (en) File handling for test environments
CN116340074B (en) Hardware-in-loop test system and test method of multi-core processor system-on-chip
CN112131116A (en) Automatic regression testing method for embedded software
Pietsch et al. Formal foundations for analyzing and refactoring delta-oriented model-based software product lines
US10846059B2 (en) Automated generation of software bindings
US7503041B2 (en) Apparatus, system, and method for delivery of software
Mengerink et al. DSL/Model Co-Evolution in Industrial EMF-Based MDSE Ecosystems.
CN115220863A (en) Operation and maintenance method and device for container application, computer equipment and storage medium
CN103500109A (en) Method and device for achieving file collection and software package automatic installation
CN101662394B (en) Automated testing system and automated testing method
CN115904384A (en) Configuration method, device and equipment for application program release and storage medium
CN115629815A (en) FPGA prototype verification platform capable of verifying EMMC user interface
CN114116471A (en) Automatic code scanning method, system, electronic equipment and storage medium
AU2012201752A1 (en) Version numbering in single development and test environment
CN1476200A (en) Automatic maintenance system and method of its automatic maintenance communication equipment
Hegde et al. Package Management System in Linux
CN117312142A (en) Problem single regression testing method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20100217