0% found this document useful (0 votes)
40 views4 pages

Build

This document contains log information from running an assessment. It details the setup and unit testing stages, with information on fetching user data, unzipping files, running tests, and test results. One test case failed while others passed.

Uploaded by

Crazy Bots
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
40 views4 pages

Build

This document contains log information from running an assessment. It details the setup and unit testing stages, with information on fetching user data, unzipping files, running tests, and test results. One test case failed while others passed.

Uploaded by

Crazy Bots
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

2024-03-18 08:12:22,280 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO

CONTAINER_REQUEST_COUNT: 0
2024-03-18 08:12:22,280 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Fetching me assessment
2024-03-18 08:12:22,280 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO ME
Assessment fetched - {'meId': 'ME_ES6_FUNCTIONALPROGRAMMING', 'stages':
[<BuildStageType.BUILD_STAGE_TYPE_SETUP: 'setup'>,
<BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING: 'unitTesting'>],
'assessmentEndpoint': 'https://me-es6-functionalprogramming-prod-nnjjst7g5q-
uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_es6',
'runInIsolation': False}
2024-03-18 08:12:22,281 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Starting assessment
2024-03-18 08:12:22,792 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Running
assessment stage setup
2024-03-18 08:12:22,796 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
{'buildId': 'e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f', 'userId': 'arbaazmakandar',
'cohortId': 'COHORT_ME_ES6_FUNCTIONALPROGRAMMING_ENROLL_1684835199422', 'meId':
'ME_ES6_FUNCTIONALPROGRAMMING', 'moduleId':
'ME_ES6_FUNCTIONALPROGRAMMING_MODULE_JOINMETHODES6', 'buildType':
'BUILD_TYPE_SUBMIT', 'assessmentType': 'ASSESSMENT_TYPE_UNTIMED', 'questionId':
'QUESTION_JoinMethodES6', 'psDsContext': {'codeId': 70121698, 'inputs': [],
'codeData': {'code': '/**\n * @param {string} str\n * @return {string}\n */\n\n\
nfunction sentensify(str) {\n // You only need to implement this function.\n let
newStr= str.split(\'-\');\n newStr= str.split(\'.\');\n newStr=
str.split(\',\');\n \n return newStr.join(" ");\n}\n\nif (sentensify("May-the-
force-be-with-you") !== "May the force be with you")\n console.log(\n "Test
fails: Expected true for input str = \'May-the-force-be-with-you\'"\n );\nelse
console.log(\n "Sample test case for input str = \'May-the-force-be-with-you\'
passed!"\n);\n\nmodule.exports = sentensify;\n\n', 'languageType':
'LANGUAGE_TYPE_JAVASCRIPT'}}, 'timestampInMs': 1710749541943, 'meAssessment':
{'meId': 'ME_ES6_FUNCTIONALPROGRAMMING', 'stages':
[<BuildStageType.BUILD_STAGE_TYPE_SETUP: 'setup'>,
<BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING: 'unitTesting'>],
'assessmentEndpoint': 'https://me-es6-functionalprogramming-prod-nnjjst7g5q-
uc.a.run.app/', 'fargateTaskDefinition': None, 'meFolder': 'me_es6',
'runInIsolation': False}, 'workingDir': '//arbaazmakandar-
ME_ES6_FUNCTIONALPROGRAMMING-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f'}
2024-03-18 08:12:22,796 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Getting
user data...
2024-03-18 08:12:22,797 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Received user data in 2.574920654296875e-05 seconds

2024-03-18 08:12:22,797 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Getting


crio data...
2024-03-18 08:12:22,797 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO File
name:-/QUESTION_JoinMethodES6_SUBMIT.zip
2024-03-18 08:12:22,797 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
unZipping....
2024-03-18 08:12:22,798 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Received and unzipped crio data in 0.0015864372253417969 seconds

2024-03-18 08:12:22,799 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO


Time taken for setup stage: 0.0040776729583740234s
2024-03-18 08:12:22,799 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
BuildStageType.BUILD_STAGE_TYPE_SETUP stage complete. Report: {'userDir':
'//arbaazmakandar-ME_ES6_FUNCTIONALPROGRAMMING-e9b8e44b-81b5-44ea-a6e0-
df3a4a362a6f/solution'}
2024-03-18 08:12:23,314 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Running
assessment stage unitTesting
2024-03-18 08:12:23,315 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Validating syntax...
2024-03-18 08:12:23,425 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Running
the tests...
2024-03-18 08:12:26,293 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Test
logs :
> [email protected] test /arbaazmakandar-ME_ES6_FUNCTIONALPROGRAMMING-e9b8e44b-81b5-
44ea-a6e0-df3a4a362a6f/solution
> jest "--reporters=jest-junit" "--reporters=default" "--verbose" "--forceExit"

console.log
Test fails: Expected true for input str = 'May-the-force-be-with-you'

at Object.log (solution.js:17:11)

FAIL __tests__/solution.tests.js
✕ Input: The.force.is.strong.with.this.one Output: The force is strong with this
one (20 ms)
✓ Input: There,has,been,an,awakening Output: There has been an awakening (1 ms)
✓ Input: madam Output: madam (1 ms)
✓ Input: learn Output: learn (1 ms)

● Input: The.force.is.strong.with.this.one Output: The force is strong with this


one

expect(received).toStrictEqual(expected) // deep equality

Expected: "The force is strong with this one"


Received: "The.force.is.strong.with.this.one"

9 |
10 | test("Input: The.force.is.strong.with.this.one Output: The force is
strong with this one", () => {
> 11 | expect(sentensify("The.force.is.strong.with.this.one")).toStrictEqual(
| ^
12 | "The force is strong with this one"
13 | );
14 | });

at Object.toStrictEqual (__tests__/solution.tests.js:11:59)

Test Suites: 1 failed, 1 total


Tests: 1 failed, 3 passed, 4 total
Snapshots: 0 total
Time: 0.859 s
Ran all test suites.
Force exiting Jest: Have you considered using `--detectOpenHandles` to detect async
operations that kept running after all tests finished?
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] test: `jest "--reporters=jest-junit" "--
reporters=default" "--verbose" "--forceExit"`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] test script.
npm ERR! This is probably not a problem with npm. There is likely additional
logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to
install?

npm ERR! A complete log of this run can be found in:


npm ERR! /home/.npm/_logs/2024-03-18T08_12_26_274Z-debug.log

2024-03-18 08:12:26,294 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Time


taken to test code 2.862018346786499
2024-03-18 08:12:26,295 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Time taken for unit_testing stage: 2.9805080890655518s
2024-03-18 08:12:26,295 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
BuildStageType.BUILD_STAGE_TYPE_UNIT_TESTING stage complete. Report: {' Input:
The.force.is.strong.with.this.one Output: The force is strong with this one':
'TEST_STATUS_FAILURE', ' Input: There,has,been,an,awakening Output: There has been
an awakening': 'TEST_STATUS_SUCCESS', ' Input: learn Output: learn':
'TEST_STATUS_SUCCESS', ' Input: madam Output: madam': 'TEST_STATUS_SUCCESS'}
2024-03-18 08:12:26,320 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Found
bucket assessment-build-logs-prod
2024-03-18 08:12:26,521 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO
Files from stages uploaded in 0.20076727867126465 seconds

2024-03-18 08:12:26,521 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO Build


Report formed:
2024-03-18 08:12:26,522 build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f INFO {
"buildId": "e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f",
"userId": "arbaazmakandar",
"meId": "ME_ES6_FUNCTIONALPROGRAMMING",
"cohortId": "COHORT_ME_ES6_FUNCTIONALPROGRAMMING_ENROLL_1684835199422",
"buildType": "BUILD_TYPE_SUBMIT",
"questionId": "QUESTION_JoinMethodES6",
"stages": [
{
"type": "BUILD_STAGE_TYPE_SETUP",
"status": "BUILD_STAGE_STATUS_SUCCESS",
"feedback": null,
"report": {
"userDir": "//arbaazmakandar-ME_ES6_FUNCTIONALPROGRAMMING-e9b8e44b-
81b5-44ea-a6e0-df3a4a362a6f/solution"
},
"logPath":
"https://storage.googleapis.com/assessment-build-logs-prod/arbaazmakandar-
ME_ES6_FUNCTIONALPROGRAMMING/build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f/setup.log?
Expires=1742285546&GoogleAccessId=storage-service%40crio-
prod.iam.gserviceaccount.com&Signature=fGwcR6Agao
%2BuTyBZTH9aw16jVAwbPsuXWjshLYi3VnbovjsrC7fkcWvUCR%2BKcbUCOll9g4Y4hzleRuh5ivbZ1v9C
%2B0i9fY%2BDAeFt
%2BqCPf4wlp6nfwzqSP18LfiAz1QjN8xC18GOfLIqAnEoNsOHNYUJSqWeDyqD3UkLXrHPqHYD2%2BjtLCDm
P4usvxz4PcWX%2BhvptaHd6Jq9fN0s%2BN91B3N3y2Cb9sGQlJFXAs9f8KH4%2FCCUmjpDE
%2Bns36fL6EfAdYl9oXv2BBm%2FPZEdab7ylsYr4vCa%2FSLLVVYHiFKPbexvmB8orD8uH6CxUT3sXG
%2BgNOQNXlk9X8QqSOaw%2B5Hg%2FOA%3D%3D"
},
{
"type": "BUILD_STAGE_TYPE_UNIT_TESTING",
"status": "BUILD_STAGE_STATUS_SUCCESS",
"feedback": null,
"report": {
" Input: The.force.is.strong.with.this.one Output: The force is
strong with this one": "TEST_STATUS_FAILURE",
" Input: There,has,been,an,awakening Output: There has been an
awakening": "TEST_STATUS_SUCCESS",
" Input: learn Output: learn": "TEST_STATUS_SUCCESS",
" Input: madam Output: madam": "TEST_STATUS_SUCCESS"
},
"logPath":
"https://storage.googleapis.com/assessment-build-logs-prod/arbaazmakandar-
ME_ES6_FUNCTIONALPROGRAMMING/build-e9b8e44b-81b5-44ea-a6e0-df3a4a362a6f/
unitTesting.log?Expires=1742285546&GoogleAccessId=storage-service%40crio-
prod.iam.gserviceaccount.com&Signature=olToLR
%2FAlwhZX48mFhAnuoAGOfEa5BoWRkc7Tf4QyllaQCl4ERidO4mL
%2BLwNW772gQ1tIMIXmjdyC1NOIhEkBw4KPov3QN0LY9g4MgAMuJf4e5o577Otb91G4gyITMRIjOrwcy6u8
3c%2B6UKPAolmnZlQm7PGkGnSVsm3zMuG1%2BxLaTqWY2vWm12no
%2BCwSJtvGKMlDDenBNmFE2efVOsROAKMxHt5NlDYMIMi9OHWGICzvKi5BjudQp4OxSQtewZ1RBw2anVLcX
UdpWn3v84d1J0pG1BS21oa%2BpVtQz8gh4ge4YA8ZWY6HCsxd6jfgjFFQFoZ7rRp110%2Fy1W1O%2BoVmg
%3D%3D"
}
],
"codeId": 70121698,
"buildStatus": "BUILD_STATUS_SUCCESS",
"moduleId": "ME_ES6_FUNCTIONALPROGRAMMING_MODULE_JOINMETHODES6",
"buildDurationInMs": 4241,
"timestampInMs": 1710749546522
}

You might also like