Skip to content
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

feat: topological sort for releases #1141

Merged
merged 4 commits into from
May 6, 2024
Merged

feat: topological sort for releases #1141

merged 4 commits into from
May 6, 2024

Conversation

TarikGul
Copy link
Member

@TarikGul TarikGul commented Apr 19, 2024

Summary

The following adds topological sorting for a workspace and it's corresponding packages. Unfortunately not all @polkadot/* are able to be ordered with full topological integrity as some repos have circular deps. That being said this is one avenue to help the releases be more fault tolerant and will help avoid situations like: polkadot-js/api#5841

Circular dependencies

The current algorithm deals with circular dependencies by adding them to the end of the sorted vector. The order in which it adds them is based on the length of their vertices. This is from least to greatest.

closes: #1139

@TarikGul TarikGul added the WIP Work in Progress label Apr 19, 2024
@TarikGul TarikGul changed the title feat: topological sort for releases [WIP] feat: topological sort for releases Apr 19, 2024
@TarikGul TarikGul removed the WIP Work in Progress label Apr 25, 2024
@TarikGul TarikGul added the -auto label May 6, 2024
@polkadot-js-bot polkadot-js-bot merged commit 19cbb42 into master May 6, 2024
6 checks passed
@polkadot-js-bot polkadot-js-bot deleted the tg-topo-sort branch May 6, 2024 01:12
@polkadot-js-bot
Copy link

This pull request has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@polkadot-js polkadot-js locked as resolved and limited conversation to collaborators May 8, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

@polkadot/* packages should be published in topological order
2 participants