Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@dameng324
Copy link
Owner

The build step in the publish workflow no longer uses the --no-restore flag, ensuring that dependencies are restored during the build process.

The build step in the publish workflow no longer uses the --no-restore flag, ensuring that dependencies are restored during the build process.
Copilot AI review requested due to automatic review settings January 21, 2026 15:27
@dameng324 dameng324 merged commit ff7b916 into main Jan 21, 2026
2 of 3 checks passed
@dameng324 dameng324 deleted the update-publish-workflow branch January 21, 2026 15:28
Copy link
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 removes the --no-restore flag from the build step in the publish workflow, which causes dependencies to be restored twice: once explicitly at line 50 and again implicitly during the build at line 53.

Changes:

  • Modified the build command to remove --no-restore flag, allowing the build step to perform its own dependency restoration


- name: Build solution
run: dotnet build --configuration Release --no-restore
run: dotnet build --configuration Release
Copy link

Copilot AI Jan 21, 2026

Choose a reason for hiding this comment

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

Removing the --no-restore flag causes redundant dependency restoration. Since dependencies are explicitly restored at line 50 with dotnet restore, the build step should use --no-restore to avoid restoring dependencies again. This improves build performance by skipping unnecessary work.

The recommended pattern is:

  1. Explicit dotnet restore (line 50)
  2. dotnet build --no-restore (to skip redundant restore)
  3. dotnet test --no-build (to use build artifacts)

This change makes the build slower without providing any benefit.

Suggested change
run: dotnet build --configuration Release
run: dotnet build --configuration Release --no-restore

Copilot uses AI. Check for mistakes.
@codecov
Copy link

codecov bot commented Jan 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 97.88%. Comparing base (ce6935a) to head (6bcf61a).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #171   +/-   ##
=======================================
  Coverage   97.88%   97.88%           
=======================================
  Files         114      114           
  Lines        2365     2365           
  Branches      267      267           
=======================================
  Hits         2315     2315           
  Misses         30       30           
  Partials       20       20           

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

@github-actions
Copy link


BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]    : .NET 8.0.22 (8.0.22, 8.0.2225.52707), X64 RyuJIT x86-64-v3
  .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
  .NET 8.0  : .NET 8.0.22 (8.0.22, 8.0.2225.52707), X64 RyuJIT x86-64-v3
  .NET 9.0  : .NET 9.0.12 (9.0.12, 9.0.1225.60609), X64 RyuJIT x86-64-v3


Method Job Runtime Mean Error StdDev Ratio Allocated Alloc Ratio
Deserialize_ProtoBuf_net .NET 10.0 .NET 10.0 740.3 μs 1.13 μs 1.00 μs 1.31 562 KB 0.98
Deserialize_GoogleProtoBuf .NET 10.0 .NET 10.0 610.6 μs 1.50 μs 1.40 μs 1.08 648.7 KB 1.13
Deserialize_LightProto .NET 10.0 .NET 10.0 564.8 μs 0.87 μs 0.77 μs 1.00 574.8 KB 1.00
Deserialize_ProtoBuf_net .NET 8.0 .NET 8.0 872.4 μs 1.17 μs 1.04 μs 1.36 562 KB 0.98
Deserialize_GoogleProtoBuf .NET 8.0 .NET 8.0 796.0 μs 1.58 μs 1.48 μs 1.24 648.7 KB 1.13
Deserialize_LightProto .NET 8.0 .NET 8.0 643.0 μs 0.81 μs 0.72 μs 1.00 574.8 KB 1.00
Deserialize_ProtoBuf_net .NET 9.0 .NET 9.0 796.4 μs 0.87 μs 0.81 μs 1.27 562 KB 0.98
Deserialize_GoogleProtoBuf .NET 9.0 .NET 9.0 713.0 μs 1.31 μs 1.23 μs 1.14 648.7 KB 1.13
Deserialize_LightProto .NET 9.0 .NET 9.0 627.6 μs 1.93 μs 1.71 μs 1.00 574.8 KB 1.00

BenchmarkDotNet v0.15.8, Linux Ubuntu 24.04.3 LTS (Noble Numbat)
AMD EPYC 7763 2.45GHz, 1 CPU, 4 logical and 2 physical cores
.NET SDK 10.0.101
  [Host]    : .NET 8.0.22 (8.0.22, 8.0.2225.52707), X64 RyuJIT x86-64-v3
  .NET 10.0 : .NET 10.0.2 (10.0.2, 10.0.225.61305), X64 RyuJIT x86-64-v3
  .NET 8.0  : .NET 8.0.22 (8.0.22, 8.0.2225.52707), X64 RyuJIT x86-64-v3
  .NET 9.0  : .NET 9.0.12 (9.0.12, 9.0.1225.60609), X64 RyuJIT x86-64-v3


Method Job Runtime Mean Error StdDev Ratio Allocated Alloc Ratio
Serialize_ProtoBuf_net .NET 10.0 .NET 10.0 901.5 μs 0.84 μs 0.75 μs 1.30 526.41 KB 1.03
Serialize_GoogleProtoBuf .NET 10.0 .NET 10.0 775.0 μs 1.70 μs 1.51 μs 1.12 512.95 KB 1.00
Serialize_LightProto .NET 10.0 .NET 10.0 692.3 μs 1.50 μs 1.25 μs 1.00 512.92 KB 1.00
Serialize_ProtoBuf_net .NET 8.0 .NET 8.0 1,025.9 μs 1.52 μs 1.35 μs 1.32 526.4 KB 1.03
Serialize_GoogleProtoBuf .NET 8.0 .NET 8.0 799.0 μs 1.55 μs 1.45 μs 1.03 512.95 KB 1.00
Serialize_LightProto .NET 8.0 .NET 8.0 777.0 μs 1.85 μs 1.55 μs 1.00 512.92 KB 1.00
Serialize_ProtoBuf_net .NET 9.0 .NET 9.0 966.6 μs 2.37 μs 2.10 μs 1.28 526.41 KB 1.03
Serialize_GoogleProtoBuf .NET 9.0 .NET 9.0 809.1 μs 1.67 μs 1.48 μs 1.07 512.95 KB 1.00
Serialize_LightProto .NET 9.0 .NET 9.0 754.9 μs 1.60 μs 1.50 μs 1.00 512.92 KB 1.00

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.

2 participants