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

Allow concurrent actions on packages #68

Merged
merged 11 commits into from
Apr 19, 2024

Conversation

rcrichton
Copy link
Collaborator

@rcrichton rcrichton commented Apr 18, 2024

This change will allow instant to operate on packages concurrently, which dramtically speeds up the time taken to deploy multiple packages. It takes into account dependencies and only those packages it can safely deploy while waiting for dependencies to be available before allowing dependant packages to execute. The default concurreny is set to 5. This can be configred but requires changes in the go CLI for this configuration to be exposed.

This change allows package dependencies to be read into a dependency tree. From this tree we are able to determine which package actions can be run concurrently. This allows us to drastically speed up the time it takes to deploy packages.
I don't think this is useful and makes the table really wide which causes display issues.
@rcrichton
Copy link
Collaborator Author

@rcrichton rcrichton changed the title Allow concurrent action on packages Allow concurrent actions on packages Apr 19, 2024
@rcrichton rcrichton marked this pull request as ready for review April 19, 2024 08:30
instant.ts Show resolved Hide resolved
instant.ts Outdated Show resolved Hide resolved
instant.ts Show resolved Hide resolved
instant.ts Show resolved Hide resolved
instant.ts Show resolved Hide resolved
instant.ts Show resolved Hide resolved
Copy link

@BMartinos BMartinos left a comment

Choose a reason for hiding this comment

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

@rcrichton Looks great to me 👍
Just a few minor questions but approved from my end 🚀

.github/workflows/test-instant.yaml Outdated Show resolved Hide resolved
instant.test.ts Show resolved Hide resolved
instant.ts Outdated Show resolved Hide resolved
marrouchi
marrouchi previously approved these changes Apr 19, 2024
Copy link

@BMartinos BMartinos left a comment

Choose a reason for hiding this comment

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

LGTM 👍

@rcrichton rcrichton merged commit 6277c2b into main Apr 19, 2024
3 checks passed
@rcrichton rcrichton deleted the CU-86by2x2u5-concurrent-package-actions branch April 19, 2024 18:13
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