Skip to content

Conversation

@ffjlabo
Copy link
Member

@ffjlabo ffjlabo commented Feb 22, 2022

What this PR does / why we need it:

Add proto message for better running version of applicaion

Which issue(s) this PR fixes:

A part of #3303

Does this PR introduce a user-facing change?:

NONE

DeploymentTrigger trigger = 2 [(validate.rules).message.required = true];
string summary = 3;
string version = 4;
string config_filename = 5;
Copy link
Member

Choose a reason for hiding this comment

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

The index number must be kept in order to avoid breaking change.
It means that with this change, the old Piped can not talk with the new server which is running with the new data layout.

Copy link
Member Author

Choose a reason for hiding this comment

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

I see. I'll fix it!

Comment on lines 92 to 96
message ApplicationComponentVersion {
ApplicationComponentKind kind = 1;
stirng version = 2;
string url = 3;
}
Copy link
Member

@nghialv nghialv Feb 22, 2022

Choose a reason for hiding this comment

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

Suggested change
message ApplicationComponentVersion {
ApplicationComponentKind kind = 1;
stirng version = 2;
string url = 3;
}
message ArtifactVersion {
enum Kind {
UNKNOWN = 0;
CONTAINER_IMAGE = 1;
}
Kind kind = 1 [(validate.rules).enum.defined_only = true];
string version = 2 [(validate.rules).string.min_len = 1];
string name = 3;
string url = 4;
}

@pipecd-bot
Copy link
Collaborator

COVERAGE

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

File Function Base Head Diff
pkg/app/piped/logpersister/stagelogpersister.go stageLogPersister.flushFromLastCheckpoint 50.00% 61.11% +11.11%

@pipecd-bot
Copy link
Collaborator

COVERAGE

Code coverage for javascript is 78.07%. This pull request decreases coverage by -0.03%.

File Base Head Diff
src/modules/commands/index.ts 93.75% 90.62% -3.12%

@nghialv
Copy link
Member

nghialv commented Feb 22, 2022

Nice. Thank you.
/lgtm

@nghialv
Copy link
Member

nghialv commented Feb 22, 2022

Btw, this PR does not fix #3303 yet.
So to avoid closing that issue when this PR got merged. Let's update the PR description from

"Fixes #3303" to "A part of #3303"

@ffjlabo
Copy link
Member Author

ffjlabo commented Feb 22, 2022

ok, I fixed it!

@khanhtc1202
Copy link
Member

Nice added 👍
/approve

@pipecd-bot
Copy link
Collaborator

APPROVE

This pull request is APPROVED by khanhtc1202.

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