Repository navigation
fix: pin googleapis-common-protos to repair the dev image build - #4498
Merged
vvbandeira merged 2 commits intoSep 2, 2026
Merged
vvbandeira merged 2 commits into
vvbandeira merged 2 commits into
Conversation
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 <vvbandeira@precisioninno.com>
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 <vvbandeira@precisioninno.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request includes the common requirements lock file in the Docker tag hash calculation and manually adds the googleapis-common-protos package to the lock file to resolve a dependency resolution issue. The reviewer correctly points out that manually editing the lock file is fragile because future runs of pip-compile will overwrite these changes, and suggests adding the dependency to etc/requirements-common.in instead.
Member
🔍 QoR checkMetrics reflect the PR merge build — i.e. what will land on the target branch. Advisory — results are log-only and do not affect build status. The authoritative QoR gate remains the local rules-file check. Commit 62 design(s) checked — 0 with regression(s), 0 without a comparable baseline.
|
vvbandeira
added a commit
to vvbandeira/OpenROAD-flow-scripts
that referenced
this pull request
Sep 3, 2026
pip 25.2 matches googleapis-common-protos[grpc]==1.75.0 against the plain request from google-api-core, so the extra pin is not necessary. This reverts the hand edit from The-OpenROAD-Project#4498 and restores the pip-compile output. Tested on ubuntu:22.04. The root and the non-root --user path both install googleapis-common-protos-1.75.0, not the newest release. Signed-off-by: Vitor Bandeira <vvbandeira@precisioninno.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The dev image build fails in
pip installwith "In --require-hashes mode, allrequirements must have their versions pinned with ==".
pip-compilewrote onlythe
googleapis-common-protos[grpc]entry intoetc/requirements-common_lock.txt, butgoogle-api-coreneeds the packagewithout the extra. pip counts that as a separate requirement and takes the
newest release from the index. That release has no hash in the lock, so the
check fails. The failure is not constant. It occurs only when the newest release
differs from the pinned version. This change adds the plain pin, with the same
two hashes as the
[grpc]entry.etc/DockerTag.shdid not hash the lock file into the dev image tag. A changeto the pinned pip dependencies thus kept the old tag.
dockerMakeImagethenpulled the old image and skipped the build, so pip never ran against the new
lock. The fault became visible one day later, when an unrelated commit changed
the tag and forced a rebuild. This change adds the lock file to the tag inputs.