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

Minimal setup flag #944

Merged
merged 7 commits into from
Apr 12, 2024
Merged

Minimal setup flag #944

merged 7 commits into from
Apr 12, 2024

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Apr 12, 2024

Checklist

Version

Requires a MAJOR/MINOR/PATCH version update

Context

bitrise setup is triggered automatically when the CLI is upgraded to a newer version. This setup does a lot of things that are not necessary in CI, such as installing plugins meant for local work.

Changes

  • Add a new --minimal flag to the setup subcommand that skips installing plugins, stepman, and skips the system check on macOS
  • Remove the --full setup flag. This controlled only one thing, running brew doctor when running on macOS

Investigation details

Timing tests on my local machine:

Old worst case: all plugins are older than the minimum versions defined by the new CLI: 20s
Old best case: 574ms
New minimal flag: 328ms

Decisions

cli/setup.go Show resolved Hide resolved
bitrise/setup.go Show resolved Hide resolved
bitrise/setup.go Outdated Show resolved Hide resolved
bitrise/setup.go Show resolved Hide resolved
bitrise/setup.go Outdated Show resolved Hide resolved
cli/setup.go Outdated Show resolved Hide resolved
cli/setup.go Show resolved Hide resolved
bitrise/setup.go Outdated Show resolved Hide resolved
bitrise/setup.go Outdated Show resolved Hide resolved
@ofalvai ofalvai marked this pull request as ready for review April 12, 2024 13:41
@ofalvai ofalvai merged commit 2e5a15c into master Apr 12, 2024
5 checks passed
@ofalvai ofalvai deleted the ofalvai/setup-minimal branch April 12, 2024 14:27
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.

2 participants