Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Security & Code Review -- PR #6754SummaryThis PR replaces Findings[HIGH] Stray worktree lockfile committedFile: This is a pnpm worktree artifact that should not be in the PR. It inflates the PR by 32K+ lines and would pollute the repository if merged. This file must be removed before merge. [MEDIUM] Incomplete i18n migration for
|
| Check | Status |
|---|---|
YAML parsing safety (yaml.parse vs unsafe yaml.load) |
PASS -- uses safe parse() from yaml npm v2.x |
| Injection vulnerabilities (SQL, Command, XSS) | PASS -- no injection vectors found |
| Hardcoded secrets/API keys | PASS -- none found |
eval() / dangerouslySetInnerHTML |
PASS -- not used |
| Input validation at boundaries | PASS -- parse errors are caught and surfaced to user |
| CORS / security headers | N/A -- no server-side changes |
Required Actions Before Merge
- Remove
pnpm-lock.worktree-agent-ad7bd5f1.yamlfrom the PR - Update
ServiceDefinitionRequiredi18n key in the 16 remaining language files
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 8.65% (-0% 🔻) |
1738/20102 |
| 🔴 | Branches | 7.85% (-0% 🔻) |
1104/14068 |
| 🔴 | Functions | 5.19% | 283/5452 |
| 🔴 | Lines | 8.35% (-0% 🔻) |
1630/19521 |
Test suite run success
847 tests passing in 38 suites.
Report generated by 🧪jest coverage report action from e87750e
3350c75 to
c306e4c
Compare
There was a problem hiding this comment.
Pull request overview
Updates the model-serving “definition file” workflow by replacing the legacy service-definition.toml artifact with deployment-config.yaml across UI logic, schema validation, E2E fixtures, and localized user-facing messages.
Changes:
- Switch service-definition parsing in the service launch flow from TOML to YAML and update required filename checks to
deployment-config.yaml. - Add a JSON Schema for
deployment-config.yamland wire it into the VFolder text editor validation map. - Update multiple locale JSONs and E2E fixtures to reflect the new filename and YAML content format.
Reviewed changes
Copilot reviewed 26 out of 26 changed files in this pull request and generated 18 comments.
Show a summary per file
| File | Description |
|---|---|
| resources/i18n/en.json | Update user-facing messages to reference deployment-config.yaml instead of service-definition.toml. |
| resources/i18n/zh-TW.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/zh-CN.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/vi.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/tr.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/th.json | Update related messages to reference deployment-config.yaml. |
| resources/i18n/ru.json | Update related messages to reference deployment-config.yaml. |
| resources/i18n/pt.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/pt-BR.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/pl.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/ms.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/mn.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/ko.json | Update related messages to reference deployment-config.yaml. |
| resources/i18n/ja.json | Update related messages to reference deployment-config.yaml. |
| resources/i18n/it.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/id.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/fr.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/fi.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/es.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/de.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/i18n/el.json | Update related messages; still has one remaining *.toml reference (see comments). |
| resources/deployment-config.schema.json | Introduce schema for deployment config validation (metadata currently inconsistent; see comments). |
| react/src/hooks/useModelServiceLauncher.ts | Switch download/parse from TOML to YAML and update filename checks to deployment-config.yaml. |
| react/src/components/VFolderTextFileEditorModal.tsx | Point schema validation map from the old service-definition schema to the new deployment-config schema. |
| react/src/components/LegacyModelTryContentButton.tsx | Update inline docs and required-file checks to deployment-config.yaml. |
| e2e/serving/serving-deploy-lifecycle.spec.ts | Update uploaded fixture name/content from TOML to YAML for lifecycle coverage. |
Comments suppressed due to low confidence (1)
resources/deployment-config.schema.json:6
- Schema metadata is inconsistent with the new filename:
$idstill points toservice-definition.schema.json, and the title/description still describe the old “Service Definition” JSON file. Update$id,title, anddescriptionto reflectdeployment-config.schema.json/deployment-config.yamlso tooling and editors don’t report misleading schema identity.
c306e4c to
bb946b1
Compare
bb946b1 to
e87750e
Compare

Resolves #6750 (FR-2592)
Summary
service-definition.tomlwithdeployment-config.yamlacross the frontend codebasesmol-toml) to YAML parsing (yaml) in the service launcher hookservice-definition.schema.jsontodeployment-config.schema.jsonVerification
scripts/verify.shpasses: Relay, Lint, Format, TypeScript all PASS.