konflux-ci / build-definitions

Apache License 2.0
23 stars 133 forks source link

fix(clamav): fix name of DB file #1598

Closed MartinBasti closed 1 week ago

MartinBasti commented 1 week ago

File is daily.cld not daily.cvd

ls /var/lib/clamav/
bytecode.cvd  daily.cld  freshclam.dat  main.cvd  whitelist.ign2

Before you complete this pull request ...

Look for any open pull requests in the repository with the title "e2e-tests update" and see if there are recent e2e-tests updates that will be applicable to your change.

rcerven commented 1 week ago

tested task bundle and it works:

step-extract-and-scan-image Extracting image(s). Running "oc image extract" on image of arch amd64 Scanning image for arch amd64. This operation may take a while. LibClamAV Warning: Max file-size was set to 4293918720 bytes. Unfortunately, scanning files greater than 2147483647 bytes (2 GiB - 1) is not supported.

----------- SCAN SUMMARY ----------- Known viruses: 8699566 Engine version: 1.0.7 Scanned directories: 3059 Scanned files: 24931 Infected files: 0 Data scanned: 1081.38 MB Data read: 902.44 MB (ratio 1.20:1) Time: 138.581 sec (2 m 18 s) Start Date: 2024:11:12 18:09:17 End Date: 2024:11:12 18:11:36 Executed-on: Scan was executed on clamscan version - ClamAV 1.0.7/27455/Mon Nov 11 09:58:33 2024 Database Version: 27455 [ { "filename": "/work/logs/clamscan-result-log-amd64.json", "namespace": "required_checks", "successes": 2 } ] {"timestamp":"1731435096","namespace":"required_checks","successes":2,"failures":0,"warnings":0,"result":"SUCCESS","note":"All checks passed successfully"} {"timestamp":"1731435096","namespace":"required_checks","successes":2,"failures":0,"warnings":0,"result":"SUCCESS","note":"All checks passed successfully"} {"timestamp":"1731435096","namespace":"required_checks","successes":2,"failures":0,"warnings":0,"result":"SUCCESS","note":"All checks passed successfully"} {"image": {"pullspec": "quay.io/redhat-user-workloads/exd-rcerven-tenant/devfile-sample-python-basic:81e553a815394846a16d3897ab3d6be85086b079", "digests": ["sha256:41500b1847f0e620983d8b4dff4af423eb12ffaa5de132531e90f924899591aa"]}}

step-upload Selecting auth Using token for quay.io/redhat-user-workloads/exd-rcerven-tenant/devfile-sample-python-basic Attaching to quay.io/redhat-user-workloads/exd-rcerven-tenant/devfile-sample-python-basic:81e553a815394846a16d3897ab3d6be85086b079 Uploading 812d42b760d0 clamscan-result-amd64.log Uploading 4afd59c61329 clamscan-ec-test-amd64.json Uploaded 812d42b760d0 clamscan-result-amd64.log Uploaded 4afd59c61329 clamscan-ec-test-amd64.json Attached to [registry] quay.io/redhat-user-workloads/exd-rcerven-tenant/devfile-sample-python-basic@sha256:41500b1847f0e620983d8b4dff4af423eb12ffaa5de132531e90f924899591aa Digest: sha256:3a96540d6e4f0e7929b38de148993630db50f8d5a10a1a7a154bcb5f8ce808d1

sidecar-database ClamAV 1.0.7/27455/Mon Nov 11 09:58:33 2024

arewm commented 1 week ago

Merging this PR without waiting for CI feedback since this issue is currently blocking users. It has been manually tested instead of waiting for the e2e tests.