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

[storage] [lint] Start enforcing lint errors #197

Merged
merged 2 commits into from
Nov 9, 2022
Merged

Conversation

glimchb
Copy link
Member

@glimchb glimchb commented Nov 8, 2022

name, count, comments, ... see #195

Signed-off-by: Boris Glimcher Boris.Glimcher@emc.com

name, count, comments, ... see opiproject#195

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@glimchb glimchb marked this pull request as ready for review November 8, 2022 23:52
@glimchb glimchb requested a review from a team as a code owner November 8, 2022 23:52
@glimchb glimchb self-assigned this Nov 8, 2022
Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
@@ -109,3 +83,27 @@ message NVMfRemoteControllerStatsResponse {
string stats = 2;
}

enum NvmeTransportType {
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -192,13 +188,13 @@ message NVMeNamespace {

// Size/Capacity of the namespace in blocks, size in bytes will
// be BlockSize x NumBlocks.
int64 num_blocks = 6;
int64 blocks_count = 6;
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -30,11 +29,10 @@ message AioController {
// handle will be returned with created object
common.v1.ObjectKey handle = 1;

string name = 2;
int64 block_size = 3;
int64 num_blocks = 4;
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -25,10 +24,9 @@ service NullDebugService {

message NullDebug {
int64 id = 1;
string name = 2;
int64 block_size = 3;
int64 num_blocks = 4;
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -33,31 +30,8 @@ message NVMfRemoteController {
bool hdgst = 7;
bool ddgst = 8;
NvmeMultipath multipath = 9;
int64 num_io_queues = 10;
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -24,7 +24,7 @@ message NvmeControllerPciId {
int32 device = 2;

// Physical function, always set to 0 in current model
int32 function = 3;
Copy link
Member Author

Choose a reason for hiding this comment

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

@@ -152,7 +149,7 @@ message NVMeController {
// If not set, the xPU will provide a default.
int32 max_nsq = 5;

// maximum number of host completion queues allowed. Optional.
Copy link
Member Author

Choose a reason for hiding this comment

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


// Globally unique identifier for the namespace
string nguid = 7;

// 64bit Extended unique identifier for the namespace
// mandatory if guid is not specified, optional otherwise
// mandatory if guid is not specified
Copy link
Member Author

Choose a reason for hiding this comment

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

@glimchb glimchb added Storage APIs or code related to storage area Merge Candidate in the open merge window, next candidate for merge labels Nov 9, 2022
@glimchb glimchb merged commit 76522ac into opiproject:main Nov 9, 2022
@@ -15,5 +15,6 @@ all:
curl -kL https://github.com/googleapis/googleapis/archive/master.tar.gz | tar --strip=1 -zxvf - googleapis-master/google/api
mv google "${PWD}"/v1alpha1/
docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../common/v1":/common -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common /out/*.proto --output-format summary"
docker run --user=$$(id -u):$$(id -g) --rm --entrypoint=sh -v "${PWD}/../common/v1":/common -v "${PWD}"/v1alpha1/:/out -w /out ghcr.io/docker-multiarch/google-api-linter:1.36.0 -c "api-linter -I /common /out/*.proto --output-format github --disable-rule=core::0192::has-comments --disable-rule=core::0136 --disable-rule=core::0127 --set-exit-status"
Copy link

Choose a reason for hiding this comment

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

Might be nice to document the rules being ignored and why. But not a blocker.

Copy link
Member Author

Choose a reason for hiding this comment

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

just wanted to start enforcing rules, so ignore is temp thing, eventually nothing will be ignored, thanks @seroyer

glimchb added a commit to opiproject/opi-spdk-bridge that referenced this pull request Nov 9, 2022
see opiproject/opi-api#197
see opiproject/opi-api#199

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
glimchb added a commit to opiproject/opi-spdk-bridge that referenced this pull request Nov 9, 2022
see opiproject/opi-api#197
see opiproject/opi-api#199

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
glimchb added a commit to opiproject/opi-spdk-bridge that referenced this pull request Nov 9, 2022
see opiproject/opi-api#197
see opiproject/opi-api#199

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
glimchb added a commit to opiproject/opi-spdk-bridge that referenced this pull request Nov 9, 2022
see opiproject/opi-api#197
see opiproject/opi-api#199

Signed-off-by: Boris Glimcher <Boris.Glimcher@emc.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Merge Candidate in the open merge window, next candidate for merge Storage APIs or code related to storage area
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants