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

ci: Speed up bootstrap #3317

Merged
merged 6 commits into from
Jun 28, 2023
Merged

ci: Speed up bootstrap #3317

merged 6 commits into from
Jun 28, 2023

Conversation

dnys1
Copy link
Contributor

@dnys1 dnys1 commented Jun 28, 2023

Reduces aft bootstrap time in CI by only bootstrapping necessary packages.

This improves average workflow speed by 80-90% (seriously quick now!) and should help flakiness since we're no longer DDoS'ing pub as bad in our workflows.

@dnys1 dnys1 marked this pull request as ready for review June 28, 2023 01:42
@dnys1 dnys1 requested a review from a team as a code owner June 28, 2023 01:42
Equartey
Equartey previously approved these changes Jun 28, 2023
Copy link
Member

@Equartey Equartey left a comment

Choose a reason for hiding this comment

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

🚀

@@ -88,7 +88,17 @@ const amplifyEnvironments = <String, String>{};
[for (final package in bootstrapPackages) _createEmptyConfig(package)],
);
if (build) {
for (final package in bootstrapPackages) {
// Packages which must be built because they vendor assets required for
Copy link
Contributor

Choose a reason for hiding this comment

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

typo: because the vendor

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Vendor is a verb here

@@ -88,7 +88,17 @@ const amplifyEnvironments = <String, String>{};
[for (final package in bootstrapPackages) _createEmptyConfig(package)],
);
if (build) {
for (final package in bootstrapPackages) {
// Packages which must be built because they vendor assets required for
// running all downstream packages.
Copy link
Contributor

Choose a reason for hiding this comment

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

nit: Comment should be capitalized

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It is capitalized?

Copy link
Contributor

@fjnoyp fjnoyp left a comment

Choose a reason for hiding this comment

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

Looks good, thanks for tackling this.

@dnys1 dnys1 merged commit 18f6df8 into main Jun 28, 2023
@dnys1 dnys1 deleted the ci/speed-up-bs branch June 28, 2023 15:57
ragingsquirrel3 pushed a commit that referenced this pull request Jul 6, 2023
* ci: Speed up bootstrap

* Fix example

* More fixes

* Clean up

* Fixes

* Clean up
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