US20170116111A1 - Ideal age vector based file retention in a software testing system - Google Patents

Ideal age vector based file retention in a software testing system Download PDF

Info

Publication number
US20170116111A1
US20170116111A1 US15/069,357 US201615069357A US2017116111A1 US 20170116111 A1 US20170116111 A1 US 20170116111A1 US 201615069357 A US201615069357 A US 201615069357A US 2017116111 A1 US2017116111 A1 US 2017116111A1
Authority
US
United States
Prior art keywords
file
files
age
vector
ideal
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.)
Abandoned
Application number
US15/069,357
Inventor
Jeffrey M. Gertner
Timothy D. Greer
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.)
International Business Machines Corp
Original Assignee
International Business Machines 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 International Business Machines Corp filed Critical International Business Machines Corp
Priority to US15/069,357 priority Critical patent/US20170116111A1/en
Assigned to INTERNATIONAL BUSINESS MACHINES CORPORATION reassignment INTERNATIONAL BUSINESS MACHINES CORPORATION ASSIGNMENT OF ASSIGNORS INTEREST (SEE DOCUMENT FOR DETAILS). Assignors: GERTNER, JEFFREY M., GREER, TIMOTHY D.
Publication of US20170116111A1 publication Critical patent/US20170116111A1/en
Abandoned legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • G06F16/125File system administration, e.g. details of archiving or snapshots using management policies characterised by the use of retention policies
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • G06F17/30085
    • G06F17/30117
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F8/00Arrangements for software engineering
    • G06F8/70Software maintenance or management
    • G06F8/71Version control; Configuration management

Definitions

  • the present invention relates generally to file retention in a software testing system, and more specifically, to ideal age vector based file retention in a software testing system.
  • Software may be extensively tested before being released as a software product.
  • new versions of software under test are regularly provided to the testers as developers make changes to the software.
  • the new versions may be provided at any appropriate interval, for example, daily.
  • Each new version may take the form of a relatively large file. It is useful to retain historical version files of software under test because after a bug (or error) has been discovered in the software, the historical version files of the software may be used to determine when the bug was introduced into the software. Knowledge of when the bug was introduced may allow identification of the cause of the bug and reduce the necessary debugging effort to correct the bug. Retention of a relatively large number of historical version files may be necessary to pinpoint when bugs were introduced into software.
  • Embodiments include a method, system, and computer program product for ideal age vector based file retention in a software testing system.
  • An aspect includes determining an ideal age vector of historical bug age data corresponding to a software product in the software testing system, wherein the software testing system stores a plurality of version files of the software product.
  • Another aspect includes based on receiving a new version file of the software product, determining a file to delete of the plurality of version files and the new version file based on the ideal age vector.
  • Yet another aspect includes deleting the determined file to delete such that a number of remaining version files is equal to a number of the plurality of version files.
  • FIG. 1 depicts a system for ideal age vector based file retention in a software testing system in accordance with an embodiment
  • FIG. 2 depicts a process flow for ideal age vector based file retention in a software testing system in accordance with an embodiment
  • FIG. 3 illustrates an example of an actual age vector and an ideal age vector in accordance with an embodiment
  • FIG. 4 depicts an example of a computer for use in conjunction with ideal age vector based file retention in a software testing system in accordance with an embodiment.
  • Embodiments of ideal age vector based file retention in a software testing system are provided, with exemplary embodiments being discussed below in detail.
  • the number of historical version files of a software product that are retained is limited by physical storage, especially in the case of a relatively large software product. Therefore, in general, when a new version file is received, an older file is selected for deletion in order to make space for the new file.
  • some bugs may be present in the software for a relatively long period of time before they are identified; for example, not all tests are run daily, the results of tests that are run are not necessarily observed promptly, or a bug may not immediately be recognized as a bug.
  • Ideal age vector based file retention is implemented to select the best file to delete upon receipt of a new file, so as to retain a set of historical version files that give a good probability of being able to determine bug origins.
  • the ideal age vector may be determined based on a probability distribution function that is based on data regarding the amount of time bugs have historically been present in the software before discovery in the software testing system.
  • the physical memory may have space for N files.
  • N files When a new file becomes available, if fewer than N files are currently stored, the new file is stored with its age. If N files are already stored, then, when a new file is received, there are N+1 files.
  • the N+1 files have a range of ages. At least one of the N+1 files must be selected for deletion in order to get down to the desired storage consumption, i.e., N files. Ideal age vector based file retention ensures that the N remaining files best enable the determination of when the bug was introduced.
  • the age of a file may be literal chronological age in some embodiments, or in other embodiments may be a measure of code change, e.g. lines of code modified since some reference date.
  • the ages of the N+1 files may be a strictly increasing function across the N+1 files, because if the code is unchanged there is no reason to send a new file to the software testing system. Once a file is deleted it cannot be recovered.
  • the probability distribution function represents the likelihood that a newly-detected bug is of a given age. Given the probability distribution function representing the likelihood that a newly-detected bug is of a given age, and the number N of files to retain of the N+1 files, an ideal age vector for the ages of the N retained files may be determined based on the probability distribution function. This ideal age vector will be the ages which partition the probability distribution function into N+1 regions of equal probability. In some embodiments, the ideal age vector may be directly specified instead of being determined by the probability distribution function, that is, the N desired ages that make up the ideal age vector may be specified. In various embodiments, the probability distribution function and associated ideal age vector may be updated with new bug age data as bugs are located and their ages identified by the software testing system.
  • a distance measure is defined (or programmatically determined) for comparing the ideal age vector to a vector of the same length consisting of a subset of actual ages of files.
  • the distance measure is used to determine N of the N+1 files that best match the ideal age vector.
  • the distance measure between two age vectors may be the sum of the absolute values of the age differences of the individual components of each vector, where the individual components are ordered by age. For example, the absolute value of the difference between the oldest age in each vector, plus the absolute value of the difference between the next-oldest age in each vector, and so on down to the absolute value of the difference between the youngest age in each vector.
  • the distance between a vector and the ideal age vector might be a nearest neighbor distance, where the distance is the sum of the absolute values of the difference of each age within the ideal age vector and the nearest age component in the given vector.
  • the distance measure may be a Euclidean distance, e.g., the sum of the squares of the component-wise differences between individual components of the ideal age vector and the actual age vector (this particular distance being known as a squared Euclidean distance).
  • Various selection algorithms may be used to determine the set of N files of the N+1 files that best matches the ideal age vector based on the distance measures.
  • a greedy algorithm may be implemented.
  • the greedy algorithm is an algorithm that always makes the choice that provides the largest immediate benefit.
  • the greedy algorithm tests all of the N+1 choices for a file to delete, and for each choice calculates the distance measure between that choice (i.e., the age vector of the remaining files without the deletion candidate) and the ideal age vector.
  • the greedy algorithm selects the deletion candidate whose remaining files have the minimum distance measure.
  • N is the number of files that can be retained at any given time, not counting the newly-arriving file.
  • the ages of the N+1 files may be defined in various ways, for example, chronological age, changed lines of code prior to current date, or code fixes prior to current date.
  • the probability distribution function is the likely distribution of the age of an error (i.e., a bug) that is being located in the historical files.
  • a list of ideal ages i.e., the ideal age vector
  • the distance measure is the distance of a given age vector from the ideal age vector.
  • the system 100 stores N existing files 101 in a computer memory.
  • the number N is dictated by the amount of available storage.
  • the N existing files 101 are historical versions of the same software product, each having a different age.
  • the N existing files 101 are used to determine the ages of bugs that are found by testing of the software product.
  • New files such as new file 102 , may arrive at any time interval in various embodiments, and the time interval may be roughly constant or may vary between file arrivals in various embodiments.
  • a probability distribution function and associated ideal age vector 103 are determined based on historical data 107 regarding bugs that have been identified in the software product by the software testing system. Probability distribution function and associated ideal age vector 103 may be updated during operation of system 100 as bugs are located and their ages are determined in the software testing system. In some embodiments, the ideal age vector may be directly determined without determining the probability distribution function. The ideal age vector may depend on the particular software product, but may be determined based on the probability distribution function p(x) of the age of a change (or bug) that is being located in the N files. In some embodiments, the ideal age vector may cover the age ranges uniformly.
  • a set of distance measures 104 between the ideal age vector 103 and various file retention scenarios involving the N existing files 101 and the new file 102 are determined based on an algorithm 105 .
  • the distance measure 104 is based on the actual ages of the files that are retained based on a particular file being deleted, and is used to quantify how good or bad a particular age vector is, i.e., how close it is to the ideal age vector 103 .
  • the distance measure 104 may be determined based on, for example, an absolute value distance, a Euclidean distance, or nearest neighbor distance.
  • the selection algorithm 105 determines which file retention scenarios are used to determined distance measures 104 , and selects a particular file retention scenario (i.e., deletes a particular deletions candidate file) to give list 106 of N files to retain.
  • the algorithm 105 may take into account that the algorithm is run for each new arrival, and may further take into account that a file that is deleted cannot be recovered in some embodiments.
  • the N retained files 106 are then used to determine the time of introduction of a newly identified bug in the software product. Any bug ages determined using the N retained files 106 may be fed back into the probability distribution function/ideal age vector 103 as bug age data 107 .
  • FIG. 2 illustrates an embodiment of a method 200 for ideal age vector based file retention in a software testing system.
  • Method 200 is executed in the software testing system whenever a new version file arrives that puts the number of version files at N+1, where N is the maximum number of version files.
  • the embodiment of method 200 implements a greedy algorithm as algorithm 105 using a Euclidean distance measure as distance measure 104 ; however, this is shown for illustrative purposes only.
  • Various algorithms that may be implemented in various embodiments of ideal age vector based file retention in a software testing system are discussed below with respect to Tables 1-4.
  • a new version file corresponding to a software product is received, resulting in N+1 files corresponding to the software product, such that 1 file of the N+1 files must be deleted.
  • the N+1 files are sorted by age, and each file has a distinct age.
  • I is set to 1
  • Min is set to M, which may be any relatively large number
  • D is set to 1.
  • the actual age vector of the ages of the files with file I removed i.e., file I is being evaluated as a possible deletion candidate
  • the distance measure (such as the distance measure 104 of FIG. 1 ) of the actual age vector that was determined in block 203 from the ideal age vector (such as ideal age vector 103 of FIG.
  • Block 205 it is determined whether the distance measure that was determined in block 204 is less than Min. If it is determined in block 205 that the distance measure that was determined in block 204 is less than Min, then flow proceeds to block 206 , in which Min is set equal to the distance that was determined in block 204 , and D is set equal to I, i.e., I is the current selected deletion candidate. Flow then proceeds to block 207 . If it is determined in block 205 that the distance measure that was determined in block 204 is not less than Min, then flow proceeds directly from block 205 to block 207 . In block 207 , I is incremented by 1. Then, in block 208 , it is determined whether the incremented I is greater than N+1.
  • deletion of file D may not free up enough storage for the incoming version file.
  • the method 200 is repeated with the set of files (i.e., the N+1 files without file D, which is a set of N files) to determine another file D 2 to delete.
  • N 2 which is equal to N ⁇ 1, is substituted for N, because the system only has storage for N ⁇ 1 files.
  • the method 200 may be repeated as needed until the remaining files fit in the available storage.
  • FIG. 3 illustrates an example of an actual age vector 300 A of ages of N+1 files as compared to an ideal age vector 300 B.
  • Ideal age vector 300 B may correspond to ideal age vector 103 of FIG. 1 .
  • N is equal to 5, such that one of files 1-6 must be deleted.
  • a file of files 1-6 must be selected for deletion such that the remaining files best match the ideal age vector 300 B.
  • Various selection algorithms may be used for algorithm 105 of FIG. 1 to determine the best deletion candidate in various embodiments. Some examples of such algorithms are illustrated in Tables 1-4 below.
  • X is the file that is chosen for elimination
  • alist(i) represents the ideal age vector of N ages for the retained files
  • nowlist(i) is a vector of ages that represents the current N+1 ages that are actually available.
  • COST(i) is the distance, as described above, between the ideal age vector and the vector of ages formed by removing the ith age from the N+1 available ages. The objective is to find which of the nowlist(i) ages is least desirable and discard the corresponding file.
  • the vector of ages obtained from nowlist(i) by eliminating the Xth entry has a distance, COST, from the ideal age vector, where the distance is defined as described in paragraph 12.
  • the overall objective is to make the elimination choices such that averaged over time, COST is minimized.
  • the algorithms shown in Tables 1-4 are for illustrative purposes only; any appropriate algorithm may be used in various embodiments. For example, if the aging rate is liable to be changing (e.g., fewer code changes are being made over time, so that the differences in age of the incoming files become smaller), a rescaling provision may be included.
  • more than one new version file may be become available simultaneously.
  • the multiple new files may be dealt with one at a time to determine what files to delete to make room for the new files, using any of the methods algorithms discussed above.
  • a variation of the Greedy Algorithm of Table 1 may be implemented, where for the case of M new version files, each of the (N+M)!/(N!M!) subsets of size N of the N+M available ages is used to form a proposed age vector, the COST of that vector determined, and the vector of minimum COST thus determined. The version files corresponding to those ages are retained, and the other M version files deleted.
  • FIG. 4 illustrates an example of a computer 400 which may be utilized in conjunction with embodiments of ideal age vector based file retention.
  • Various operations discussed above may utilize the capabilities of the computer 400 .
  • One or more of the capabilities of the computer 400 may be incorporated in any element, module, application, and/or component discussed herein.
  • the existing files may be stored in memory 420 , and the size of memory 420 may give the number N of files to be retained.
  • the computer 400 includes, but is not limited to, PCs, workstations, laptops, PDAs, palm devices, servers, storages, and the like.
  • the computer 400 may include one or more processors 410 , memory 420 , and one or more I/O devices 470 that are communicatively coupled via a local interface (not shown).
  • the local interface can be, for example but not limited to, one or more buses or other wired or wireless connections, as is known in the art.
  • the local interface may have additional elements, such as controllers, buffers (caches), drivers, repeaters, and receivers, to enable communications. Further, the local interface may include address, control, and/or data connections to enable appropriate communications among the aforementioned components.
  • the processor 410 is a hardware device for executing software that can be stored in the memory 420 .
  • the processor 410 can be virtually any custom made or commercially available processor, a central processing unit (CPU), a digital signal processor (DSP), or an auxiliary processor among several processors associated with the computer 400 , and the processor 410 may be a semiconductor based microprocessor (in the form of a microchip) or a macroprocessor.
  • the memory 420 can include any one or combination of volatile memory elements (e.g., random access memory (RAM), such as dynamic random access memory (DRAM), static random access memory (SRAM), etc.) and nonvolatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.).
  • RAM random access memory
  • DRAM dynamic random access memory
  • SRAM static random access memory
  • nonvolatile memory elements e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.
  • the memory 420 may incorporate electronic, magnetic, optical, and/or other types of storage
  • the software in the memory 420 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions.
  • the software in the memory 420 includes a suitable operating system (O/S) 450 , compiler 440 , source code 430 , and one or more applications 460 in accordance with exemplary embodiments.
  • the application 460 comprises numerous functional components for implementing the features and operations of the exemplary embodiments.
  • the application 460 of the computer 400 may represent various applications, computational units, logic, functional units, processes, operations, virtual entities, and/or modules in accordance with exemplary embodiments, but the application 460 is not meant to be a limitation.
  • the operating system 450 controls the execution of other computer programs, and provides scheduling, input-output control, file and data management, memory management, and communication control and related services. It is contemplated by the inventors that the application 460 for implementing exemplary embodiments may be applicable on all commercially available operating systems.
  • Application 460 may be a source program, executable program (object code), script, or any other entity comprising a set of instructions to be performed.
  • a source program then the program is usually translated via a compiler (such as the compiler 440 ), assembler, interpreter, or the like, which may or may not be included within the memory 420 , so as to operate properly in connection with the O/S 450 .
  • the application 460 can be written as an object oriented programming language, which has classes of data and methods, or a procedure programming language, which has routines, subroutines, and/or functions, for example but not limited to, C, C++, C#, Pascal, BASIC, API calls, HTML, XHTML, XML, ASP scripts, FORTRAN, COBOL, Perl, Java, ADA, .NET, and the like.
  • the I/O devices 470 may include input devices such as, for example but not limited to, a mouse, keyboard, scanner, microphone, camera, etc. Furthermore, the I/O devices 470 may also include output devices, for example but not limited to a printer, display, etc. Finally, the I/O devices 470 may further include devices that communicate both inputs and outputs, for instance but not limited to, a NIC or modulator/demodulator (for accessing remote devices, other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, etc. The I/O devices 470 also include components for communicating over various networks, such as the Internet or intranet.
  • a NIC or modulator/demodulator for accessing remote devices, other files, devices, systems, or a network
  • RF radio frequency
  • the I/O devices 470 also include components for communicating over various networks, such as the Internet or intranet.
  • the software in the memory 420 may further include a basic input output system (BIOS) (omitted for simplicity).
  • BIOS is a set of essential software routines that initialize and test hardware at startup, start the O/S 450 , and support the transfer of data among the hardware devices.
  • the BIOS is stored in some type of read-only-memory, such as ROM, PROM, EPROM, EEPROM or the like, so that the BIOS can be executed when the computer 400 is activated.
  • the processor 410 When the computer 400 is in operation, the processor 410 is configured to execute software stored within the memory 420 , to communicate data to and from the memory 420 , and to generally control operations of the computer 400 pursuant to the software.
  • the application 460 and the O/S 450 are read, in whole or in part, by the processor 410 , perhaps buffered within the processor 410 , and then executed.
  • a computer readable storage medium may be an electronic, magnetic, optical, or other physical device or means that can contain or store a computer program for use by or in connection with a computer related system or method.
  • the application 460 can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions.
  • a “computer-readable storage medium” can be any means that can store the program for use by or in connection with the instruction execution system, apparatus, or device.
  • the computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, or semiconductor system, apparatus, or a device.
  • the computer-readable storage medium may include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic or optical), a random access memory (RAM) (electronic), a read-only memory (ROM) (electronic), an erasable programmable read-only memory (EPROM, EEPROM, or Flash memory) (electronic), an optical fiber (optical), and a portable compact disc memory (CDROM, CD R/W) (optical).
  • the computer-readable storage medium could even be paper or another suitable medium, upon which the program is printed or punched, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
  • the application 460 can be implemented with any one or a combination of the following technologies, which are well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
  • ASIC application specific integrated circuit
  • PGA programmable gate array
  • FPGA field programmable gate array
  • Technical effects and benefits include retaining files in a software testing system such that the age of identified bugs may be determined.
  • the present invention may be a system, a method, and/or a computer program product.
  • the computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
  • the computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device.
  • the computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing.
  • a non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing.
  • RAM random access memory
  • ROM read-only memory
  • EPROM or Flash memory erasable programmable read-only memory
  • SRAM static random access memory
  • CD-ROM compact disc read-only memory
  • DVD digital versatile disk
  • memory stick a floppy disk
  • a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon
  • a computer readable storage medium is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network.
  • the network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers.
  • a network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
  • Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages.
  • the computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server.
  • the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider).
  • electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
  • the computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s).
  • the functions noted in the block may occur out of the order noted in the figures.
  • two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.

Abstract

Embodiments relate to ideal age vector based file retention in a software testing system. An aspect includes determining an ideal age vector of historical bug age data corresponding to a software product in the software testing system, wherein the software testing system stores a plurality of version files of the software product. Another aspect includes based on receiving a new version file of the software product, determining a file to delete of the plurality of version files and the new version file based on the ideal age vector. Yet another aspect includes deleting the determined file to delete such that a number of remaining version files is equal to a number of the plurality of version files.

Description

    PRIORITY
  • This application is a continuation of U.S. patent application Ser. No. 14/921,208, filed Oct. 23, 2015, the disclosure of which is incorporated by reference herein in its entirety.
  • BACKGROUND
  • The present invention relates generally to file retention in a software testing system, and more specifically, to ideal age vector based file retention in a software testing system.
  • Software may be extensively tested before being released as a software product. In a software testing environment, new versions of software under test are regularly provided to the testers as developers make changes to the software. The new versions may be provided at any appropriate interval, for example, daily. Each new version may take the form of a relatively large file. It is useful to retain historical version files of software under test because after a bug (or error) has been discovered in the software, the historical version files of the software may be used to determine when the bug was introduced into the software. Knowledge of when the bug was introduced may allow identification of the cause of the bug and reduce the necessary debugging effort to correct the bug. Retention of a relatively large number of historical version files may be necessary to pinpoint when bugs were introduced into software.
  • SUMMARY
  • Embodiments include a method, system, and computer program product for ideal age vector based file retention in a software testing system. An aspect includes determining an ideal age vector of historical bug age data corresponding to a software product in the software testing system, wherein the software testing system stores a plurality of version files of the software product. Another aspect includes based on receiving a new version file of the software product, determining a file to delete of the plurality of version files and the new version file based on the ideal age vector. Yet another aspect includes deleting the determined file to delete such that a number of remaining version files is equal to a number of the plurality of version files.
  • BRIEF DESCRIPTION OF THE DRAWINGS
  • The subject matter which is regarded as embodiments is particularly pointed out and distinctly claimed in the claims at the conclusion of the specification. The foregoing and other features and advantages of the embodiments are apparent from the following detailed description taken in conjunction with the accompanying drawings in which:
  • FIG. 1 depicts a system for ideal age vector based file retention in a software testing system in accordance with an embodiment;
  • FIG. 2 depicts a process flow for ideal age vector based file retention in a software testing system in accordance with an embodiment;
  • FIG. 3 illustrates an example of an actual age vector and an ideal age vector in accordance with an embodiment; and
  • FIG. 4 depicts an example of a computer for use in conjunction with ideal age vector based file retention in a software testing system in accordance with an embodiment.
  • DETAILED DESCRIPTION
  • Embodiments of ideal age vector based file retention in a software testing system are provided, with exemplary embodiments being discussed below in detail. The number of historical version files of a software product that are retained is limited by physical storage, especially in the case of a relatively large software product. Therefore, in general, when a new version file is received, an older file is selected for deletion in order to make space for the new file. However, some bugs may be present in the software for a relatively long period of time before they are identified; for example, not all tests are run daily, the results of tests that are run are not necessarily observed promptly, or a bug may not immediately be recognized as a bug. Ideal age vector based file retention is implemented to select the best file to delete upon receipt of a new file, so as to retain a set of historical version files that give a good probability of being able to determine bug origins. The ideal age vector may be determined based on a probability distribution function that is based on data regarding the amount of time bugs have historically been present in the software before discovery in the software testing system.
  • In the software testing system, the physical memory may have space for N files. When a new file becomes available, if fewer than N files are currently stored, the new file is stored with its age. If N files are already stored, then, when a new file is received, there are N+1 files. The N+1 files have a range of ages. At least one of the N+1 files must be selected for deletion in order to get down to the desired storage consumption, i.e., N files. Ideal age vector based file retention ensures that the N remaining files best enable the determination of when the bug was introduced. The age of a file may be literal chronological age in some embodiments, or in other embodiments may be a measure of code change, e.g. lines of code modified since some reference date. The ages of the N+1 files may be a strictly increasing function across the N+1 files, because if the code is unchanged there is no reason to send a new file to the software testing system. Once a file is deleted it cannot be recovered.
  • The probability distribution function represents the likelihood that a newly-detected bug is of a given age. Given the probability distribution function representing the likelihood that a newly-detected bug is of a given age, and the number N of files to retain of the N+1 files, an ideal age vector for the ages of the N retained files may be determined based on the probability distribution function. This ideal age vector will be the ages which partition the probability distribution function into N+1 regions of equal probability. In some embodiments, the ideal age vector may be directly specified instead of being determined by the probability distribution function, that is, the N desired ages that make up the ideal age vector may be specified. In various embodiments, the probability distribution function and associated ideal age vector may be updated with new bug age data as bugs are located and their ages identified by the software testing system.
  • A distance measure is defined (or programmatically determined) for comparing the ideal age vector to a vector of the same length consisting of a subset of actual ages of files. The distance measure is used to determine N of the N+1 files that best match the ideal age vector. In some embodiments, the distance measure between two age vectors may be the sum of the absolute values of the age differences of the individual components of each vector, where the individual components are ordered by age. For example, the absolute value of the difference between the oldest age in each vector, plus the absolute value of the difference between the next-oldest age in each vector, and so on down to the absolute value of the difference between the youngest age in each vector. In some embodiments, the distance between a vector and the ideal age vector might be a nearest neighbor distance, where the distance is the sum of the absolute values of the difference of each age within the ideal age vector and the nearest age component in the given vector. In some embodiments, the distance measure may be a Euclidean distance, e.g., the sum of the squares of the component-wise differences between individual components of the ideal age vector and the actual age vector (this particular distance being known as a squared Euclidean distance).
  • Various selection algorithms may be used to determine the set of N files of the N+1 files that best matches the ideal age vector based on the distance measures. In some embodiments, a greedy algorithm may be implemented. The greedy algorithm is an algorithm that always makes the choice that provides the largest immediate benefit. The greedy algorithm tests all of the N+1 choices for a file to delete, and for each choice calculates the distance measure between that choice (i.e., the age vector of the remaining files without the deletion candidate) and the ideal age vector. The greedy algorithm then selects the deletion candidate whose remaining files have the minimum distance measure.
  • As used herein, N is the number of files that can be retained at any given time, not counting the newly-arriving file. The ages of the N+1 files may be defined in various ways, for example, chronological age, changed lines of code prior to current date, or code fixes prior to current date. The probability distribution function is the likely distribution of the age of an error (i.e., a bug) that is being located in the historical files. A list of ideal ages (i.e., the ideal age vector) may be defined for the N files to retain based on the probability distribution function. The distance measure is the distance of a given age vector from the ideal age vector.
  • Turning now to FIG. 1, a system 100 for ideal age vector based file retention in a software testing system is generally shown. The system 100 stores N existing files 101 in a computer memory. The number N is dictated by the amount of available storage. The N existing files 101 are historical versions of the same software product, each having a different age. The N existing files 101 are used to determine the ages of bugs that are found by testing of the software product. When new file 102 arrives in system 100, a file of N existing files 101 must be deleted to make room for new file 102. New files, such as new file 102, may arrive at any time interval in various embodiments, and the time interval may be roughly constant or may vary between file arrivals in various embodiments. A probability distribution function and associated ideal age vector 103 are determined based on historical data 107 regarding bugs that have been identified in the software product by the software testing system. Probability distribution function and associated ideal age vector 103 may be updated during operation of system 100 as bugs are located and their ages are determined in the software testing system. In some embodiments, the ideal age vector may be directly determined without determining the probability distribution function. The ideal age vector may depend on the particular software product, but may be determined based on the probability distribution function p(x) of the age of a change (or bug) that is being located in the N files. In some embodiments, the ideal age vector may cover the age ranges uniformly.
  • When the new file 102 arrives, a set of distance measures 104 between the ideal age vector 103 and various file retention scenarios involving the N existing files 101 and the new file 102 are determined based on an algorithm 105. The distance measure 104 is based on the actual ages of the files that are retained based on a particular file being deleted, and is used to quantify how good or bad a particular age vector is, i.e., how close it is to the ideal age vector 103. The distance measure 104 may be determined based on, for example, an absolute value distance, a Euclidean distance, or nearest neighbor distance. The selection algorithm 105 determines which file retention scenarios are used to determined distance measures 104, and selects a particular file retention scenario (i.e., deletes a particular deletions candidate file) to give list 106 of N files to retain. The algorithm 105 may take into account that the algorithm is run for each new arrival, and may further take into account that a file that is deleted cannot be recovered in some embodiments. The N retained files 106 are then used to determine the time of introduction of a newly identified bug in the software product. Any bug ages determined using the N retained files 106 may be fed back into the probability distribution function/ideal age vector 103 as bug age data 107.
  • FIG. 2 illustrates an embodiment of a method 200 for ideal age vector based file retention in a software testing system. Method 200 is executed in the software testing system whenever a new version file arrives that puts the number of version files at N+1, where N is the maximum number of version files. The embodiment of method 200 implements a greedy algorithm as algorithm 105 using a Euclidean distance measure as distance measure 104; however, this is shown for illustrative purposes only. Various algorithms that may be implemented in various embodiments of ideal age vector based file retention in a software testing system are discussed below with respect to Tables 1-4. In block 201, a new version file corresponding to a software product is received, resulting in N+1 files corresponding to the software product, such that 1 file of the N+1 files must be deleted. The N+1 files are sorted by age, and each file has a distinct age. In block 202, I is set to 1, Min is set to M, which may be any relatively large number, and D is set to 1. In block 203, the actual age vector of the ages of the files with file I removed (i.e., file I is being evaluated as a possible deletion candidate) is determined. In block 204, the distance measure (such as the distance measure 104 of FIG. 1) of the actual age vector that was determined in block 203 from the ideal age vector (such as ideal age vector 103 of FIG. 1) is determined. In block 205, it is determined whether the distance measure that was determined in block 204 is less than Min. If it is determined in block 205 that the distance measure that was determined in block 204 is less than Min, then flow proceeds to block 206, in which Min is set equal to the distance that was determined in block 204, and D is set equal to I, i.e., I is the current selected deletion candidate. Flow then proceeds to block 207. If it is determined in block 205 that the distance measure that was determined in block 204 is not less than Min, then flow proceeds directly from block 205 to block 207. In block 207, I is incremented by 1. Then, in block 208, it is determined whether the incremented I is greater than N+1. If it is determined in block 208 that I is not greater than N+1, then flow returns from block 208 to block 203. The actual age vector is determined for each possible deletion candidate by stepping through blocks 203, 204, 205, 206, and 207 for each of the N+1 files using I. The file I having the smallest distance measure is determined and saved as file D. When it is determined in block 208 that I is greater than N+1, then flow proceeds to block 209, in which file D is deleted.
  • In some embodiments in which the historical version files are of differing sizes, deletion of file D may not free up enough storage for the incoming version file. In such an embodiment, the method 200 is repeated with the set of files (i.e., the N+1 files without file D, which is a set of N files) to determine another file D2 to delete. In such an embodiment, N2, which is equal to N−1, is substituted for N, because the system only has storage for N−1 files. The method 200 may be repeated as needed until the remaining files fit in the available storage.
  • FIG. 3 illustrates an example of an actual age vector 300A of ages of N+1 files as compared to an ideal age vector 300B. Ideal age vector 300B may correspond to ideal age vector 103 of FIG. 1. As shown in the example of FIG. 3, N is equal to 5, such that one of files 1-6 must be deleted. A file of files 1-6 must be selected for deletion such that the remaining files best match the ideal age vector 300B. Various selection algorithms may be used for algorithm 105 of FIG. 1 to determine the best deletion candidate in various embodiments. Some examples of such algorithms are illustrated in Tables 1-4 below. In the algorithms of Tables 1-4, X is the file that is chosen for elimination, alist(i) represents the ideal age vector of N ages for the retained files, and nowlist(i) is a vector of ages that represents the current N+1 ages that are actually available. In Table 1, COST(i) is the distance, as described above, between the ideal age vector and the vector of ages formed by removing the ith age from the N+1 available ages. The objective is to find which of the nowlist(i) ages is least desirable and discard the corresponding file. The vector of ages obtained from nowlist(i) by eliminating the Xth entry has a distance, COST, from the ideal age vector, where the distance is defined as described in paragraph 12. The overall objective is to make the elimination choices such that averaged over time, COST is minimized. The algorithms shown in Tables 1-4 are for illustrative purposes only; any appropriate algorithm may be used in various embodiments. For example, if the aging rate is liable to be changing (e.g., fewer code changes are being made over time, so that the differences in age of the incoming files become smaller), a rescaling provision may be included.
  • TABLE 1
    Greedy Algorithm (try all the possibilities, choose least cost)
    MINCOST = some big number
    for i=N+1to 1 step −1
    if COST(i) < MINCOST then
     X = i
     MINCOST = COST(i)
     End
    End
  • TABLE 2
    FROMLAST Algorithm (Fill in slots from the end, looking for the extra)
    found=no
    for i=N to 1 step −1 while found=no
     j=i+1
     X = j
     if nowlist(j) > alist(i) then found=yes
    end
  • TABLE 3
    RANGE Algorithm (adjusts to midpoints between alist( ) values)
    for i=1 to N−1
     b(i) = (alist(i) + alist(i+1))/2
    end
    found = no
    b(N) = alist(N) + (alist(N) − alist(N−1))/2
    for i=N to 1 step −1 while found=no
     j=i+1
     X=j
     if nowlist(j) > b(i) then found=yes
    end
  • TABLE 4
    FROMLAST2 Algorithm (considers last 2 files instead of just last one)
    found=no
    for i=N to 2 step −1 while found=no
     j=i+1
     X = j
     if( (nowlist(j) > alist(i)) & (nowlist(j−1) > alist(i−1)) ) then found=yes
    end
    if (found=no) then X=2
  • In some embodiments, more than one new version file may be become available simultaneously. In some embodiments, the multiple new files may be dealt with one at a time to determine what files to delete to make room for the new files, using any of the methods algorithms discussed above. In other embodiments, a variation of the Greedy Algorithm of Table 1 may be implemented, where for the case of M new version files, each of the (N+M)!/(N!M!) subsets of size N of the N+M available ages is used to form a proposed age vector, the COST of that vector determined, and the vector of minimum COST thus determined. The version files corresponding to those ages are retained, and the other M version files deleted.
  • FIG. 4 illustrates an example of a computer 400 which may be utilized in conjunction with embodiments of ideal age vector based file retention. Various operations discussed above may utilize the capabilities of the computer 400. One or more of the capabilities of the computer 400 may be incorporated in any element, module, application, and/or component discussed herein. For example, the existing files may be stored in memory 420, and the size of memory 420 may give the number N of files to be retained.
  • The computer 400 includes, but is not limited to, PCs, workstations, laptops, PDAs, palm devices, servers, storages, and the like. Generally, in terms of hardware architecture, the computer 400 may include one or more processors 410, memory 420, and one or more I/O devices 470 that are communicatively coupled via a local interface (not shown). The local interface can be, for example but not limited to, one or more buses or other wired or wireless connections, as is known in the art. The local interface may have additional elements, such as controllers, buffers (caches), drivers, repeaters, and receivers, to enable communications. Further, the local interface may include address, control, and/or data connections to enable appropriate communications among the aforementioned components.
  • The processor 410 is a hardware device for executing software that can be stored in the memory 420. The processor 410 can be virtually any custom made or commercially available processor, a central processing unit (CPU), a digital signal processor (DSP), or an auxiliary processor among several processors associated with the computer 400, and the processor 410 may be a semiconductor based microprocessor (in the form of a microchip) or a macroprocessor.
  • The memory 420 can include any one or combination of volatile memory elements (e.g., random access memory (RAM), such as dynamic random access memory (DRAM), static random access memory (SRAM), etc.) and nonvolatile memory elements (e.g., ROM, erasable programmable read only memory (EPROM), electronically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), tape, compact disc read only memory (CD-ROM), disk, diskette, cartridge, cassette or the like, etc.). Moreover, the memory 420 may incorporate electronic, magnetic, optical, and/or other types of storage media. Note that the memory 420 can have a distributed architecture, where various components are situated remote from one another, but can be accessed by the processor 410.
  • The software in the memory 420 may include one or more separate programs, each of which comprises an ordered listing of executable instructions for implementing logical functions. The software in the memory 420 includes a suitable operating system (O/S) 450, compiler 440, source code 430, and one or more applications 460 in accordance with exemplary embodiments. As illustrated, the application 460 comprises numerous functional components for implementing the features and operations of the exemplary embodiments. The application 460 of the computer 400 may represent various applications, computational units, logic, functional units, processes, operations, virtual entities, and/or modules in accordance with exemplary embodiments, but the application 460 is not meant to be a limitation.
  • The operating system 450 controls the execution of other computer programs, and provides scheduling, input-output control, file and data management, memory management, and communication control and related services. It is contemplated by the inventors that the application 460 for implementing exemplary embodiments may be applicable on all commercially available operating systems.
  • Application 460 may be a source program, executable program (object code), script, or any other entity comprising a set of instructions to be performed. When a source program, then the program is usually translated via a compiler (such as the compiler 440), assembler, interpreter, or the like, which may or may not be included within the memory 420, so as to operate properly in connection with the O/S 450. Furthermore, the application 460 can be written as an object oriented programming language, which has classes of data and methods, or a procedure programming language, which has routines, subroutines, and/or functions, for example but not limited to, C, C++, C#, Pascal, BASIC, API calls, HTML, XHTML, XML, ASP scripts, FORTRAN, COBOL, Perl, Java, ADA, .NET, and the like.
  • The I/O devices 470 may include input devices such as, for example but not limited to, a mouse, keyboard, scanner, microphone, camera, etc. Furthermore, the I/O devices 470 may also include output devices, for example but not limited to a printer, display, etc. Finally, the I/O devices 470 may further include devices that communicate both inputs and outputs, for instance but not limited to, a NIC or modulator/demodulator (for accessing remote devices, other files, devices, systems, or a network), a radio frequency (RF) or other transceiver, a telephonic interface, a bridge, a router, etc. The I/O devices 470 also include components for communicating over various networks, such as the Internet or intranet.
  • If the computer 400 is a PC, workstation, intelligent device or the like, the software in the memory 420 may further include a basic input output system (BIOS) (omitted for simplicity). The BIOS is a set of essential software routines that initialize and test hardware at startup, start the O/S 450, and support the transfer of data among the hardware devices. The BIOS is stored in some type of read-only-memory, such as ROM, PROM, EPROM, EEPROM or the like, so that the BIOS can be executed when the computer 400 is activated.
  • When the computer 400 is in operation, the processor 410 is configured to execute software stored within the memory 420, to communicate data to and from the memory 420, and to generally control operations of the computer 400 pursuant to the software. The application 460 and the O/S 450 are read, in whole or in part, by the processor 410, perhaps buffered within the processor 410, and then executed.
  • When the application 460 is implemented in software it should be noted that the application 460 can be stored on virtually any computer readable storage medium for use by or in connection with any computer related system or method. In the context of this document, a computer readable storage medium may be an electronic, magnetic, optical, or other physical device or means that can contain or store a computer program for use by or in connection with a computer related system or method.
  • The application 460 can be embodied in any computer-readable storage medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. In the context of this document, a “computer-readable storage medium” can be any means that can store the program for use by or in connection with the instruction execution system, apparatus, or device. The computer readable storage medium can be, for example but not limited to, an electronic, magnetic, optical, electromagnetic, or semiconductor system, apparatus, or a device.
  • More specific examples (a nonexhaustive list) of the computer-readable storage medium may include the following: an electrical connection (electronic) having one or more wires, a portable computer diskette (magnetic or optical), a random access memory (RAM) (electronic), a read-only memory (ROM) (electronic), an erasable programmable read-only memory (EPROM, EEPROM, or Flash memory) (electronic), an optical fiber (optical), and a portable compact disc memory (CDROM, CD R/W) (optical). Note that the computer-readable storage medium could even be paper or another suitable medium, upon which the program is printed or punched, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
  • In exemplary embodiments, where the application 460 is implemented in hardware, the application 460 can be implemented with any one or a combination of the following technologies, which are well known in the art: a discrete logic circuit(s) having logic gates for implementing logic functions upon data signals, an application specific integrated circuit (ASIC) having appropriate combinational logic gates, a programmable gate array(s) (PGA), a field programmable gate array (FPGA), etc.
  • Technical effects and benefits include retaining files in a software testing system such that the age of identified bugs may be determined.
  • The present invention may be a system, a method, and/or a computer program product. The computer program product may include a computer readable storage medium (or media) having computer readable program instructions thereon for causing a processor to carry out aspects of the present invention.
  • The computer readable storage medium can be a tangible device that can retain and store instructions for use by an instruction execution device. The computer readable storage medium may be, for example, but is not limited to, an electronic storage device, a magnetic storage device, an optical storage device, an electromagnetic storage device, a semiconductor storage device, or any suitable combination of the foregoing. A non-exhaustive list of more specific examples of the computer readable storage medium includes the following: a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or Flash memory), a static random access memory (SRAM), a portable compact disc read-only memory (CD-ROM), a digital versatile disk (DVD), a memory stick, a floppy disk, a mechanically encoded device such as punch-cards or raised structures in a groove having instructions recorded thereon, and any suitable combination of the foregoing. A computer readable storage medium, as used herein, is not to be construed as being transitory signals per se, such as radio waves or other freely propagating electromagnetic waves, electromagnetic waves propagating through a waveguide or other transmission media (e.g., light pulses passing through a fiber-optic cable), or electrical signals transmitted through a wire.
  • Computer readable program instructions described herein can be downloaded to respective computing/processing devices from a computer readable storage medium or to an external computer or external storage device via a network, for example, the Internet, a local area network, a wide area network and/or a wireless network. The network may comprise copper transmission cables, optical transmission fibers, wireless transmission, routers, firewalls, switches, gateway computers and/or edge servers. A network adapter card or network interface in each computing/processing device receives computer readable program instructions from the network and forwards the computer readable program instructions for storage in a computer readable storage medium within the respective computing/processing device.
  • Computer readable program instructions for carrying out operations of the present invention may be assembler instructions, instruction-set-architecture (ISA) instructions, machine instructions, machine dependent instructions, microcode, firmware instructions, state-setting data, or either source code or object code written in any combination of one or more programming languages, including an object oriented programming language such as Smalltalk, C++ or the like, and conventional procedural programming languages, such as the “C” programming language or similar programming languages. The computer readable program instructions may execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer may be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection may be made to an external computer (for example, through the Internet using an Internet Service Provider). In some embodiments, electronic circuitry including, for example, programmable logic circuitry, field-programmable gate arrays (FPGA), or programmable logic arrays (PLA) may execute the computer readable program instructions by utilizing state information of the computer readable program instructions to personalize the electronic circuitry, in order to perform aspects of the present invention.
  • Aspects of the present invention are described herein with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of the invention. It will be understood that each block of the flowchart illustrations and/or block diagrams, and combinations of blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer readable program instructions.
  • These computer readable program instructions may be provided to a processor of a general purpose computer, special purpose computer, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions/acts specified in the flowchart and/or block diagram block or blocks. These computer readable program instructions may also be stored in a computer readable storage medium that can direct a computer, a programmable data processing apparatus, and/or other devices to function in a particular manner, such that the computer readable storage medium having instructions stored therein comprises an article of manufacture including instructions which implement aspects of the function/act specified in the flowchart and/or block diagram block or blocks.
  • The computer readable program instructions may also be loaded onto a computer, other programmable data processing apparatus, or other device to cause a series of operational steps to be performed on the computer, other programmable apparatus or other device to produce a computer implemented process, such that the instructions which execute on the computer, other programmable apparatus, or other device implement the functions/acts specified in the flowchart and/or block diagram block or blocks.
  • The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of the present invention. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of instructions, which comprises one or more executable instructions for implementing the specified logical function(s). In some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems that perform the specified functions or acts or carry out combinations of special purpose hardware and computer instructions.
  • The descriptions of the various embodiments of the present invention have been presented for purposes of illustration, but are not intended to be exhaustive or limited to the embodiments disclosed. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The terminology used herein was chosen to best explain the principles of the embodiments, the practical application or technical improvement over technologies found in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.

Claims (8)

What is claimed is:
1. A computer implemented method for ideal age vector based file retention in a software testing system, the method comprising:
determining an ideal age vector of historical bug age data corresponding to a software product in the software testing system, wherein the software testing system stores a plurality of version files of the software product;
based on receiving a new version file of the software product, determining a file to delete of the plurality of version files and the new version file based on the ideal age vector; and
deleting the determined file to delete such that a number of remaining version files is equal to a number of the plurality of version files.
2. The method of claim 1, further comprising determining the ideal age vector based on a probability distribution function of historical bug age data.
3. The method of claim 1, wherein determining the file to delete of the plurality of version files and the new version file based on the probability distribution function comprises:
for each of a plurality of deletion candidate version files, determining an actual age vector for remaining version files without the deletion candidate;
determining an actual age vector having a smallest distance from the ideal age vector; and
selecting the deletion candidate version file corresponding to the actual age vector having the smallest distance from the ideal age vector as the file to delete;
wherein a respective actual age vector is determined using each of the new version file and the plurality of version files as the deletion candidate.
4. The method of claim 3, wherein the distance is determined based on an absolute value of a difference between the actual age vector components and the ideal age vector components.
5. The method of claim 3, wherein the distance is determined based on a component-wise nearest neighbor distance.
6. The method of claim 3, wherein the distance is determined based on a Euclidean distance.
7. The method of claim 3, further comprising determining an age of an identified bug in the software testing system using the remaining version files; and
updating the probability distribution function using the determined age.
8. The method of claim 1, further comprising:
determining that an amount of storage required by the remaining version files is greater than an amount of available storage; and
based on determining that the amount of storage required by the remaining version files is greater than the amount of available storage, determining an additional file to delete of the remaining version files based on the probability distribution function; and
deleting the determined additional file.
US15/069,357 2015-10-23 2016-03-14 Ideal age vector based file retention in a software testing system Abandoned US20170116111A1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US15/069,357 US20170116111A1 (en) 2015-10-23 2016-03-14 Ideal age vector based file retention in a software testing system

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US14/921,208 US10387368B2 (en) 2015-10-23 2015-10-23 Ideal age vector based file retention in a software testing system
US15/069,357 US20170116111A1 (en) 2015-10-23 2016-03-14 Ideal age vector based file retention in a software testing system

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
US14/921,208 Continuation US10387368B2 (en) 2015-10-23 2015-10-23 Ideal age vector based file retention in a software testing system

Publications (1)

Publication Number Publication Date
US20170116111A1 true US20170116111A1 (en) 2017-04-27

Family

ID=58558825

Family Applications (3)

Application Number Title Priority Date Filing Date
US14/921,208 Expired - Fee Related US10387368B2 (en) 2015-10-23 2015-10-23 Ideal age vector based file retention in a software testing system
US15/069,357 Abandoned US20170116111A1 (en) 2015-10-23 2016-03-14 Ideal age vector based file retention in a software testing system
US16/420,214 Active 2035-10-24 US11010333B2 (en) 2015-10-23 2019-05-23 Ideal age vector based file retention in a software testing system

Family Applications Before (1)

Application Number Title Priority Date Filing Date
US14/921,208 Expired - Fee Related US10387368B2 (en) 2015-10-23 2015-10-23 Ideal age vector based file retention in a software testing system

Family Applications After (1)

Application Number Title Priority Date Filing Date
US16/420,214 Active 2035-10-24 US11010333B2 (en) 2015-10-23 2019-05-23 Ideal age vector based file retention in a software testing system

Country Status (1)

Country Link
US (3) US10387368B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11010333B2 (en) 2015-10-23 2021-05-18 International Business Machines Corporation Ideal age vector based file retention in a software testing system

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110069402A (en) * 2019-03-21 2019-07-30 中国平安财产保险股份有限公司 Method, apparatus, computer equipment and the storage medium of test software
CN111858315B (en) * 2020-06-29 2022-10-18 福建省农村信用社联合社 Software debugging method, device, equipment and medium based on version management

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030202703A1 (en) * 2002-04-25 2003-10-30 Dainippon Screen Mfg. Co., Ltd. Apparatus and computer-readable medium for assisting image classification
US20080047000A1 (en) * 2004-06-30 2008-02-21 Matsushita Electric Industrial Co., Ltd. Program Execution Device And Program Execution Method
US20080104470A1 (en) * 2006-10-12 2008-05-01 Benvenga Carl E Methods and apparatus for diagnosing a degree of interference between a plurality of faults in a system under test
US8200626B1 (en) * 2009-09-18 2012-06-12 Sprint Communications Company L.P. Mobile device file management
US20140033176A1 (en) * 2012-07-26 2014-01-30 Infosys Limited Methods for predicting one or more defects in a computer program and devices thereof
US20140282411A1 (en) * 2013-03-15 2014-09-18 Devfactory Fz-Llc Test Case Reduction for Code Regression Testing
US20150131779A1 (en) * 2012-06-08 2015-05-14 Mitsubishi Heavy Industries, Ltd. Defect judging device, radiography system, and defect judging method
US20160232075A1 (en) * 2015-02-11 2016-08-11 Electronics And Telecommunications Research Institute Apparatus and method for measuring system availability for system development

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6978281B1 (en) * 2000-11-21 2005-12-20 Microsoft Corporation Versioned project data
US7131112B1 (en) 2000-11-21 2006-10-31 Microsoft Corporation Managing code changes for software development
US8417673B2 (en) * 2003-10-07 2013-04-09 International Business Machines Corporation Method, system, and program for retaining versions of files
US20050273486A1 (en) * 2004-06-03 2005-12-08 Keith Robert O Jr Virtual distributed file system
US7437722B2 (en) 2004-07-19 2008-10-14 Accurev, Inc. Determining which software component versions of an issue resolution are included in a version of a software development project at a particular time
US7926036B2 (en) 2007-04-26 2011-04-12 Microsoft Corporation Technologies for code failure proneness estimation
IN2013CH01239A (en) * 2013-03-21 2015-08-14 Infosys Ltd
US10440299B2 (en) * 2015-09-04 2019-10-08 Apple Inc. Correcting pixel defects based on defect history in an image processing pipeline
US10387368B2 (en) 2015-10-23 2019-08-20 International Business Machines Corporation Ideal age vector based file retention in a software testing system

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030202703A1 (en) * 2002-04-25 2003-10-30 Dainippon Screen Mfg. Co., Ltd. Apparatus and computer-readable medium for assisting image classification
US20080047000A1 (en) * 2004-06-30 2008-02-21 Matsushita Electric Industrial Co., Ltd. Program Execution Device And Program Execution Method
US20080104470A1 (en) * 2006-10-12 2008-05-01 Benvenga Carl E Methods and apparatus for diagnosing a degree of interference between a plurality of faults in a system under test
US8200626B1 (en) * 2009-09-18 2012-06-12 Sprint Communications Company L.P. Mobile device file management
US20150131779A1 (en) * 2012-06-08 2015-05-14 Mitsubishi Heavy Industries, Ltd. Defect judging device, radiography system, and defect judging method
US20140033176A1 (en) * 2012-07-26 2014-01-30 Infosys Limited Methods for predicting one or more defects in a computer program and devices thereof
US20140282411A1 (en) * 2013-03-15 2014-09-18 Devfactory Fz-Llc Test Case Reduction for Code Regression Testing
US20160232075A1 (en) * 2015-02-11 2016-08-11 Electronics And Telecommunications Research Institute Apparatus and method for measuring system availability for system development

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11010333B2 (en) 2015-10-23 2021-05-18 International Business Machines Corporation Ideal age vector based file retention in a software testing system

Also Published As

Publication number Publication date
US10387368B2 (en) 2019-08-20
US11010333B2 (en) 2021-05-18
US20190286612A1 (en) 2019-09-19
US20170116209A1 (en) 2017-04-27

Similar Documents

Publication Publication Date Title
US11010333B2 (en) Ideal age vector based file retention in a software testing system
US20190311292A1 (en) Automated tuning of a service configuration
US11157390B2 (en) Automatic software defect repair
US10552278B2 (en) Non-destructive analysis to determine use history of processor
US9335947B2 (en) Inter-processor memory
US20170091111A1 (en) Configurable cache architecture
US9134975B1 (en) Determining which computer programs are candidates to be recompiled after application of updates to a compiler
US20190385081A1 (en) Anomaly detection model selection and validity for time series data
EP4122163A1 (en) Causality determination of upgrade regressions via comparisons of telemetry data
US20180121334A1 (en) Code coverage through overlay hooks
US10360329B2 (en) Multi-cycle signal identification for static timing analysis
JP2019056986A (en) Verification device and verification method
US9672352B2 (en) Isolated program execution environment
US9703910B2 (en) Control path power adjustment for chip design
CN112685071A (en) Application program repairing method, device, equipment and storage medium
US10509593B2 (en) Data services scheduling in heterogeneous storage environments
CN109901997B (en) Financial system upgrading method and device, electronic equipment and storage medium
CN112799933B (en) Automatic test method and device
US11575604B2 (en) Server apparatus, edge equipment, process pattern specifying method, and control program
CN112799932B (en) Method, electronic device, and storage medium for predicting health level of application
US11275504B2 (en) Method for upgrading system, electronic device, and computer program product
US8392763B2 (en) Technique for estimation of confidence interval for probability of defect rediscovery
US9667708B1 (en) Boost orchestrator for client-server architectures
CN115563916A (en) Digital circuit verification method and device
CN117827624A (en) Function test method, device and storage medium

Legal Events

Date Code Title Description
AS Assignment

Owner name: INTERNATIONAL BUSINESS MACHINES CORPORATION, NEW Y

Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNORS:GERTNER, JEFFREY M.;GREER, TIMOTHY D.;REEL/FRAME:037968/0602

Effective date: 20151022

STPP Information on status: patent application and granting procedure in general

Free format text: ADVISORY ACTION MAILED

STCB Information on status: application discontinuation

Free format text: ABANDONED -- FAILURE TO RESPOND TO AN OFFICE ACTION