Update gen_coverage and gen_docs to align with build_locally
#2174
+476
−374
gen_coverage and gen_docs to align with build_locally
#2174