Elena Tanasoiu
38f22b65ef
Merge pull request #1635 from github/elenatanasoiu/update-readme
...
Clarify the roles of different types of tests
2022-10-20 11:28:23 +01:00
Shati Patel
4eecdbfada
Merge pull request #1622 from github/shati-patel/open-query-dir
...
Implement "open query directory" for variant analysis history items
2022-10-20 10:30:03 +01:00
Elena Tanasoiu
e5dcffc04b
Clarify the roles of different types of tests
...
And also clean up the explanation on how to run each type of test.
2022-10-19 18:38:27 +01:00
dependabot[bot]
0ce25eef63
Bump ansi-regex from 4.1.0 to 5.0.1 in /extensions/ql-vscode ( #1613 )
...
Bumps [ansi-regex](https://github.com/chalk/ansi-regex ) from 4.1.0 to 5.0.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases )
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v5.0.1 )
---
updated-dependencies:
- dependency-name: ansi-regex
dependency-type: indirect
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 08:49:22 -07:00
dependabot[bot]
2ca4fb052e
Bump husky from 4.3.8 to 8.0.1 in /extensions/ql-vscode ( #1555 )
...
Bumps [husky](https://github.com/typicode/husky ) from 4.3.8 to 8.0.1.
- [Release notes](https://github.com/typicode/husky/releases )
- [Commits](https://github.com/typicode/husky/compare/v4.3.8...v8.0.1 )
---
updated-dependencies:
- dependency-name: husky
dependency-type: direct:development
update-type: version-update:semver-major
...
Signed-off-by: dependabot[bot] <support@github.com >
Signed-off-by: dependabot[bot] <support@github.com >
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-10-19 08:48:35 -07:00
shati-patel
dab67f148e
Implement "open query directory" for variant analysis history items
2022-10-19 16:26:34 +01:00
Shati Patel
57ee00efd0
Merge pull request #1631 from github/shati-patel/storage-dir
...
Get `variantAnalysisStoragePath` from the variant analysis manager + create `timestamp` file
2022-10-19 16:17:54 +01:00
Koen Vlaswinkel
4bc799246f
Merge pull request #1619 from github/koesie10/vscode-light-theme
...
Add VSCode light theme to Storybook
2022-10-19 17:15:03 +02:00
Charis Kyriakou
6a7856052c
Add mock GitHub API config listener ( #1632 )
2022-10-19 15:01:29 +00:00
Koen Vlaswinkel
fe31730dd1
Merge pull request #1633 from github/koesie10/add-missing-mock-type
...
Add missing request type for mock GitHub API
2022-10-19 16:59:38 +02:00
shati-patel
cc74533267
Increase timeout so tests are less flaky
2022-10-19 15:40:13 +01:00
shati-patel
43de90f03d
Pass variantAnalysisStorageLocation to the results manager
2022-10-19 15:26:16 +01:00
Koen Vlaswinkel
9624858335
Add missing request type for mock GitHub API
...
We were still missing the `SubmitVariantAnalysisRequest` type and a type
to represent the union of all request types. This adds both of them.
2022-10-19 16:25:32 +02:00
shati-patel
6b7ebf543c
Create timestamp inside onVariantAnalysisSubmitted
2022-10-19 14:43:02 +01:00
Charis Kyriakou
7e8782723d
Add mock GitHub API server setting ( #1630 )
2022-10-19 13:23:39 +00:00
shati-patel
55fb0b7078
Create timestamp file in variant analysis storage directory
2022-10-19 13:12:20 +01:00
Charis Kyriakou
424520613e
Initial setup around GitHub API mock server ( #1629 )
2022-10-19 12:05:28 +00:00
shati-patel
304a96cb25
Expose variant analysis storage location in variant analysis manager
2022-10-19 13:05:25 +01:00
Charis Kyriakou
baf1b70460
Add GitHub API requests that will be mocked ( #1626 )
2022-10-19 11:38:41 +01:00
shati-patel
986749b40f
Open query text as a .ql file
...
This fixes a minor bug (introduced in https://github.com/github/vscode-codeql/pull/1115/files#diff-cf43a74569f5e6eea483a9178f5de8fc372f8ca652017d3f1451dd2640876874L603 ) where we accidentally removed the `.ql` file extension. I've hard-coded it here, and tested it works for the local, remote, and variant-analysis cases.
2022-10-18 17:10:08 +01:00
shati-patel
9c2821a418
Unit tests for getQueryText
2022-10-18 17:10:08 +01:00
shati-patel
93a6f50c0e
Create query history items at start of test
2022-10-18 17:10:08 +01:00
shati-patel
0413b01990
Implement getQueryText for variant analysis items
...
Also moved this to the `query-history-info` helper file
2022-10-18 17:10:08 +01:00
Koen Vlaswinkel
157a5d6afd
Add VSCode light theme to Storybook
...
This adds a documented way to change the theme in Storybook from the
VSCode Dark+ theme to the VSCode Light+ theme. It requires multiple
changes to two files, but these are all quite simple and it has been
documented on the "Overview" page.
2022-10-18 16:25:53 +02:00
Shati Patel
6b27a4209a
Merge pull request #1614 from github/shati-patel/query-history-get-id
...
Get query ID for query history items (incl `VariantAnalysisHistoryItem`)
2022-10-18 12:40:04 +01:00
shati-patel
1bb68d65f9
Merge branch 'main' into shati-patel/query-history-get-id
2022-10-18 11:59:22 +01:00
shati-patel
fd13c35b5d
Rename queryId -> historyItemId
2022-10-18 11:58:55 +01:00
shati-patel
77deea77fc
Rename: queryId -> historyItemId
2022-10-18 11:39:16 +01:00
shati-patel
2eaa923019
Rename function: getQueryId -> getQueryHistoryItemId
2022-10-18 11:31:46 +01:00
shati-patel
ad9b46e494
Use a generated queryId on VariantAnalysisHistoryItem
2022-10-18 11:29:17 +01:00
Elena Tanasoiu
fa4766fe91
Merge pull request #1599 from github/elenatanasoiu/add-batching-to-download-take-two
...
Download variant analysis results in batches - take two
2022-10-18 10:32:18 +01:00
Shati Patel
28eb9ead01
Merge pull request #1606 from github/shati-patel/query-history-info-tests
...
Add unit tests for `query-history-info`
2022-10-18 10:17:33 +01:00
Shati Patel
0013a0f1b2
Clean-up: Remove unsupported CLI version from testing matrix
...
We officially only support the previous 4 minor versions of the CLI, so v2.6.3 can go.
2022-10-18 09:50:13 +01:00
Elena Tanasoiu
25b71e8651
Merge branch 'main' into elenatanasoiu/add-batching-to-download-take-two
2022-10-17 16:20:31 +01:00
Elena Tanasoiu
31a97897c8
Use fewer async/awaits
2022-10-17 16:13:46 +01:00
Elena Tanasoiu
bf7509e3df
Add test to check results are being downloaded
...
Previously we were only checking whether we're triggering the download
command in the extension.
Now we're mocking `autoDownloadVariantAnalysisResult` on the
variantAnalysisManager and checking that it's being called for all repos
that have available results.
2022-10-17 15:58:01 +01:00
Charis Kyriakou
4fd9b54c58
Remove debug log entry ( #1616 )
2022-10-17 14:52:26 +00:00
Elena Tanasoiu
7d2bae1f1b
Remove extra parentheses
2022-10-17 14:55:09 +01:00
Elena Tanasoiu
1f4e1f27ae
Make queue private and one-line initiatialization for it
2022-10-17 14:51:06 +01:00
Elena Tanasoiu
3a1800319a
Move guts for adding task to a queue into a method
...
So that the extension command doesn't need to know how to push to a queue.
2022-10-17 14:51:06 +01:00
Elena Tanasoiu
f2fe1063d9
Rename maxConcurrentTasks to maxConcurrentDownloads
2022-10-17 14:51:06 +01:00
Elena Tanasoiu
7e1b35eae4
Don't use Promise.all
...
Since we're only adding one task at a time.
2022-10-17 14:51:05 +01:00
Elena Tanasoiu
3283b68ff9
Download results in batches
...
This makes use of the p-queue package to download our variant analysis
results in batches of 3 at a time.
2022-10-17 14:51:05 +01:00
Elena Tanasoiu
aaf21d35f6
Install p-queue
2022-10-17 14:51:05 +01:00
Elena Tanasoiu
67a6ab5c8e
Test that we only download results once per repo
...
To make us confident that we're not repeatedly downloading results.
2022-10-17 14:51:05 +01:00
Elena Tanasoiu
64994d7c03
Extract downloadVariantAnalysisResults method
...
In the next commit we'll start changing this method to support batching.
2022-10-17 14:51:05 +01:00
Elena Tanasoiu
362094b8de
Extract getReposToDownload method
2022-10-17 14:51:04 +01:00
Elena Tanasoiu
e791e77ef9
Extract shouldDownload method
2022-10-17 14:51:04 +01:00
Elena Tanasoiu
0009114f7b
Extract scheduleForDownload method
...
Before we make any changes, let's extract some of the monitor code into
smaller methods.
Since we have test coverage, we're able to do this quite comfortably.
2022-10-17 14:51:04 +01:00
aeisenberg
3b644fea7b
Bump version to v1.7.3
2022-10-17 10:03:25 +01:00