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

Better logs when running implicit setup; do minimal setup only #999

Merged
merged 4 commits into from
Sep 24, 2024

Conversation

ofalvai
Copy link
Contributor

@ofalvai ofalvai commented Sep 9, 2024

Checklist

Version

Requires a MAJOR/MINOR/PATCH version update

Context

It's not clear why the implicit setup is triggered in some cases, and it's enough to run a minimal setup only (see #944)

Changes

Investigation details

Decisions

@ofalvai ofalvai changed the title Better logs when running implicit setup Better logs when running implicit setup; do minimal setup only Sep 20, 2024
@ofalvai ofalvai marked this pull request as ready for review September 20, 2024 12:51
bitrise/setup.go Outdated
return RunSetup(logger, version.VERSION, SetupModeDefault, false)
versionMatch, setupVersion := configs.CheckIsSetupWasDoneForVersion(version.VERSION)
if setupVersion == "" {
log.Warnf("No setup was done yet, running setup now...")
Copy link
Contributor

Choose a reason for hiding this comment

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

Why is this message a warning? I think these cases aren't indicating any issue, that might cause a failure or problem later on.
Also, I don't think this is very important info for all the builds, I suggest normal log level.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True, changed both of them to Infof

@ofalvai ofalvai requested a review from godrei September 20, 2024 13:37
@ofalvai ofalvai merged commit 0660c71 into master Sep 24, 2024
5 checks passed
@ofalvai ofalvai deleted the ofalvai/setup-diagnostics branch September 24, 2024 09:22
@godrei godrei mentioned this pull request Sep 25, 2024
2 tasks
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