From 0eabbfb8cb6765912a3baebb4d893e04556de0df Mon Sep 17 00:00:00 2001 From: Vitor Bandeira Date: Wed, 2 Sep 2026 09:21:58 -0300 Subject: [PATCH 1/2] fix(deps): pin plain googleapis-common-protos in lock pip-compile writes only the googleapis-common-protos[grpc] entry. google-api-core needs the package without the extra. pip counts that as a separate requirement. Without a pin, pip takes the newest release from the index. The --require-hashes check then fails. This stopped each dev image build that could not reuse a cached image. Signed-off-by: Vitor Bandeira --- etc/requirements-common_lock.txt | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/etc/requirements-common_lock.txt b/etc/requirements-common_lock.txt index ac14e895be..7a38319feb 100644 --- a/etc/requirements-common_lock.txt +++ b/etc/requirements-common_lock.txt @@ -308,6 +308,15 @@ google-cloud-pubsub==2.39.1 \ --hash=sha256:b40347cff2df3c4b33747bfdf8a8d74942754c5a6752592acd51a20fec316b56 \ --hash=sha256:dacead1fa0aca7b2015f1acc88d279cd4b12852087908f426fbecf71985940e8 # via -r etc/requirements-common.in +# Hand-added: pip-compile emits only the [grpc] variant below, but +# google-api-core also requires the plain package. pip resolves that as a +# separate requirement, and without a pin here it fetches the newest release +# from the index and then fails the --require-hashes check. Keep both entries +# at the same version when regenerating this file. +googleapis-common-protos==1.75.0 \ + --hash=sha256:53a062ff3c32552fbd62c11fe23768b78e4ddf0494d5e5fd97d3f4689c75fbbd \ + --hash=sha256:961ed60399c457ceb0ee8f285a84c870aabc9c6a832b9d37bb281b5bebde43ed + # via google-api-core googleapis-common-protos[grpc]==1.75.0 \ --hash=sha256:53a062ff3c32552fbd62c11fe23768b78e4ddf0494d5e5fd97d3f4689c75fbbd \ --hash=sha256:961ed60399c457ceb0ee8f285a84c870aabc9c6a832b9d37bb281b5bebde43ed From dcfdaf21b99c8f6e738f0dc017133cc0b1134811 Mon Sep 17 00:00:00 2001 From: Vitor Bandeira Date: Wed, 2 Sep 2026 09:22:16 -0300 Subject: [PATCH 2/2] fix(docker): hash the pip lock into the dev image tag DockerTag.sh did not include requirements-common_lock.txt. A change to the pinned pip dependencies kept the old tag. CI then reused the stale image. The new dependencies were never built. The fault appeared much later, when an unrelated commit changed the tag. Signed-off-by: Vitor Bandeira --- etc/DockerTag.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/etc/DockerTag.sh b/etc/DockerTag.sh index f33b40b7de..ab20cdfb9a 100755 --- a/etc/DockerTag.sh +++ b/etc/DockerTag.sh @@ -8,6 +8,7 @@ if [[ "$@" == "-dev" ]]; then "./docker/Dockerfile.dev" "./Dockerfile" "./etc/DependencyInstaller.sh" + "./etc/requirements-common_lock.txt" "./tools/OpenROAD/etc/DependencyInstaller.sh" ) cat "${file_list[@]}" | sha256sum | awk '{print substr($1, 1, 6)}'