Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package docker for openSUSE:Factory checked 
in at 2026-12-03 13:55:25
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/docker (Old)
 and      /work/SRC/openSUSE:Factory/.docker.new.1340718 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "docker"

Thu Dec  3 13:55:25 2026 rev:190 rq:1402271 version:unknown

Changes:
--------
--- /work/SRC/openSUSE:Factory/docker/docker.changes    2026-11-13 
20:12:55.262915629 +0100
+++ /work/SRC/openSUSE:Factory/.docker.new.1340718/docker.changes       
2026-12-03 13:55:31.147675976 +0100
@@ -1,0 +2,9 @@
+Fri Nov 20 17:24:27 UTC 2026 - Zoltan Balogh <[email protected]>
+
+- Run the upstream Docker engine and CLI Go unit tests in a new
+  %check section. The integration, libnetwork and graphdriver suites
+  are excluded because they need a running daemon, network namespaces
+  or kernel mounts that are not available in the build environment.
+  Add git-core as a BuildRequires for the git-based build tests.
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ docker.spec ++++++
--- /var/tmp/diff_new_pack.xeH9tV/_old  2026-12-03 13:55:34.237804834 +0100
+++ /var/tmp/diff_new_pack.xeH9tV/_new  2026-12-03 13:55:34.239804917 +0100
@@ -130,6 +130,10 @@
 BuildRequires:  golang(API) >= 1.25
 BuildRequires:  pkgconfig(libnftables)
 BuildRequires:  pkgconfig(libsystemd)
+# Some unit tests cover git-based builds.
+%if 0%{?suse_version} > 1500
+BuildRequires:  git-core
+%endif
 %if %{with apparmor}
 %if 0%{?suse_version} >= 1500
 # This conditional only works on rpm>=4.13, which SLE 12 doesn't have. But we
@@ -549,6 +553,62 @@
 
 %fdupes %{buildroot}
 
+# Only enable the tests on Tumbleweed and Leap 16.x. Leap 15.x, Leap
+# Micro 5.5 and SLE 12 also build this spec from older package sets;
+# keep their builds unchanged. SLE 15 is covered by its own maintenance
+# spec.
+%if 0%{?suse_version} > 1500
+%check
+set -o pipefail
+export TZ=UTC
+# The config tests look up docker-proxy, which %install puts in the
+# buildroot.
+export PATH="%{buildroot}%{_bindir}:${PATH}"
+
+# The integration, libnetwork and graphdriver suites need a running
+# daemon, a network namespace or kernel mounts, so they cannot run in the
+# build sandbox. The remaining engine unit tests run here. The skipped
+# tests need kernel features or loopback networking that the sandbox does
+# not provide, or are flaky upstream; the list mirrors Fedora's.
+engine_skip='TestC8dSnapshotterWithUsernsRemap|TestSCTP4Proxy|TestSCTP6Proxy'
+engine_skip="$engine_skip|TestIfaceAddrs"
+engine_skip="$engine_skip|TestJoinGoodSymlink|TestJoinWithSymlinkReplace|TestJoinCloseInvalidates"
+engine_skip="$engine_skip|TestImageLoad|TestConfigureNetworkingRestart"
+engine_skip="$engine_skip|TestContentStoreForPull|TestManifestStore"
+engine_skip="$engine_skip|TestMountAndRegister|TestLayerRelease|TestStoreRestore"
+engine_skip="$engine_skip|TestTarStreamStability|TestRegisterExistingLayer"
+engine_skip="$engine_skip|TestTarStreamVerification|TestLayerSize"
+engine_skip="$engine_skip|TestLayerMigrationNoTarsplit"
+engine_skip="$engine_skip|TestMountInit|TestMountSize|TestMountChanges|TestMountApply"
+engine_skip="$engine_skip|TestCreateSpecPreservesCDIAdditionalGIDs"
+engine_skip="$engine_skip|TestContainerWarningHostAndPublishPorts"
+# The build kernel has no SCTP support.
+engine_skip="$engine_skip|TestSCTP4ProxyNoListener|TestSCTP6ProxyNoListener"
+
+pushd "%{docker_builddir}"
+# Use upstream's unit-test build tags (hack/test/unit). The %build tags
+# additionally enable static_build/osusergo/nri_no_wasm and the apparmor,
+# selinux, seccomp and pkcs11 features for the shipped binaries.
+engine_pkgs=$(go list ./... | grep -vE 
'(/vendor/|/integration|/daemon/libnetwork|/daemon/graphdriver)') || exit 1
+go test -count=1 -v -timeout 15m -tags 'netgo journald' -skip 
"^(${engine_skip})\$" $engine_pkgs > engine-test.log 2>&1 || { cat 
engine-test.log; exit 1; }
+echo "Docker engine unit tests: $(grep -c '^--- PASS:' engine-test.log) 
passed, $(grep -c '^--- SKIP:' engine-test.log) skipped"
+popd
+
+pushd "%{cli_builddir}"
+# Hangs in the build sandbox.
+cli_skip='TestInitializeFromClientHangs'
+# Needs network access.
+cli_skip="$cli_skip|TestRunBuildFromGitHubSpecialCase"
+# Flaky upstream.
+cli_skip="$cli_skip|TestConnectAndWait"
+# Panic in the build sandbox.
+cli_skip="$cli_skip|TestRunAttachTermination|TestRunPullTermination|TestUpgradePromptTermination"
+cli_pkgs=$(go list ./... | grep -vE '(/vendor/|/e2e)') || exit 1
+go test -count=1 -v -timeout 10m -skip "^(${cli_skip})\$" $cli_pkgs > 
cli-test.log 2>&1 || { cat cli-test.log; exit 1; }
+echo "Docker CLI unit tests: $(grep -c '^--- PASS:' cli-test.log) passed, 
$(grep -c '^--- SKIP:' cli-test.log) skipped"
+popd
+%endif
+
 %pre -f %{name}.pre
 # /etc/sub[ug]id should exist already (it's part of shadow-utils), but older
 # distros don't have it. Docker just parses it and doesn't need any special

Reply via email to