Skip to content

should be safe, dependancy bumps, see how tests go - #2120

Merged
NickJosevski merged 2 commits into
mainfrom
nj/safe-dep-bumps
Aug 7, 2026
Merged

should be safe, dependancy bumps, see how tests go#2120
NickJosevski merged 2 commits into
mainfrom
nj/safe-dep-bumps

Conversation

@NickJosevski

Copy link
Copy Markdown
Contributor

Dep bump

No Server Change needed

@NickJosevski
NickJosevski marked this pull request as draft August 7, 2026 00:11
Comment thread build/_build.csproj

<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.10" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

feels like low risk if the tests run, and there weren't any API changes that needed code changes

<ItemGroup>
<PackageReference Include="Newtonsoft.Json" Version="13.0.4" />
<PackageReference Include="Serilog" Version="2.10.0" />
<PackageReference Include="Serilog" Version="4.4.0" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

also feels safe based on natural flow of logs out of tests

<PackageReference Include="Serilog" Version="3.1.1" />
<PackageReference Include="Microsoft.Extensions.Http" Version="6.0.0" />
<PackageReference Include="Serilog" Version="4.4.0" />
<PackageReference Include="Microsoft.Extensions.Http" Version="10.0.10" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

testing project anyway

@NickJosevski
NickJosevski marked this pull request as ready for review August 7, 2026 02:07
<PackageReference Include="Assent" Version="1.6.1" />
<PackageReference Include="FluentAssertions" Version="7.2.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="8.0.0" />
<PackageReference Include="Microsoft.Extensions.Logging" Version="10.0.10" />

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

same testing project

.GetKeysAsync()
.ToListAsync();
var keys = new List<StorageAccountKey>();
await foreach (var key in storageAccountResponse.Value.GetKeysAsync())

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

await foreach lets us drop the need for System.Linq.Async

@NickJosevski
NickJosevski enabled auto-merge August 7, 2026 04:17
NickJosevski added a commit that referenced this pull request Aug 7, 2026
Calamari.csproj still referenced Microsoft.NETFramework.ReferenceAssemblies.net462.
That reference has done nothing since net462 was dropped as a target framework in
#1669.

Narrowed from a larger cleanup. The other framework-provided package references
this commit used to remove are now removed by #2120 instead, so they are left out
here to avoid touching the same lines twice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski added a commit that referenced this pull request Aug 7, 2026
.NET 10 pulls System.Linq.AsyncEnumerable into the core libraries. That is a
documented source-incompatible change. 7.0.1 is the version Octopus Server runs
against net10.

Narrowed from a larger dependency-alignment commit. The Serilog and
Microsoft.Extensions.* bumps that used to sit alongside this are handled by #2120
instead, so they are left out here to avoid touching the same lines twice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski added a commit that referenced this pull request Aug 7, 2026
Calamari.csproj still referenced Microsoft.NETFramework.ReferenceAssemblies.net462.
That reference has done nothing since net462 was dropped as a target framework in
#1669.

Narrowed from a larger cleanup. The other framework-provided package references
this commit used to remove are removed by #2120 instead, so they are left out here
to avoid touching the same lines twice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski added a commit that referenced this pull request Aug 7, 2026
.NET 10 pulls System.Linq.AsyncEnumerable into the core libraries. That is a
documented source-incompatible change. 7.0.1 is the version Octopus Server runs
against net10.

Narrowed from a larger dependency-alignment commit. The Serilog and
Microsoft.Extensions.* bumps that used to sit alongside this are handled by #2120
instead, so they are left out here to avoid touching the same lines twice.

Note for reviewers: #2120 drops System.Linq.Async from Calamari.AzureAppService as
unused. This commit adds it back at 7.0.1 because Nick asked to keep the change.
If the usage really is gone on net10, drop this commit instead.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
NickJosevski and others added 2 commits August 7, 2026 14:54
Removes 13 PackageReferences that no code in their project references.
Found with ReferenceTrimmer (RT0003) over source/Calamari.sln, then
confirmed individually by deleting each reference and rebuilding.

Mostly vestigial netstandard-era shim packages whose APIs have been
in-box since the move to net8.0, dating back to the Sashimi-era repo
splits. Continues the cleanup started in 6f15d2a (System.ValueTuple,
System.Diagnostics.Tracing, System.Runtime.InteropServices.RuntimeInformation).

  Calamari.Shared      System.IO.FileSystem, System.IO.FileSystem.AccessControl,
                       System.IO.Packaging, System.Threading.AccessControl
  Calamari.Common      System.IO.FileSystem.AccessControl
  Calamari.AzureScripting
                       System.IO.FileSystem.AccessControl,
                       System.Security.Principal.Windows
  Calamari             System.ComponentModel.TypeConverter
  Calamari.Tests       System.ComponentModel.TypeConverter
  Calamari.Testing     Assent
  Calamari.ConsolidateCalamariPackages.Tests
                       Assent, SharpCompress
  Calamari.AzureAppService
                       System.Linq.Async

Notes:
- SharpCompress is one of the SF-1864 CVE pins, but ConsolidateCalamariPackages
  moved to System.IO.Compression in df69a22 and nothing in that test
  project's graph depends on SharpCompress transitively, so dropping the
  direct reference removes it from the graph entirely rather than
  downgrading it. That project is IsPackable=false, so nothing ships.
- Assent stays in Calamari.Tests, which references it directly and uses it.
- System.Linq.Async was referenced by Calamari.AzureAppService but used only
  by one line of test setup, so it shipped three unused assemblies
  (System.Linq.Async, System.Interactive.Async, System.Linq.AsyncEnumerable)
  in the flavour package. That call site now drains the AsyncPageable with
  await foreach, which removes the dependency from the repo and with it the
  question of the 7.0.1 deprecation shim.

Verified: dotnet build source/Calamari.sln -t:Rebuild -> 31 projects,
0 errors, warning count unchanged from baseline (164). Calamari,
Calamari.AzureAppService and Calamari.AzureScripting all still start and
build their Autofac containers.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@NickJosevski
NickJosevski merged commit a796034 into main Aug 7, 2026
28 checks passed
@NickJosevski
NickJosevski deleted the nj/safe-dep-bumps branch August 7, 2026 05:35
NickJosevski added a commit that referenced this pull request Aug 7, 2026
Calamari.csproj still referenced Microsoft.NETFramework.ReferenceAssemblies.net462.
That reference has done nothing since net462 was dropped as a target framework in
#1669.

Narrowed from a larger cleanup. The other framework-provided package references
this commit used to remove are removed by #2120 instead, so they are left out here
to avoid touching the same lines twice.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
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