Skip to content

Conversation

@not-matthias
Copy link
Member

This broke flamegraphs, because we removed the perf.pipedata file which is directly written to the profile folder.

Copy link

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 fixes a critical bug where the profile folder was being deleted at the start of benchmark runs, which removed important profiling files like perf.pipedata that are needed for generating flamegraphs.

Key Changes:

  • Conditionally remove the profile directory only in test mode using #[cfg(test)]
  • Added clarifying comment explaining why the directory should not be removed in production

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

This broke flamegraphs, because we removed the perf.pipedata file which is directly written to the profile folder.
@not-matthias not-matthias force-pushed the cod-1664-e2e-golang-benchmark-doesnt-have-flamegraph branch from 4fe5f35 to b3fc97c Compare November 13, 2025 12:59
Copy link

@GuillaumeLagrange GuillaumeLagrange left a comment

Choose a reason for hiding this comment

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

lgtm

@codspeed-hq
Copy link

codspeed-hq bot commented Nov 13, 2025

CodSpeed Performance Report

Merging #34 will not alter performance

Comparing cod-1664-e2e-golang-benchmark-doesnt-have-flamegraph (b3fc97c) with main (71ef596)

Summary

✅ 40 untouched

@adriencaccia adriencaccia merged commit befad25 into main Nov 13, 2025
16 checks passed
@not-matthias not-matthias deleted the cod-1664-e2e-golang-benchmark-doesnt-have-flamegraph branch November 14, 2025 08:51
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.

4 participants