-
Notifications
You must be signed in to change notification settings - Fork 5
Compilation fingerprint
Sean Buckley edited this page Nov 21, 2015
·
1 revision
When compiling, the makefile runs the fingerprint.py script. In order for this to run successfully, the user intending to compile must have python 2.7 installed. Fingerprint.py creates a headerfile for which the main purpose is to keep track of what code is running on the buggy. This is accomplished by the following definitions in the created fingerprint.h file:
- FP_COMPDATE : "DD:MM:YYYY" (day month year) of compilation as a string
- FP_COMPTIME : "HH:MM:SS" (hour minute second) of compilation as a string
- FP_BRANCHNAME : Name of the current git branch as a string
- FP_HEXCOMMITHASH : Hash of the current commit as a hexadecimal number
- FP_STRCOMMITHASH : Hash of the current commit as a string
- FP_CLEANSTATUS : Boolean indicating whether the working directory has had any changes since the most recent commit
There is another definition, HOSTNAME, a string of the name of the computer on which compilation occurred, but we currently do not have a use for it. In the future it can be used for accountability purposes.
RoboBuggy (pushing code ain't all we do)