Skip to content

Track and resolve CI build and packaging warnings on main #2213

Done

Description

@shimat

The CI audit for main at 0e2572da covered 35 jobs across 10 workflows. All jobs eventually passed. The macOS deployment-target mismatch and the Wasm undefined symbols can affect consumers of the release artifacts, so those should be addressed first.

Status on 2026-11-23. All compatibility/packaging and build/test cleanup items are complete after merging #2225 and #2227. The remaining unchecked items are the deferred upstream GpuMat implementation and GitHub Actions Node deprecations awaiting fixed upstream releases. Additional macOS 11 runtime verification continues in #2226. Known upstream and expected runtime diagnostics are documented in the completed items.

Use a focused PR for each checklist item or related group. Reference this issue with Refs #<issue-number> in each PR. Check off the item and add the merged PR link once its verification passes. Close this issue when the checklist is complete.

Compatibility and packaging

  • macOS deployment target on x64 and arm64. The linker reports 8,576 objects built for macOS 26.0 in vcpkg archives, while OpenCvSharpExtern.dylib targets 11.0. The warnings affect FFmpeg, OpenSSL, Tesseract, and other static dependencies. Set VCPKG_OSX_DEPLOYMENT_TARGET=11.0 in both triplets, rebuild vcpkg and OpenCV with fresh caches, and verify the dependency archives and final dylib with Mach-O tools. Check that the warnings are gone. macOS CI Completed in PR #2218. Both x64 and arm64 rebuilt vcpkg and OpenCV from fresh caches. The dependency archives and final dylibs pass deployment-version validation, both dylibs target 11.0, and the deployment-target mismatch warnings are gone. AVIF I/O on x64 and the arm64 integration, RTSP, Avalonia, and Native AOT tests pass in the CI run.
  • Move macOS 11 runtime verification to a dedicated issue. Additional minimum-OS runtime verification is now tracked in #2226, with the completed fixes, CI/package evidence, environment constraint, and execution checklist. The current x64/arm64 binaries pass clean builds, deployment-version and package checks, and the available macOS 26 runtime tests. macOS 11 execution awaits a suitable host or VM in that follow-up. This transfer completes the item in the CI warning tracker.
  • Wasm undefined symbols. The .NET 8, 10, and 11 browser jobs each report the same 73 undefined symbols. There are 71 P/Invoke entry points for disabled contrib modules and two OpenCL platform version methods referenced with WITH_OPENCL=OFF. Guard the OpenCL calls and provide ABI-compatible entry points that report unsupported features for the disabled modules. Check both Emscripten archives, then publish from the packed NuGets and pass the Chrome tests on all three TFMs with WasmAllowUndefinedSymbols disabled. Use the OpenCV-generated feature definition to eliminate the 44 HAVE_OPENCV_XFEATURES2D redefinitions per archive build. Wasm CI Completed in PR #2217. Both Emscripten archives build without the XFeatures2D redefinition warnings, and all six Wasm CI jobs pass. The packed consumer publishes with strict linking on .NET 8, 10, and 11 with zero undefined-symbol or signature-mismatch diagnostics, and the Chrome tests cover the empty OpenCL query and unavailable RAPID error path.
  • NuGet NU5128. The logs contain 64 warning lines across 17 packages. Remove empty dependency groups from the native-only packages with SuppressDependenciesWhenPacking. Add _._ markers for net8.0 and net8.0-windows7.0 in the Windows and Windows Slim meta-packages, which have real dependencies including the Windows-specific WPF dependency. A scratch pack using fixture assets reduced the Android and Windows warnings to zero and preserved the Android native asset paths and Windows dependency groups. Pack the real artifacts, compare the manifests and RID asset paths, and smoke-test package consumption. Windows CI · manylinux CI · NuGet guidance Completed in PR #2215. All 17 affected packages were repacked using the original CI assets with zero NU5128 warnings. Native asset paths and SHA-256 hashes, Windows dependency groups, and the Linux ARM shim dependency were verified, together with 20 restore cases and the Windows x64 package smoke test.

Build and test cleanup

  • macOS Intel IPP and linker flags. Completed in PR #2222, merged on 2026-11-21. The original x64 log contained 10,786 IPP missing-platform warnings, duplicate library arguments, and a nonexistent Homebrew search path. The upstream macOS IPP 2021.9.1 archive still lacks platform metadata; IPP is retained after performance and size comparison. On the Intel i7-8700B, exploratory single-threaded measurements of 1920 x 1080 Sobel and cubic resize showed 3.08x and 1.65x speedups with IPP enabled in the same dylib. The modes were measured in separate blocks, so system-state changes between blocks may affect the ratios. A separate no-IPP build saves 32.3 MiB (154,926,312 versus 121,032,752 bytes). Comparison CI passes on both macOS architectures. CMake resolves the Tesseract and optional compression dependencies, deduplicates codec archive references, and replaces handwritten linker flags and both hardcoded Homebrew prefixes. Final PR macOS CI passes on x64 and arm64 with zero duplicate-library, missing-search-path, or deployment-target mismatch diagnostics. The 10,787 Intel platform-metadata warnings are grouped into eight archive summaries, and both complete raw linker logs are uploaded. The upstream metadata limitation remains visible in the summaries; macOS 11 runtime verification is tracked in #2226, and manual clean-build verification is completed below.
  • Windows SDK, test dependencies, and CMake. Resolve the x64 MSB3277 conflict between Microsoft.Testing.Platform 2.5.2 and 2.5.3, including the test project's CrashDump dependency. Remove the redundant test reference to System.Memory (NU1510), modernize the WPF SDK imports (NETSDK1137), and remove the unused VCPKG_OVERLAY_TRIPLETS argument from the Extern full/slim configure calls. Run Windows tests and packaging on the affected architectures. Windows CI Completed in PR #2214. The Windows CI run passes on x64 and ARM64, including full/slim Extern builds, tests, and packaging. The logs contain none of the targeted MSB3277, NU1510, NETSDK1137, C4819, or unused-overlay-triplet diagnostics.
  • Docker full and slim builds. Copy the root .editorconfig into the managed test stage to apply the existing CA1711 policy (106 log lines at 54 locations in full). Configure Source Link and source-control queries for the test stage, which has no Git metadata. Add <stdio.h> to both C smoke tests and make the working LAPACK discovery path explicit. Verify that both builds still report Lapack: YES and pass their smoke tests. Docker CI Completed in PR #2216. Both Docker CI jobs pass and report LAPACK enabled. The analyzer, Source Link, LAPACK-discovery, and implicit-C-declaration warnings are gone. The full managed run reports 1,868 total tests with zero failures and 40 skipped, and Native AOT publishes and runs successfully.
  • Android NDK and emulator. The NDK r27 CMake toolchain emits 20 deprecation warnings across arm64-v8a and x86_64. Test a toolchain update on both ABIs. Update emulator options to use -no-metrics and a supported software renderer such as swiftshader, then run both emulator smoke jobs. Android CI Completed in PR #2225, merged on 2026-11-23. NDK r30 LTS is pinned and installed explicitly, and the OpenCV cache key includes the NDK and API versions. The Android CI run rebuilt OpenCV and Extern on both ABIs, passed 16 KB ELF checks and packaging, and passed both managed emulator jobs. The original NDK compatibility deprecations and metrics consent banner are gone. Fresh builds still expose upstream OpenCV CMake policy, Jasper strtok, and x64 JPEG assembly diagnostics, and the emulator retains its existing startup/fallback/shutdown warnings.
  • DocFX analyzer warnings. DocFX reports one failed resolution of OpenCvSharp.Analyzers.dll and duplicate inputs for the shipped and unshipped analyzer release files. Start by building the analyzer in Release before DocFX metadata generation, then check the remaining duplicate-input diagnostics and verify the generated API docs. DocFX CI Completed in PR #2219, with the DocFX CI build passing with zero warnings. Both release-tracking files remain included once through the analyzer package targets. All 843 generated API YAML files match the baseline by SHA-256, and all 23 analyzer tests pass.
  • OpenCV deprecated super-resolution overload. The managed two-argument DnnSuperResImpl.ReadModel overload is already obsolete and still forwards to the deprecated C++ method. Scope any compiler suppression to that compatibility call and verify the one-argument ONNX path. Linux ARM64 CI · macOS CI Completed in PR #2220. The Windows x64 Extern rebuild and all 10 existing ONNX super-resolution tests pass. Clang and MSVC compile probes verify that the suppression applies only to the compatibility call and restores subsequent deprecation diagnostics. The macOS, manylinux, Wasm, Linux ARM64, and Docker CI workflows pass. Inspected macOS arm64, manylinux x64 full, Emscripten 3.1.56, and Docker full native build logs contain no deprecation warning from the compatibility call.
  • OpenCV runtime warnings during tests. Review calls that cause the OpenCV 5 DNN graph engine to ignore the requested target, and confirm the backend used by the relevant tests. Review the KV-cache, image-read, MatExpr, and OBJ diagnostics against their test cases. Keep expected negative-case output identifiable. manylinux CI · Linux ARM64 CI Completed in PR #2227, merged on 2026-11-23. Source and real-DLL test runs traced CPU-target warnings to FaceDetectorYN, LightGlue, and XFeat construction, the KV-cache warning to a graph without attention, the MatExpr warning to multi-channel tone mapping/scalar operations, image-read warnings to intentional missing inputs or sequence EOF, and OBJ warnings to object-name records emitted by OpenCV's own writer. The tests now print the expected reason beside those operations, exercise Auto and explicit OpenCV-engine forward inference with the OpenCV backend, and check tone-mapped output size, type, and finite values. Windows validation passed 1,868 total tests with zero failures and 27 skipped, followed by all 105 affected tests after the final assertions. Manylinux CI passes full/headless tests on x64 and arm64, and Linux ARM64 CI passes 1,868 tests with zero failures and 41 skipped, plus all 10 Avalonia tests. macOS, Docker, Android, and Wasm CI also pass. The expected diagnostics and their explanations remain visible in the Linux logs. Windows CI also passes on x64 and ARM64, including native builds, tests, and packaging.

Upstream follow-ups and verification

The checklist below separates completed implementation from outstanding verification. Earlier grouped items stayed unchecked because they combined merged fixes with remaining upstream work or clean-build validation. Updated on 2026-11-22.

  • Restore MLAS in the full Docker build. Completed in PR #2216. The full Docker build confirms MLAS enabled and passes managed DNN tests. This is complete independently of the GpuMat diagnostics.
  • GpuMat diagnostics — deferred upstream warning. The maintainer has chosen to defer the CPU-only OpenCV GpuMat::release() warning. OpenCvSharp does not support CUDA, exposes no managed GpuMat class, and keeps its legacy native CUDA bindings behind ENABLED_CUDA; the README documents CUDA as unsupported. No failure through a supported OpenCvSharp API has been demonstrated. The warning arises while compiling OpenCV core even without CUDA: the CPU-only defaultAllocator() returns null and release() contains a call through it. An isolated OpenCV C++ test directly setting a header allocator and reference count reproduces a crash; a candidate one-line allocator change passes two regression tests and reduces GCC 13.4 diagnostics from three to zero. These results establish an upstream code path, not a supported-wrapper regression. No PR, issue, or comment was created in opencv/opencv; no upstream PR will be submitted for this work. The candidate remains only in the maintainer's fork branch. The narrowly scoped warning suppression is complete in PR Scope upstream GpuMat warning suppression to CPU-only GCC builds #2224 below. The upstream implementation remains unchanged and deferred.
  • Suppress only the CPU-only GpuMat build warning. Completed in PR #2224, merged on 2026-11-22. The change uses the existing CMake hook to suppress GCC -Wnonnull only for modules/core/src/cuda_gpu_mat.cpp when CUDA is unavailable, preserving existing source options and all other files' diagnostics. With unmodified OpenCV source, GCC 13.4 reports three diagnostics without the hook and zero with it; generated compile commands confirm that exactly one translation unit is affected and the other 570 are unchanged. Local OpenCV core and Extern Release builds pass. Production Docker full/slim and all six manylinux native builds plus both architectures' test jobs pass. Inspected all eight native build logs: GpuMat is actually recompiled and there are zero -Wnonnull diagnostics. Docker retains LAPACK in both profiles and MLAS in full, with zero managed test failures. Implementation and PR verification are complete. This suppresses a deferred warning; it does not fix the upstream implementation or add GpuMat support.
  • GitHub Actions Node deprecations. Rechecked on 2026-11-21. actions/download-artifact#490 and actions/deploy-pages#433 remain open. The main Android packaging job still emits DEP0005, and the main Pages deployment still emits DEP0040 while succeeding. Wait for fixed Action releases, then verify downloads and deployment. Artifact toolkit issue. Rechecked the two upstream PRs on 2026-11-23; both remain open.
  • Implement package-retrieval retries and clean-build controls. Merged in PR #2221: bounded DNF retries with metadata cleanup, HTTPS retrieval after CA bootstrap, apt failure propagation, and manual clean_build controls for manylinux, macOS, and Docker. Disposable-container installation and fault-injection checks passed. Post-merge manylinux, Docker, and macOS CI pass. The macOS x64 job initially lost contact with its hosted runner; rerunning failed jobs recovered it successfully. Clean builds are tracked separately below.
  • Inspect post-merge native package structure. Downloaded the macOS and manylinux NuGet artifacts from main at d6222dd3: eight packages pass ZIP integrity, native asset/RID, architecture, manifest dependency, and SHA-256 inventory checks. Both packaged macOS dylibs record minimum macOS 11.0. This is structural inspection only; macOS 11 runtime verification is tracked in #2226, and Linux standalone loading is covered below.
  • Fix standalone loading of manylinux full/headless artifacts. The baseline x64 full and headless artifacts contained unresolved lzma_lzma_preset and lzma_stream_encoder references; the packaged headless library failed to load in a fresh Ubuntu 26.04 process. Preloading liblzma masked the failure and allowed Mat create/delete; slim loads without that workaround. Completed in PR #2223, merged on 2026-11-22. The change links the vcpkg TIFF imported target, preserving private codec dependencies, and enables strict symbol resolution for Linux vcpkg Extern builds. The production manylinux CI passes all six native builds and both architectures' managed test jobs. All four full/headless CI libraries have zero unresolved LZMA encoder references. Repacked those four real CI libraries using unchanged NuGet projects: all packages preserve their native SHA-256 hashes, RID paths, and dependency-free manifests, with zero pack warnings. Fresh x64 processes load both packaged libraries and create/delete a Mat without preloading liblzma; the full profile uses its documented GTK dependency. ARM64 runtime coverage comes from CI, not the x64 local host. Implementation and PR-artifact verification are complete. Post-merge clean-build package verification is complete in the final item below.
  • Complete manual clean builds and artifact runtime verification. Completed on 2026-11-22 at main eee9b589. All three manually dispatched clean_build=true workflows pass: manylinux, macOS, and Docker. macOS skips vcpkg/OpenCV cache restoration; manylinux full/headless restore zero vcpkg packages, and both slim jobs skip OpenCV cache restoration and rebuild. Docker's initial native targets run with --no-cache; subsequent targets reuse build stages within the job. The package-metadata failure did not recur, and all ten native build logs actually compile GpuMat with zero -Wnonnull diagnostics. Both architectures' Linux full/headless managed tests and Avalonia tests pass with zero failures. The six CI-produced Linux NuGets pass ZIP integrity, RID, ELF architecture, dependency-manifest, and SHA-256 inventory checks; all six native libraries have zero unresolved LZMA encoder symbols. Fresh x64 WSL processes load the full/headless/slim libraries extracted from those packages and create/delete a Mat without preloading liblzma. ARM64 runtime coverage comes from CI. Both clean macOS dylibs have the expected architecture and record minimum macOS 11.0; their CI runtime/integration checks pass. The manual macOS NuGet job is skipped by the current workflow, so both clean dylibs were locally packed with the unchanged NuGet projects: no pack warnings, correct RID paths and dependency-free manifests, and byte-identical native SHA-256 hashes. macOS 11 machine testing is tracked in #2226; the deferred upstream GpuMat implementation and Node deprecations remain separate.

Activity

  1. added
    bug
    on Nov 17, 2026
  2. added a commit that references this issue on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions