ci: probe libkazsign native loading (diagnostic, do not merge) #45

Closed
amiryahaya wants to merge 5 commits from ci/probe-native into main
Owner

Follow-up diagnostic to the closed probe PR. api-ci's Test step still fails in 0s after removing services: + ConnectionStrings (#43, run 11228) — so the remaining suspect is native library loading: the test host's first KazSign P/Invoke (libkazsign) may fail on the runner despite the .so being present on LD_LIBRARY_PATH (bad ELF deps, glibc mismatch, etc.).

This PR adds a probe that performs the exact api-ci download and then:

  • file + ldd on the .so (missing deps visible in step output)
  • NativeLibrary.TryLoad("libkazsign") under the same LD_LIBRARY_PATH as api-ci's Test step

If the load step fails, the run page shows it directly. Do not merge; close after diagnosis.

**Follow-up diagnostic to the closed probe PR.** api-ci's Test step still fails in 0s after removing `services:` + `ConnectionStrings` (#43, run 11228) — so the remaining suspect is **native library loading**: the test host's first KazSign P/Invoke (`libkazsign`) may fail on the runner despite the .so being present on `LD_LIBRARY_PATH` (bad ELF deps, glibc mismatch, etc.). This PR adds a probe that performs the *exact* api-ci download and then: - `file` + `ldd` on the .so (missing deps visible in step output) - `NativeLibrary.TryLoad("libkazsign")` under the same `LD_LIBRARY_PATH` as api-ci's Test step If the load step fails, the run page shows it directly. Do not merge; close after diagnosis.
ci: probe libkazsign native loading on the runner
Some checks failed
CI probe / probe (pull_request) Failing after 1m5s
31d3ee413f
ci: make inspect step non-fatal — file/ldd may be absent
Some checks failed
CI probe / probe (pull_request) Failing after 50s
a630a896d3
ci: embed libkazsign in probe branch — runner GitHub egress is flaky
Some checks failed
CI probe / probe (pull_request) Failing after 42s
b1871de565
ci: run probe inside production SDK container image
Some checks failed
CI probe / probe (pull_request) Failing after 1m12s
134a504680
ci: per-dependency verdict steps for libkazsign
Some checks failed
CI probe / probe (pull_request) Failing after 35s
fd56e1e5e6
Author
Owner

Closing — superseded by the real diagnosis (api-ci run 11250's actual job log): the failures were a stale public SDK clone missing InternalsVisibleTo (fixed by pushing 752c9da), an SDK ECDSA OpenSSL-3 bug (fixed 9c833fe), and Redis Testcontainers networking in act_runner job containers (env-skipped, #47). api-ci is green on main (runs 11258, 11260).

This PR's probes were useful scaffolding but contained two flaws worth remembering: the first TryLoad probe passed the raw name libkazsign (dlopen never appends .so — false negative), and the dep-verdict step asserted libssl.so.3, which libkazsign doesn't even link. The libkazsign/libcrypto story turned out to be moot: the KazSign tests skip gracefully on the runner and nothing else needs the native lib in CI.

**Closing — superseded by the real diagnosis** (api-ci run 11250's actual job log): the failures were a stale public SDK clone missing `InternalsVisibleTo` (fixed by pushing `752c9da`), an SDK ECDSA OpenSSL-3 bug (fixed `9c833fe`), and Redis Testcontainers networking in act_runner job containers (env-skipped, #47). api-ci is green on main (runs 11258, 11260). This PR's probes were useful scaffolding but contained two flaws worth remembering: the first TryLoad probe passed the raw name `libkazsign` (dlopen never appends `.so` — false negative), and the dep-verdict step asserted `libssl.so.3`, which libkazsign doesn't even link. The libkazsign/libcrypto story turned out to be moot: the KazSign tests skip gracefully on the runner and nothing else needs the native lib in CI.
amiryahaya closed this pull request 2026-11-04 08:53:05 +01:00
Some checks are pending
CI probe / probe (pull_request) Failing after 35s
Security CI / security-scan (pull_request)
Required

Pull request closed

Sign in to join this conversation.
No description provided.