coursebook
coursebook copied to clipboard
Race Condition on Deploying Builds
Describe the bug If two developers merge in their builds at the same time and two travis requests kick off, the resultant PDF/MD builds are entirely dependent on Travis Timing conditions. This means an earlier commit which could take longer to build gets pushed to head. Solution The later commit encapsulates all changes so ideally what happens is the clone happens first with a metadata file. If the time of the latest head commit is older than the time of the deploy commit version, exit the build a success, the changes were pushed out to prod.