uvm_config_db is a lookup table keyed by component path and field name: set() writes an entry, get() reads one. get() doesn’t need a matching set(): with no entry it returns 0 and leaves its variable unchanged, with no error or warning.
worker reads its mode with uvm_config_db#(int)::get() in its build_phase(). That code is correct.
Right noww.mode stays -1, worker’s default, instead of becoming 1.
Fix test::build_phase() so w.mode ends up 1. Don’t touch worker.
One working answer: brokenbench's own fix for this exercise. Try a few runs first.
What changes, against the code you started with:
docker run --pull always --rm -p 127.0.0.1:8787:8787 ghcr.io/adibis/brokenbench-runnerLooking for a runner on this computer…
The first start downloads about 250 MB; after that it starts in seconds and only downloads again when there's an update. Your code goes to the runner on your computer, not to chipdv.io.