Skip to content

Conversation

@julio-lopez
Copy link
Collaborator

No description provided.

@codecov
Copy link

codecov bot commented Oct 24, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 77.99%. Comparing base (cb455c6) to head (fc07e7d).
⚠️ Report is 697 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4904      +/-   ##
==========================================
+ Coverage   75.86%   77.99%   +2.12%     
==========================================
  Files         470      537      +67     
  Lines       37301    31216    -6085     
==========================================
- Hits        28299    24347    -3952     
+ Misses       7071     4831    -2240     
- Partials     1931     2038     +107     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@julio-lopez julio-lopez marked this pull request as ready for review October 24, 2025 00:49
Copilot AI review requested due to automatic review settings October 24, 2025 00:49
@julio-lopez julio-lopez merged commit c5cd3c5 into kopia:master Oct 24, 2025
27 checks passed
@julio-lopez julio-lopez deleted the refactor/modernize-bloop branch October 24, 2025 00:49
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 modernizes benchmark code by adopting Go's newer b.Loop() API, introduced in Go 1.24, which replaces the older for range b.N pattern. The changes simplify benchmark setup by eliminating the need for manual timer management.

  • Replaces for range b.N with b.Loop() across all benchmark functions
  • Removes manual b.ResetTimer(), b.StopTimer(), and b.StartTimer() calls that are now handled automatically

Reviewed Changes

Copilot reviewed 7 out of 7 changed files in this pull request and generated no comments.

Show a summary per file
File Description
repo/repo_benchmarks_test.go Updates benchmark loop to use b.Loop() and removes manual timer reset
repo/manifest/manifest_manager_test.go Converts benchmark loop to b.Loop()
repo/logging/logging_test.go Updates benchmark loop and removes manual timer management
repo/encryption/encryption_test.go Converts to b.Loop() and removes timer reset
repo/compression/compressor_test.go Updates both compression and decompression benchmark loops
internal/workshare/workshare_test.go Converts benchmark loop and removes timer management
fs/localfs/localfs_benchmark_test.go Updates to b.Loop() and removes all manual timer calls

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

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.

1 participant