-
-
Notifications
You must be signed in to change notification settings - Fork 21.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Display the build date in the editor and when starting the engine #59247
Display the build date in the editor and when starting the engine #59247
Conversation
5b718ac
to
082dad5
Compare
34a6b50
to
945b26d
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This could use a rebase, somehow. It's a shame it has to be on the backburner and be rebased for so long. Perhaps it's just... no interest at all?
945b26d
to
ce6ffaf
Compare
// Don't use rich formatting to prevent ANSI escape codes from being written to log files. | ||
print_header(false); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is a workaround for #36252 (comment), which we could remove once we have support for stripping ANSI escape codes in RotatedFileLogger.
Rebased and tested again, it works as expected. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The implementation looks ok.
Needs to be rebased once more for the Engine docs rework on that part specifically. |
ce6ffaf
to
63784aa
Compare
This can be used to quickly see how recent a development build is, without having to look up the commit date manually. When juggling around with various builds (e.g. for benchmarking), this can also be used to ensure that you're actually running the binary you intended to run. The date stored is the date of the Git commit that is built, not the current date at the time of building the binary. This ensures binaries can remain reproducible. The version timestamp can be accessed using the `timestamp` key of the `Engine.get_version_info()` return value.
63784aa
to
67e9ccd
Compare
Thanks! |
This can be used to quickly see how recent a development build is, without having to look up the commit date manually. When juggling around with various builds (e.g. for benchmarking), this can also be used to ensure that you're actually running the binary you intended to run.
The date stored is the date of the Git commit that is built, not the current date at the time of building the binary. This ensures binaries can remain reproducible.
The version timestamp can be accessed using the
timestamp
key of theEngine.get_version_info()
return value.I've tested all possible scenarios and they all build successfully:
git
in PATH,.git/
folder present (the only scenario in whichVERSION_TIMESTAMP
is not0
).git
not in PATH,git/
folder present.git
in PATH,.git/
folder not present.git
not in PATH,git/
folder not present.Preview