mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
chore: fix publishing test fixture images (#3896)
* update pkg counts Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * bump max cache size Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
This commit is contained in:
parent
2a055690e6
commit
0480b516f6
@ -453,8 +453,8 @@ tasks:
|
|||||||
find . | grep cache | grep tar | xargs du
|
find . | grep cache | grep tar | xargs du
|
||||||
echo "total $total_size KB"
|
echo "total $total_size KB"
|
||||||
|
|
||||||
if [ "$total_size" -gt 1048576 ]; then
|
if [ "$total_size" -gt 5242880 ]; then
|
||||||
echo 'docker cache is larger than 1GB'
|
echo 'docker cache is larger than 5GB'
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|||||||
@ -19,7 +19,7 @@ func TestPackageDeduplication(t *testing.T) {
|
|||||||
}{
|
}{
|
||||||
{
|
{
|
||||||
scope: source.AllLayersScope,
|
scope: source.AllLayersScope,
|
||||||
packageCount: 178, // without deduplication this would be ~600
|
packageCount: 175, // without deduplication this would be ~600
|
||||||
instanceCount: map[string]int{
|
instanceCount: map[string]int{
|
||||||
"basesystem": 1,
|
"basesystem": 1,
|
||||||
"wget": 1,
|
"wget": 1,
|
||||||
@ -30,15 +30,15 @@ func TestPackageDeduplication(t *testing.T) {
|
|||||||
locationCount: map[string]int{
|
locationCount: map[string]int{
|
||||||
"basesystem-11-13.el9": 5, // in all layers
|
"basesystem-11-13.el9": 5, // in all layers
|
||||||
"curl-minimal-7.76.1-26.el9_3.2.0.1": 2, // base + wget layer
|
"curl-minimal-7.76.1-26.el9_3.2.0.1": 2, // base + wget layer
|
||||||
"curl-minimal-7.76.1-29.el9_4.1": 3, // curl upgrade layer + all above layers
|
"curl-minimal-7.76.1-31.el9": 3, // curl upgrade layer + all above layers
|
||||||
"wget-1.21.1-8.el9_4": 4, // wget + all above layers
|
"wget-1.21.1-8.el9_4": 4, // wget + all above layers
|
||||||
"vsftpd-3.0.5-5.el9": 2, // vsftpd + all above layers
|
"vsftpd-3.0.5-6.el9": 2, // vsftpd + all above layers
|
||||||
"httpd-2.4.57-11.el9_4.1": 1, // last layer
|
"httpd-2.4.62-1.el9_5.2": 1, // last layer
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
scope: source.SquashedScope,
|
scope: source.SquashedScope,
|
||||||
packageCount: 172,
|
packageCount: 169,
|
||||||
instanceCount: map[string]int{
|
instanceCount: map[string]int{
|
||||||
"basesystem": 1,
|
"basesystem": 1,
|
||||||
"wget": 1,
|
"wget": 1,
|
||||||
@ -48,10 +48,10 @@ func TestPackageDeduplication(t *testing.T) {
|
|||||||
},
|
},
|
||||||
locationCount: map[string]int{
|
locationCount: map[string]int{
|
||||||
"basesystem-11-13.el9": 1,
|
"basesystem-11-13.el9": 1,
|
||||||
"curl-minimal-7.76.1-29.el9_4.1": 1, // upgrade
|
"curl-minimal-7.76.1-31.el9": 1, // upgrade
|
||||||
"wget-1.21.1-8.el9_4": 1,
|
"wget-1.21.1-8.el9_4": 1,
|
||||||
"vsftpd-3.0.5-5.el9": 1,
|
"vsftpd-3.0.5-6.el9": 1,
|
||||||
"httpd-2.4.57-11.el9_4.1": 1,
|
"httpd-2.4.62-1.el9_5.2": 1,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user