Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Attach by Process ID",
"processId": "${command:PickProcess}",
"request": "attach",
"skipFiles": [
"<node_internals>/**"
],
"type": "node"
},
{
"type": "node",
"request": "launch",
Expand Down Expand Up @@ -115,6 +124,32 @@
"artifacts",
"false"
]
}
},
{
"type": "node",
"request": "launch",
"name": "Launch LSP checkGithubRepos",
"skipFiles": [
"<node_internals>/**"
],
"program": "${workspaceFolder}/dist/checkGithubRepos.js",
"sourceMaps": true,
"outFiles": [
"${workspaceFolder}/dist/**/*.js"
],
"args": [
"lsp",
"0",
"latest",
"./artifacts/repos.json",
"1",
"1",
"RepoResults",
"true",
"n/a",
"false"
],
"preLaunchTask": "npm: build"
},
]
}
23 changes: 23 additions & 0 deletions azure-pipelines-gitTests-lsp-ts.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# schedules:
# - cron: "0 19 * * Sun" # time is in UTC
# displayName: Sunday overnight run
# always: true
# branches:
# include:
# - main

pr: none
trigger: none

pool:
name: TypeScript-1ES-Large
demands:
- ImageOverride -equals azure-linux-3

extends:
template: azure-pipelines-gitTests-template.yml
parameters:
ENTRYPOINT: lsp
OLD_VERSION: '0'
NEW_VERSION: latest
LANGUAGE: TypeScript
Comment on lines +20 to +23
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are there parameters missing to be compatible with the bot? Or are we not doing the bot for now?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For now, I haven't updated the code to handle comparing versions. I don't know how the fuzzer is going to behave, so I wanted to get a sense of it before enabling the whole comparison of versions, and I also need to set up the regular compiler entry point for tsgo because that's probably what would be most useful. If you think I'm being overly cautious, I could set up the whole thing here, but I'm thinking e.g. for the compiler entry point we'll have deprecations to deal with.

6 changes: 3 additions & 3 deletions azure-pipelines-gitTests-template.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
retryCountOnTaskFailure: 3
- task: UseNode@1
inputs:
version: '20.x'
version: '22.x'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would be great to make this Node 24 in a follow-up or something, but not critical.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why is this changing from 20?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It'll stop being LTS pretty soon, no?

displayName: 'Install Node.js'
- script: |
npm ci
Expand All @@ -77,7 +77,7 @@ jobs:
artifact: RepoList
- task: UseNode@1
inputs:
version: '20.x'
version: '22.x'
displayName: 'Install Node.js'
- script: |
df -h
Expand Down Expand Up @@ -118,7 +118,7 @@ jobs:
- download: current
- task: UseNode@1
inputs:
version: '20.x'
version: '22.x'
displayName: 'Install Node.js'
- script: |
npm ci
Expand Down
72 changes: 70 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@
"json5": "^2.2.3",
"markdown-escape": "^2.0.0",
"random-seed": "^0.3.0",
"simple-git": "^3.22.0"
"simple-git": "^3.22.0",
"vscode-jsonrpc": "^8.2.1",
"vscode-languageserver-protocol": "^3.17.5"
},
"devDependencies": {
"@types/jest": "^29.5.12",
Expand Down
8 changes: 4 additions & 4 deletions src/checkGithubRepos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,16 +3,16 @@ import { mainAsync, reportError, TsEntrypoint } from "./main";

const { argv } = process;

if (argv.length !== 11) {
console.error(`Usage: ${path.basename(argv[0])} ${path.basename(argv[1])} <ts_entrypoint> <old_ts_npm_version> <new_ts_npm_version> <repo_list_path> <worker_count> <worker_number> <result_dir_name> <diagnostic_output> <prng_seed>`);
if (argv.length < 11) {
console.error(`Usage: ${path.basename(argv[0])} ${path.basename(argv[1])} <ts_entrypoint> <old_ts_npm_version> <new_ts_npm_version> <repo_list_path> <worker_count> <worker_number> <result_dir_name> <diagnostic_output> <prng_seed> <use_tempfs>?`);
process.exit(-1);
}

const [,, entrypoint, oldTsNpmVersion, newTsNpmVersion, repoListPath, workerCount, workerNumber, resultDirName, diagnosticOutput, prngSeed] = argv;
const [,, entrypoint, oldTsNpmVersion, newTsNpmVersion, repoListPath, workerCount, workerNumber, resultDirName, diagnosticOutput, prngSeed, tmpfs] = argv;

mainAsync({
testType: "github",
tmpfs: true,
tmpfs: tmpfs && tmpfs.toLowerCase() === "false" ? false : true,
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If I ran this with true on WSL, I got a "catastrophic failure" error.

Copy link
Member

@DanielRosenwasser DanielRosenwasser Feb 11, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, no idea on this one. @jakebailey or @sandersn might have ideas, I don't know anything about tmpfs.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't see how this would happen, if you don't use tmpfs it goes mega slow. Where did it give that error?

Maybe you're just ooming?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I can try and reproduce it again, but pretty sure the error was caused by one of the mount commands that we run when tmpfs is true.

entrypoint: entrypoint as TsEntrypoint,
diagnosticOutput: diagnosticOutput.toLowerCase() === "true",
buildWithNewWhenOldFails: false,
Expand Down
Loading
Loading