Skip to content

Improve production packaging defaults - #84

Merged
thomhurst merged 2 commits into
mainfrom
agent/package-production-best-practices
Aug 9, 2026
Merged

thomhurst merged 2 commits into
mainfrom
agent/package-production-best-practices

Conversation

@thomhurst

@thomhurst thomhurst commented Aug 9, 2026 •

Copy link
Copy Markdown
Owner

Summary

  • centralize deterministic build, package metadata, XML docs, symbols, and packability defaults in Directory.Build.props
  • move package-specific NuGet metadata into each shipping project file
  • add a repository MIT license file, stable SDK pinning, and docs package metadata

Impact

Shipping packages now include consistent NuGet metadata, README content, XML docs, symbol packages, and repository source information. Non-shipping projects inherit shared defaults without being packable. Generated .NET packages.lock.json files are not included.

Validation

  • dotnet restore Respire.slnx
  • dotnet build Respire.slnx -c Release --no-restore
  • dotnet build allocation_test\allocation_test.csproj -c Release --no-restore
  • packed and inspected all four NuGet packages for nuspec metadata, README, XML docs, repository commit data, and .snupkg output
  • dotnet run --project tests\Respire.Tests\Respire.Tests.csproj -c Release -f net8.0 --no-build -- --results-directory TestResults --report-trx --report-trx-filename Respire.Tests-net8.0.trx --coverage --coverage-output coverage.cobertura.xml --coverage-output-format cobertura
  • dotnet run --project tests\Respire.Tests\Respire.Tests.csproj -c Release -f net10.0 --no-build -- --results-directory TestResults --report-trx --report-trx-filename Respire.Tests-net10.0.trx --coverage --coverage-output coverage.cobertura.xml --coverage-output-format cobertura
  • reportgenerator -reports:"TestResults/**/coverage.cobertura.xml" -targetdir:"CoverageReport" -reporttypes:"Html;JsonSummary;MarkdownSummaryGithub;Cobertura"
  • dotnet list Respire.slnx package --vulnerable --include-transitive
  • npm ci
  • npm run build

Notes

npm audit still reports Docusaurus transitive advisories in the current latest 3.10.2 dependency tree, with no safe automatic fix available from npm audit fix --package-lock-only.

@coderabbitai

coderabbitai Bot commented Aug 9, 2026 •

Copy link
Copy Markdown

Review Change Stack

Warning

Review limit reached

@thomhurst, you've reached your PR review limit, so we couldn't start this review.

Next review available in: 19 minutes

Enable usage-based reviews in Billing to review now. Otherwise, wait until the next included review is available.
You're only billed for reviews past your plan's rate limits ($0.25/file).

How can I continue?

After more reviews become available, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

To avoid repeated limits, reduce automatic review volume by pausing incremental auto-reviews earlier, using label-based review opt-in, excluding WIP or generated PR titles, or requesting reviews manually when the PR is ready. If your team needs uninterrupted high-volume reviews, an organization admin can enable usage-based reviews.

How do review limits work?

CodeRabbit enforces per-developer PR review limits for each organization. Most developers receive the normal plan review availability.

For paid Pro and Pro+ PR reviews, CodeRabbit uses adaptive limits for sustained high-volume activity. When a developer's recent PR review activity reaches the 95th percentile or higher among CodeRabbit users, additional reviews become available more gradually as earlier reviews age out of the rolling window.

Please refer docs for additional details.

Review details
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 4a1efde1-2cd3-4c08-8c88-217fe7bfefcd

📥 Commits

Reviewing files that changed from the base of the PR and between f643185 and ed64317.

📒 Files selected for processing (2)
  • Directory.Build.props
  • README.md
📝 Walkthrough

Walkthrough

The repository centralizes .NET build and package settings, selects SDK 10.0.302, adds NuGet lock files, updates project metadata, adds an MIT license, and updates website package metadata.

Changes

Repository standardization

Layer / File(s) Summary
Central build conventions
Directory.Build.props, Directory.Packages.props, global.json
Central build, packaging, testing, compiler, SDK, and package-version settings were added or changed.
Project metadata and inherited settings
src/*/*.csproj, tests/*/*.csproj, benchmarks/*/*.csproj, tools/*/*.csproj
Package projects now define NuGet metadata. Other projects remove settings provided by the shared build configuration.
Application dependency locks
Respire.Pipeline/packages.lock.json, allocation_test/packages.lock.json, samples/.../packages.lock.json, src/*/packages.lock.json
Resolved NuGet dependency graphs were added for application, sample, pipeline, and extension projects.
Tooling and test dependency locks
benchmarks/*/packages.lock.json, tools/*/packages.lock.json, tests/*/packages.lock.json
Resolved NuGet dependency graphs were added for benchmark, stress-test, integration-test, and unit-test projects.
Repository and website metadata
LICENSE, README.md, website/package.json
The MIT license was added. The README links to the license. Website package metadata and the Node.js range were updated.

Estimated code review effort: 3 (Moderate) | ~25 minutes

Possibly related PRs

  • thomhurst/Respire#33 — Migrated projects and dependencies from .NET 9 to .NET 10, which relates to this PR’s .NET 10 configuration and lock files.

Poem

A rabbit checks the package nest,
With locked-up graphs arranged with care.
The SDK hops to ten-point-oh,
MIT blooms in README air.
Build flags gather, neat and bright—
“All set,” says Bun, and bounds from sight.

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: centralizing and improving production packaging defaults.
✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch agent/package-production-best-practices

Comment @coderabbitai help to get the list of available commands.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🧪 Integration Test Results (net10.0)

ℹ️ Execution Details

  • Framework: net10.0
  • Test Runner: TUnit
  • Runner: Linux - X64
  • Status: success
  • Timestamp: 2026-08-09T22:23:51.465Z

Automated integration testing with Redis containers using TUnit

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🧪 Integration Test Results (net8.0)

ℹ️ Execution Details

  • Framework: net8.0
  • Test Runner: TUnit
  • Runner: Linux - X64
  • Status: success
  • Timestamp: 2026-08-09T22:24:16.673Z

Automated integration testing with Redis containers using TUnit

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

Copy link
Copy Markdown

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: f64318592c

ℹ️ 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 thread Directory.Build.props
<PackageLicenseExpression>MIT</PackageLicenseExpression>
<PackageRequireLicenseAcceptance>false</PackageRequireLicenseAcceptance>
<PackageTags>redis;valkey;keydb;resp;cache;caching;client;dotnet</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>

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 Fix repository-relative links in the packaged README

When any of these packages is viewed on NuGet.org, the newly selected README still contains repository-relative links such as docs/API_DESIGN.md, docs/COMMAND_COVERAGE.md, benchmarks/, and LICENSE (README.md lines 19, 202–205, and 227). Those links resolve relative to the NuGet package page rather than the GitHub repository and lead users to missing pages. Use absolute repository URLs or a dedicated package README before declaring this file as PackageReadmeFile.

Useful? React with 👍 / 👎.

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Redis Container Benchmark Results (net10.0)

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host] : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0 IterationCount=3 WarmupCount=1

Method Mean Error StdDev Min Max Median P95 Ratio RatioSD Allocated Alloc Ratio
Respire_Ping 174.9 μs 80.25 μs 4.40 μs 172.2 μs 180.0 μs 172.6 μs 179.3 μs 1.00 0.03 183 B 1.00
StackExchange_Ping 183.8 μs 43.04 μs 2.36 μs 181.1 μs 185.6 μs 184.6 μs 185.5 μs 1.05 0.03 408 B 2.23
Respire_Set_Small 180.1 μs 40.44 μs 2.22 μs 177.7 μs 182.1 μs 180.5 μs 182.0 μs 1.03 0.02 176 B 0.96
StackExchange_Set_Small 182.5 μs 25.79 μs 1.41 μs 181.2 μs 184.0 μs 182.2 μs 183.8 μs 1.04 0.02 416 B 2.27
Respire_Set_Medium 181.8 μs 8.06 μs 0.44 μs 181.3 μs 182.1 μs 181.9 μs 182.1 μs 1.04 0.02 176 B 0.96
StackExchange_Set_Medium 186.5 μs 32.40 μs 1.78 μs 184.5 μs 187.6 μs 187.5 μs 187.6 μs 1.07 0.02 416 B 2.27
Respire_Set_Large 190.2 μs 22.98 μs 1.26 μs 189.1 μs 191.5 μs 189.8 μs 191.4 μs 1.09 0.02 175 B 0.96
StackExchange_Set_Large 193.4 μs 30.23 μs 1.66 μs 191.8 μs 195.1 μs 193.4 μs 194.9 μs 1.11 0.03 416 B 2.27
Respire_Get 182.0 μs 28.08 μs 1.54 μs 180.3 μs 183.3 μs 182.3 μs 183.2 μs 1.04 0.02 224 B 1.22
StackExchange_Get 184.3 μs 3.95 μs 0.22 μs 184.2 μs 184.6 μs 184.2 μs 184.5 μs 1.05 0.02 424 B 2.32
StackExchange_MGet 184.9 μs 18.55 μs 1.02 μs 183.8 μs 185.6 μs 185.5 μs 185.6 μs 1.06 0.02 656 B 3.58
StackExchange_Pipeline_5_Sets 218.2 μs 383.11 μs 21.00 μs 205.7 μs 242.4 μs 206.4 μs 238.8 μs 1.25 0.11 2888 B 15.78
Respire_Exists 181.7 μs 10.19 μs 0.56 μs 181.1 μs 182.3 μs 181.7 μs 182.2 μs 1.04 0.02 176 B 0.96
StackExchange_Exists 183.5 μs 25.76 μs 1.41 μs 182.6 μs 185.1 μs 182.7 μs 184.8 μs 1.05 0.02 400 B 2.19
Respire_Del 351.3 μs 38.19 μs 2.09 μs 349.9 μs 353.7 μs 350.2 μs 353.3 μs 2.01 0.04 200 B 1.09
StackExchange_Del 351.0 μs 79.61 μs 4.36 μs 346.8 μs 355.5 μs 350.9 μs 355.0 μs 2.01 0.05 648 B 3.54
Respire_Incr 182.3 μs 6.43 μs 0.35 μs 182.1 μs 182.7 μs 182.1 μs 182.7 μs 1.04 0.02 183 B 1.00
StackExchange_Incr 181.0 μs 51.92 μs 2.85 μs 178.4 μs 184.0 μs 180.5 μs 183.7 μs 1.04 0.03 400 B 2.19
Respire_Transaction_2 189.4 μs 29.48 μs 1.62 μs 187.6 μs 190.7 μs 190.1 μs 190.6 μs 1.08 0.02 1064 B 5.81
View raw benchmark output

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host]     : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0  IterationCount=3  WarmupCount=1  

Method                        | Mean     | Error     | StdDev   | Min      | Max      | Median   | P95      | Ratio | RatioSD | Allocated | Alloc Ratio |
------------------------------ |---------:|----------:|---------:|---------:|---------:|---------:|---------:|------:|--------:|----------:|------------:|
Respire_Ping                  | 174.9 μs |  80.25 μs |  4.40 μs | 172.2 μs | 180.0 μs | 172.6 μs | 179.3 μs |  1.00 |    0.03 |     183 B |        1.00 |
StackExchange_Ping            | 183.8 μs |  43.04 μs |  2.36 μs | 181.1 μs | 185.6 μs | 184.6 μs | 185.5 μs |  1.05 |    0.03 |     408 B |        2.23 |
Respire_Set_Small             | 180.1 μs |  40.44 μs |  2.22 μs | 177.7 μs | 182.1 μs | 180.5 μs | 182.0 μs |  1.03 |    0.02 |     176 B |        0.96 |
StackExchange_Set_Small       | 182.5 μs |  25.79 μs |  1.41 μs | 181.2 μs | 184.0 μs | 182.2 μs | 183.8 μs |  1.04 |    0.02 |     416 B |        2.27 |
Respire_Set_Medium            | 181.8 μs |   8.06 μs |  0.44 μs | 181.3 μs | 182.1 μs | 181.9 μs | 182.1 μs |  1.04 |    0.02 |     176 B |        0.96 |
StackExchange_Set_Medium      | 186.5 μs |  32.40 μs |  1.78 μs | 184.5 μs | 187.6 μs | 187.5 μs | 187.6 μs |  1.07 |    0.02 |     416 B |        2.27 |
Respire_Set_Large             | 190.2 μs |  22.98 μs |  1.26 μs | 189.1 μs | 191.5 μs | 189.8 μs | 191.4 μs |  1.09 |    0.02 |     175 B |        0.96 |
StackExchange_Set_Large       | 193.4 μs |  30.23 μs |  1.66 μs | 191.8 μs | 195.1 μs | 193.4 μs | 194.9 μs |  1.11 |    0.03 |     416 B |        2.27 |
Respire_Get                   | 182.0 μs |  28.08 μs |  1.54 μs | 180.3 μs | 183.3 μs | 182.3 μs | 183.2 μs |  1.04 |    0.02 |     224 B |        1.22 |
StackExchange_Get             | 184.3 μs |   3.95 μs |  0.22 μs | 184.2 μs | 184.6 μs | 184.2 μs | 184.5 μs |  1.05 |    0.02 |     424 B |        2.32 |
StackExchange_MGet            | 184.9 μs |  18.55 μs |  1.02 μs | 183.8 μs | 185.6 μs | 185.5 μs | 185.6 μs |  1.06 |    0.02 |     656 B |        3.58 |
StackExchange_Pipeline_5_Sets | 218.2 μs | 383.11 μs | 21.00 μs | 205.7 μs | 242.4 μs | 206.4 μs | 238.8 μs |  1.25 |    0.11 |    2888 B |       15.78 |
Respire_Exists                | 181.7 μs |  10.19 μs |  0.56 μs | 181.1 μs | 182.3 μs | 181.7 μs | 182.2 μs |  1.04 |    0.02 |     176 B |        0.96 |
StackExchange_Exists          | 183.5 μs |  25.76 μs |  1.41 μs | 182.6 μs | 185.1 μs | 182.7 μs | 184.8 μs |  1.05 |    0.02 |     400 B |        2.19 |
Respire_Del                   | 351.3 μs |  38.19 μs |  2.09 μs | 349.9 μs | 353.7 μs | 350.2 μs | 353.3 μs |  2.01 |    0.04 |     200 B |        1.09 |
StackExchange_Del             | 351.0 μs |  79.61 μs |  4.36 μs | 346.8 μs | 355.5 μs | 350.9 μs | 355.0 μs |  2.01 |    0.05 |     648 B |        3.54 |
Respire_Incr                  | 182.3 μs |   6.43 μs |  0.35 μs | 182.1 μs | 182.7 μs | 182.1 μs | 182.7 μs |  1.04 |    0.02 |     183 B |        1.00 |
StackExchange_Incr            | 181.0 μs |  51.92 μs |  2.85 μs | 178.4 μs | 184.0 μs | 180.5 μs | 183.7 μs |  1.04 |    0.03 |     400 B |        2.19 |
Respire_Transaction_2         | 189.4 μs |  29.48 μs |  1.62 μs | 187.6 μs | 190.7 μs | 190.1 μs | 190.6 μs |  1.08 |    0.02 |    1064 B |        5.81 |

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Redis Container Benchmark Results (net8.0)

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host] : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0 IterationCount=3 WarmupCount=1

Method Mean Error StdDev Min Max Median P95 Ratio RatioSD Allocated Alloc Ratio
Respire_Ping 182.1 μs 37.09 μs 2.03 μs 179.9 μs 183.9 μs 182.4 μs 183.7 μs 1.00 0.01 184 B 1.00
StackExchange_Ping 184.4 μs 24.62 μs 1.35 μs 183.2 μs 185.9 μs 184.3 μs 185.7 μs 1.01 0.01 408 B 2.22
Respire_Set_Small 185.1 μs 18.85 μs 1.03 μs 183.9 μs 185.9 μs 185.6 μs 185.8 μs 1.02 0.01 176 B 0.96
StackExchange_Set_Small 186.8 μs 37.92 μs 2.08 μs 184.9 μs 189.0 μs 186.5 μs 188.8 μs 1.03 0.01 416 B 2.26
Respire_Set_Medium 184.8 μs 17.22 μs 0.94 μs 184.0 μs 185.8 μs 184.5 μs 185.7 μs 1.02 0.01 176 B 0.96
StackExchange_Set_Medium 189.3 μs 14.55 μs 0.80 μs 188.8 μs 190.2 μs 188.8 μs 190.0 μs 1.04 0.01 416 B 2.26
Respire_Set_Large 193.6 μs 37.39 μs 2.05 μs 191.6 μs 195.7 μs 193.4 μs 195.5 μs 1.06 0.01 176 B 0.96
StackExchange_Set_Large 198.0 μs 25.44 μs 1.39 μs 196.7 μs 199.5 μs 197.9 μs 199.3 μs 1.09 0.01 416 B 2.26
Respire_Get 180.9 μs 97.83 μs 5.36 μs 175.0 μs 185.5 μs 182.1 μs 185.2 μs 0.99 0.03 223 B 1.21
StackExchange_Get 185.4 μs 33.34 μs 1.83 μs 184.2 μs 187.5 μs 184.6 μs 187.2 μs 1.02 0.01 424 B 2.30
StackExchange_MGet 188.4 μs 22.87 μs 1.25 μs 186.9 μs 189.2 μs 189.0 μs 189.2 μs 1.03 0.01 656 B 3.57
StackExchange_Pipeline_5_Sets 226.2 μs 265.77 μs 14.57 μs 212.8 μs 241.7 μs 224.0 μs 240.0 μs 1.24 0.07 2888 B 15.70
Respire_Exists 183.2 μs 19.38 μs 1.06 μs 182.5 μs 184.4 μs 182.7 μs 184.2 μs 1.01 0.01 176 B 0.96
StackExchange_Exists 184.8 μs 32.04 μs 1.76 μs 182.9 μs 186.3 μs 185.1 μs 186.2 μs 1.01 0.01 400 B 2.17
Respire_Del 352.6 μs 6.42 μs 0.35 μs 352.4 μs 353.0 μs 352.4 μs 353.0 μs 1.94 0.02 200 B 1.09
StackExchange_Del 354.6 μs 68.03 μs 3.73 μs 350.4 μs 357.7 μs 355.5 μs 357.5 μs 1.95 0.03 648 B 3.52
Respire_Incr 182.9 μs 15.66 μs 0.86 μs 181.9 μs 183.4 μs 183.4 μs 183.4 μs 1.00 0.01 184 B 1.00
StackExchange_Incr 187.1 μs 11.36 μs 0.62 μs 186.6 μs 187.8 μs 186.9 μs 187.7 μs 1.03 0.01 398 B 2.16
Respire_Transaction_2 191.6 μs 49.40 μs 2.71 μs 188.6 μs 193.7 μs 192.6 μs 193.6 μs 1.05 0.02 1064 B 5.78
View raw benchmark output

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host]     : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0  IterationCount=3  WarmupCount=1  

Method                        | Mean     | Error     | StdDev   | Min      | Max      | Median   | P95      | Ratio | RatioSD | Allocated | Alloc Ratio |
------------------------------ |---------:|----------:|---------:|---------:|---------:|---------:|---------:|------:|--------:|----------:|------------:|
Respire_Ping                  | 182.1 μs |  37.09 μs |  2.03 μs | 179.9 μs | 183.9 μs | 182.4 μs | 183.7 μs |  1.00 |    0.01 |     184 B |        1.00 |
StackExchange_Ping            | 184.4 μs |  24.62 μs |  1.35 μs | 183.2 μs | 185.9 μs | 184.3 μs | 185.7 μs |  1.01 |    0.01 |     408 B |        2.22 |
Respire_Set_Small             | 185.1 μs |  18.85 μs |  1.03 μs | 183.9 μs | 185.9 μs | 185.6 μs | 185.8 μs |  1.02 |    0.01 |     176 B |        0.96 |
StackExchange_Set_Small       | 186.8 μs |  37.92 μs |  2.08 μs | 184.9 μs | 189.0 μs | 186.5 μs | 188.8 μs |  1.03 |    0.01 |     416 B |        2.26 |
Respire_Set_Medium            | 184.8 μs |  17.22 μs |  0.94 μs | 184.0 μs | 185.8 μs | 184.5 μs | 185.7 μs |  1.02 |    0.01 |     176 B |        0.96 |
StackExchange_Set_Medium      | 189.3 μs |  14.55 μs |  0.80 μs | 188.8 μs | 190.2 μs | 188.8 μs | 190.0 μs |  1.04 |    0.01 |     416 B |        2.26 |
Respire_Set_Large             | 193.6 μs |  37.39 μs |  2.05 μs | 191.6 μs | 195.7 μs | 193.4 μs | 195.5 μs |  1.06 |    0.01 |     176 B |        0.96 |
StackExchange_Set_Large       | 198.0 μs |  25.44 μs |  1.39 μs | 196.7 μs | 199.5 μs | 197.9 μs | 199.3 μs |  1.09 |    0.01 |     416 B |        2.26 |
Respire_Get                   | 180.9 μs |  97.83 μs |  5.36 μs | 175.0 μs | 185.5 μs | 182.1 μs | 185.2 μs |  0.99 |    0.03 |     223 B |        1.21 |
StackExchange_Get             | 185.4 μs |  33.34 μs |  1.83 μs | 184.2 μs | 187.5 μs | 184.6 μs | 187.2 μs |  1.02 |    0.01 |     424 B |        2.30 |
StackExchange_MGet            | 188.4 μs |  22.87 μs |  1.25 μs | 186.9 μs | 189.2 μs | 189.0 μs | 189.2 μs |  1.03 |    0.01 |     656 B |        3.57 |
StackExchange_Pipeline_5_Sets | 226.2 μs | 265.77 μs | 14.57 μs | 212.8 μs | 241.7 μs | 224.0 μs | 240.0 μs |  1.24 |    0.07 |    2888 B |       15.70 |
Respire_Exists                | 183.2 μs |  19.38 μs |  1.06 μs | 182.5 μs | 184.4 μs | 182.7 μs | 184.2 μs |  1.01 |    0.01 |     176 B |        0.96 |
StackExchange_Exists          | 184.8 μs |  32.04 μs |  1.76 μs | 182.9 μs | 186.3 μs | 185.1 μs | 186.2 μs |  1.01 |    0.01 |     400 B |        2.17 |
Respire_Del                   | 352.6 μs |   6.42 μs |  0.35 μs | 352.4 μs | 353.0 μs | 352.4 μs | 353.0 μs |  1.94 |    0.02 |     200 B |        1.09 |
StackExchange_Del             | 354.6 μs |  68.03 μs |  3.73 μs | 350.4 μs | 357.7 μs | 355.5 μs | 357.5 μs |  1.95 |    0.03 |     648 B |        3.52 |
Respire_Incr                  | 182.9 μs |  15.66 μs |  0.86 μs | 181.9 μs | 183.4 μs | 183.4 μs | 183.4 μs |  1.00 |    0.01 |     184 B |        1.00 |
StackExchange_Incr            | 187.1 μs |  11.36 μs |  0.62 μs | 186.6 μs | 187.8 μs | 186.9 μs | 187.7 μs |  1.03 |    0.01 |     398 B |        2.16 |
Respire_Transaction_2         | 191.6 μs |  49.40 μs |  2.71 μs | 188.6 μs | 193.7 μs | 192.6 μs | 193.6 μs |  1.05 |    0.02 |    1064 B |        5.78 |

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 5

🧹 Nitpick comments (1)
Directory.Build.props (1)

15-25: 📐 Maintainability & Code Quality | 🔵 Trivial | ⚡ Quick win

Consider deriving project roles from paths instead of hardcoded name lists.

Lines 17 and 21 encode project names as literal strings. A new package project or test project silently gets the wrong defaults until someone updates this file. Path-based conditions or a per-project opt-in property remove that coupling.

♻️ Path-based alternative
   <PropertyGroup>
-    <IsRespirePackageProject>false</IsRespirePackageProject>
-    <IsRespirePackageProject Condition="'$(MSBuildProjectName)' == 'Respire' Or ...">true</IsRespirePackageProject>
+    <!-- Every project under src/ ships as a package. -->
+    <IsRespirePackageProject>false</IsRespirePackageProject>
+    <IsRespirePackageProject Condition="$(MSBuildProjectDirectory.Contains('$(RepositoryRoot)src'))">true</IsRespirePackageProject>
     <IsPackable>$(IsRespirePackageProject)</IsPackable>
   </PropertyGroup>
 
-  <PropertyGroup Condition="'$(MSBuildProjectName)' == 'Respire.Tests' Or ...">
+  <PropertyGroup Condition="$(MSBuildProjectName.EndsWith('Tests'))">
     <IsTestProject>true</IsTestProject>
     <TestingPlatformDotnetTestSupport>true</TestingPlatformDotnetTestSupport>
   </PropertyGroup>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Directory.Build.props` around lines 15 - 25, Replace the hardcoded MSBuild
project-name lists in the IsRespirePackageProject and IsTestProject conditions
with path-based project-role detection or per-project opt-in properties. Ensure
newly added package and test projects receive the correct IsPackable and
TestingPlatformDotnetTestSupport defaults without requiring
Directory.Build.props list updates.
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@Directory.Build.props`:
- Line 4: Remove the conflicting target framework declaration by keeping a
single framework configuration between Directory.Build.props and
allocation_test.csproj; update the TargetFrameworks setting in
Directory.Build.props or the TargetFramework setting in the allocation_test
project so allocation_test does not unintentionally multi-target.

In `@Respire.Pipeline/packages.lock.json`:
- Around line 490-542: Regenerate Respire.Pipeline’s packages.lock.json using
dotnet restore --force-evaluate so all CentralTransitive entries, especially
Microsoft.Extensions.ObjectPool and the Microsoft.Extensions.* packages, resolve
consistently with the 10.0.10 lower bound and Directory.Packages.props. Commit
the regenerated lock file without manually editing individual dependency
entries.

In `@tests/Respire.Extensions.Caching.Tests/packages.lock.json`:
- Around line 305-314: Regenerate all affected lock files with full restore
re-evaluation using dotnet restore --force-evaluate so every CentralTransitive
resolved version satisfies its requested central version. Update
tests/Respire.Extensions.Caching.Tests/packages.lock.json,
benchmarks/Respire.Benchmarks/packages.lock.json,
benchmarks/Respire.ComparisonBenchmarks/packages.lock.json,
tests/Respire.Pipeline.Tests/packages.lock.json,
tools/Respire.StressTests/packages.lock.json, and
tests/Respire.IntegrationTests/packages.lock.json at the specified ranges, then
commit the generated changes; only retain a lower version if backed by a direct
PackageReference with documented justification.

In `@tests/Respire.Pipeline.Tests/packages.lock.json`:
- Around line 612-617: Add an explicit PackageReference for
Microsoft.Extensions.ObjectPool to the pipeline project files, using the
centrally managed 10.0.10 version. Ensure the projects containing the
ModularPipelines dependency directly reference the package so transitive
resolution no longer selects the 9.0.0-rc.2.24474.3 assembly.

In `@website/package.json`:
- Line 16: Update the documentation workflow’s Node.js setup around the
packageManager setting so npm@11.13.0 is explicitly installed or invoked before
the existing npm ci step. Preserve the current npm ci behavior while ensuring it
uses the pinned npm version.

---

Nitpick comments:
In `@Directory.Build.props`:
- Around line 15-25: Replace the hardcoded MSBuild project-name lists in the
IsRespirePackageProject and IsTestProject conditions with path-based
project-role detection or per-project opt-in properties. Ensure newly added
package and test projects receive the correct IsPackable and
TestingPlatformDotnetTestSupport defaults without requiring
Directory.Build.props list updates.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 156511e1-823e-4580-907b-523f35ce062e

📥 Commits

Reviewing files that changed from the base of the PR and between 0653d20 and f643185.

⛔ Files ignored due to path filters (1)
  • website/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (35)
  • Directory.Build.props
  • Directory.Packages.props
  • LICENSE
  • README.md
  • Respire.Pipeline/Respire.Pipeline.csproj
  • Respire.Pipeline/packages.lock.json
  • allocation_test/allocation_test.csproj
  • allocation_test/packages.lock.json
  • benchmarks/Respire.Benchmarks/Respire.Benchmarks.csproj
  • benchmarks/Respire.Benchmarks/packages.lock.json
  • benchmarks/Respire.ComparisonBenchmarks/Respire.ComparisonBenchmarks.csproj
  • benchmarks/Respire.ComparisonBenchmarks/packages.lock.json
  • global.json
  • samples/Respire.Samples.Basic/packages.lock.json
  • src/Respire.Extensions.Caching.Hybrid/Respire.Extensions.Caching.Hybrid.csproj
  • src/Respire.Extensions.Caching.Hybrid/packages.lock.json
  • src/Respire.Extensions.Caching/Respire.Extensions.Caching.csproj
  • src/Respire.Extensions.Caching/packages.lock.json
  • src/Respire.Extensions.DependencyInjection/Respire.Extensions.DependencyInjection.csproj
  • src/Respire.Extensions.DependencyInjection/packages.lock.json
  • src/Respire/Respire.csproj
  • src/Respire/packages.lock.json
  • tests/Respire.Extensions.Caching.Hybrid.Tests/Respire.Extensions.Caching.Hybrid.Tests.csproj
  • tests/Respire.Extensions.Caching.Hybrid.Tests/packages.lock.json
  • tests/Respire.Extensions.Caching.Tests/Respire.Extensions.Caching.Tests.csproj
  • tests/Respire.Extensions.Caching.Tests/packages.lock.json
  • tests/Respire.IntegrationTests/Respire.IntegrationTests.csproj
  • tests/Respire.IntegrationTests/packages.lock.json
  • tests/Respire.Pipeline.Tests/Respire.Pipeline.Tests.csproj
  • tests/Respire.Pipeline.Tests/packages.lock.json
  • tests/Respire.Tests/Respire.Tests.csproj
  • tests/Respire.Tests/packages.lock.json
  • tools/Respire.StressTests/Respire.StressTests.csproj
  • tools/Respire.StressTests/packages.lock.json
  • website/package.json
💤 Files with no reviewable changes (10)
  • Respire.Pipeline/Respire.Pipeline.csproj
  • allocation_test/allocation_test.csproj
  • tests/Respire.Tests/Respire.Tests.csproj
  • tests/Respire.Pipeline.Tests/Respire.Pipeline.Tests.csproj
  • benchmarks/Respire.ComparisonBenchmarks/Respire.ComparisonBenchmarks.csproj
  • benchmarks/Respire.Benchmarks/Respire.Benchmarks.csproj
  • tests/Respire.Extensions.Caching.Tests/Respire.Extensions.Caching.Tests.csproj
  • tests/Respire.Extensions.Caching.Hybrid.Tests/Respire.Extensions.Caching.Hybrid.Tests.csproj
  • tests/Respire.IntegrationTests/Respire.IntegrationTests.csproj
  • tools/Respire.StressTests/Respire.StressTests.csproj

Comment thread Directory.Build.props
</PropertyGroup>
<PropertyGroup>
<RepositoryRoot>$(MSBuildThisFileDirectory)</RepositoryRoot>
<TargetFrameworks>net8.0;net10.0</TargetFrameworks>

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🩺 Stability & Availability | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# List all project files and show their target framework declarations.
fd -e csproj . | while IFS= read -r p; do
  echo "=== $p"
  rg -n '<TargetFrameworks?>' "$p" || echo "  (no override - inherits net8.0;net10.0)"
done

Repository: thomhurst/Respire

Length of output: 1789


🏁 Script executed:

#!/bin/bash
set -eu

printf '%s\n' '--- Directory.Build.props ---'
cat -n Directory.Build.props

printf '%s\n' '--- allocation_test/allocation_test.csproj ---'
cat -n allocation_test/allocation_test.csproj

printf '%s\n' '--- framework-related project declarations ---'
rg -n -C 2 '<TargetFrameworks?>|IsCrossTargetingBuild|TargetFramework' --glob '*.csproj' --glob '*.props' --glob '*.targets' .

printf '%s\n' '--- available MSBuild tooling ---'
command -v dotnet || true
command -v msbuild || true

Repository: thomhurst/Respire

Length of output: 12801


🌐 Web query:

MSBuild SDK TargetFramework TargetFrameworks both set IsCrossTargetingBuild precedence

💡 Result:

In MSBuild projects, when both TargetFramework and TargetFrameworks are defined, TargetFrameworks takes precedence [1]. If TargetFrameworks is present, the.NET SDK ignores the TargetFramework property [1]. The IsCrossTargetingBuild property is an internal MSBuild property used by the.NET SDK to determine whether a project should perform a multi-targeting (cross-targeting) build [2]. It is set to true automatically when TargetFrameworks is defined and non-empty, and the build is not currently executing an inner build for a specific framework [2]. Specifically, the logic used by the SDK evaluates as follows: - If TargetFrameworks is set and non-empty, and TargetFramework is not set, IsCrossTargetingBuild is set to true [2]. - When IsCrossTargetingBuild is true, the SDK dispatches individual "inner" builds for each framework listed in TargetFrameworks [3][2]. During these inner builds, the project is re-evaluated with a single TargetFramework property set to the current framework being built [4][5]. It is considered a configuration error to define both properties, and modern.NET SDK versions include a build check (BC0107) to warn developers when both are specified simultaneously to prevent ambiguity [6].

Citations:


Remove the conflicting framework declaration

allocation_test/allocation_test.csproj declares TargetFramework as net10.0, while Directory.Build.props sets TargetFrameworks to net8.0;net10.0. Remove one declaration to prevent unintended multi-targeting.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Directory.Build.props` at line 4, Remove the conflicting target framework
declaration by keeping a single framework configuration between
Directory.Build.props and allocation_test.csproj; update the TargetFrameworks
setting in Directory.Build.props or the TargetFramework setting in the
allocation_test project so allocation_test does not unintentionally
multi-target.

Comment thread Respire.Pipeline/packages.lock.json Outdated
Comment on lines +490 to +542
"Microsoft.Extensions.DependencyInjection": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "10.0.6",
"contentHash": "poUvwtf92bEs8uBH3aRRs/ZgiAw+Z485EU7TtVPBt//MmD0uMPERe7+v3Ur7lpD8XgIEDL9sDoTBcW1LMG97CQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.6"
}
},
"Microsoft.Extensions.DependencyInjection.Abstractions": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "10.0.6",
"contentHash": "w+dX4SIr1X9yegX2yX2dU1XtP4JAUVNdvOG/Evn+H+ndn96YzfIPX52FALXChrRNWFR9l77FQyg1mB7WQo6iOA=="
},
"Microsoft.Extensions.Hosting.Abstractions": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "10.0.6",
"contentHash": "x3C8tgsX+xWvV5u76LFm24/U7sSnCRjuudBkbFsMV/DIqCA85te7YGg6dpa7lBToDhi4Lry9E7Arpy0laUw5AQ==",
"dependencies": {
"Microsoft.Extensions.Configuration.Abstractions": "10.0.6",
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.6",
"Microsoft.Extensions.Diagnostics.Abstractions": "10.0.6",
"Microsoft.Extensions.FileProviders.Abstractions": "10.0.6",
"Microsoft.Extensions.Logging.Abstractions": "10.0.6"
}
},
"Microsoft.Extensions.Logging.Abstractions": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "10.0.6",
"contentHash": "1YgBO3wAy0dlpQyVTKWBSPND/t0yZHsvd3shGpbeEwH8JSb2hnFI2pNFrOOUi/stsp+T/dqwqmRIGh47ibo9bw==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.6"
}
},
"Microsoft.Extensions.ObjectPool": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "9.0.0-rc.2.24474.3",
"contentHash": "laI1OGPudszr2Ii+38bZlvqkrNLC/gaQyo1g6qKfZD9ewWPfkEFOluqTuw8bUbXoe/Gmp9DPVynRzfaKg5gE9g=="
},
"Microsoft.Extensions.Options": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "10.0.6",
"contentHash": "v5RTWm+3Gdub21ADJeRG5bunOOxutFNBZk6qGH6Az4L5nyRZoLe3Kse7jfAyUcdEoiKp72XpNw/wGR+9wP+MtQ==",
"dependencies": {
"Microsoft.Extensions.DependencyInjection.Abstractions": "10.0.6",
"Microsoft.Extensions.Primitives": "10.0.6"
}
}

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🔴 Critical | ⚡ Quick win

The CentralTransitive entries resolve below the requested lower bound.

Every CentralTransitive entry in this block declares "requested": "[10.0.10, )" but records "resolved": "10.0.6". Microsoft.Extensions.ObjectPool at lines 527-532 records "resolved": "9.0.0-rc.2.24474.3", which is a prerelease. Directory.Packages.props pins these packages at 10.0.10, and every other lock file in this PR records 10.0.10.

A resolved version below the requested lower bound is not a valid restore result. The lock file looks stale relative to the current central package versions. Directory.Build.props sets RestoreLockedMode to true on CI, so a stale lock file breaks the CI restore or pins versions that contradict central package management.

Regenerate this lock file with dotnet restore --force-evaluate and commit the result.

#!/bin/bash
# List every lock entry whose resolved version is lower than the requested lower bound.
fd 'packages.lock.json' --exec python3 -c '
import json,sys
p=sys.argv[1]
d=json.load(open(p))
for tfm,pkgs in d.get("dependencies",{}).items():
    for name,info in pkgs.items():
        req=info.get("requested"); res=info.get("resolved")
        if req and res:
            low=req.strip("[]() ").split(",")[0]
            if low and res!=low:
                print(f"{p} {tfm} {name} requested={req} resolved={res}")
' {}
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@Respire.Pipeline/packages.lock.json` around lines 490 - 542, Regenerate
Respire.Pipeline’s packages.lock.json using dotnet restore --force-evaluate so
all CentralTransitive entries, especially Microsoft.Extensions.ObjectPool and
the Microsoft.Extensions.* packages, resolve consistently with the 10.0.10 lower
bound and Directory.Packages.props. Commit the regenerated lock file without
manually editing individual dependency entries.

Comment on lines +612 to +617
"Microsoft.Extensions.ObjectPool": {
"type": "CentralTransitive",
"requested": "[10.0.10, )",
"resolved": "9.0.0-rc.2.24474.3",
"contentHash": "laI1OGPudszr2Ii+38bZlvqkrNLC/gaQyo1g6qKfZD9ewWPfkEFOluqTuw8bUbXoe/Gmp9DPVynRzfaKg5gE9g=="
},

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔒 Security & Privacy | 🟠 Major | ⚡ Quick win

A prerelease assembly is locked into the build.

Microsoft.Extensions.ObjectPool resolves to 9.0.0-rc.2.24474.3. This is a release candidate, and it is more than one major version below the requested [10.0.10, ). The source is the transitive chain ModularPipelines → vertical-spectreconsolelogger 0.10.1-dev.20241201.35 (lines 552-562), which is itself a -dev build.

Add an explicit PackageReference to Microsoft.Extensions.ObjectPool in the pipeline projects. A direct reference lifts the resolution to the central 10.0.10 version and removes the release-candidate assembly from the graph.

🔒️ Proposed fix in the pipeline project files
<ItemGroup>
  <!-- Lift the RC ObjectPool pulled in transitively by vertical-spectreconsolelogger. -->
  <PackageReference Include="Microsoft.Extensions.ObjectPool" />
</ItemGroup>
🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@tests/Respire.Pipeline.Tests/packages.lock.json` around lines 612 - 617, Add
an explicit PackageReference for Microsoft.Extensions.ObjectPool to the pipeline
project files, using the centrally managed 10.0.10 version. Ensure the projects
containing the ModularPipelines dependency directly reference the package so
transitive resolution no longer selects the 9.0.0-rc.2.24474.3 assembly.

Comment thread website/package.json
"bugs": {
"url": "https://github.com/thomhurst/Respire/issues"
},
"packageManager": "npm@11.13.0",

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win

🧩 Analysis chain

🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

# Expect an explicit npm 11.13.0 setup or a failing devEngines check before npm ci.
rg -n -C 5 \
  '"packageManager"|"devEngines"|npm@11\.13\.0|npm (install|ci)|node-version' \
  website/package.json .github/workflows website/package-lock.json

Repository: thomhurst/Respire

Length of output: 1749


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- relevant tracked files ---'
git ls-files \
  'website/package.json' \
  'website/package-lock.json' \
  '.github/workflows/*' \
  '.npmrc' \
  'website/.npmrc' \
  'package.json' \
  'package-lock.json'

printf '%s\n' '--- website/package.json ---'
cat -n website/package.json

printf '%s\n' '--- workflow files and npm-related lines ---'
while IFS= read -r f; do
  printf '\n--- %s ---\n' "$f"
  rg -n -C 4 'npm|corepack|node-version|setup-node|devEngines|packageManager' "$f" || true
done < <(git ls-files '.github/workflows/*')

printf '%s\n' '--- package metadata/config references ---'
rg -n -C 3 \
  '"packageManager"|"devEngines"|npm@11\.13\.0|corepack|npm-version|npm_version|npm ci|npm install' \
  --glob '!website/package-lock.json' \
  --glob '!*node_modules*' \
  . || true

printf '%s\n' '--- lockfile header and npm metadata ---'
head -n 25 website/package-lock.json
rg -n -C 2 '"lockfileVersion"|"name"|"version"' website/package-lock.json | head -n 30

printf '%s\n' '--- read-only verifier ---'
python3 - <<'PY'
import json
from pathlib import Path

pkg = json.loads(Path("website/package.json").read_text())
lock = json.loads(Path("website/package-lock.json").read_text())

print("packageManager:", pkg.get("packageManager"))
print("devEngines:", pkg.get("devEngines"))
print("lockfileVersion:", lock.get("lockfileVersion"))
print("lockfile packageManager:", lock.get("packages", {}).get("", {}).get("packageManager"))
PY

Repository: thomhurst/Respire

Length of output: 2241


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- documentation workflow ---'
cat -n .github/workflows/docs.yml

printf '%s\n' '--- npm-related references in tracked files ---'
rg -n -C 3 \
  'npm|corepack|node-version|setup-node|devEngines|packageManager|npm-version|npm_version' \
  $(git ls-files) || true

printf '%s\n' '--- package and lockfile metadata ---'
python3 - <<'PY'
import json
from pathlib import Path

for name in ("website/package.json", "website/package-lock.json"):
    data = json.loads(Path(name).read_text())
    print(name)
    print("  packageManager:", data.get("packageManager"))
    print("  devEngines:", data.get("devEngines"))
    print("  engines:", data.get("engines"))
    print("  lockfileVersion:", data.get("lockfileVersion"))
    print("  root package metadata:", data.get("packages", {}).get("", {}))
PY

Repository: thomhurst/Respire

Length of output: 50374


🌐 Web query:

Official npm documentation for package.json packageManager field and devEngines packageManager enforcement, including behavior when npm is invoked directly

💡 Result:

The packageManager field and the devEngines property are distinct mechanisms used in package.json to manage environment and tooling requirements. packageManager Field The top-level packageManager field is primarily utilized by Corepack, a tool bundled with Node.js [1][2]. It specifies the exact package manager and version (e.g., "pnpm@11.7.0") intended for a project [1][2]. When Corepack is enabled, it reads this field to automatically pin and execute the correct version of the specified package manager [1]. It is not used directly by the npm CLI for enforcement [3]. devEngines Property The devEngines property is a specification for defining runtime and tooling requirements for developers working on a project [4]. Unlike the engines field—which is checked when installing dependencies for consumption—devEngines is intended to guide maintainers and developers interacting with the source code [5][6]. Key details include: - Supported Keys: Includes packageManager, runtime, cpu, os, and libc [7][5]. - Structure: Each key can be an object or an array of objects containing name, version (optional), and onFail (optional) [7][4]. - Enforcement: When using npm, commands such as install, ci, and run inspect the devEngines property before execution [5][6]. If the current environment does not match the specified requirements, npm will trigger the configured onFail behavior [7][6]. - onFail Behavior: Valid options are warn, error, or ignore [7][4]. By default, if onFail is undefined, it defaults to error [7][5]. npm does not currently implement the download option due to security concerns; if specified, npm will treat it as a failure and error [8]. - npm Behavior: When npm is invoked directly, it assumes it is the packageManager and that the runtime is node [7][5]. If devEngines is configured with a packageManager.name other than npm, or if requirements are not met, the npm CLI will throw an error (unless onFail is set to warn or ignore) [7][6]. In summary, devEngines acts as a built-in enforcement mechanism within the npm CLI for maintainers to ensure all contributors use the same tooling, while the top-level packageManager field remains the canonical signal for Corepack to resolve the specific binary version [5][6][2]. [7][5][1]

Citations:


🏁 Script executed:

#!/usr/bin/env bash
set -euo pipefail

printf '%s\n' '--- documentation workflow ---'
sed -n '24,45p' .github/workflows/docs.yml

printf '%s\n' '--- npm setup and invocation in workflows ---'
rg -n -C 3 \
  'npm|corepack|node-version|setup-node|devEngines|packageManager|npm-version|npm_version' \
  .github/workflows

printf '%s\n' '--- package metadata verifier ---'
python3 - <<'PY'
import json
from pathlib import Path

package = json.loads(Path("website/package.json").read_text())
lockfile = json.loads(Path("website/package-lock.json").read_text())

print("website/package.json.packageManager =", package.get("packageManager"))
print("website/package.json.devEngines =", package.get("devEngines"))
print("website/package.json.engines =", package.get("engines"))
print("website/package-lock.json.lockfileVersion =", lockfile.get("lockfileVersion"))
print("website/package-lock.json.root.packageManager =",
      lockfile.get("packages", {}).get("", {}).get("packageManager"))
PY

Repository: thomhurst/Respire

Length of output: 2333


Pin npm in the documentation workflow. The workflow runs npm ci after setting up Node.js 24, but packageManager does not enforce the npm binary for direct invocations. Install or invoke npm@11.13.0 before npm ci.

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@website/package.json` at line 16, Update the documentation workflow’s Node.js
setup around the packageManager setting so npm@11.13.0 is explicitly installed
or invoked before the existing npm ci step. Preserve the current npm ci behavior
while ensuring it uses the pinned npm version.

@thomhurst
thomhurst force-pushed the agent/package-production-best-practices branch from cfb3c6d to ed64317 Compare August 9, 2026 22:50
@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🧪 Integration Test Results (net10.0)

ℹ️ Execution Details

  • Framework: net10.0
  • Test Runner: TUnit
  • Runner: Linux - X64
  • Status: success
  • Timestamp: 2026-08-09T22:51:57.501Z

Automated integration testing with Redis containers using TUnit

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

🧪 Integration Test Results (net8.0)

ℹ️ Execution Details

  • Framework: net8.0
  • Test Runner: TUnit
  • Runner: Linux - X64
  • Status: success
  • Timestamp: 2026-08-09T22:52:09.888Z

Automated integration testing with Redis containers using TUnit

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Redis Container Benchmark Results (net8.0)

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host] : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0 IterationCount=3 WarmupCount=1

Method Mean Error StdDev Min Max Median P95 Ratio RatioSD Allocated Alloc Ratio
Respire_Ping 182.9 μs 45.15 μs 2.47 μs 180.0 μs 184.4 μs 184.2 μs 184.4 μs 1.00 0.02 184 B 1.00
StackExchange_Ping 184.8 μs 18.84 μs 1.03 μs 183.7 μs 185.7 μs 185.1 μs 185.6 μs 1.01 0.01 407 B 2.21
Respire_Set_Small 188.0 μs 15.84 μs 0.87 μs 187.4 μs 189.0 μs 187.6 μs 188.8 μs 1.03 0.01 176 B 0.96
StackExchange_Set_Small 188.5 μs 38.59 μs 2.12 μs 186.2 μs 190.2 μs 189.2 μs 190.1 μs 1.03 0.02 416 B 2.26
Respire_Set_Medium 189.3 μs 10.71 μs 0.59 μs 188.6 μs 189.8 μs 189.4 μs 189.7 μs 1.04 0.01 175 B 0.95
StackExchange_Set_Medium 188.0 μs 13.31 μs 0.73 μs 187.3 μs 188.8 μs 188.0 μs 188.7 μs 1.03 0.01 416 B 2.26
Respire_Set_Large 197.7 μs 13.54 μs 0.74 μs 197.1 μs 198.5 μs 197.4 μs 198.4 μs 1.08 0.01 176 B 0.96
StackExchange_Set_Large 198.1 μs 36.09 μs 1.98 μs 196.1 μs 200.1 μs 198.2 μs 199.9 μs 1.08 0.02 416 B 2.26
Respire_Get 184.4 μs 26.32 μs 1.44 μs 183.0 μs 185.9 μs 184.2 μs 185.7 μs 1.01 0.01 224 B 1.22
StackExchange_Get 189.3 μs 23.11 μs 1.27 μs 188.0 μs 190.5 μs 189.4 μs 190.4 μs 1.04 0.01 424 B 2.30
StackExchange_MGet 191.4 μs 37.36 μs 2.05 μs 189.1 μs 192.7 μs 192.5 μs 192.7 μs 1.05 0.02 656 B 3.57
StackExchange_Pipeline_5_Sets 221.9 μs 260.96 μs 14.30 μs 212.9 μs 238.4 μs 214.3 μs 236.0 μs 1.21 0.07 2888 B 15.70
Respire_Exists 184.4 μs 33.57 μs 1.84 μs 182.9 μs 186.5 μs 183.9 μs 186.2 μs 1.01 0.01 176 B 0.96
StackExchange_Exists 186.6 μs 35.77 μs 1.96 μs 185.2 μs 188.8 μs 185.6 μs 188.5 μs 1.02 0.02 400 B 2.17
Respire_Del 358.8 μs 9.16 μs 0.50 μs 358.3 μs 359.2 μs 359.0 μs 359.2 μs 1.96 0.02 200 B 1.09
StackExchange_Del 358.5 μs 110.51 μs 6.06 μs 352.5 μs 364.7 μs 358.4 μs 364.0 μs 1.96 0.04 648 B 3.52
Respire_Incr 185.7 μs 17.37 μs 0.95 μs 184.7 μs 186.6 μs 185.9 μs 186.6 μs 1.02 0.01 184 B 1.00
StackExchange_Incr 189.2 μs 24.56 μs 1.35 μs 187.7 μs 190.2 μs 189.7 μs 190.2 μs 1.03 0.01 400 B 2.17
Respire_Transaction_2 194.3 μs 37.81 μs 2.07 μs 192.3 μs 196.4 μs 194.3 μs 196.2 μs 1.06 0.02 1064 B 5.78
View raw benchmark output

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host]     : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0  IterationCount=3  WarmupCount=1  

Method                        | Mean     | Error     | StdDev   | Min      | Max      | Median   | P95      | Ratio | RatioSD | Allocated | Alloc Ratio |
------------------------------ |---------:|----------:|---------:|---------:|---------:|---------:|---------:|------:|--------:|----------:|------------:|
Respire_Ping                  | 182.9 μs |  45.15 μs |  2.47 μs | 180.0 μs | 184.4 μs | 184.2 μs | 184.4 μs |  1.00 |    0.02 |     184 B |        1.00 |
StackExchange_Ping            | 184.8 μs |  18.84 μs |  1.03 μs | 183.7 μs | 185.7 μs | 185.1 μs | 185.6 μs |  1.01 |    0.01 |     407 B |        2.21 |
Respire_Set_Small             | 188.0 μs |  15.84 μs |  0.87 μs | 187.4 μs | 189.0 μs | 187.6 μs | 188.8 μs |  1.03 |    0.01 |     176 B |        0.96 |
StackExchange_Set_Small       | 188.5 μs |  38.59 μs |  2.12 μs | 186.2 μs | 190.2 μs | 189.2 μs | 190.1 μs |  1.03 |    0.02 |     416 B |        2.26 |
Respire_Set_Medium            | 189.3 μs |  10.71 μs |  0.59 μs | 188.6 μs | 189.8 μs | 189.4 μs | 189.7 μs |  1.04 |    0.01 |     175 B |        0.95 |
StackExchange_Set_Medium      | 188.0 μs |  13.31 μs |  0.73 μs | 187.3 μs | 188.8 μs | 188.0 μs | 188.7 μs |  1.03 |    0.01 |     416 B |        2.26 |
Respire_Set_Large             | 197.7 μs |  13.54 μs |  0.74 μs | 197.1 μs | 198.5 μs | 197.4 μs | 198.4 μs |  1.08 |    0.01 |     176 B |        0.96 |
StackExchange_Set_Large       | 198.1 μs |  36.09 μs |  1.98 μs | 196.1 μs | 200.1 μs | 198.2 μs | 199.9 μs |  1.08 |    0.02 |     416 B |        2.26 |
Respire_Get                   | 184.4 μs |  26.32 μs |  1.44 μs | 183.0 μs | 185.9 μs | 184.2 μs | 185.7 μs |  1.01 |    0.01 |     224 B |        1.22 |
StackExchange_Get             | 189.3 μs |  23.11 μs |  1.27 μs | 188.0 μs | 190.5 μs | 189.4 μs | 190.4 μs |  1.04 |    0.01 |     424 B |        2.30 |
StackExchange_MGet            | 191.4 μs |  37.36 μs |  2.05 μs | 189.1 μs | 192.7 μs | 192.5 μs | 192.7 μs |  1.05 |    0.02 |     656 B |        3.57 |
StackExchange_Pipeline_5_Sets | 221.9 μs | 260.96 μs | 14.30 μs | 212.9 μs | 238.4 μs | 214.3 μs | 236.0 μs |  1.21 |    0.07 |    2888 B |       15.70 |
Respire_Exists                | 184.4 μs |  33.57 μs |  1.84 μs | 182.9 μs | 186.5 μs | 183.9 μs | 186.2 μs |  1.01 |    0.01 |     176 B |        0.96 |
StackExchange_Exists          | 186.6 μs |  35.77 μs |  1.96 μs | 185.2 μs | 188.8 μs | 185.6 μs | 188.5 μs |  1.02 |    0.02 |     400 B |        2.17 |
Respire_Del                   | 358.8 μs |   9.16 μs |  0.50 μs | 358.3 μs | 359.2 μs | 359.0 μs | 359.2 μs |  1.96 |    0.02 |     200 B |        1.09 |
StackExchange_Del             | 358.5 μs | 110.51 μs |  6.06 μs | 352.5 μs | 364.7 μs | 358.4 μs | 364.0 μs |  1.96 |    0.04 |     648 B |        3.52 |
Respire_Incr                  | 185.7 μs |  17.37 μs |  0.95 μs | 184.7 μs | 186.6 μs | 185.9 μs | 186.6 μs |  1.02 |    0.01 |     184 B |        1.00 |
StackExchange_Incr            | 189.2 μs |  24.56 μs |  1.35 μs | 187.7 μs | 190.2 μs | 189.7 μs | 190.2 μs |  1.03 |    0.01 |     400 B |        2.17 |
Respire_Transaction_2         | 194.3 μs |  37.81 μs |  2.07 μs | 192.3 μs | 196.4 μs | 194.3 μs | 196.2 μs |  1.06 |    0.02 |    1064 B |        5.78 |

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Redis Container Benchmark Results (net10.0)

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.65GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host] : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0 IterationCount=3 WarmupCount=1

Method Mean Error StdDev Min Max Median P95 Ratio RatioSD Allocated Alloc Ratio
Respire_Ping 180.2 μs 67.43 μs 3.70 μs 175.9 μs 182.6 μs 182.0 μs 182.5 μs 1.00 0.03 184 B 1.00
StackExchange_Ping 184.5 μs 22.44 μs 1.23 μs 183.0 μs 185.3 μs 185.0 μs 185.3 μs 1.02 0.02 408 B 2.22
Respire_Set_Small 185.2 μs 12.78 μs 0.70 μs 184.6 μs 186.0 μs 185.1 μs 185.9 μs 1.03 0.02 176 B 0.96
StackExchange_Set_Small 186.9 μs 28.37 μs 1.56 μs 185.4 μs 188.5 μs 186.7 μs 188.3 μs 1.04 0.02 415 B 2.26
Respire_Set_Medium 184.5 μs 31.74 μs 1.74 μs 182.5 μs 185.9 μs 185.0 μs 185.8 μs 1.02 0.02 175 B 0.95
StackExchange_Set_Medium 188.6 μs 43.43 μs 2.38 μs 186.1 μs 190.8 μs 188.9 μs 190.6 μs 1.05 0.02 416 B 2.26
Respire_Set_Large 195.3 μs 16.22 μs 0.89 μs 194.5 μs 196.2 μs 195.2 μs 196.1 μs 1.08 0.02 176 B 0.96
StackExchange_Set_Large 195.2 μs 23.21 μs 1.27 μs 193.7 μs 196.1 μs 195.8 μs 196.0 μs 1.08 0.02 416 B 2.26
Respire_Get 181.0 μs 54.93 μs 3.01 μs 177.7 μs 183.5 μs 181.8 μs 183.4 μs 1.00 0.02 224 B 1.22
StackExchange_Get 186.0 μs 17.11 μs 0.94 μs 185.0 μs 186.8 μs 186.3 μs 186.8 μs 1.03 0.02 423 B 2.30
StackExchange_MGet 185.8 μs 29.92 μs 1.64 μs 184.8 μs 187.7 μs 184.8 μs 187.4 μs 1.03 0.02 654 B 3.55
StackExchange_Pipeline_5_Sets 218.9 μs 278.11 μs 15.24 μs 209.8 μs 236.5 μs 210.4 μs 233.9 μs 1.22 0.08 2888 B 15.70
Respire_Exists 182.6 μs 17.63 μs 0.97 μs 181.7 μs 183.7 μs 182.5 μs 183.5 μs 1.01 0.02 174 B 0.95
StackExchange_Exists 185.6 μs 31.31 μs 1.72 μs 184.3 μs 187.6 μs 185.1 μs 187.3 μs 1.03 0.02 400 B 2.17
Respire_Del 354.0 μs 29.18 μs 1.60 μs 352.6 μs 355.7 μs 353.7 μs 355.5 μs 1.97 0.04 200 B 1.09
StackExchange_Del 357.1 μs 18.45 μs 1.01 μs 356.0 μs 358.0 μs 357.3 μs 357.9 μs 1.98 0.04 648 B 3.52
Respire_Incr 183.2 μs 12.51 μs 0.69 μs 182.6 μs 183.9 μs 183.2 μs 183.9 μs 1.02 0.02 184 B 1.00
StackExchange_Incr 185.6 μs 37.13 μs 2.04 μs 184.2 μs 187.9 μs 184.6 μs 187.6 μs 1.03 0.02 400 B 2.17
Respire_Transaction_2 191.3 μs 41.14 μs 2.26 μs 188.9 μs 193.4 μs 191.7 μs 193.2 μs 1.06 0.02 1064 B 5.78
View raw benchmark output

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.4 LTS (Noble Numbat)
AMD EPYC 7763 2.65GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.302
[Host]     : .NET 10.0.10 (10.0.10, 10.0.1026.32716), X64 RyuJIT x86-64-v3
Job-YBPNYS : .NET 8.0.29 (8.0.29, 8.0.2926.32403), X64 RyuJIT x86-64-v3

Runtime=.NET 8.0  IterationCount=3  WarmupCount=1  

Method                        | Mean     | Error     | StdDev   | Min      | Max      | Median   | P95      | Ratio | RatioSD | Allocated | Alloc Ratio |
------------------------------ |---------:|----------:|---------:|---------:|---------:|---------:|---------:|------:|--------:|----------:|------------:|
Respire_Ping                  | 180.2 μs |  67.43 μs |  3.70 μs | 175.9 μs | 182.6 μs | 182.0 μs | 182.5 μs |  1.00 |    0.03 |     184 B |        1.00 |
StackExchange_Ping            | 184.5 μs |  22.44 μs |  1.23 μs | 183.0 μs | 185.3 μs | 185.0 μs | 185.3 μs |  1.02 |    0.02 |     408 B |        2.22 |
Respire_Set_Small             | 185.2 μs |  12.78 μs |  0.70 μs | 184.6 μs | 186.0 μs | 185.1 μs | 185.9 μs |  1.03 |    0.02 |     176 B |        0.96 |
StackExchange_Set_Small       | 186.9 μs |  28.37 μs |  1.56 μs | 185.4 μs | 188.5 μs | 186.7 μs | 188.3 μs |  1.04 |    0.02 |     415 B |        2.26 |
Respire_Set_Medium            | 184.5 μs |  31.74 μs |  1.74 μs | 182.5 μs | 185.9 μs | 185.0 μs | 185.8 μs |  1.02 |    0.02 |     175 B |        0.95 |
StackExchange_Set_Medium      | 188.6 μs |  43.43 μs |  2.38 μs | 186.1 μs | 190.8 μs | 188.9 μs | 190.6 μs |  1.05 |    0.02 |     416 B |        2.26 |
Respire_Set_Large             | 195.3 μs |  16.22 μs |  0.89 μs | 194.5 μs | 196.2 μs | 195.2 μs | 196.1 μs |  1.08 |    0.02 |     176 B |        0.96 |
StackExchange_Set_Large       | 195.2 μs |  23.21 μs |  1.27 μs | 193.7 μs | 196.1 μs | 195.8 μs | 196.0 μs |  1.08 |    0.02 |     416 B |        2.26 |
Respire_Get                   | 181.0 μs |  54.93 μs |  3.01 μs | 177.7 μs | 183.5 μs | 181.8 μs | 183.4 μs |  1.00 |    0.02 |     224 B |        1.22 |
StackExchange_Get             | 186.0 μs |  17.11 μs |  0.94 μs | 185.0 μs | 186.8 μs | 186.3 μs | 186.8 μs |  1.03 |    0.02 |     423 B |        2.30 |
StackExchange_MGet            | 185.8 μs |  29.92 μs |  1.64 μs | 184.8 μs | 187.7 μs | 184.8 μs | 187.4 μs |  1.03 |    0.02 |     654 B |        3.55 |
StackExchange_Pipeline_5_Sets | 218.9 μs | 278.11 μs | 15.24 μs | 209.8 μs | 236.5 μs | 210.4 μs | 233.9 μs |  1.22 |    0.08 |    2888 B |       15.70 |
Respire_Exists                | 182.6 μs |  17.63 μs |  0.97 μs | 181.7 μs | 183.7 μs | 182.5 μs | 183.5 μs |  1.01 |    0.02 |     174 B |        0.95 |
StackExchange_Exists          | 185.6 μs |  31.31 μs |  1.72 μs | 184.3 μs | 187.6 μs | 185.1 μs | 187.3 μs |  1.03 |    0.02 |     400 B |        2.17 |
Respire_Del                   | 354.0 μs |  29.18 μs |  1.60 μs | 352.6 μs | 355.7 μs | 353.7 μs | 355.5 μs |  1.97 |    0.04 |     200 B |        1.09 |
StackExchange_Del             | 357.1 μs |  18.45 μs |  1.01 μs | 356.0 μs | 358.0 μs | 357.3 μs | 357.9 μs |  1.98 |    0.04 |     648 B |        3.52 |
Respire_Incr                  | 183.2 μs |  12.51 μs |  0.69 μs | 182.6 μs | 183.9 μs | 183.2 μs | 183.9 μs |  1.02 |    0.02 |     184 B |        1.00 |
StackExchange_Incr            | 185.6 μs |  37.13 μs |  2.04 μs | 184.2 μs | 187.9 μs | 184.6 μs | 187.6 μs |  1.03 |    0.02 |     400 B |        2.17 |
Respire_Transaction_2         | 191.3 μs |  41.14 μs |  2.26 μs | 188.9 μs | 193.4 μs | 191.7 μs | 193.2 μs |  1.06 |    0.02 |    1064 B |        5.78 |

@thomhurst
thomhurst merged commit ca7ca63 into main Aug 9, 2026
14 checks passed

This branch was previously deployed

1 inactive deployment
Pull Requests — ed64317c Deployed Aug 9, 2026 by thomhurst via modularpipeline #417
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