Skip to content

Conversation

@nghialv
Copy link
Member

@nghialv nghialv commented Jan 8, 2021

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

}

// The stage was failed but not caused by the stop signal.
if result == model.StageStatus_STAGE_FAILURE && sigType == executor.StopSignalNone {
Copy link
Member Author

Choose a reason for hiding this comment

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

The original code was missing the handling of the timeout error.

if !ok {
s.doneDeploymentStatus = model.DeploymentStatus_DEPLOYMENT_FAILURE
statusReason = fmt.Sprintf("Unable to find %q from the repository list in piped config", repoID)
statusReason = fmt.Sprintf("Repository %q is not found in the piped config", repoID)
Copy link
Member

@khanhtc1202 khanhtc1202 Jan 8, 2021

Choose a reason for hiding this comment

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

nit, statusDesc or statusDescription or deploymentResultDescription(Desc) can be considered as a better name 🤔

Copy link
Member Author

Choose a reason for hiding this comment

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

That name was already fixed/used in the proto so let me keep it as is.

Copy link
Member

Choose a reason for hiding this comment

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

🙆‍♀️

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 33.81%. This pull request increases coverage by 0.00%.

File Function Base Head Diff
pkg/app/piped/controller/controller.go controller.syncPlanners 0.00% 0.00% +0.00%
pkg/app/piped/controller/controller.go controller.syncSchedulers 0.00% 0.00% +0.00%
pkg/app/piped/controller/scheduler.go scheduler.Run 0.00% 0.00% +0.00%


var (
defaultDeploymentTimeout = time.Hour
defaultDeploymentTimeout = 6 * time.Hour
Copy link
Member

Choose a reason for hiding this comment

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

nit, do we have docs that related to this default value 👀

Copy link
Member Author

Choose a reason for hiding this comment

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

This will be included while fixing #1373

Copy link
Member

Choose a reason for hiding this comment

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

got it, thank you 👍

@khanhtc1202
Copy link
Member

/lgtm

@pipecd-bot pipecd-bot added the lgtm label Jan 8, 2021
Copy link
Member

@nakabonne nakabonne left a comment

Choose a reason for hiding this comment

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

👍

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nakabonne.

Approvers can cancel the approval by writing /approve cancel in a comment. Any additional commits also will change this pull request to be not-approved.

@pipecd-bot pipecd-bot merged commit 7fc126e into master Jan 8, 2021
@pipecd-bot pipecd-bot deleted the scheduler branch January 8, 2021 08:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants