Skip to content

Test update core deps#17034

Draft
ohmayr wants to merge 8 commits into
mainfrom
test-update-core-deps
Draft

Test update core deps#17034
ohmayr wants to merge 8 commits into
mainfrom
test-update-core-deps

Conversation

@ohmayr
Copy link
Copy Markdown
Contributor

@ohmayr ohmayr commented May 11, 2026

Just for testing purposes.

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request standardizes the installation of core dependencies from source across the monorepo by updating noxfile.py files to dynamically resolve sibling packages locally. It also includes a toolchain registration workaround in the gapic-generator workspace. Feedback highlights a regression in packages/google-auth-oauthlib/noxfile.py where the external dependency requests-oauthlib was removed from the source installation list and needs to be restored.

Comment on lines +447 to +461
core_packages = [
"googleapis-common-protos",
"google-api-core",
"google-auth",
"grpc-google-iam-v1",
"proto-plus",
]

for dep in core_dependencies_from_source:
session.install(dep, "--no-deps", "--ignore-installed")
print(f"Installed {dep}")
# Dynamically resolve sibling packages one level up in the monorepo
packages_dir = CURRENT_DIRECTORY.parent

for pkg in core_packages:
pkg_path = str(packages_dir / pkg)
session.install(pkg_path, "--no-deps", "--ignore-installed")
print(f"Installed {pkg} locally from {pkg_path}")
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

high

The removal of requests-oauthlib from the source installation list is a regression. This package is an external dependency and was previously being tested from source. It should be restored and installed using its git URL, as the new sibling-package resolution logic will not work for it. Per repository rules, dependencies required for tests to pass should be maintained. Additionally, verify that this library is present in the project's primary dependency specification (e.g., setup.py) if it is listed in any constraints files.

    core_packages = [
        "googleapis-common-protos",
        "google-api-core",
        "google-auth",
        "grpc-google-iam-v1",
        "proto-plus",
    ]

    # Dynamically resolve sibling packages one level up in the monorepo 
    packages_dir = CURRENT_DIRECTORY.parent

    for pkg in core_packages:
        pkg_path = str(packages_dir / pkg)
        session.install(pkg_path, "--no-deps", "--ignore-installed")
        print(f"Installed {pkg} locally from {pkg_path}")

    # Install external dependencies from source
    session.install(
        "requests-oauthlib @ git+https://github.com/requests/requests-oauthlib.git",
        "--no-deps",
        "--ignore-installed",
    )
References
  1. A dependency may be added as mandatory, even if it seems optional, if it is required for tests to pass.
  2. When reviewing dependency changes, verify that libraries listed in constraints files are present in the project's primary dependency specification (e.g., setup.py).

@ohmayr ohmayr force-pushed the test-update-core-deps branch from 23d84a4 to d5442e4 Compare May 11, 2026 23:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant