[SERVER-69525] cache retrieval's should print original command line in evergreen Created: 08/Sep/22 Updated: 29/Oct/23 Resolved: 17/Oct/22 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 6.2.0-rc0 |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Daniel Moody | Assignee: | Juan Gu |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Participants: |
| Description |
|
In the logs, when a file is retrieved via the cache, the original command line used is not printed to the logs because the file is not actually built. This makes it difficult to determine the flags in use for a particular file. SCons has a built in option to do this I believe, and if they do not it shouldn't be too bad to add the functionality, as the command line is used in the generating the cache hash. |
| Comments |
| Comment by Githook User [ 13/Oct/22 ] |
|
Author: {'name': 'Juan Gu', 'email': 'juan.gu@mongodb.com', 'username': 'juangugit'}Message: |
| Comment by Andrew Morrow (Inactive) [ 29/Sep/22 ] |
|
I believe the flag is --cache-show. I'd be in favor of this change I think. I had previously decided against doing it because when you have it set, the messages like Retrieved `build/cached/mongo/resmoke/resmoke.py' from cache are not printed, and long ago I had used those messages as rough way of detecting whether we were getting good caching behavior. But we are long past such crude methods. In particular, we now capture the cache debug logs, which I have just now verified are not affected by --cache-show. |