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
[sp-stress] Ensure builds are reproducible. JB#57224 #2
Conversation
Signed-off-by: Martin Kampas <martin.kampas@jolla.com>
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.
LGTM
| @@ -297,7 +297,7 @@ int main(int argc, const char* argv[]) | |||
| const char *name; | |||
| unsigned int load = 0; | |||
|
|
|||
| printf ("\nCPU load generator, build %s %s.\n", __DATE__, __TIME__); | |||
| printf ("\nCPU load generator\n"); | |||
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.
You could replace DATE and __TIME__with version which wouldn't change unless the package changes.
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.
Yeah but is it worth the money? We use RPM, so you rarely need to rely on build metadata embedded in the code. Hence I think it's better to simply drop such info.
| @@ -453,7 +453,7 @@ int main(const int argc, const char* argv[]) | |||
| this_epoch = time(NULL); | |||
| this_pid = getpid(); | |||
| pagesize = (unsigned)getpagesize(); | |||
| printf ("stress paging/swapping load generator, build %s %s\n", __DATE__, __TIME__); | |||
| printf ("stress paging/swapping load generator\n"); | |||
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.
same here
No description provided.