Skip to contentSkip to conversation

cve-check: no need to depend on the fetch task

PATCH In review Ross Burton 2 participants 4 messages Apr 27, 2022 – Apr 28, 2022

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cve-check: no need to depend on the fetch task

The only part of the cve-check task which needs files is the patch examination, and typically these patches are local so fetch isn't needed.

---
 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cve-check.bbclass +1 -1
index 78516d0bb6..7cf206299b 100644
@@ -126,7 +126,7 @@ python do_cve_check () {
 
 }
 
-addtask cve_check before do_build after do_fetch
+addtask cve_check before do_build
 do_cve_check[depends] = "cve-update-db-native:do_fetch"
 do_cve_check[nostamp] = "1"
 
Signature · 1 line
2.25.1
#1 lore raw
Quoted 25 lines · Ross Burton

The only part of the cve-check task which needs files is the patch examination, and typically these patches are local so fetch isn't needed.

---
 meta/classes/cve-check.bbclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meta/classes/cve-check.bbclass +1 -2
index 78516d0bb6..7cf206299b 100644
@@ -126,7 +126,7 @@ python do_cve_check () {
 
 }
 
-addtask cve_check before do_build after do_fetch
+addtask cve_check before do_build
 do_cve_check[depends] = "cve-update-db-native:do_fetch"
 do_cve_check[nostamp] = "1"
 
--

2.25.1

Quoted 1 line

A side-effect of this change is that we seem to not be downloading the NVD

database
anymore... This is probably not exactly what we want right now.

Kind regards,
Marta

#2 lore raw
Quoted 5 lines · Marta Rybczynska

A side-effect of this change is that we seem to not be downloading the NVD database anymore... This is probably not exactly what we want right now.

That’s unexpected, as the NVD fetch is in another recipe entirely.

Note that the NVD fetch only happens once a day, so it’s possible it just executed very fast.

Ross

#3 lore raw
Quoted 4 lines · Ross Burton
Quoted 4 lines · Marta Rybczynska

A side-effect of this change is that we seem to not be downloading the

Quoted 9 lines

NVD database

Quoted 1 line

anymore... This is probably not exactly what we want right now.

That’s unexpected, as the NVD fetch is in another recipe entirely.

Note that the NVD fetch only happens once a day, so it’s possible it just executed very fast.

This patch is fine. The error I'm seeing is a different one: the condition of one hour between the
fetches does not always work. Under debug right now, will post a fix when I have it.

Marta