Граф коммитов

226 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] 68ce7c3b53
Bump actions/upload-artifact from 2 to 3 (#2133)
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 2 to 3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](https://github.com/actions/upload-artifact/compare/v2...v3)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-03-02 15:03:58 +00:00
Robert 4d73e1a068 Remove getLocationOrdinal 2023-02-27 17:46:49 +00:00
Robert 6f5ac5df4f Introduce getAUse 2023-02-27 17:45:24 +00:00
Robert 4c880dfb19 Fix typos 2023-02-27 17:42:43 +00:00
Robert ced9f60949 Add documentation 2023-02-27 16:06:38 +00:00
Robert c0a65c994a Convert to alert only first usage, instead of all other usages 2023-02-27 15:54:38 +00:00
Robert ead1869a7e Use PackageJson class 2023-02-27 15:30:45 +00:00
Robert 70ae7284f3 Add unique-command-use.ql 2023-02-21 11:09:15 +00:00
Koen Vlaswinkel 3917b14a58 Merge remote-tracking branch 'origin/main' into koesie10/improve-test-setup 2023-02-13 09:21:39 +01:00
Koen Vlaswinkel 6b8467fc4e Update test script names 2023-02-08 13:14:00 +00:00
Koen Vlaswinkel 483d674da1 Upload sourcemaps as release asset
This will upload the sourcemaps produced as part of the release as a
release asset. This allows the sourcemaps to be downloaded and used
for decoding stack traces beyond the 90 day artifact limit of GitHub
Actions.
2023-02-07 11:06:03 +00:00
Koen Vlaswinkel 15382a02bc Use first-party action for creating release PR
Instead of using the third party `peter-evans/create-pull-request`
action for creating a PR for releases, we can use the already present
`./.github/actions/create-pr` action which is also used for the PR for
bumping CLI versions.
2023-02-01 14:39:00 +01:00
Shati Patel 2c19b32cb3
Minor polish to the "bump CLI" automation (#1996) 2023-01-20 18:42:20 +00:00
Taj c7f72c5aa9
Ensure cli using latest version from the supported_cli_versions.json (#1992) 2023-01-20 17:13:14 +00:00
Andrew Eisenberg bd74b410f6
Merge pull request #1973 from github/tjgurwara99/bump-cli-extension
Modifying the `bump-cli` workflow to append/replace version from `supported_cli_versions.json`
2023-01-18 09:54:47 -08:00
Taj f154b59b14 description for version 2023-01-18 11:10:44 +00:00
Taj 160ee22d1b combined version change and bump-cli workflow 2023-01-17 14:32:19 +00:00
Koen Vlaswinkel 7b5e5a6407
Merge pull request #1963 from github/koesie10/webpack-production-build
Use Webpack in production mode for releases
2023-01-17 09:49:59 +01:00
Taj bfa6780529 first pass at automating appending/prepending/removing version from supported cli versions 2023-01-16 22:06:15 +00:00
Koen Vlaswinkel b4bb1b6ad7 Upload sourcemaps for release builds
To allow us to reconstruct a stack trace, this will upload the
sourcemaps for all release builds.
2023-01-16 10:58:00 +01:00
Taj 7f05af942b
Merge branch 'github:main' into main 2023-01-13 14:00:41 +00:00
Taj 91dc39b465 added the `bump-cli.yml` file to trigger the workflow when changed 2023-01-13 12:58:28 +00:00
dependabot[bot] 7004e94b32
Bump actions/dependency-review-action from 1 to 3 (#1897) 2022-12-21 14:32:38 +00:00
dependabot[bot] 4bb3be9fd1
Bump peter-evans/create-pull-request from 3.4.1 to 4.2.3 (#1898) 2022-12-21 14:10:45 +00:00
Shati Patel f99e5587d0
Update dependencies in workflow files (#1896) 2022-12-21 13:54:49 +00:00
Taj 5a42b8b890 using secrets instead of actions context 2022-12-16 20:30:14 +00:00
Taj ec9078d616 permission conf and removed deprecated use of `set-output` 2022-12-16 17:09:39 +00:00
Taj 2723816a5a namespacing actions branch 2022-12-16 13:40:38 +00:00
Taj 54204167b6 separation of concern of creating a PR vs code to change the version 2022-12-16 13:12:19 +00:00
Taj 3f39af2840 workflow to automatically bump cli version if different from the current version 2022-12-14 00:01:36 +00:00
Shati Patel bce5d420d6
Bump CLI version to 2.11.6 for integration tests (#1869) 2022-12-13 18:15:49 +00:00
Koen Vlaswinkel e2e4879548 Merge remote-tracking branch 'origin/main' into koesie10/typecheck-everything 2022-12-12 10:14:50 +01:00
Angela P Wen 698b6ad0e4
Bump CLI version to 2.11.5 for integration tests (#1855) 2022-12-09 09:33:29 +00:00
Koen Vlaswinkel 8205b19125 Upgrade actions/upload-artifact to v3
This upgrades the action to remove a deprecation warning about Node 12.
2022-12-07 17:44:44 +01:00
Koen Vlaswinkel 2e7557ba09 Run type checking on all directories in CI
This commit adds a new step to the CI workflow that runs type checking
on all directories containing `tsconfig.json` files, using `find` and
`xargs`. Unfortunately, this does not work on Windows, so on Windows
it's not possible to run all of these type checks locally.
2022-12-07 16:50:19 +01:00
Koen Vlaswinkel 68de9f09e4 Disable fail-fast for CLI integration tests 2022-11-25 18:37:15 +01:00
Shati Patel f6613867d3
Bump CLI version to 2.11.4 for integration tests (#1794) 2022-11-25 11:40:28 +00:00
Koen Vlaswinkel 1c820b4812 Switch from `npm install` to `npm ci` in CI 2022-11-23 10:44:45 +01:00
Koen Vlaswinkel d215c7e2de Split workflow run into more jobs
The unit tests and linting is now run separately, which will hopefully
speed up the time it takes for the integration tests to complete.
2022-11-23 10:19:34 +01:00
Shati Patel 7e8fa5c5fe
Bump CLI version to 2.11.3 for integration tests (#1752) 2022-11-11 14:35:37 +00:00
Andrew Eisenberg 082d4b8c78 Uses newer actions versions and avoids `set-output`
`set-output` is deprecated:
https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
2022-11-07 16:20:29 -08:00
Angela P Wen 77c28e0453
v1.7.3 (#1675) 2022-10-28 23:11:00 +00:00
Andrew Eisenberg a3fafc8e59
Merge pull request #1611 from github/aeisenberg/fix-flakes
Test cleanups
2022-10-25 08:26:26 -07:00
Shati Patel 78a0a4e580 Bump CLI version to 2.11.2 for integration tests 2022-10-25 11:30:04 +01:00
Koen Vlaswinkel 104055e703 Add linter for scenario files
This adds a linter for JSON scenario files which will validate the JSON
files in the scenarios directory against the TypeScript types. It will
convert the TypeScript types to JSON schema to simplify this process.

Unfortunately, this will not currently allow adding scenarios with
failing requests since the types do not allow this. Rather than removing
this validation, we should fix the types. This can be done in a follow-up
PR.
2022-10-21 16:41:01 +02:00
Andrew Eisenberg ccdffc296c Merge branch 'main' into aeisenberg/fix-flakes 2022-10-20 17:07:39 -07:00
Andrew Eisenberg c85ef15d9e Test cleanups
- Avoid Installing `xvfb` since it is already available.
- Ensure `supportsNewQueryServer()` takes the CLI version into account
- Always run the new query server tests on v2.11.1 and later
- Avoid printing directory contents in `run-remote-query-tests`
- Run tests with `--disable-workspace-trust` to avoid a non-fatal error
  being thrown from the dialog service.
- Ensure the exit code of the extension host while running integration
  tests is the exit code of the actual process. Otherwise, there is
  a possibility that an error exit code is swallowed up and ignored.
- Remove a duplicate unhandledRejection handler.
- Handle Exit code 7 from windows. This appears to be a failure on
  exiting and unrelated to the tests.
- Fix handling of configuration in tests:
    1. It is not possible to update a configuration setting for internal
       settings like `codeql.canary`.
    2. On windows CI, updating configuration after global teardown. So,
       on tests avoid resetting test configuration when tests are over.

Also, I tried to remove all those pesky errors in the logs like:

> [2094:1017/235357.424002:ERROR:bus.cc(398)] Failed to connect to the bus: Could not parse server address: Unknown address type (examples of valid types are "tcp" and on UNIX "unix")

I was following advice from here, but I can't get it working.

- https://github.com/microsoft/vscode-test/issues/127
- https://github.com/electron/electron/issues/31981
2022-10-18 16:25:35 -07: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
Andrew Eisenberg 563489d1e0 Release prep v1.7.1
- Add missing changelog entry
- Update .nvmrc and workflow node versions to align with vscode's
  node version.
2022-10-12 10:56:30 -07:00
Angela P Wen 2104cb3d09
Bump CLI version to 2.11.1 for integration tests (#1583) 2022-10-11 14:01:06 -07:00
Andrew Eisenberg 48ced51035 Update tests to v2.11.0 2022-09-29 07:50:43 -07:00
shati-patel 8c0fee5a2e Bump CLI version to 2.10.5 for integration tests 2022-09-13 16:58:21 +01:00
shati-patel 7d2e4b6de4 Bump CLI version to 2.10.4 for integration tests 2022-08-31 13:52:40 +01:00
Dave Bartolomeo f99166d26c Update Node version to match vscode 2022-08-25 13:01:35 -04:00
Angela P Wen f2c72a67f6
Bump CLI version to 2.10.3 for integration tests (#1460) 2022-08-15 16:41:26 +00:00
Angela P Wen 26ccde9e7d Bump CLI version to 2.10.2 for integration tests 2022-08-03 10:30:55 +01:00
Angela P Wen 72858e341a
Bump CLI version to 2.10.1 for integration tests (#1442) 2022-07-20 11:55:43 +02:00
Shati Patel 3480aa5495
Remove older CLI versions from testing matrix (#1410) 2022-06-28 14:07:11 +00:00
Shati Patel a4d1ad57c7
Bump CLI version for integration tests (#1409) 2022-06-28 13:49:37 +00:00
Shati Patel 8ee744ef0c
Bump CLI version used in integration tests (#1394) 2022-06-20 12:02:53 +00:00
Angela P Wen 642f4788fb
Update tests to CLI v2.9.3 (#1370) 2022-05-31 17:44:43 +00:00
Andrew Eisenberg 6c376d8721 Add integration test for ensuring the graphql query succeeds 2022-05-18 14:20:24 -07:00
Shati Patel 50ec97ad91 Update CLI version used in tests 2022-05-16 17:43:06 +01:00
Shati Patel 12d6ea3966 Update CLI version used in tests 2022-05-05 18:17:18 +01:00
shati-patel 91b17f8fa6 Update CLI version used in tests 2022-04-26 14:36:48 +01:00
Andrew Eisenberg e8c5b27d92 Reenable publishing to open-vsx
The extension ms-vscode.test-adapter-converter is now available on
open-vsx, but under a different name.

Fixes https://github.com/github/vscode-codeql/issues/1085

I have verified that I can publish and install the extension by
manually publishing v1.6.4.
2022-04-07 13:58:16 -07:00
Andrew Eisenberg a3deec7875
Merge pull request #1280 from febuiles/patch-2
Update dependency-review.yml
2022-04-07 08:39:47 -07:00
Shati Patel dac5952e96
Bump CLI version used in integration tests 2022-04-07 15:30:41 +01:00
Federico Builes ada6fcb908 Try using workflow_dispatch. 2022-04-07 13:36:57 +02:00
Federico Builes 14608fe5f7
Update dependency-review.yml 2022-04-06 15:17:40 +02:00
Andrew Eisenberg 1ed50b3081 Run dependabot updates weekly
Daily is too noisy.
2022-03-30 11:45:39 -07:00
Shati Patel 4ff4e4827e Bump CLI version in integration tests 2022-03-30 12:03:16 +01:00
Andrew Eisenberg 29ae97aa82 Add actions to dependabot config 2022-03-25 13:18:46 -07:00
Andrew Eisenberg 9319d7e8ef Add dependabot configuration 2022-03-25 12:21:10 -07:00
Shati Patel bcf79354ee Bump CLI version in integration tests 2022-03-15 10:22:18 +00:00
Andrew Eisenberg 526d5c2c44
Apply suggestions from code review 2022-03-11 10:29:02 -08:00
Mitchell Rysavy e62de1ca22
Create dependency-review.yml 2022-03-10 14:48:06 -05:00
Andrew Eisenberg 59c3b1ba2f Disable the open-vsx-publish job
It is failing, blocked on #1085
2022-03-07 10:19:42 -08:00
Andrew Eisenberg c18f7953e7
Merge pull request #1111 from github/aeisenberg/graph-viewer
More work on the graph viewer
2022-03-02 07:52:49 -08:00
shati-patel c9ca1ee7b3
Bump CLI version in integration tests 2022-03-01 12:14:30 +01:00
Andrew Eisenberg 64b33b76cb Update node version in CI 2022-02-26 19:48:55 -08:00
Shati Patel 1d6fef9169 Update CLI version in integration tests 2022-02-15 15:50:51 +00:00
Henry Mercer 55c21888af Update Code Scanning workflow now that we no longer need `tools: latest`
The Actions VM image containing v2.7.6 of the CodeQL CLI has now fully
rolled out, so we no longer need to download the latest CodeQL bundle to
use this CLI and include this repo in the ML-powered queries beta.
2022-02-10 18:15:52 +00:00
Andrew Eisenberg 867ee530b1 Update CLI test version 2022-02-07 13:30:15 -08:00
Henry Mercer 17c31e1539 Run CodeQL analysis with latest CLI to opt into ML-powered queries beta 2022-01-28 14:14:00 +00:00
Shati Patel 4f8d6e310c Bump CLI version for integration tests 2022-01-24 11:56:10 +00:00
Shati Patel 894eb7046e Make step for maintainers only 2022-01-20 09:32:07 +00:00
shati-patel 3d6515e807 Update documentation step in PR template 2022-01-20 09:32:07 +00:00
Andrew Eisenberg 1dde5af591 Bump CLI version to run integration tests against 2022-01-18 08:41:00 -08:00
Dominik Bamberger b661b2be97
Update Docs ping in issue template (#1061)
* Update Docs ping in issue template

* Update .github/pull_request_template.md

Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com>

Co-authored-by: Aditya Sharad <6874315+adityasharad@users.noreply.github.com>
2021-12-22 08:59:25 -08:00
Andrew Eisenberg 73f1beac6a Bump cli version for integration tests 2021-12-09 13:50:41 -08:00
Shati Patel 2584971a07 Update CLI version in tests 2021-11-22 14:02:09 +00:00
Shati Patel 51ed2cd480 Delete outdated issue template
I don't think we need this issue template any more... The release process is in https://github.com/github/vscode-codeql/blob/main/CONTRIBUTING.md#releasing-write-access-required.
2021-11-19 17:47:23 +00:00
Shati Patel d579cd6541 Update CLI version
Version 2.7.1 was released this week
2021-11-17 13:30:34 +00:00
Andrew Eisenberg 0ef635bc68
Use the correct environment variable in integration tests (#994)
Also, fix documentation and launch configs to specify the correct and
complete set of environment variables we should be using.
2021-11-03 23:04:14 +00:00
Andrew Eisenberg 541367122e Add v2.7.0 CLI run tests against 2021-10-27 15:23:06 -07:00
Andrew Eisenberg f06c9abb35 Update integration test versions 2021-10-07 10:13:53 +01:00
Aditya Sharad df18ff3052
Update CLI tests to use 2.6.2 (#955)
* Actions: Update tests to use CLI 2.6.2

* Integration tests: Update to CLI 2.6.2
2021-09-21 22:44:01 +00:00
Andrew Eisenberg b95533e8c0 Remove support for 2.2.6 CLI
This is old enough that we don't need to support it.
2021-09-08 17:02:49 -04:00
Shati Patel 4c81cdec98 Update CLI version for integration tests 2021-09-08 13:02:57 +01:00