Skip to content

Toxgen false-positive change detected #4886

Closed

Description

@alexander-alderman-webb

When we added the litellm integration we generated tox.ini since a new test suite was added. The relevant commit is a8156f5.

Subsequent PRs later in the day failed CI because grpc-v1.76.0rc1 is added to tox.ini, and populate_tox.py detects an inconsistency. See https://github.com/getsentry/sentry-python/actions/runs/18221553077/job/51882480538?pr=4883 as an example.

I added a print statement to populate_tox.py that shows that grpc version v1.76.0rc1 was uploaded at "2025-10-03 08:16:42.412198+00:00". The time is a few hours before a8156f5.

My suspicion is that there is some caching in a CDN or the PyPI release system.

Activity

  1. added
    CI
    on Oct 3, 2025
  2. linear commented on Oct 3, 2025

    @linear
  3. sentrivana commented on Oct 6, 2025

    @sentrivana
    Collaborator

    As a workaround for now, running scripts/generate-test-files.sh on the PR branch and committing the result should get rid of the failing check.

    I think this might have to do with us taking the time of the last commit touching tox.ini to regenerate it -- it's not always correct (could just be the timestamp of toxgen-unrelated changes, or even the timestamp of the merge commit). I'll take a look.

  4. self-assigned this
    on Oct 6, 2025
  5. added a commit that references this issue on Oct 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

BugCIPython

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions