[pkg-go] Bug#1041408: golang-github-opencontainers-runtime-tools: FTBFS because of failing test TestJSONSchema

Ritesh Raj Sarraf rrs at debian.org
Tue Jul 18 15:34:28 BST 2023


Source: golang-github-opencontainers-runtime-tools
Version: 0.9.0+git20220423.g0105384-2
Severity: serious
Tags: ftbfs
Justification: fails to build from source
X-Debbugs-Cc: rrs at debian.org

Dear Maintainer, 

When trying to rebuild the package, it is seen that it FTBFSes in one of
the tests, TestJSONSchema, wherein it tries to seek network connectivity
to the internet.

As I understand, network access is disabled in Debian buildd
environments.

Could you please steer the direction to fix this issue ? Is it to drop
the culprit tests ? Or replace them with non-network ones, if any ?


```
=== RUN   TestJSONSchema/linux.seccomp.syscalls.0.args.0.op:_linux.seccomp.syscalls.0.args.0.op_must_be_one_of_the_following:_"SCMP_CMP_NE",_"SCMP_CMP_LT",_"SCMP_CMP_LE",_"SCMP_CMP_EQ",_"SCMP_CMP_GE",_"SCMP_CMP_GT",_"SCMP_CMP_MASKED_EQ"
    validate_test.go:260:
        	Error Trace:	/build/golang-github-opencontainers-runtime-tools-0.9.0+git20220423.g0105384/obj-x86_64-linux-gnu/src/github.com/opencontainers/runtime-tools/validate/validate_test.go:260
        	Error:      	Not equal:
        	            	expected: "linux.seccomp.syscalls.0.args.0.op: linux.seccomp.syscalls.0.args.0.op must be one of the following: \"SCMP_CMP_NE\", \"SCMP_CMP_LT\", \"SCMP_CMP_LE\", \"SCMP_CMP_EQ\", \"SCMP_CMP_GE\", \"SCMP_CMP_GT\", \"SCMP_CMP_MASKED_EQ\""
        	            	actual  : "1 error occurred:\n\t* Get \"https://raw.githubusercontent.com/opencontainers/runtime-spec/v1.0.2/schema/config-schema.json\": dial tcp: lookup raw.githubusercontent.com on [::1]:53: read udp [::1]:49705->[::1]:53: read: connection refused\n\n"

        	            	Diff:
        	            	--- Expected
        	            	+++ Actual
        	            	@@ -1 +1,4 @@
        	            	-linux.seccomp.syscalls.0.args.0.op: linux.seccomp.syscalls.0.args.0.op must be one of the following: "SCMP_CMP_NE", "SCMP_CMP_LT", "SCMP_CMP_LE", "SCMP_CMP_EQ", "SCMP_CMP_GE", "SCMP_CMP_GT", "SCMP_CMP_MASKED_EQ"
        	            	+1 error occurred:
        	            	+	* Get "https://raw.githubusercontent.com/opencontainers/runtime-spec/v1.0.2/schema/config-schema.json": dial tcp: lookup raw.githubusercontent.com on [::1]:53: read udp [::1]:49705->[::1]:53: read: connection refused
        	            	+
        	            	+
        	Test:
TestJSONSchema/linux.seccomp.syscalls.0.args.0.op:_linux.seccomp.syscalls.0.args.0.op_must_be_one_of_the_following:_"SCMP_CMP_NE",_"SCMP_CMP_LT",_"SCMP_CMP_LE",_"SCMP_CMP_EQ",_"SCMP_CMP_GE",_"SCMP_CMP_GT",_"SCMP_CMP_MASKED_EQ"
--- FAIL: TestJSONSchema (0.02s)
    --- PASS: TestJSONSchema/1_error_occurred:__*_Version_string_empty_Refer_to:_https://github.com/opencontainers/runtime-spec/blob/v1.0.2-dev/config.md#specification-version__ (0.00s)
    --- FAIL: TestJSONSchema/Could_not_read_schema_from_HTTP,_response_status_is_404_Not_Found (0.00s)
    --- PASS: TestJSONSchema/1_error_occurred:__*_unsupported_configuration_version_(older_than_1.0.2)__ (0.00s)
    --- FAIL: TestJSONSchema/#00 (0.00s)
    --- FAIL: TestJSONSchema/#01 (0.00s)
    --- FAIL: TestJSONSchema/#02 (0.00s)
    --- FAIL: TestJSONSchema/#03 (0.00s)
    --- FAIL: TestJSONSchema/linux.rootfsPropagation:_linux.rootfsPropagation_must_be_one_of_the_following:_"private",_"shared",_"slave",_"unbindable" (0.00s)
    --- FAIL: TestJSONSchema/#04 (0.00s)
    --- FAIL:
```


Thanks,
Ritesh


-- System Information:
Debian Release: trixie/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable-debug'), (500, 'testing-security'), (500, 'testing-debug'), (500, 'stable-updates'), (500, 'stable-security'), (500, 'oldstable-updates'), (500, 'oldstable-security'), (500, 'oldoldstable'), (500, 'unstable'), (500, 'stable'), (500, 'oldstable'), (100, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: arm64

Kernel: Linux 6.3.0-2-amd64 (SMP w/16 CPU threads; PREEMPT)
Locale: LANG=en_IN.UTF-8, LC_CTYPE=en_IN.UTF-8 (charmap=UTF-8), LANGUAGE=en_US
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled



More information about the Pkg-go-maintainers mailing list