Skip to content

Commit 90a5c18

Browse files
committed
format ...?
1 parent 8a8f32e commit 90a5c18

File tree

4 files changed

+28
-27
lines changed

4 files changed

+28
-27
lines changed

build/benchmark.yml

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ parameters:
9393
displayName: boolean to describe if building ts-go
9494
type: boolean
9595
default: false
96-
96+
9797
variables:
9898
Codeql.Enabled: false
9999
skipComponentGovernanceDetection: true
@@ -146,19 +146,19 @@ jobs:
146146
- template: templates/cloneAndBuildBenchmarkRepo.yml # Sets $(BENCH_SCRIPTS), $(TSPERF_EXE)
147147

148148
- ${{ if eq(parameters.TS_GO, true) }}:
149-
- checkout: typescript-go
150-
path: typescript-go
151-
fetchTags: false
152-
fetchDepth: 2 # For PRs, we want the merge base to compare against.
153-
clean: true
154-
retryCountOnTaskFailure: 3
149+
- checkout: typescript-go
150+
path: typescript-go
151+
fetchTags: false
152+
fetchDepth: 2 # For PRs, we want the merge base to compare against.
153+
clean: true
154+
retryCountOnTaskFailure: 3
155155
- ${{ else }}:
156-
- checkout: TypeScript
157-
path: TypeScript
158-
fetchTags: false
159-
fetchDepth: 2 # For PRs, we want the merge base to compare against.
160-
clean: true
161-
retryCountOnTaskFailure: 3
156+
- checkout: TypeScript
157+
path: TypeScript
158+
fetchTags: false
159+
fetchDepth: 2 # For PRs, we want the merge base to compare against.
160+
clean: true
161+
retryCountOnTaskFailure: 3
162162

163163
# Ideally we'd just do this:
164164
# git config remote.origin.fetch "+refs/heads/*:refs/remotes/origin/*"
@@ -187,8 +187,6 @@ jobs:
187187
env:
188188
TSGOFLAG: $(TSGOFLAG)
189189
190-
191-
192190
- bash: |
193191
set -exo pipefail
194192
git switch --detach $(TSPERF_NEW_COMMIT)
@@ -255,10 +253,10 @@ jobs:
255253
displayName: Download built TypeScript
256254

257255
- ${{ if eq(parameters.TS_GO, true) }}:
258-
- bash: |
259-
set -exo pipefail
260-
find $(BUILT_TYPESCRIPT_DIR) -name 'tsgo' -type f -exec chmod +x {} +
261-
displayName: Make tsgo executable
256+
- bash: |
257+
set -exo pipefail
258+
find $(BUILT_TYPESCRIPT_DIR) -name 'tsgo' -type f -exec chmod +x {} +
259+
displayName: Make tsgo executable
262260
263261
# This is provided by the agent.
264262
- bash: |

scripts/src/__tests__/setupPipeline.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ test.each(inputs)("setupPipeline input=%s", async input => {
5757
isPr: !baselining,
5858
shouldLog: false,
5959
gitParseRev: fakeGitRevParse,
60-
tsgo: false
60+
tsgo: false,
6161
});
6262
}
6363
catch (e) {

scripts/src/buildTypeScript.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ const outputDir = args.outputDir;
2121
assert(outputDir, "Expected output path as first argument");
2222

2323
const packageJson = await fs.promises.readFile("package.json", "utf8");
24-
assert(JSON.parse(packageJson).name === "typescript"|| JSON.parse(packageJson).name === "typescript-go", "Expected to be run from the TypeScript repo");
24+
assert(
25+
JSON.parse(packageJson).name === "typescript" || JSON.parse(packageJson).name === "typescript-go",
26+
"Expected to be run from the TypeScript repo",
27+
);
2528

2629
await $`mkdir -p ${path.dirname(outputDir)}`;
2730

ts-perf/packages/commands/src/benchmark/measure.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function resolveBuiltPath(builtDir: string, name: string): string {
6464
return nativePath;
6565
}
6666
}
67-
return ""
67+
return "";
6868
}
6969

7070
export async function measureAndRunScenarios({ kind, options }: TSOptions, host: HostContext): Promise<Benchmark> {
@@ -346,7 +346,7 @@ async function runTSServerScenario(
346346
readline.createInterface({ input: childProcess.stdout, terminal: false }).on("line", line => {
347347
context.trace(`> ${line}`);
348348
const m = tryParseDiagnostic(line);
349-
context.info(line)
349+
context.info(line);
350350
if (m) {
351351
values[m.name] = (values[m.name] ?? 0) + m.value;
352352
valueKeys.add(m.name);
@@ -410,10 +410,10 @@ async function runLSPScenario(
410410
// Use the host as the runner for JS-based servers; for native binaries, run directly
411411
const lspHost = nativeBin ? Host.current : (host.executableFile ? host : Host.current);
412412
const argsBuilder = new CommandLineArgumentsBuilder(expansion, lspHost, /*exposeGc*/ false)
413-
.add(path.join(__dirname, "measurelsp.js"))
414-
.add("--lsp", lspServer)
415-
.add("--commands", scenario.configFile)
416-
.add("--suite", options.suiteDir)
413+
.add(path.join(__dirname, "measurelsp.js"))
414+
.add("--lsp", lspServer)
415+
.add("--commands", scenario.configFile)
416+
.add("--suite", options.suiteDir);
417417
if (options.extended) {
418418
argsBuilder.add("--extended");
419419
}

0 commit comments

Comments
 (0)