Distributed build and compile statistics

Information

  • Patent Grant
  • 10303442
  • Patent Number
    10,303,442
  • Date Filed
    Monday, April 17, 2017
    7 years ago
  • Date Issued
    Tuesday, May 28, 2019
    5 years ago
Abstract
The present technology adds code to a top level build configuration file of a configuration program that will gather metrics for each invocation of a build. These metrics are sent to a commonly accessible metric server for future analysis. The metrics are collected for a distributed engineering team over several machines. Compilation time metrics may then be collected for each compilation event and those metrics are analyzed by a common aggregator.
Description
BACKGROUND OF THE INVENTION

It is important for software companies to efficiently develop their code. Companies that provide software utilize engineers to create and develop their code. It is common in engineering organizations to use continuous integration environments. These environments may be tightly coupled to code revision systems. When engineers check in code, it typically automatically starts a build. A typical compilation on a local machine may take several minutes, for example five to six minutes. During this time, an engineer is typically idle. Though an engineer may check e-mail or do other tasks, it is generally more likely that an engineer will not be very productive during the build time. As such, time taken to build and compile code has a tangible cost to how quickly engineers can innovate.


It would be desirable to be increase efficiency of coding for engineers of software companies.


SUMMARY

The present technology adds code to a top level build configuration file of a compilation program that will gather metrics for each invocation of a build. These metrics are sent to a commonly accessible metric server for future analysis. The metrics are collected for a distributed engineering team over several machines. Compilation time metrics may then be collected for each compilation event and those metrics are analyzed by a common aggregator.


An embodiment may include a method for processing data regarding a program build. The method may determine the time required to complete a build on a computing device. Build data and machine hardware data may be collected for the computing device performing the build. The build data and machine hardware data may be transmitted to a remote server. Data for a plurality of builds may be reported by the remote server, the plurality of builds done for a plurality of engineers in a distributed engineering group.


An embodiment may include a system for processing data regarding a program build. The system may include a processor, a memory and one or more modules stored in memory and executable by the processor. When executed, the one or more modules may determine the time required to complete a build on a computing device, collect build data and machine hardware data for the computing device performing the build, transmit the build data and machine hardware resource to a remote server, and report data for a plurality of builds by the remote server, the plurality of builds done for a plurality of engineers in a distributed engineering group.





BRIEF DESCRIPTION OF THE DRAWINGS


FIG. 1 is a block diagram of a system for collecting build and compilation statistics.



FIG. 2 is a block diagram of a local machine having a compiler.



FIG. 3 is a method for generating build and compilation statistics.



FIG. 4 is a method for collecting local machine data.



FIG. 5 is a method for aggregating build and compilation statistics.



FIG. 6 is an illustration of an interface for viewing build and compilation information.



FIG. 7 is a block diagram of a computing environment for implementing the present technology.





DETAILED DESCRIPTION

The present technology adds code to a top level build configuration file of a configuration program that will gather metrics for each invocation of a build. These metrics are sent to a commonly accessible metric server for future analysis. The metrics are collected for a distributed engineering team over several machines. Compilation time metrics may then be collected for each compilation event and those metrics are analyzed by a common aggregator.



FIG. 1 is a block diagram of a system for collecting build and compilation statistics. The system of FIG. 1 includes computing devices 110, 115, 120, and 125. Machines 110 and 115 may be in a first engineering group 117 while machines 120 and 125 may be in another engineering group 127. Additional engineering groups 137 and 147 may also include one or more machines associated with an engineer. The computing devices in multiple engineering groups form a distributed group of engineers over multiple engineering groups within an organization.


Each engineer's machine may communicate with a server 160 over network 150. Network 150 may include a private network, public network, cellular network, wireless network, or other network. Application server 160 may include aggregator 165. The server and engineer machines may communicate over network 140. Aggregator 165 may receive build and compilation data from the engineering groups, aggregate the data, and store the aggregated data in data store 180. An administrator at computing device 170 may query the aggregated data stored in data store 180.



FIG. 2 is a block diagram of a computing device with a compiler. Machine 200 may include compiler 210 having collector 220. Compiler 210 may be used by an engineer to compile code. Collector 220 may collect information regarding the compilation and transmit that data to aggregator 155.


The collector may retrieve information from the build process, other actions performed by an engineer at the machine, as well as host machine data. The engineer actions may include cleaning an environment, set-up an environment, reset applications, and deploying applications. The host machine data may include information regarding architecture 230, CPU 250, memory 240, and operating system 260.



FIG. 3 is a method for collecting build and compilation statistics. The method of FIG. 3 begins with receiving a request to do a build at step 310. The request may be received by a machine such as computing device 110, from an engineer at the machine. A time stamp is then collected at step 320. The time step represents the start time of the build.


A build is started and eventually completes at step 330. The build may complete in a successor failure. An end time stamp is collected at step 340. After collecting the start and end time stamp, local machine data may be collected at step 350. The local machine data may include information regarding machine software and hardware which may be used to provide context to the build at the local machine. Collecting local machine data is discussed in more detail below with respect to the method of FIG. 4.


After collecting time stamp data and local machine data, the collected data is reported to aggregator 155 at step 360. The data may be reported periodically, based on a non-periodic event such as a anomaly, or some other event.



FIG. 4 illustrates a method for collecting local machine data. The method of FIG. 4 may provide more detail for step 350 of the method of FIG. 3. First, a host machine name may be collected at step 410. An operating system type and version may then be collected at step 420. Branch data may be collected at step 430. Project data may be collected at step 440. Target data may then be collected at step 450. Hardware information and other instructions may be collected from the local machine as well. Machine resource data may be collected at step 470. The machine resource data may include CPU capability, memory capability, host machine architecture information, and other data. Workflow data may then be collected at step 480. The workflow data may include one or more instructions or steps performed by an engineer before the build was started.



FIG. 5 is a method for aggregating data. The method of FIG. 5 may be performed by aggregator 155 on server 150. First, build data and local machine data is received from machines of a distributed engineering team at step 510. The received data may be aggregated at step 520. The aggregation may be done to create groups of data based on the dimensions of the received data. For example, the aggregated data may be by operating system, branch, project, target, result (success or failure), machine resources, workflow data, or other data.


A data query may be received at some point at step 530. The query may specify a particular slice of data from the aggregated data stored at data store 160. A response is generated at step 540 and the response is then transmitted to the requesting computer 170 at step 550.



FIG. 6 is an illustration of an interface for viewing build and compilation information. The interface includes data from monitoring engineers in a distributed engineering group as well as hierarchical data. The interface may include a tree of dimensions for the collected data. In FIG. 6, the OS type is Mac_OS and the version is 10.9.5, the branch is ‘master’, the project is ‘codebase’, the target is ‘clean’ and the result of the compilation was a ‘success.’ The interface also illustrates multiple data points for builds that had the indicated set of dimensions.



FIG. 7 is a block diagram of a computing environment for implementing the present technology. System 700 of FIG. 7 may be implemented in the contexts of the likes of computing devices 110, 115, 120, 125, and 170, application servers 160, and data stores 180. A system similar to that in FIG. 7 may be used to implement mobile device 115, but may include additional components such as an antenna, additional microphones, and other components typically found in mobile devices such as a smart phone or tablet computer.


The computing system 700 of FIG. 7 includes one or more processors 710 and memory 720. Main memory 720 stores, in part, instructions and data for execution by processor 710. Main memory 720 can store the executable code when in operation. The system 700 of FIG. 7 further includes a mass storage device 730, portable storage medium drive(s) 740, output devices 750, user input devices 760, a graphics display 770, and peripheral devices 780.


The components shown in FIG. 7 are depicted as being connected via a single bus 790. However, the components may be connected through one or more data transport means. For example, processor unit 710 and main memory 720 may be connected via a local microprocessor bus, and the mass storage device 730, peripheral device(s) 780, portable storage device 740, and display system 770 may be connected via one or more input/output (I/O) buses.


Mass storage device 730, which may be implemented with a magnetic disk drive or an optical disk drive, is a non-volatile storage device for storing data and instructions for use by processor unit 710. Mass storage device 730 can store the system software for implementing embodiments of the present invention for purposes of loading that software into main memory 710.


Portable storage device 740 operates in conjunction with a portable non-volatile storage medium, such as a floppy disk, compact disk or Digital video disc, to input and output data and code to and from the computer system 700 of FIG. 7. The system software for implementing embodiments of the present invention may be stored on such a portable medium and input to the computer system 700 via the portable storage device 740.


Input devices 760 provide a portion of a user interface. Input devices 760 may include an alpha-numeric keypad, such as a keyboard, for inputting alpha-numeric and other information, or a pointing device, such as a mouse, a trackball, stylus, or cursor direction keys. Additionally, the system 700 as shown in FIG. 7 includes output devices 750. Examples of suitable output devices include speakers, printers, network interfaces, and monitors.


Display system 770 may include an LED, liquid crystal display (LCD) or other suitable display device. Display system 770 receives textual and graphical information, and processes the information for output to the display device.


Peripherals 780 may include any type of computer support device to add additional functionality to the computer system. For example, peripheral device(s) 780 may include a modem or a router.


The components contained in the computer system 700 of FIG. 7 are those typically found in computer systems that may be suitable for use with embodiments of the present invention and are intended to represent a broad category of such computer components that are well known in the art. Thus, the computer system 700 of FIG. 7 can be a personal computer, hand held computing device, telephone, mobile computing device, workstation, server, minicomputer, mainframe computer, or any other computing device. The computer can also include different bus configurations, networked platforms, multi-processor platforms, etc. Various operating systems can be used including Unix, Linux, Windows, iOS, Android, and other suitable operating systems.


When implementing a mobile device such as smart phone or tablet computer, the computer system 700 of FIG. 7 may include one or more antennas, radios, and other circuitry for communicating over wireless signals, such as for example communication using Wi-Fi, cellular, or other wireless signals.


The foregoing detailed description of the technology herein has been presented for purposes of illustration and description. It is not intended to be exhaustive or to limit the technology to the precise form disclosed. Many modifications and variations are possible in light of the above teaching. The described embodiments were chosen in order to best explain the principles of the technology and its practical application to thereby enable others skilled in the art to best utilize the technology in various embodiments and with various modifications as are suited to the particular use contemplated. It is intended that the scope of the technology be defined by the claims appended hereto.

Claims
  • 1. A method for processing data regarding a plurality of program builds or compilations from a plurality of distributed computing devices, the method including: receiving, at an aggregator on a server in a computer network, build data and local machine data associated with one or more program builds being executed on the plurality of distributed computing devices, wherein the build data includes time stamp data representing start and end times for completing the build of each program, the build data and local machine data providing context for completing the plurality of program builds across the plurality of distributed computing devices;creating, by the aggregator, aggregated groups of data based on dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices;determining, by the server, a time for completing at least one build of the plurality of program builds;receiving, from an administrator computing device, a query for a particular slice of the aggregated groups of data; andgenerating, by the server, a response to the receive query to return the requested particular slice of the aggregated groups of data, the response causing the administrator computing device to display, through an interface, a tree of the dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices.
  • 2. The method of claim 1, wherein the creating the aggregated groups of data includes: aggregating data by the dimensions including operating system data, branch data, project data, target data, result of the build data, machine resources data, or workflow data.
  • 3. The method of claim 1, wherein the displaying, through the interface, includes: displaying multiple data points for the plurality of builds with a set of the dimensions.
  • 4. The method of claim 1, including: receiving work flow data including one or more instructions performed at the plurality of distributed computing devices before start of the plurality of program builds.
  • 5. The method of claim 1, wherein receiving the local machine data includes: receiving memory and processor data of the plurality of distributed computing devices completing the plurality of program builds.
  • 6. The method of claim 1, including: analyzing the received build data and local machine data for the plurality of distributed computing devices completing the plurality of program builds.
  • 7. The method of claim 1, including: receiving the local machine data and the build data based on a non-periodic event including an anomaly.
  • 8. A system for processing data regarding a plurality of program builds at a plurality of distributed computing devices, the system including: a processor;a memory; andone or more modules stored in the memory and executable by the processor to perform operations including: receive build data and local machine data associated with one or more program builds being executed on the plurality of distributed computing devices, wherein the build data includes time stamp data representing start and end times for completing the build of each program, the build data and local machine data providing context for completing the plurality of program builds across the plurality of distributed computing devices;create aggregated groups of data based on dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices;determine a time for completing at least one build of the plurality of program builds;receive, from an administrator computing device, a query for a particular slice of the aggregated groups of data; andgenerate a response to the receive query to return the requested particular slice of the aggregated groups of data, the response causing the administrator computing device to display, through an interface, a tree of the dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices.
  • 9. The system of claim 8, wherein the dimensions include operating system data, branch data, project data, target data, result of the build data, machine resources data, or workflow data.
  • 10. The system of claim 8, wherein the one or more modules are executable to display, through the interface, multiple data points for the plurality of builds with a set of the dimensions.
  • 11. A non-transitory computer readable storage medium having embodied thereon a program, the program being executable by a processor to perform operations for collecting data regarding a program build including: receiving build data and local machine data associated with one or more program builds being executed on the plurality of distributed computing devices, wherein the build data includes time stamp data representing start and end times for completing the build of each program, the build data and local machine data providing context for completing the plurality of program builds across the plurality of distributed computing devices;creating aggregated groups of data based on dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices;determining a time for completing at least one build of the plurality of program buildsreceiving, from an administrator computing device, a query for a particular slice of the aggregated groups of data; andgenerating a response to the receive query to return the requested particular slice of the aggregated groups of data, the response causing the administrator computing device to display, through an interface, a tree of the dimensions of the received build data and local machine data associated with the plurality of program builds at the distributed computing devices.
  • 12. The non-transitory computer readable storage medium of claim 11, wherein the creating the aggregated groups of data includes: aggregating data by the dimensions including operating system data, branch data, project data, target data, result of the build data, machine resources data, or workflow data.
  • 13. The non-transitory computer readable storage medium of claim 11, wherein the displaying, through the interface, includes: displaying multiple data points for the plurality of builds with a set of the dimensions.
  • 14. The non-transitory computer readable storage medium of claim 11, including: receiving work flow data including one or more instructions performed at the plurality of distributed computing devices before start of the plurality of program builds.
  • 15. The non-transitory computer readable storage medium of claim 11, including: receiving the local machine data and the build data based on a non-periodic event including an anomaly.
CROSS REFERENCE TO RELATED APPLICATIONS

This application is a continuation of U.S. patent application Ser. No. 14/530,440, now U.S. Pat. No. 9,628,544, titled “Distributed Build and Compile Statistics,” filed, Oct. 31, 2014, the disclosure of which is incorporated herein by reference.

US Referenced Citations (10)
Number Name Date Kind
7272820 Klianev Sep 2007 B2
8832644 Hirsch et al. Sep 2014 B2
20050177828 Graham Aug 2005 A1
20070069850 Anderson et al. Mar 2007 A1
20080288337 Snyder Nov 2008 A1
20100205591 Barsness Aug 2010 A1
20100262948 Melski Oct 2010 A1
20120260240 Arnott Oct 2012 A1
20130152047 Moorthi et al. Jun 2013 A1
20130205278 Hirsch Aug 2013 A1
Related Publications (1)
Number Date Country
20170220325 A1 Aug 2017 US
Continuations (1)
Number Date Country
Parent 14530440 Oct 2014 US
Child 15489630 US