Skip to content

client: run benchmarks on startup if new install or upgrade#6404

Merged
AenBleidd merged 1 commit intomasterfrom
dpa_benchmark
Jun 25, 2025
Merged

client: run benchmarks on startup if new install or upgrade#6404
AenBleidd merged 1 commit intomasterfrom
dpa_benchmark

Conversation

@davidpanderson
Copy link
Copy Markdown
Contributor

Previous: we ran benchmarks only after attaching to a project.

Previous: we ran benchmarks only after attaching to a project.
Copilot AI review requested due to automatic review settings June 25, 2025 08:47
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

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;

@github-project-automation github-project-automation bot moved this to In progress in Client/Manager Jun 25, 2025
@AenBleidd AenBleidd added this to the Client/Manager 8.2.5 milestone Jun 25, 2025
@AenBleidd AenBleidd merged commit a97d69a into master Jun 25, 2025
175 checks passed
@AenBleidd AenBleidd deleted the dpa_benchmark branch June 25, 2025 20:07
@github-project-automation github-project-automation bot moved this from In progress to Merged in Client/Manager 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

3 participants