adoptium / adoptium/aqa-test-tools

TypeError: Cannot convert undefined or null to object

Open
#879 1 comment 0 reactions 0 assignees View on GitHub
soc_24
Dominant language
Jupyter Notebook
Stars
33
Forks
97
Avg merge
7h 9m
Merged PRs (30d)
5

Description

When the job failed before test execution, we got `TypeError: Cannot convert undefined or null to object` error in TRSS.

image

https://github.com/adoptium/aqa-test-tools/blob/master/TestResultSummaryService/parsers/Test.js should be investigated. The content should be stored as `Pre Test`.

[testParserViaFile.js](https://github.com/adoptium/aqa-test-tools/blob/master/TestResultSummaryService/routes/test/testParserViaFile.js) can be used for testing.
replace [jobOutput.txt](https://github.com/adoptium/aqa-test-tools/blob/master/TestResultSummaryService/routes/test/jobOutput.txt) with [jobOutput.txt](https://github.com/user-attachments/files/15595330/jobOutput.txt)

Contributor guide

Open the contributing guide

Research direction

Read TestResultSummaryService/parsers/Test.js first to trace the failure when test execution never starts. Use testParserViaFile.js with the supplied jobOutput.txt fixture, and confirm the content is stored as `Pre Test` without raising the TypeError.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
testing
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
48/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.