Skip to content

Conversation

@HonahX
Copy link
Contributor

@HonahX HonahX commented Jun 16, 2025

Mypy did a new release 1.16.1 and it cause our CI to fail for about 20 minutes due to missing wheel (upload not completed)

 | Unable to find installation candidates for mypy (1.16.1)
    | 
    | This is likely not a Poetry issue.
    | 
    |   - 14 candidate(s) were identified for the package
    |   - 14 wheel(s) were skipped as your project's environment does not support the identified abi tags
    | 
    | Solutions:
    | Make sure the lockfile is up-to-date. You can try one of the following;
    | 
    |     1. Regenerate lockfile: poetry lock --no-cache --regenerate
    |     2. Update package     : poetry update --no-cache mypy
    | 
    | If neither works, please first check to verify that the mypy has published wheels available from your configured source that are compatible with your environment- ie. operating system, architecture (x86_64, arm64 etc.), python interpreter.
    | 

This PR temporarily restrict the mypy version to avoid the similar issue.

We may consider bring poetry.lock back to git tracking so we won't automatically update test dependencies all the time

@github-project-automation github-project-automation bot moved this to PRs In Progress in Basic Kanban Board Jun 16, 2025
@HonahX HonahX marked this pull request as ready for review June 16, 2025 17:01
@HonahX HonahX marked this pull request as draft June 16, 2025 17:02
@HonahX HonahX changed the title Python CI: Temporarily restict mypy version to restore CI Python CI: pin mypy version to avoid CI failure due to new release Jun 16, 2025
@HonahX HonahX marked this pull request as ready for review June 16, 2025 17:11
flake8 = ">= 4.0.0"
types-python-dateutil = ">= 2.8.19.14"
mypy = ">= 1.5"
mypy = ">= 1.5, <=1.16.1"
Copy link
Member

Choose a reason for hiding this comment

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

I remember this file is generated, should we modify this file considering this?

Copy link
Contributor

Choose a reason for hiding this comment

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

It's now not supposed to be generated anymore

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This file is no longer auto-generated because we also have CLI codes and test which needs additional dependencies/configs. We are currently manually managing the pyproject.toml

@github-project-automation github-project-automation bot moved this from PRs In Progress to Ready to merge in Basic Kanban Board Jun 16, 2025
@eric-maynard eric-maynard merged commit 5a188b2 into apache:main Jun 16, 2025
9 checks passed
@github-project-automation github-project-automation bot moved this from Ready to merge to Done in Basic Kanban Board Jun 16, 2025
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.

3 participants