0% found this document useful (0 votes)
24 views

Build

The document describes the log information from running an assessment. It details the different stages of setup and unit testing and includes the results of running test cases, with one failing.

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)
24 views

Build

The document describes the log information from running an assessment. It details the different stages of setup and unit testing and includes the results of running test cases, with one failing.

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:11:01,277 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO

CONTAINER_REQUEST_COUNT: 0
2024-03-18 08:11:01,277 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Fetching me assessment
2024-03-18 08:11:01,277 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 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:11:01,280 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Starting assessment
2024-03-18 08:11:01,806 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Running
assessment stage setup
2024-03-18 08:11:01,806 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
{'buildId': '0405f578-6b8e-41a6-a6ac-26f1777bac03', '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': 70121561, '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': 1710749460940, '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-0405f578-6b8e-41a6-a6ac-26f1777bac03'}
2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Getting
user data...
2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Received user data in 1.9311904907226562e-05 seconds

2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Getting


crio data...
2024-03-18 08:11:01,807 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO File
name:-/QUESTION_JoinMethodES6_SUBMIT.zip
2024-03-18 08:11:01,808 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
unZipping....
2024-03-18 08:11:01,808 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Received and unzipped crio data in 0.0014586448669433594 seconds

2024-03-18 08:11:01,809 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO


Time taken for setup stage: 0.0025098323822021484s
2024-03-18 08:11:01,809 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
BuildStageType.BUILD_STAGE_TYPE_SETUP stage complete. Report: {'userDir':
'//arbaazmakandar-ME_ES6_FUNCTIONALPROGRAMMING-0405f578-6b8e-41a6-a6ac-
26f1777bac03/solution'}
2024-03-18 08:11:02,315 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Running
assessment stage unitTesting
2024-03-18 08:11:02,316 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Validating syntax...
2024-03-18 08:11:02,459 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Running
the tests...
2024-03-18 08:11:05,905 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Test
logs :
> [email protected] test /arbaazmakandar-ME_ES6_FUNCTIONALPROGRAMMING-0405f578-6b8e-
41a6-a6ac-26f1777bac03/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 (7 ms)
✓ Input: There,has,been,an,awakening Output: There has been an awakening
✓ Input: madam Output: madam
✓ Input: learn Output: learn

● 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.97 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_11_05_885Z-debug.log

2024-03-18 08:11:05,905 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Time


taken to test code 3.4443395137786865
2024-03-18 08:11:05,907 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Time taken for unit_testing stage: 3.590848207473755s
2024-03-18 08:11:05,907 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 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:11:05,964 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Found
bucket assessment-build-logs-prod
2024-03-18 08:11:06,187 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO
Files from stages uploaded in 0.22272253036499023 seconds

2024-03-18 08:11:06,187 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO Build


Report formed:
2024-03-18 08:11:06,187 build-0405f578-6b8e-41a6-a6ac-26f1777bac03 INFO {
"buildId": "0405f578-6b8e-41a6-a6ac-26f1777bac03",
"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-0405f578-
6b8e-41a6-a6ac-26f1777bac03/solution"
},
"logPath":
"https://storage.googleapis.com/assessment-build-logs-prod/arbaazmakandar-
ME_ES6_FUNCTIONALPROGRAMMING/build-0405f578-6b8e-41a6-a6ac-26f1777bac03/setup.log?
Expires=1742285466&GoogleAccessId=storage-service%40crio-
prod.iam.gserviceaccount.com&Signature=PPRWB0us8%2BC%2FVfqotv1eotSnDRLcDz
%2BmdNM3EMzJG143KDdzaOIgGaUFSuKimTXIImiUox5f5hOrZVXnsWeHHlmpUR7H%2F8H9JkB%2F
%2BURhBLXMcrMrhufo3Ps0%2F0jHkU5HMxSwuYDiebeab5SXRrBCi4vPqIqa38Exjr3GGxc9%2FgiDxHnfa
I1aS9iMzXxTcGa9j7h4%2FUNc%2B9JtSY%2F6Ei
%2BDS62msvRbpdbhLhEM7I9zmdNR3SnLQs0ufz2GuRQ2YWl9OsEHCWlytCsv7U0Km77JdSV
%2FOSX0pb58lngCt2g%2Ft%2B89bSrFsOX7Rnc5KmkQqZEM1dUlViJsSJi2JvLc3vy8PA%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-0405f578-6b8e-41a6-a6ac-26f1777bac03/
unitTesting.log?Expires=1742285466&GoogleAccessId=storage-service%40crio-
prod.iam.gserviceaccount.com&Signature=ebhnHGIds20pABPHW%2FZPtAhDfnM%2F0Mk2t%2Bdd
%2F0iV2iM21Pk%2BP5PMjMUcm2o%2FGTNo3f3qPS6aHFElQy6yvNUYwO3jHdpH8fczumbC78W
%2B0gWxJIR80j5qzofdwYlSmiHKnnBckw8ZAoq5a1kYaaf
%2Bxxp4pLpmqIldC9lU0HS2vF9I70kjhc3WGPs0%2Becw5%2BSbYvQEIgniaok9PxDE1%2BYQABx9XVZfPb
lw8OyWJyCNKQ2TSq2TGxFwuRJS4LfslJi0mql%2BUTA1V
%2FSs7elKfjoYsghiyXNX5qNHf6Jgu7jZKTxA2yoSPXbS5N1syg%2B%2BgbCFIlNl4VGlKLkEGjegm57KxA
%3D%3D"
}
],
"codeId": 70121561,
"buildStatus": "BUILD_STATUS_SUCCESS",
"moduleId": "ME_ES6_FUNCTIONALPROGRAMMING_MODULE_JOINMETHODES6",
"buildDurationInMs": 4907,
"timestampInMs": 1710749466188
}

You might also like