Skip to content

Commit 150cdc1

Browse files
authored
fix(studio): isolate release server publisher (#827)
1 parent f31a9bd commit 150cdc1

3 files changed

Lines changed: 589 additions & 10 deletions

File tree

‎frontend/service/studio_release_server/builder.py‎

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -534,8 +534,7 @@ def _run_publisher(
534534
credentials = resolve_credentials()
535535
command = [
536536
sys.executable,
537-
"-m",
538-
"veadk.cli.studio_release",
537+
str(Path(__file__).with_name("publisher.py")),
539538
"--source-root",
540539
str(source_root),
541540
"--output-dir",
@@ -555,8 +554,9 @@ def _run_publisher(
555554
command.extend(("--changelog", item))
556555
if frontend_assets is not None:
557556
command.extend(("--frontend-assets", str(frontend_assets)))
558-
if dependency_wheels is not None:
559-
command.extend(("--dependency-wheels", str(dependency_wheels)))
557+
if dependency_wheels is None:
558+
raise RuntimeError("Prepared Studio dependency wheels are missing.")
559+
command.extend(("--dependency-wheels", str(dependency_wheels)))
560560
env = os.environ.copy()
561561
path_entries = [str(uv.parent)]
562562
if node_bin is not None:
@@ -565,9 +565,6 @@ def _run_publisher(
565565
env.update(
566566
{
567567
"PATH": os.pathsep.join(path_entries),
568-
"PYTHONPATH": os.pathsep.join(
569-
(str(source_root), env.get("PYTHONPATH", ""))
570-
),
571568
"VOLCENGINE_ACCESS_KEY": credentials.access_key,
572569
"VOLCENGINE_SECRET_KEY": credentials.secret_key,
573570
"VOLCENGINE_SESSION_TOKEN": credentials.session_token,

0 commit comments

Comments
 (0)