-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Description
We have a new processor that is SonarQube scanning development submissions. In the case of a failure, it will send an email with the scorecard results, pretty much the same as the antivirus scan. The failure email is not being received.
A sample Kafka message is below:
{
"data": {
"submitter": {
"handle": "jgaspermobile12",
"email": "jmgasper+mobile12@gmail.com",
"rating": {
"rating": null,
"track": null,
"subTrack": null
}
},
"submission": {
"updatedBy": "jgaspermobile12",
"created": "2022-10-18T22:52:21.055Z",
"legacySubmissionId": 211174,
"isFileSubmission": false,
"type": "Contest Submission",
"submittedDate": "2022-10-18T22:52:21.055Z",
"url": "https://s3.amazonaws.com/topcoder-dev-submissions/9f89f287-465b-4b64-950a-2ede266d08ef.zip",
"challengeId": 30092076,
"createdBy": "jgaspermobile12",
"legacyChallengeId": 30092076,
"review": [
{
"score": 100,
"updatedBy": "maE2maBSv9fRVHjSlC31LFZSq6VhhZqC@clients",
"reviewerId": "7aae075f-29bb-4ddb-866a-045fab9d37e9",
"submissionId": "9f89f287-465b-4b64-950a-2ede266d08ef",
"createdBy": "maE2maBSv9fRVHjSlC31LFZSq6VhhZqC@clients",
"created": "2022-10-18T22:52:49.608Z",
"scoreCardId": 30001850,
"typeId": "1297f2db-687d-4ac8-bf9c-78b6df1b1281",
"id": "7e745b05-dbf2-46b6-a63c-d2433f6bc7d1",
"reviewedDate": "2022-10-18T22:52:49.608Z",
"updated": "2022-10-18T22:52:49.608Z",
"status": "completed"
}
],
"id": "9f89f287-465b-4b64-950a-2ede266d08ef",
"submissionPhaseId": "6950164f-3c5e-4bdc-abc8-22aaf5a1bd49",
"updated": "2022-10-18T22:52:21.055Z",
"fileType": "zip",
"memberId": 88778088,
"reviewSummation": [],
"v5ChallengeId": "8953c2c1-b53f-4dad-999f-2eb462daab65"
},
"challenge": {
"challengeTitle": "Justin Test Code Quality",
"challengeId": 30092076,
"submissionEndDate": "2023-03-06T22:56:00.000Z",
"prizes": [
100
],
"challengeCommunity": "develop",
"subTrack": "DEVELOP_MARATHON_MATCH",
"numberOfRegistrants": 1,
"numberOfSubmissions": 2,
"communities": {}
},
"reviewType": {
"name": "SonarQube Scan",
"id": "31bc7aff-0689-4e2a-826d-b254613e2d96",
"isActive": true
},
"review": {
"resource": "review",
"id": "467562f7-e33a-49ce-8b3f-a0a6064eee89",
"created": "2022-10-18T22:53:03.566Z",
"updated": "2022-10-18T22:53:03.566Z",
"createdBy": "MeaSS8yPG4VIer4XalVqOAYhnCNecGfN@clients",
"updatedBy": "MeaSS8yPG4VIer4XalVqOAYhnCNecGfN@clients",
"status": "completed",
"score": 0,
"reviewerId": "1d5c8a9a-54a5-4365-880d-5cf9ddeffa22",
"submissionId": "9f89f287-465b-4b64-950a-2ede266d08ef",
"scoreCardId": 143248286,
"metadata": {
"sonarQubeScan": {
"project_key": "9f89f287-465b-4b64-950a-2ede266d08ef",
"scan_time": "2022-10-18T22:53:03.314Z",
"measures": {
"code_smells": 4,
"bugs": 0,
"vulnerabilities": 0,
"security_hotspots": 1
},
"issues": {
"code_smells": [
{
"key": "AYPtTNatR6gJipFRedME",
"rule": "python:S3516",
"severity": "BLOCKER",
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/opt_params.py",
"project": "9f89f287-465b-4b64-950a-2ede266d08ef",
"line": 19,
"hash": "36999f0b7d2b4dd75cc52066ae8a601f",
"textRange": {
"startLine": 19,
"endLine": 19,
"startOffset": 4,
"endOffset": 8
},
"flows": [
{
"locations": [
{
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/opt_params.py",
"textRange": {
"startLine": 29,
"endLine": 29,
"startOffset": 8,
"endOffset": 16
},
"msg": "returned value"
}
]
},
{
"locations": [
{
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/opt_params.py",
"textRange": {
"startLine": 25,
"endLine": 25,
"startOffset": 8,
"endOffset": 16
},
"msg": "returned value"
}
]
}
],
"status": "OPEN",
"message": "Refactor this method to not always return the same value.",
"effort": "2min",
"debt": "2min",
"author": "",
"tags": [],
"creationDate": "2022-10-18T22:52:52+0000",
"updateDate": "2022-10-18T22:52:52+0000",
"type": "CODE_SMELL",
"scope": "MAIN",
"quickFixAvailable": false
},
{
"key": "AYPtTNa3R6gJipFRedMG",
"rule": "python:S6353",
"severity": "MINOR",
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/processing.py",
"project": "9f89f287-465b-4b64-950a-2ede266d08ef",
"line": 36,
"hash": "a57c341eca073a061d40a50fac4b814c",
"textRange": {
"startLine": 36,
"endLine": 36,
"startOffset": 53,
"endOffset": 66
},
"flows": [],
"status": "OPEN",
"message": "Use concise character class syntax '\\W' instead of '[^A-Za-z0-9_]'.",
"effort": "5min",
"debt": "5min",
"author": "",
"tags": [
"regex"
],
"creationDate": "2022-10-18T22:52:52+0000",
"updateDate": "2022-10-18T22:52:52+0000",
"type": "CODE_SMELL",
"scope": "MAIN",
"quickFixAvailable": false
},
{
"key": "AYPtTNa3R6gJipFRedMH",
"rule": "python:S125",
"severity": "MAJOR",
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/processing.py",
"project": "9f89f287-465b-4b64-950a-2ede266d08ef",
"line": 217,
"hash": "66465e92f66d84ccc0c494c5986067d0",
"textRange": {
"startLine": 217,
"endLine": 217,
"startOffset": 8,
"endOffset": 67
},
"flows": [],
"status": "OPEN",
"message": "Remove this commented out code.",
"effort": "5min",
"debt": "5min",
"author": "",
"tags": [
"unused"
],
"creationDate": "2022-10-18T22:52:52+0000",
"updateDate": "2022-10-18T22:52:52+0000",
"type": "CODE_SMELL",
"scope": "MAIN",
"quickFixAvailable": false
},
{
"key": "AYPtTNaaR6gJipFRedMD",
"rule": "python:S125",
"severity": "MAJOR",
"component": "9f89f287-465b-4b64-950a-2ede266d08ef:code/topcoder_cognitive_state/train.py",
"project": "9f89f287-465b-4b64-950a-2ede266d08ef",
"line": 187,
"hash": "4fb2e5771387597a845c9e763d2374f3",
"textRange": {
"startLine": 187,
"endLine": 187,
"startOffset": 12,
"endOffset": 72
},
"flows": [],
"status": "OPEN",
"message": "Remove this commented out code.",
"effort": "5min",
"debt": "5min",
"author": "",
"tags": [
"unused"
],
"creationDate": "2022-10-18T22:52:52+0000",
"updateDate": "2022-10-18T22:52:52+0000",
"type": "CODE_SMELL",
"scope": "MAIN",
"quickFixAvailable": false
}
],
"bugs": [],
"security_hotspots": [],
"vulnerabilities": []
}
}
},
"typeId": "31bc7aff-0689-4e2a-826d-b254613e2d96",
"reviewedDate": "2022-10-18T22:53:03.566Z"
}
},
"version": "v3",
"recipients": [
"jmgasper+mobile12@gmail.com"
],
"replyTo": ""
}
Metadata
Metadata
Assignees
Labels
No labels