minio / mint

Collection of tests to detect overall correctness of MinIO server.
Apache License 2.0
80 stars 50 forks source link

Replaces old log output format with the new mint log style #117

Closed ebozduman closed 7 years ago

ebozduman commented 7 years ago

Issue #111

balamurugana commented 7 years ago

@NitishT @ebozduman travis CI fails on npm install. I guess its not related to this PR. We would need to fix this problem before merging this PR

ebozduman commented 7 years ago

I was looking into the failure.

Here are the logged error messages from travis:

npm WARN gulp-babel@7.0.0 requires a peer of babel-core@6 || 7 || ^7.0.0-alpha || ^7.0.0-beta || ^7.0.0-rc but none was installed.
npm WARN bin@1.0.0 No description
npm WARN bin@1.0.0 No repository field.
npm ERR! Linux 4.4.0-83-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "--prefix" "/mint/run/core/minio-js" "install"
npm ERR! node v6.11.2
npm ERR! npm  v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! evp_bytestokey@1.0.1 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the evp_bytestokey@1.0.1 install script 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the evp_bytestokey package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs evp_bytestokey
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls evp_bytestokey
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /mint/npm-debug.log
The command '/bin/sh -c /mint/build/js/install.sh' returned a non-zero code: 1
The command "docker build -f Dockerfile.dev -t play.minio.io/mint:travis-$TRAVIS_PULL_REQUEST_SHA ." exited with 1.
Done. Your build exited with 1.
nitisht commented 7 years ago

The failure was a Travis CI issue, I restarted the build on Travis and it built fine.

ebozduman commented 7 years ago

Nitish, Done. Added the missing duration field, populated it within each test case method and renamed the comment field as alert as previously decided.

nitisht commented 7 years ago

Tested locally, overall looks good. As per https://github.com/minio/mint/issues/114#issuecomment-324202549, few comments:

balamurugana commented 7 years ago

IMO to ensure server quality all errors are alert currently (at least I am not able to differentiate alerts and errors now for current server quality). My suggestion is to keep everything as an error and tests should not continue on error (or alert).

nitisht commented 7 years ago

IMO to ensure server quality all errors are alert currently

One way to differentiate between error and alert IMO, is cases where there is data loss or data corruption or other severe impact happens (say you upload an object, and then download it and match against original file, and verification fails) can be marked as alert while rest are errors.

ebozduman commented 7 years ago

Nitish,

nitisht commented 7 years ago

Tested locally, LGTM. Output:

{
  "name": "aws-sdk-ruby",
  "function": "listBuckets()",
  "args": {},
  "duration": 76,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "listObjects(bucket_name)",
  "args": {
    "bucket_name": "9e4581c73e90"
  },
  "duration": 182.71,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "makeBucket(bucket_name)",
  "args": {
    "bucket_name": "9e4581c73e90"
  },
  "duration": 12.49,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "bucketExists?(bucket_name)",
  "args": {
    "bucket_name": "non-existing-bucket"
  },
  "duration": 3.6,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "removeBucket(bucket_name)",
  "args": {
    "bucket_name": "9e4581c73e90"
  },
  "duration": 8.65,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "putObject(bucket_name,file)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file": "/mint/data/datafile-1-MB"
  },
  "duration": 32.01,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "removeObject(bucket_name,file)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file": "/mint/data/datafile-1-MB"
  },
  "duration": 32.02,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "getObject(bucket_name,file,destination)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file": "/mint/data/datafile-1-MB",
    "destination": "/tmp"
  },
  "duration": 56.58,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "copyObject(source_bucket_name,target_bucket_name,source_file_name,target_file_name)",
  "args": {
    "source_bucket_name": "9e4581c73e90",
    "target_bucket_name": "9da59e6f73f3",
    "source_file_name": "datafile-1-MB",
    "target_file_name": ""
  },
  "duration": 58.88,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "copyObject(source_bucket_name,target_bucket_name,source_file_name,target_file_name)",
  "args": {
    "source_bucket_name": "9e4581c73e90",
    "target_bucket_name": "9da59e6f73f3",
    "source_file_name": "datafile-1-MB",
    "target_file_name": "datafile-1-MB-copy"
  },
  "duration": 79.01,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "presignedGet(bucket_name,file_name)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file_name": "datafile-1-MB"
  },
  "duration": 46.2,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "presignedPut(bucket_name,file_name)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file_name": "datafile-1-MB"
  },
  "duration": 42.46,
  "status": "PASS"
}
{
  "name": "aws-sdk-ruby",
  "function": "presignedPost(bucket_name,file_name,expires_in_sec,max_byte_size)",
  "args": {
    "bucket_name": "9e4581c73e90",
    "file_name": "datafile-1-MB",
    "expires_in_sec": 60,
    "max_byte_size": 3145728
  },
  "duration": 51.29,
  "status": "PASS"
}
deekoder commented 7 years ago

running it. Seems to be ok.