US 12,135,965 B2
Preventing duplicate builds based on pre-computed checksums stored in a version control system
Michael Tsirkin, Yokneam (IL)
Assigned to Red Hat, Inc., Raleigh, NC (US)
Filed by RED HAT, INC., Raleigh, NC (US)
Filed on Oct. 26, 2022, as Appl. No. 17/973,827.
Prior Publication US 2024/0143317 A1, May 2, 2024
Int. Cl. G06F 8/71 (2018.01); G06F 16/14 (2019.01)
CPC G06F 8/71 (2013.01) [G06F 16/148 (2019.01)] 19 Claims
OG exemplary drawing
 
1. A non-transitory computer-readable medium comprising program code that is executable by a processor for causing the processor to:
receive, from a version control system, a first plurality of pre-computed checksums for a first plurality of source files for a software program;
receive, from the version control system, a second plurality of pre-computed checksums for a second plurality of source files that were previously built by a build engine;
determine a first total checksum by:
generating a string of concatenated checksums by concatenating the first plurality of pre-computed checksums; and
computing a checksum of the string of concatenated checksums, the checksum serving as the first total checksum;
determine a second total checksum by combining the second plurality of pre-computed checksums;
determine, by comparing the first total checksum to the second total checksum, that the first plurality of source files were previously built by the build engine; and
in response to determining that the first plurality of source files was previously built by the build engine, prevent the build engine from re-building the first plurality of source files.