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

Add postSync configuration as part of DeploymentConfiguration #2792

Merged
merged 10 commits into from
Nov 18, 2021

Conversation

khanhtc1202
Copy link
Member

What this PR does / why we need it:

Which issue(s) this PR fixes:

Fixes #

Does this PR introduce a user-facing change?:

NONE

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.98%. This pull request increases coverage by 0.02%.

File Function Base Head Diff
pkg/app/api/grpcapi/piped_api.go PipedAPI.GetDeployment -- 0.00% +0.00%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go PostSync.Validate -- 62.50% +62.50%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.98%. This pull request increases coverage by 0.02%.

File Function Base Head Diff
pkg/app/api/grpcapi/piped_api.go PipedAPI.GetDeployment -- 0.00% +0.00%
pkg/config/deployment.go PostSync.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChain.Validate -- 55.56% +55.56%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainTriggerCondition.Validate -- 0.00% +0.00%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

pkg/config/deployment.go Outdated Show resolved Hide resolved
pkg/config/deployment.go Outdated Show resolved Hide resolved
pkg/config/deployment.go Outdated Show resolved Hide resolved
@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.98%. This pull request increases coverage by 0.01%.

File Function Base Head Diff
pkg/app/api/grpcapi/piped_api.go PipedAPI.GetDeployment -- 0.00% +0.00%
pkg/config/deployment.go PostSync.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChain.Validate -- 55.56% +55.56%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainTriggerCondition.Validate -- 0.00% +0.00%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.98%. This pull request increases coverage by 0.01%.

File Function Base Head Diff
pkg/app/api/grpcapi/piped_api.go PipedAPI.GetDeployment -- 0.00% +0.00%
pkg/config/deployment.go PostSync.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChain.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainTriggerCondition.Validate -- 0.00% +0.00%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

@nghialv
Copy link
Member

nghialv commented Nov 17, 2021

/lgtm

@nakabonne
Copy link
Member

The above is not related to this topic directly, there you go anyway!
/approve

@nakabonne
Copy link
Member

TestGenericPostSyncConfiguration failed 👀

@pipecd-bot
Copy link
Collaborator

GO_LINTER

The golinter build is completed with FAILURE. The build will be triggered again when you push any other commits. Or you can trigger it manually by /golinter trigger command right now.

You can check the build log from here.

@khanhtc1202
Copy link
Member Author

/golinter trigger

@pipecd-bot
Copy link
Collaborator

GO_LINTER

The golinter build is completed with FAILURE. The build will be triggered again when you push any other commits. Or you can trigger it manually by /golinter trigger command right now.

You can check the build log from here.

@khanhtc1202
Copy link
Member Author

/golinter trigger

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 84.24%. This pull request does not change code coverage.

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.92%. This pull request decreases coverage by -0.05%.

File Function Base Head Diff
pkg/app/api/grpcapi/piped_api.go PipedAPI.GetDeployment -- 0.00% +0.00%
pkg/app/piped/trigger/determiner.go NewOnCommandDeterminer -- 0.00% +0.00%
pkg/app/piped/trigger/determiner.go NewOnOutOfSyncDeterminer -- 0.00% +0.00%
pkg/config/deployment.go PostSync.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChain.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainTriggerCondition.Validate -- 0.00% +0.00%
pkg/app/piped/trigger/determiner.go OnOutOfSyncDeterminer.ShouldTrigger 0.00% 0.00% +0.00%
pkg/app/piped/trigger/trigger.go Trigger.checkRepoCandidates 0.00% 0.00% +0.00%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 84.24%. This pull request does not change code coverage.

@nghialv
Copy link
Member

nghialv commented Nov 18, 2021

Could you rebase this PR?
The diff looks weird.

@pipecd-bot
Copy link
Collaborator

TODO

The following ISSUES will be created once got merged. If you want me to skip creating the issue, you can use /todo skip command.

Details

1. Add conditions to deployment chain configuration.

https://github.com/pipe-cd/pipe/blob/16ebd838c6be56f29c4b061d5914f1cdf6e7c518/pkg/config/deployment.go#L558-L561

This was created by todo plugin since "TODO:" was found in 16ebd83 when #2792 was merged. cc: @khanhtc1202.

@nghialv
Copy link
Member

nghialv commented Nov 18, 2021

/approve

@khanhtc1202
Copy link
Member Author

khanhtc1202 commented Nov 18, 2021

Could you rebase this PR? The diff looks weird.

Done, PTAL 🙏

@khanhtc1202
Copy link
Member Author

/approve cancel

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for golang is 31.92%. This pull request increases coverage by 0.03%.

File Function Base Head Diff
pkg/config/deployment.go PostSync.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChain.Validate -- 66.67% +66.67%
pkg/config/deployment.go DeploymentChainNode.Validate -- 75.00% +75.00%
pkg/config/deployment.go DeploymentChainTriggerCondition.Validate -- 0.00% +0.00%
pkg/config/deployment.go GenericDeploymentSpec.Validate 53.85% 56.25% +2.40%

@nghialv
Copy link
Member

nghialv commented Nov 18, 2021

/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by nghialv.

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.

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.

4 participants