fix(ci): ECDSA OpenSSL-3 sign fix (SDK) + Redis Testcontainers env-skip #47

Merged
amiryahaya merged 1 commit from fix/api-ci-runner-compat into main 2026-11-04 08:15:50 +01:00
Owner

Makes api-ci green on the runner. The dispatched run (api-ci #24, job 34431) was the suite's first real execution ever: 726 total, 705 passed, 21 failed after the SDK InternalsVisibleTo push unblocked the build. This PR plus one SDK commit closes the remaining 21:

6 × EcdsaProviderTests — SDK bug, fixed at the source (ssdid-sdk-dotnet 9c833fe): EcdsaProvider.RecoverParameters round-tripped export→import of EC parameters, which throws OpenSslCryptographicException: invalid private key under OpenSSL 3 for freshly generated keys (macOS tolerated it — that's why the hook was green locally). Now returns the bare { Curve, D } and lets OpenSSL derive the public point. Reproduced red in a linux/amd64 sdk:10.0-preview container, green after the fix; Ssdid.Sdk.Server.Tests 201/201; local ECDSA tests green.

15 × RedisSessionStoreIntegrationTests — environment skip: act_runner job containers can create sibling containers on the host docker but cannot reach their mapped ports (~65s timeout per test, ~16 min total). InitializeAsync now throws SkipException — the same pattern as PlatformFacts.SkipIfKazSignUnsupported (12 KazSign tests already skipped gracefully). Locally all 15 still run and pass (4.2s).

Expected runner outcome: 726 total, 0 failed, Redis + KazSign skipping by environment. The PR's own api-ci run is the end-to-end validation.

**Makes api-ci green on the runner.** The dispatched run (api-ci #24, job 34431) was the suite's first real execution ever: **726 total, 705 passed, 21 failed** after the SDK `InternalsVisibleTo` push unblocked the build. This PR plus one SDK commit closes the remaining 21: **6 × `EcdsaProviderTests` — SDK bug, fixed at the source** ([ssdid-sdk-dotnet `9c833fe`](https://github.com/amiryahaya/ssdid-sdk-dotnet/commit/9c833fe)): `EcdsaProvider.RecoverParameters` round-tripped export→import of EC parameters, which throws `OpenSslCryptographicException: invalid private key` under OpenSSL 3 for freshly generated keys (macOS tolerated it — that's why the hook was green locally). Now returns the bare `{ Curve, D }` and lets OpenSSL derive the public point. Reproduced red in a linux/amd64 `sdk:10.0-preview` container, green after the fix; `Ssdid.Sdk.Server.Tests` 201/201; local ECDSA tests green. **15 × `RedisSessionStoreIntegrationTests` — environment skip**: act_runner job containers can create sibling containers on the host docker but cannot reach their mapped ports (~65s timeout per test, ~16 min total). `InitializeAsync` now throws `SkipException` — the same pattern as `PlatformFacts.SkipIfKazSignUnsupported` (12 KazSign tests already skipped gracefully). Locally all 15 still run and pass (4.2s). **Expected runner outcome: 726 total, 0 failed**, Redis + KazSign skipping by environment. The PR's own api-ci run is the end-to-end validation.
test(redis): skip integration tests when Testcontainers can't run
All checks were successful
API CI / build-and-test (pull_request) Successful in 4m9s
19f2e07509
On the Forgejo runner (api-ci run 11250), RedisSessionStoreIntegration
Tests burned ~65s per test (~16 min total) failing to reach the
container's mapped port: act_runner job containers can create sibling
containers on the host docker but cannot connect to them. Initialize
Async now throws SkipException instead — same pattern as PlatformFacts
.SkipIfKazSignUnsupported for the native library. Locally (working
docker networking) all 15 still run and pass, verified.

Companion to the SDK fix pushed as ssdid-sdk-dotnet 9c833fe: ECDSA
RecoverParameters threw 'invalid private key' under OpenSSL 3 on
Linux, failing 6 EcdsaProviderTests on the runner (macOS unaffected).
With both changes the runner outcome should be 726 total / 0 failed,
with Redis + KazSign tests skipping by environment.
Sign in to join this conversation.
No description provided.