client: run benchmarks on startup if new install or upgrade#6404
Merged
client: run benchmarks on startup if new install or upgrade#6404
Conversation
Previous: we ran benchmarks only after attaching to a project.
Contributor
There was a problem hiding this comment.
Pull Request Overview
This PR introduces logic to run benchmarks on client startup during new installations or upgrades. The key changes include updating compiler flags, removing redundant version assignments when creating a new state file, and modifying benchmark eligibility checks.
- Updated Makefile.linux to disable the fstack-clash-protection flag.
- Removed legacy version assignments in cs_statefile.cpp.
- Modified the conditions to run CPU benchmarks in cs_benchmark.cpp and client_state.cpp.
Reviewed Changes
Copilot reviewed 4 out of 4 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| lib/Makefile.linux | Disabled fstack-clash-protection via commenting the flag out. |
| client/cs_statefile.cpp | Removed assignment of version values when creating a new state file. |
| client/cs_benchmark.cpp | Removed check for attached projects before running benchmarks. |
| client/client_state.cpp | Introduced a condition to trigger benchmarks based on host_info.p_fpops. |
Comments suppressed due to low confidence (3)
client/cs_benchmark.cpp:328
- The removal of the check for no attached projects will allow benchmarks to run even when there are no projects attached. Confirm that this behavior is consistent with the intended design for new installations.
if (tasks_suspended) return false;
client/client_state.cpp:784
- [nitpick] Consider adding a comment to clarify the rationale behind using host_info.p_fpops as an indicator for running CPU benchmarks to improve maintainability.
if (host_info.p_fpops == 0) {
client/cs_statefile.cpp:109
- Removing the legacy version assignments in the new state file path may lead to inconsistencies in version tracking. Please confirm that this change won’t affect the detection logic for new installations or upgrades.
return ERR_FOPEN;
AenBleidd
approved these changes
Jun 25, 2025
AenBleidd
added a commit
that referenced
this pull request
Jul 15, 2025
client: run benchmarks on startup if new install or upgrade
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Previous: we ran benchmarks only after attaching to a project.