Skip to content

Conversation

@nGoline
Copy link
Contributor

@nGoline nGoline commented Dec 1, 2025

fixes #78

Signed-off-by: Níckolas Goline <nickolas.goline+github@gmail.com>
@nGoline nGoline self-assigned this Dec 1, 2025
@nGoline nGoline added the bug Something isn't working label Dec 1, 2025
@nGoline nGoline changed the title Great Warning Cleanup Bugfix: Add missing migration to sqlite Dec 1, 2025
@github-actions
Copy link

github-actions bot commented Dec 1, 2025

Combined Test Results

   17 files     17 suites   45s ⏱️
  946 tests   946 ✅ 0 💤 0 ❌
1 878 runs  1 878 ✅ 0 💤 0 ❌

Results for commit a1c9b24.

♻️ This comment has been updated with latest results.

Signed-off-by: Níckolas Goline <nickolas.goline+github@gmail.com>
@github-actions
Copy link

github-actions bot commented Dec 4, 2025

Code Coverage

Package Line Rate Branch Rate Complexity Health
NLightning.Application 30% 22% 258
NLightning.Bolt11 89% 84% 504
NLightning.Bolt11.Blazor 0% 0% 434
NLightning.Domain 73% 50% 1571
NLightning.Infrastructure 56% 47% 1004
NLightning.Infrastructure.Bitcoin 56% 50% 467
NLightning.Infrastructure.Persistence 0% 0% 156
NLightning.Infrastructure.Persistence.Postgres 0% 100% 7
NLightning.Infrastructure.Persistence.Sqlite 0% 100% 4
NLightning.Infrastructure.Persistence.SqlServer 0% 100% 7
NLightning.Infrastructure.Repositories 0% 0% 474
NLightning.Infrastructure.Serialization 67% 51% 861
NLightning.Node 10% 12% 215
NLightning.Tests.Utils 84% 50% 19
Summary 42% (6655 / 15905) 43% (1757 / 4115) 5981

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 pull request claims to add a missing SQLite migration (fixing issue #78), but actually adds a Postgres migration while the SQLite migration is still missing. The PR also includes package version updates to test projects and various code quality improvements including nullable reference type fixes, code cleanup, and refactoring.

Critical Issues:

  • The Postgres migration has a timestamp mismatch between filename (20251204) and Migration attribute (20250612)
  • Multiple test projects reference nonexistent package versions (Microsoft.NET.Test.Sdk 18.0.1 and xunit.runner.visualstudio 3.1.5)
  • The PR title promises a SQLite migration but doesn't deliver it

Key Changes:

  • Added Postgres migration AddBlockchaisStateAndWatchedTransaction (with incorrect timestamp)
  • Updated test package versions to nonexistent future versions
  • Improved code quality: removed redundant null checks, cleaned up unused variables, fixed lambda expressions, improved type casting patterns

Reviewed changes

Copilot reviewed 39 out of 41 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
src/NLightning.Infrastructure.Persistence.Postgres/Migrations/20251204210605_AddBlockchaisStateAndWatchedTransaction.cs New Postgres migration for blockchain state and watched transactions (migration timestamp mismatch)
src/NLightning.Infrastructure.Persistence.Postgres/Migrations/20251204210605_AddBlockchaisStateAndWatchedTransaction.Designer.cs Migration designer file with incorrect timestamp in Migration attribute
test/NLightning.Node.Tests/NLightning.Node.Tests.csproj Updated test packages to nonexistent versions (18.0.1, 3.1.5)
test/NLightning.Integration.Tests/NLightning.Integration.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Infrastructure.Tests/NLightning.Infrastructure.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Infrastructure.Serialization.Tests/NLightning.Infrastructure.Serialization.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Infrastructure.Bitcoin.Tests/NLightning.Infrastructure.Bitcoin.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Domain.Tests/NLightning.Domain.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Bolt11.Tests/NLightning.Bolt11.Tests.csproj Updated test packages to nonexistent versions
test/NLightning.Application.Tests/NLightning.Application.Tests.csproj Updated test packages to nonexistent versions and NBitcoin to 9.0.3
test/NLightning.Tests.Utils/Mocks/FakeServiceProvider.cs Changed GetService return type from nullable to non-nullable (creates misleading code)
test/NLightning.Infrastructure.Tests/Bitcoin/Wallet/BlockchainMonitorServiceTests.cs Cleaned up unused fields, improved test code organization and type casting
src/NLightning.Infrastructure/Transport/Handshake/States/HandshakeState.cs Simplified ArgumentNullException.ThrowIfNull usage
src/NLightning.Infrastructure/Transport/Encryption/Transport.cs Simplified ArgumentNullException.ThrowIfNull usage
src/NLightning.Infrastructure.Bitcoin/Signers/LocalLightningSigner.cs Removed unnecessary int cast
src/NLightning.Domain/Utils/Extensions/ByteArrayExtensions.cs Fixed lambda expression by removing redundant assignment
src/NLightning.Domain/Protocol/ValueObjects/BigSize.cs Updated XML doc parameter name to match record parameter
src/NLightning.Domain/Protocol/Interfaces/IDustService.cs Fixed namespace and removed trailing blank line
Multiple test files Added null-forgiving operators and #pragma warnings to suppress nullable reference warnings

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@nGoline nGoline merged commit d8a3a38 into main Dec 4, 2025
11 checks passed
@nGoline nGoline deleted the bugfix/missing-sqlite-migration branch December 4, 2025 21:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Lightning.Integration.Tests.Docker.AbcNetworkTests fail with SQLite Error 1: 'no such table: Peers'

2 participants