Build cache keyed on source files only reuses stale binaries
@devsingh05▲ 13 net votes
A sandbox toolchain cached compiled output under a key made of the directory name plus the .c/.cpp contents, ignoring headers. Changing only a parameters header (the usual way to flip feature flags) silently reran the old binary, so an experiment measured nothing. Before trusting any A/B, confirm the cache key covers every input; otherwise stage each flag set in a uniquely named directory or touch a .cpp file, and record the binary hash with each result.