Skip to content

Commit c4ee1c5

Browse files
authored
feat: estimate inference throughput for models on cluster GPUs (#311)
Signed-off-by: Suraj Deshmukh <suraj.deshmukh@microsoft.com>
1 parent 70debf0 commit c4ee1c5

36 files changed

Lines changed: 3139 additions & 61 deletions

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,5 +66,6 @@ providers/*/bin/
6666
frontend/test-results/
6767
frontend/playwright-report/
6868
frontend/blob-report/
69+
.playwright-mcp/
6970

70-
docs/ignore
71+
docs/ignore

backend/eslint.config.mjs

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
// Flat ESLint config (ESLint v9+). Replaces the old .eslintrc + `--ext` flow,
2+
// which ESLint v9 removed. TypeScript is linted via the typescript-eslint
3+
// plugin's `flat/recommended` preset, which bundles the parser, the plugin, and
4+
// a non-type-checked rule set (fast, low false-positive noise).
5+
import tseslint from '@typescript-eslint/eslint-plugin';
6+
import tsparser from '@typescript-eslint/parser';
7+
8+
export default [
9+
// Only application source is linted (mirrors the previous `eslint src` scope).
10+
{
11+
ignores: ['dist/**', 'node_modules/**', '*.config.*', 'coverage/**'],
12+
},
13+
14+
// typescript-eslint's flat/recommended turns off core rules that clash with
15+
// TS (e.g. no-undef), wires up the parser, and enables the recommended rules.
16+
...tseslint.configs['flat/recommended'],
17+
18+
{
19+
files: ['src/**/*.ts'],
20+
languageOptions: {
21+
parser: tsparser,
22+
ecmaVersion: 'latest',
23+
sourceType: 'module',
24+
},
25+
rules: {
26+
// Pre-existing debt: this codebase predates any ESLint config (the v8→v10
27+
// bump first introduced one), so `recommended` surfaces ~120 historical
28+
// violations of these two rules — none in newly-written code. Demote them
29+
// to warnings so lint is green and CI-usable today, while still surfacing
30+
// the backlog for incremental burndown. Promote back to "error" once the
31+
// existing hits are cleared.
32+
'@typescript-eslint/no-explicit-any': 'warn',
33+
'@typescript-eslint/no-unused-vars': 'warn',
34+
},
35+
},
36+
];

backend/package.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"compile:darwin-x64": "bun run scripts/compile.ts --target=bun-darwin-x64 --outfile=airunway-darwin-x64",
1616
"compile:darwin-arm64": "bun run scripts/compile.ts --target=bun-darwin-arm64 --outfile=airunway-darwin-arm64",
1717
"compile:windows-x64": "bun run scripts/compile.ts --target=bun-windows-x64 --outfile=airunway-windows-x64.exe",
18-
"lint": "eslint src --ext .ts",
18+
"lint": "eslint src",
1919
"test": "bun test",
2020
"test:watch": "bun test --watch",
2121
"test:coverage": "bun test --coverage"
@@ -33,6 +33,8 @@
3333
"@types/bun": "latest",
3434
"@types/js-yaml": "^4.0.9",
3535
"@types/node": "^25.9.1",
36+
"@typescript-eslint/eslint-plugin": "^8.60.0",
37+
"@typescript-eslint/parser": "^8.60.0",
3638
"eslint": "^10.4.0",
3739
"pino-pretty": "^13.1.3",
3840
"typescript": "6.0.3"

0 commit comments

Comments
 (0)