[SERVER-59315] SCons cache dir verification mode Created: 12/Aug/21  Updated: 27/Oct/23  Resolved: 27/Oct/23

Status: Closed
Project: Core Server
Component/s: None
Affects Version/s: None
Fix Version/s: 6.0 Desired

Type: New Feature Priority: Major - P3
Reporter: Daniel Moody Assignee: [DO NOT ASSIGN] Backlog - Server Development Platform Team (SDP) (Inactive)
Resolution: Won't Do Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Assigned Teams:
Server Development Platform
Participants:

 Description   

Recently we added a scons cachedir validate mode, which checks that the md5 hash of the file in cache matches the file after its been pulled from the cache. This was to make sure cachefiles don't become corrupt while sitting in the cache.

However this check does protect that a cachefile was put in the cache incorrectly. The file itself may not be corrupt, but just incorrect. This mode would rebuild the file locally and then verify the local md5 hash matchs what is the cache for the given build signature. This would be similar to a clean build in terms of cost, so its intended to be used sparingly in a maintenance context.

This will also be useful for flushing out issues which will cause problems for reproducible builds. It is already known that certain windows builders will compile the same inputs but produce slightly different build outputs (https://blog.conan.io/2019/09/02/Deterministic-builds-with-C-C++.html).


Generated at Thu Feb 08 05:46:56 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.