Skip to content

Repair CI and replace ImageSharp with SkiaSharp - #78

Merged
Kamilr616 merged 2 commits into
developfrom
fix/repair-ci-and-release
Nov 16, 2026
Merged

Kamilr616 merged 2 commits into
developfrom
fix/repair-ci-and-release

Conversation

@Kamilr616

@Kamilr616 Kamilr616 commented Nov 16, 2026 •

Copy link
Copy Markdown
Owner

The dependency audit reported four vulnerable packages across ten advisories, while PRs to develop had no CI coverage. This repairs the dependency graph and runs the complete workflow for pushes and PRs to both develop and main.

  • Update ASP.NET Core packages to 8.0.34 and SqlClient to 6.1.8, including patched SignalR.Common and Pkcs transitives.
  • Replace ImageSharp with SkiaSharp 4.156.1 and matching Linux native assets. Preserve 64x64 PNG/Base64 heatmaps, depth colors and orientation; correct endpoint rounding and test smooth interpolation. Ship upstream native license notices.
  • Preserve SDK/implicit pack pins and net8.0. Ensure Linux .NET/ASP.NET Core 8.0.34, reject malformed/incomplete audit reports, retain all CI stages and use Docker --pull.
  • Update both READMEs and technical/license documentation; preserve demo, authorship, hub security and migrations.

Validation

  • Locked restore passed with unchanged locks; formatting and diff whitespace checks passed.
  • Full transitive audit: all 3 projects, 0 vulnerable packages, no source problems; local and actual Linux report inspected.
  • Release build with warnings as errors: 0 errors, 0 warnings.
  • Tests with coverage: 40 passed, 0 failed, 0 skipped.
  • Publish passed; shipped native license files match original package hashes.
  • Full Linux CI passed for 955d4ad, including Docker build with --pull.
  • Local Docker build with --pull passed. Image inspection confirmed .NET/ASP.NET Core 8.0.34, resolved native SkiaSharp dependencies and matching license hashes; inspection used no network and did not start the application.
  • Application startup with SQL and robot integration have not been tested.

This replaces closed #77 after renaming the source branch to fix/repair-ci-and-release. The old remote agent/ branch no longer exists. Required build from GitHub Actions (app 15368), with strict up-to-date checks, is applied and verified on main/develop and main ruleset 2360726; all other protection settings are preserved.

An authorized GitHub approval is still required before rebase merge into develop. Promotion uses existing #76 after refreshing its actual head, CI and review; preserve develop. .NET 8/EF Core 9 are out of support; migration to .NET 10 remains a separate follow-up.

Update vulnerable dependencies and lock files, add PNG characterization tests, and document runtime and license prerequisites. Release validation requires an issued ImageSharp community license before this change is ready to merge.
Preserve heatmap output and correct endpoint rounding. Include Linux native assets and their license notices, extend PNG regression coverage, and document the replacement.
@Kamilr616
Kamilr616 marked this pull request as ready for review November 16, 2026 00:28
@Kamilr616 Kamilr616 self-assigned this Nov 16, 2026
@Kamilr616 Kamilr616 added dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation .NET Pull requests that update .NET code labels Nov 16, 2026
@Kamilr616
Kamilr616 requested a lite review from Copilot November 16, 2026 00:33

Copilot AI 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.

🟡 Changes recommended

Changes are still needed because the audit gate can silently pass when a project's framework list is missing or empty, allowing vulnerability checks to be bypassed.

1 open issue
What changed in this PR

This PR repairs dependency vulnerabilities, replaces ImageSharp with SkiaSharp for server-side heatmap generation, and expands CI coverage to both main and develop while preserving the existing .NET 8 application targets and deployment workflow.

Changes:

  • Updates ASP.NET Core, SqlClient, SignalR, and transitive packages, replacing ImageSharp with SkiaSharp and Linux native assets.
  • Adds heatmap rendering tests covering PNG output, orientation, colors, interpolation, and dimensions.
  • Strengthens CI with locked restore, runtime setup, transitive vulnerability auditing, publishing, and Docker builds using --pull.
  • Updates licensing, architecture, setup, repository guidance, and English/Polish README documentation.
File Description
THIRD_PARTY_NOTICES.md Updates dependency versions, license counts, and SkiaSharp native notices.
src/​server/​SmartBotBlazorApp/​SmartBotBlazorApp.csproj Upgrades packages and includes SkiaSharp license files in outputs.
src/​server/​SmartBotBlazorApp/​packages.lock.json Locks updated server dependencies and SkiaSharp transitive assets.
src/​server/​SmartBotBlazorApp/​ImageProcessor.cs Replaces ImageSharp heatmap generation with SkiaSharp rendering and cubic scaling.
src/​server/​SmartBotBlazorApp.Tests/​packages.lock.json Updates test-project transitive dependency locks.
src/​server/​SmartBotBlazorApp.Tests/​ImageProcessorTests.cs Adds SkiaSharp heatmap, orientation, color, and interpolation tests.
src/​server/​SmartBotBlazorApp.Client/​SmartBotBlazorApp.Client.csproj Upgrades client-side ASP.NET Core and SignalR packages.
src/​server/​SmartBotBlazorApp.Client/​packages.lock.json Locks updated client dependencies.
README.pl.md Provides corresponding Polish documentation updates.
README.md Documents package versions, platform support, SkiaSharp, and expanded CI triggers.
docs/​server.md Documents server dependencies, SkiaSharp rendering, and CI behavior.
docs/​getting-started.md Updates SDK and runtime prerequisites and Linux image-rendering setup.
docs/​architecture.md Updates rendering and measurement-throttling architecture notes.
AGENTS.md Updates repository build and runtime guidance.
.github/​workflows/​smartbotweb.yml Adds develop coverage, runtime installation, stricter auditing, publishing, and Docker builds using --pull.

Review effort: Lite

Comment thread .github/workflows/smartbotweb.yml Resolved
@Kamilr616
Kamilr616 merged commit 076f9be into develop Nov 16, 2026
2 checks passed
@Kamilr616
Kamilr616 deleted the fix/repair-ci-and-release branch November 16, 2026 09:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file documentation Improvements or additions to documentation .NET Pull requests that update .NET code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants