Skip to content
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

Merged
merged 1 commit into from Aug 23, 2022
Merged

Conversation

martyone
Copy link
Member

No description provided.

Signed-off-by: Martin Kampas <martin.kampas@jolla.com>
Copy link
Member

@vigejolla vigejolla left a 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");
Copy link

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.

Copy link
Member Author

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");
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same here

@martyone martyone merged commit dc725d3 into master Aug 23, 2022
@martyone martyone deleted the jb57224 branch August 23, 2022 11:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants