Skip to content

--story=135788934 旧 UI 接入构建链与双前端产物#610

Open
a-linye wants to merge 1 commit into
TencentBlueKing:add-project-envfrom
a-linye:feat/old-ui-deploy
Open

--story=135788934 旧 UI 接入构建链与双前端产物#610
a-linye wants to merge 1 commit into
TencentBlueKing:add-project-envfrom
a-linye:feat/old-ui-deploy

Conversation

@a-linye

@a-linye a-linye commented Jul 3, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 157f4fb15e

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment thread embed.go
//go:embed ui/dist
var frontendAssets embed.FS

//go:embed ui_old/dist

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Add ui_old/dist to the build workflow

With this new embed pattern, the Go compiler now requires ui_old/dist to exist. I checked .github/workflows/build.yml: the build-bscp job still creates only ui/dist before running make build_bscp, unlike the updated lint workflow. On every push/PR from a clean checkout, that job will fail on the missing embed pattern before it can compile; update the build workflow or build both frontends before make build_bscp.

Useful? React with 👍 / 👎.

Comment thread embed_test.go
Comment on lines +60 to +64
if body := renderBody(FrontendNew); !strings.Contains(body, "new-ui") {
t.Errorf("new variant index body = %q, want contain %q", body, "new-ui")
}
if body := renderBody(FrontendOld); !strings.Contains(body, "old-ui") {
t.Errorf("old variant index body = %q, want contain %q", body, "old-ui")

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Assert on real rendered markers

These assertions make the new package test fail with the actual frontend inputs: RenderIndexHandler returns only the embedded index.html, and a repo-wide search shows new-ui/old-ui exist only in this test, not in the UI templates that are rendered. Anyone running go test after generating the dist directories will get false failures even when variant selection works; assert on a deterministic fixture/config difference instead.

Useful? React with 👍 / 👎.

@a-linye
a-linye force-pushed the feat/old-ui-deploy branch from 157f4fb to 1fb58fa Compare July 3, 2026 12:02
@tencentblueking-adm

tencentblueking-adm commented Jul 16, 2026

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants