I’m trying to build snapd using spec file from here under opensuse tumbleweed using obs but i got error in testing phase:
[ 257s] ----------------------------------------------------------------------
[ 257s] FAIL: firstboot_test.go:2303: firstBoot16Suite.TestPopulateFromSeedCore18ValidationSetTrackingHappy
[ 257s]
[ 257s] firstboot_test.go:2335:
[ 257s] chg := s.testPopulateFromSeedCore18ValidationSetTracking(c, []asserts.Assertion{a}, []interface{}{headers})
[ 257s] firstboot_test.go:2299:
[ 257s] c.Assert(err, IsNil)
[ 257s] ... value *errors.errorString = &errors.errorString{s:"Settle is not converging"} ("Settle is not converging")
[ 257s]
[ 257s] OOPS: 480 passed, 1 skipped, 1 FAILED
[ 257s] --- FAIL: TestDeviceManager (61.18s)
[ 257s] FAIL
[ 257s] FAIL github.com/snapcore/snapd/overlord/devicestate 61.347s
more information and full build log in my obs repo here
Hi ! @ahmedmoselhi .
Have you try using snapcraft.yaml
?
first fail:
[ 268s] ----------------------------------------------------------------------
[ 268s] FAIL: firstboot_test.go:2303: firstBoot16Suite.TestPopulateFromSeedCore18ValidationSetTrackingHappy
[ 268s]
[ 268s] firstboot_test.go:2335:
[ 268s] chg := s.testPopulateFromSeedCore18ValidationSetTracking(c, []asserts.Assertion{a}, []interface{}{headers})
[ 268s] firstboot_test.go:2299:
[ 268s] c.Assert(err, IsNil)
[ 268s] ... value *errors.errorString = &errors.errorString{s:"Settle is not converging"} ("Settle is not converging")
[ 268s]
[ 268s] OOPS: 480 passed, 1 skipped, 1 FAILED
[ 268s] --- FAIL: TestDeviceManager (60.37s)
[ 268s] FAIL
[ 268s] FAIL github.com/snapcore/snapd/overlord/devicestate 60.535s
second fail :
[ 268s] ----------------------------------------------------------------------
[ 268s] PANIC: pack_test.go:542: packSuite.TestPackWithIntegrity
[ 268s]
[ 268s] using shellcheck: ""
[ 268s] pack_test.go:599:
[ 268s] c.Check(bytes.HasPrefix(integrityHdr, magic), Equals, true)
[ 268s] ... obtained bool = false
[ 268s] ... expected bool = true
[ 268s]
[ 268s] ... Panic: runtime error: slice bounds out of range [7:0] (PC=0x4394D1)
[ 268s]
[ 268s] /usr/lib64/go/1.19/src/runtime/panic.go:884
[ 268s] in gopanic
[ 268s] /usr/lib64/go/1.19/src/runtime/panic.go:153
[ 268s] in goPanicSliceB
[ 268s] pack_test.go:603
[ 268s] in packSuite.TestPackWithIntegrity
[ 268s] /usr/lib64/go/1.19/src/reflect/value.go:368
[ 268s] in Value.Call
[ 268s] /usr/lib64/go/1.19/src/runtime/asm_amd64.s:1594
[ 268s] in goexit
[ 268s] OOPS: 21 passed, 1 PANICKED
[ 268s] --- FAIL: Test (0.37s)
[ 268s] FAIL
[ 268s] FAIL github.com/snapcore/snapd/snap/pack 0.376s
third fail :
[ 268s] ----------------------------------------------------------------------
[ 268s] FAIL: squashfs_test.go:975: SquashfsTestSuite.TestBuildBelowMinimumSize
[ 268s]
[ 268s] squashfs_test.go:984:
[ 268s] c.Assert(size, Equals, squashfs.MinimumSnapSize)
[ 268s] ... obtained int64 = 65536
[ 268s] ... expected int64 = 16384
[ 268s]
[ 268s] OOPS: 46 passed, 1 FAILED
[ 268s] --- FAIL: Test (1.07s)
[ 268s] FAIL
[ 268s] FAIL github.com/snapcore/snapd/snap/squashfs 1.075s