Skip to content

fix(build): Option 2 - "keep channels il-repacked"#452

Merged
JR-Morgan merged 15 commits intomainfrom
jrm/option2
Mar 2, 2026
Merged

fix(build): Option 2 - "keep channels il-repacked"#452
JR-Morgan merged 15 commits intomainfrom
jrm/option2

Conversation

@JR-Morgan
Copy link
Member

@JR-Morgan JR-Morgan commented Mar 2, 2026

This is one of two mutually exclusive fixes for the various TypeLoader exceptions we currently seeing in various .NET Standard2.0 connectors.
The other option is #451


This PR avoids having System.Threading.Channels as a dependency of the SDK by moving the channel usage into the ILRepacked Speckle.SDK.Dependencies project

This aligns with previous serializer architecture.

However, due to needing to expose ValueTask and IAsyncEnumerable I'm now explicitly not repacking Microsoft.BCL.AsyncInterfaces, and instead keeping the v9.0.4 as a regular dependency.


Dependencies compared to main this PR:
.NET 8:

  • No change
    .NET Standard 2.0
  • Moves Microsoft.BCL.AsyncInterfaces to Sdk.Dependences (safe change)
  • Bumps Microsoft.BCL.AsyncInterfaces to ≥5.0.0 to ≥9.0.4 (mostly safe change)

The Advantages of this Option 2 over Option 1:

  • Less visible dependency changes - fewer chance for DLL conflicts.

didimitrie and others added 12 commits February 10, 2026 10:17
* Adds object flopper for experimental object uploads

Implements a new mechanism for uploading objects to the server.

* wip

* pipe works

* WIP

* wip - refactors send pipeline
* Remove unused dependencies

* remove unused package references

* how's this

* missed a bit
* refactor uploader for progress

* progress

* not so many decimal places

* small tweak to RenderStreamProgress

* fix unit tests

* uploading data
* Add version id to ingestion query

* and the sub

* Add project & user ids

* test
@JR-Morgan JR-Morgan changed the title fix(build): Option 2 - Fix for .NET Standard2.0 target fix(build): Option 2 - "keep channels il-repacked" Mar 2, 2026
@codecov
Copy link

codecov bot commented Mar 2, 2026

Codecov Report

❌ Patch coverage is 4.29864% with 423 lines in your changes missing coverage. Please review.
✅ Project coverage is 69.88%. Comparing base (c186d98) to head (ee6da06).
⚠️ Report is 3 commits behind head on main.

Files with missing lines Patch % Lines
src/Speckle.Sdk/Pipelines/Send/Serializer.cs 0.00% 172 Missing ⚠️
src/Speckle.Sdk/Pipelines/Send/Uploader.cs 0.00% 60 Missing ⚠️
...c/Speckle.Sdk/Pipelines/Progress/ProgressStream.cs 0.00% 40 Missing ⚠️
...Sdk/Pipelines/Progress/IngestionProgressManager.cs 0.00% 36 Missing ⚠️
src/Speckle.Sdk/Pipelines/Send/SendPipeline.cs 0.00% 29 Missing ⚠️
src/Speckle.Sdk/Pipelines/Send/DiskStore.cs 0.00% 27 Missing ⚠️
...e.Sdk/Pipelines/Progress/RenderedStreamProgress.cs 0.00% 16 Missing ⚠️
src/Speckle.Sdk.Dependencies/RepackedChannel.cs 0.00% 13 Missing ⚠️
src/Speckle.Sdk/Helpers/DisposableFile.cs 0.00% 11 Missing ⚠️
src/Speckle.Sdk/Helpers/BlobApiHelpers.cs 16.66% 8 Missing and 2 partials ⚠️
... and 4 more
Additional details and impacted files
@@            Coverage Diff             @@
##             main     #452      +/-   ##
==========================================
+ Coverage   64.09%   69.88%   +5.79%     
==========================================
  Files         289      343      +54     
  Lines       11843    14161    +2318     
  Branches     1137     1230      +93     
==========================================
+ Hits         7591     9897    +2306     
+ Misses       3936     3865      -71     
- Partials      316      399      +83     

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

@JR-Morgan JR-Morgan merged commit 65c1903 into main Mar 2, 2026
6 checks passed
@JR-Morgan JR-Morgan deleted the jrm/option2 branch March 2, 2026 12:29
@JR-Morgan JR-Morgan restored the jrm/option2 branch March 5, 2026 12:47
@JR-Morgan JR-Morgan deleted the jrm/option2 branch March 5, 2026 12:47
@JR-Morgan
Copy link
Member Author

JR-Morgan commented Mar 5, 2026

reverted as was accidently merged to main

made a new pr: #453

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.

3 participants