Skip to content

chore(*): Unpin tokio #7951

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 25, 2025
Merged

chore(*): Unpin tokio #7951

merged 1 commit into from
Jul 25, 2025

Conversation

DaughterOfMars
Copy link
Contributor

Description

Unpins the tokio version.

NOTE: This means that simtests will be broken if the lock file tokio version is ever updated because of a new patch version.

@DaughterOfMars DaughterOfMars requested review from a team as code owners July 23, 2025 10:03
Copy link

vercel bot commented Jul 23, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

6 Skipped Deployments
Name Status Preview Comments Updated (UTC)
apps-backend ⬜️ Ignored (Inspect) Visit Preview Jul 23, 2025 10:04am
apps-ui-kit ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 10:04am
iota-evm-bridge ⬜️ Ignored (Inspect) Jul 23, 2025 10:04am
iota-multisig-toolkit ⬜️ Ignored (Inspect) Jul 23, 2025 10:04am
rebased-explorer ⬜️ Ignored (Inspect) Visit Preview Jul 23, 2025 10:04am
wallet-dashboard ⬜️ Ignored (Inspect) Visit Preview 💬 Add feedback Jul 23, 2025 10:04am

@iota-ci iota-ci added dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group. labels Jul 23, 2025
@TheMrAI
Copy link
Contributor

TheMrAI commented Jul 23, 2025

Could you give some more context why the unpinning is necessary given the problem it may cause?

@DaughterOfMars
Copy link
Contributor Author

Could you give some more context why the unpinning is necessary given the problem it may cause?

It's not necessary, but it does allow library users to be more flexible with their tokio version. Since they don't care about simtests, it doesn't matter if they resolve a higher patch version.

@@ -348,7 +348,7 @@ test-fuzz = "3.0.4"
thiserror = "1.0.40"
# tokio is defined at a specific version to support patching with iota-sim
# Do not upgrade without updating https://github.com/iotaledger/iota-sim first
tokio = "=1.46.1"
tokio = "1.46.1"
Copy link
Contributor

Choose a reason for hiding this comment

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

Hmm, hmm. Does this mean that when any crate using tokio is updated to a newer version using a newer tokio version which technically could be compatible (from cargo's perspective), then they can potentially force this version to be elevated as well and CI breaks?
In which case from our side the only way to resolve the issue is to pin the version again or downgrade the offending library?
Just thinking aloud mostly here.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

No. It just means that if we accidentally update the version in the lock file (this can only be the patch version because tokio is past 1.0.0) then our CI will break in that PR. It's not very serious but it's annoying.

Copy link
Contributor

@TheMrAI TheMrAI left a comment

Choose a reason for hiding this comment

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

Then it is ok.

@DaughterOfMars DaughterOfMars merged commit bbd19ed into develop Jul 25, 2025
38 checks passed
@DaughterOfMars DaughterOfMars deleted the dev-tools/unpin-tokio branch July 25, 2025 09:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dev-tools Issues related to the Developer Tools Team sc-platform Issues related to the Smart Contract Platform group.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants