Skip to content

Instrument Benchmarks#320

Merged
vsanthanam merged 1 commit intomainfrom
vsanthanam/instrument-benchmarks
Jan 16, 2026
Merged

Instrument Benchmarks#320
vsanthanam merged 1 commit intomainfrom
vsanthanam/instrument-benchmarks

Conversation

@vsanthanam
Copy link
Copy Markdown
Owner

No description provided.

Copy link
Copy Markdown

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 6704f448cd

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment on lines +63 to +66
func getLibrary() -> Library {
let raw = ProcessInfo.processInfo.environment["BENCHMARK_TARGET"]
return raw.flatMap(Library.init)!
}
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Avoid crashing when BENCHMARK_TARGET is used for deps

This now force-unwraps BENCHMARK_TARGET as one of foundation/jbird/swiftyjson/freddy, but the same env var is already used in Benchmarks/Package.swift for release/remote/local. When users set BENCHMARK_TARGET=local (or leave it unset) to pick the dependency source, Library.init returns nil and this line traps, so benchmarks no longer run unless the env value is changed to the new strings. Consider using a different env var name for the parser selection or providing a safe default.

Useful? React with 👍 / 👎.

@vsanthanam vsanthanam force-pushed the vsanthanam/instrument-benchmarks branch from 6704f44 to 50d334d Compare January 16, 2026 17:58
@codecov
Copy link
Copy Markdown

codecov bot commented Jan 16, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 94.75%. Comparing base (95a21f1) to head (50d334d).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #320      +/-   ##
==========================================
+ Coverage   94.72%   94.75%   +0.03%     
==========================================
  Files          35       35              
  Lines        2879     2879              
==========================================
+ Hits         2727     2728       +1     
+ Misses        152      151       -1     
Flag Coverage Δ
llvm-cov 94.75% <ø> (+0.03%) ⬆️
swiftpm 94.75% <ø> (+0.03%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@vsanthanam vsanthanam merged commit f585b30 into main Jan 16, 2026
47 checks passed
@vsanthanam vsanthanam deleted the vsanthanam/instrument-benchmarks branch January 16, 2026 18:26
@vsanthanam vsanthanam linked an issue Jan 17, 2026 that may be closed by this pull request
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.

Instrument benchmark updates

1 participant