Skip to content

Commit a530332

Browse files
devyubinYaminyamclaude
authored
fix: resolve scie build FileNotFoundError for gateway in TUI installer (#10420)
Co-authored-by: Sion Kang <siontama@gmail.com> Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>
1 parent 8998d25 commit a530332

4 files changed

Lines changed: 9 additions & 8 deletions

File tree

changes/10420.fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Resolve `FileNotFoundError` for gateway config in TUI installer by adding symlink to `gateway.config.ts` and fixing duplicate debug field in webserver template

src/ai/backend/install/BUILD

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ resources(
8686
"configs/**/*.toml",
8787
"configs/**/*.yaml",
8888
"configs/**/*.json",
89+
"configs/**/*.ts",
8990
"fixtures/**/*.json",
9091
],
9192
)
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../../../../../configs/graphql/gateway.config.ts

src/ai/backend/install/context.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -354,17 +354,15 @@ def _write_supergraph() -> None:
354354
self.log_header(f"Wrote supergraph schema to {output_path}")
355355

356356
base_path = self.install_info.base_path
357-
project_root = Path(__file__).resolve().parents[4]
358357

359-
src_gateway = project_root / "configs/graphql/gateway.config.ts"
360-
dst_gateway = base_path / "gateway.config.ts"
361-
shutil.copy2(src_gateway, dst_gateway)
362-
self.log_header(f"Copied {src_gateway} -> {dst_gateway}")
358+
with self.resource_path("ai.backend.install.configs", "gateway.config.ts") as src_gateway:
359+
dst_gateway = base_path / "gateway.config.ts"
360+
shutil.copy(src_gateway, dst_gateway)
361+
self.log_header(f"Copied gateway.config.ts -> {dst_gateway}")
363362

364-
src_supergraph = project_root / "docs/manager/graphql-reference/supergraph.graphql"
365363
dst_supergraph = base_path / "supergraph.graphql"
366-
shutil.copy2(src_supergraph, dst_supergraph)
367-
self.log_header(f"Copied {src_supergraph} -> {dst_supergraph}")
364+
shutil.copy(Path(output_path), dst_supergraph)
365+
self.log_header(f"Copied supergraph.graphql -> {dst_supergraph}")
368366

369367
dst_compose_path = self.copy_config("docker-compose.yml")
370368
self.copy_config("prometheus.yaml")

0 commit comments

Comments
 (0)