Anchore test broken in package CI
See latest main/tag runs, the package test is failing in CI with an unauthorized error.
I did some investigation and the test appears to have some sort of timing issue with the new Anchore version. Adding sleep 200
to the start of the test seemed to work, but we should find a more consistent way to validate that the anchore services are healthy before attempting to run the test steps (possibly add a tests/wait.sh
script).
Also we are confident the test still works, since it runs fine in BB CI - it seems like something changed, potentially in the Anchore startup process, that results in 401 Unauthorized
being returned on the anchore-cli system status
command. In BB CI the test isn't run until all packages are healthy, which means there is more time between anchore pods going to running and the test starting - likely why it works there.
I believe this is higher priority since it affects the ability of CI to do auto-tagging and run release CI.