-
Notifications
You must be signed in to change notification settings - Fork 131
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
Print step preparation errors #816
Conversation
cli/run_util.go
Outdated
@@ -912,33 +704,32 @@ func activateAndRunSteps( | |||
|
|||
// | |||
// Run step | |||
bitrise.PrintRunningStepHeader(stepInfoPtr, mergedStep, idx) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
cli/step_activator.go
Outdated
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
type StepActivator struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit: everything in this file could be private if I'm not mistaken
cli/build_run_result_registerer.go
Outdated
"github.com/bitrise-io/bitrise/tools/timeoutcmd" | ||
"github.com/bitrise-io/go-utils/colorstring" | ||
"github.com/bitrise-io/go-utils/pointers" | ||
coreanalytics "github.com/bitrise-io/go-utils/v2/analytics" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think it would be better to import this as-is and create an alias for the v1 analytics
. This way, when we get rid of the v1 imports, we won't have to remove the v2
import alias and update every affected line.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It's not the v1 and v2 versions of the go-utils/analytics
package,
but v2 go-utils/analytics
and bitrise/analytics
packages.
cli/build_run_result_registerer.go
Outdated
log "github.com/sirupsen/logrus" | ||
) | ||
|
||
type BuildRunResultRegisterer struct { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think the correct word for this is Registrar
, but I'd also be happy with something like BuildRunResultCollector
NOTE: discussed that in case of step preparation failure change |
Checklist
Version
Requires a MINOR version update
Context
While Bitrise CLI is running a given workflow and activating a private step, potential activation errors are not logged into the build log, which makes it hard to debug issues.
Example output when there is a typo (missing trailing
e
inbitrise-step-simple-git-clone-privat
) in the private step URL:This PR updates Bitrise CLI to print step preparation errors for better debuggability:
Changes
BuildRunResultRegisterer.RegisterStepRunResults
StepActivator.ActivateStep