Skip to content

Commit 81924af

Browse files
authored
Don't download artifacts for repos with no results in MRVA (#2736)
* Don't download artifacts for repos with no results * Remove getVariantAnalysisRepoResult requests for repos with no results * Run fix-scenario-file-numbering for mrva-problem-query-success scenario * Update CHANGELOG
1 parent 5fc3424 commit 81924af

18 files changed

+22
-39
lines changed

extensions/ql-vscode/CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
## [UNRELEASED]
44

5+
- When running variant analyses, don't download artifacts for repositories with no results. [#2736](https://github.com/github/vscode-codeql/pull/2736)
56
- Group the extension settings, so that they're easier to find in the Settings UI. [#2706](https://github.com/github/vscode-codeql/pull/2706)
67

78
## 1.8.10 - 15 August 2023

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/24-getVariantAnalysis.json renamed to extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/15-getVariantAnalysis.json

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"site_admin": true
9595
},
9696
"query_language": "javascript",
97-
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124815Z&X-Amz-Expires=3600&X-Amz-Signature=0f42201f27ad08ac1fa9caccf5005d9dac7bdcae33e88e33d62e2fc337194164&X-Amz-SignedHeaders=host",
97+
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124659Z&X-Amz-Expires=3600&X-Amz-Signature=b791ede467cd1783d31d7ee148763d0d4f9eb7abad7506ef9c25017c94aaa1df&X-Amz-SignedHeaders=host",
9898
"created_at": "2022-10-26T12:45:12Z",
9999
"updated_at": "2022-10-26T12:45:15Z",
100100
"actions_workflow_run_id": 3329095282,
@@ -122,9 +122,7 @@
122122
"stargazers_count": 192,
123123
"updated_at": "2022-03-17T08:34:30Z"
124124
},
125-
"analysis_status": "succeeded",
126-
"artifact_size_in_bytes": 156706,
127-
"result_count": 8
125+
"analysis_status": "in_progress"
128126
},
129127
{
130128
"repository": {
@@ -148,9 +146,7 @@
148146
"stargazers_count": 19033,
149147
"updated_at": "2022-11-02T10:25:24Z"
150148
},
151-
"analysis_status": "succeeded",
152-
"artifact_size_in_bytes": 710,
153-
"result_count": 0
149+
"analysis_status": "in_progress"
154150
},
155151
{
156152
"repository": {

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/15-getVariantAnalysisRepoResult.json

Lines changed: 0 additions & 11 deletions
This file was deleted.

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/16-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"site_admin": true
9595
},
9696
"query_language": "javascript",
97-
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124659Z&X-Amz-Expires=3600&X-Amz-Signature=b791ede467cd1783d31d7ee148763d0d4f9eb7abad7506ef9c25017c94aaa1df&X-Amz-SignedHeaders=host",
97+
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124705Z&X-Amz-Expires=3600&X-Amz-Signature=dae9aa87c393b62ad6f84fd280c731fcd8e4551917920bf978eac5dd6102caec&X-Amz-SignedHeaders=host",
9898
"created_at": "2022-10-26T12:45:12Z",
9999
"updated_at": "2022-10-26T12:45:15Z",
100100
"actions_workflow_run_id": 3329095282,

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/17-getVariantAnalysis.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"site_admin": true
9595
},
9696
"query_language": "javascript",
97-
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124705Z&X-Amz-Expires=3600&X-Amz-Signature=dae9aa87c393b62ad6f84fd280c731fcd8e4551917920bf978eac5dd6102caec&X-Amz-SignedHeaders=host",
97+
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124726Z&X-Amz-Expires=3600&X-Amz-Signature=6698289315bd8d8378a17784ba0be9955e6e9161497137c4ccb29b1d2a3f3587&X-Amz-SignedHeaders=host",
9898
"created_at": "2022-10-26T12:45:12Z",
9999
"updated_at": "2022-10-26T12:45:15Z",
100100
"actions_workflow_run_id": 3329095282,
@@ -122,7 +122,9 @@
122122
"stargazers_count": 192,
123123
"updated_at": "2022-03-17T08:34:30Z"
124124
},
125-
"analysis_status": "in_progress"
125+
"analysis_status": "succeeded",
126+
"artifact_size_in_bytes": 156706,
127+
"result_count": 8
126128
},
127129
{
128130
"repository": {

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/19-getVariantAnalysisRepo.json renamed to extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/18-getVariantAnalysisRepo.json

File renamed without changes.

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/20-getVariantAnalysisRepoResult.body.zip renamed to extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/19-getVariantAnalysisRepoResult.body.zip

File renamed without changes.

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/20-getVariantAnalysisRepoResult.json renamed to extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/19-getVariantAnalysisRepoResult.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
},
66
"response": {
77
"status": 200,
8-
"body": "file:20-getVariantAnalysisRepoResult.body.zip",
8+
"body": "file:19-getVariantAnalysisRepoResult.body.zip",
99
"contentType": "application/zip"
1010
}
1111
}

extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/18-getVariantAnalysis.json renamed to extensions/ql-vscode/src/common/mock-gh-api/scenarios/mrva-problem-query-success/20-getVariantAnalysis.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@
9494
"site_admin": true
9595
},
9696
"query_language": "javascript",
97-
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124726Z&X-Amz-Expires=3600&X-Amz-Signature=6698289315bd8d8378a17784ba0be9955e6e9161497137c4ccb29b1d2a3f3587&X-Amz-SignedHeaders=host",
97+
"query_pack_url": "https://objects-origin.githubusercontent.com/codeql-query-console/variant_analyses/146/query_pack?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=queryconsoleprod%2F20221026%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date=20221026T124732Z&X-Amz-Expires=3600&X-Amz-Signature=ad791eb1a754f473a50454616e9bd04663dfed60a5c84f2c61f27ced47ee25d0&X-Amz-SignedHeaders=host",
9898
"created_at": "2022-10-26T12:45:12Z",
9999
"updated_at": "2022-10-26T12:45:15Z",
100100
"actions_workflow_run_id": 3329095282,

0 commit comments

Comments
 (0)