Skip to content

Commit

Permalink
feat(devbuild): devbuild support newarch ticdc
Browse files Browse the repository at this point in the history
  • Loading branch information
purelind committed Feb 21, 2025
1 parent 39f2889 commit 9946b53
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 1 deletion.
2 changes: 2 additions & 0 deletions tibuild/docs/docs.go
Original file line number Diff line number Diff line change
Expand Up @@ -621,6 +621,7 @@ const docTemplate = `{
"dumpling",
"tidb-lightning",
"ticdc",
"ticdc-newarch",
"dm",
"tidb-binlog",
"tidb-tools",
Expand All @@ -640,6 +641,7 @@ const docTemplate = `{
"ProductDumpling",
"ProductTidbLightning",
"ProductTicdc",
"ProductTicdcNewarch",
"ProductDm",
"ProductTidbBinlog",
"ProductTidbTools",
Expand Down
2 changes: 2 additions & 0 deletions tibuild/docs/swagger.json
Original file line number Diff line number Diff line change
Expand Up @@ -610,6 +610,7 @@
"dumpling",
"tidb-lightning",
"ticdc",
"ticdc-newarch",
"dm",
"tidb-binlog",
"tidb-tools",
Expand All @@ -629,6 +630,7 @@
"ProductDumpling",
"ProductTidbLightning",
"ProductTicdc",
"ProductTicdcNewarch",
"ProductDm",
"ProductTidbBinlog",
"ProductTidbTools",
Expand Down
2 changes: 2 additions & 0 deletions tibuild/docs/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -199,6 +199,7 @@ definitions:
- dumpling
- tidb-lightning
- ticdc
- ticdc-newarch
- dm
- tidb-binlog
- tidb-tools
Expand All @@ -218,6 +219,7 @@ definitions:
- ProductDumpling
- ProductTidbLightning
- ProductTicdc
- ProductTicdcNewarch
- ProductDm
- ProductTidbBinlog
- ProductTidbTools
Expand Down
1 change: 1 addition & 0 deletions tibuild/internal/controller/pipeline_trigger.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ var componentToRepoMap = map[string]string{
"dumpling": "tidb",
"lightning": "tidb",
"br": "tidb",
"ticdc-newarch": "ticdc",
}

type PipelineTriggerStruct struct {
Expand Down
6 changes: 5 additions & 1 deletion tibuild/pkg/rest/service/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ const (
ProductDumpling Product = "dumpling"
ProductTidbLightning Product = "tidb-lightning"
ProductTicdc Product = "ticdc"
ProductTicdcNewarch Product = "ticdc-newarch"
ProductDm Product = "dm"
ProductTidbBinlog Product = "tidb-binlog"
ProductTidbTools Product = "tidb-tools"
Expand Down Expand Up @@ -88,6 +89,7 @@ var (
RepoPd = GithubRepo{Owner: "tikv", Repo: "pd"}
RepoTiflash = GithubRepo{Owner: "pingcap", Repo: "tiflash"}
RepoTiflow = GithubRepo{Owner: "pingcap", Repo: "tiflow"}
RepoTicdc = GithubRepo{Owner: "pingcap", Repo: "ticdc"}
RepoTidbBinlog = GithubRepo{Owner: "pingcap", Repo: "tidb-binlog"}
RepoTidbTools = GithubRepo{Owner: "pingcap", Repo: "tidb-tools"}
RepoNgMonitoring = GithubRepo{Owner: "pingcap", Repo: "ng-monitoring"}
Expand All @@ -96,7 +98,7 @@ var (

var allProducts = [...]Product{ProductTidb, ProductTikv, ProductPd,
ProductTiflash, ProductBr, ProductTidbLightning, ProductDumpling,
ProductTicdc, ProductTidbBinlog, ProductDm, ProductTidbTools,
ProductTicdc, ProductTicdcNewarch, ProductDm, ProductTidbBinlog, ProductTidbTools,
ProductNgMonitoring, ProductTidbDashboard, ProductDrainer, ProductPump}

func StringToProduct(s string) Product {
Expand All @@ -120,6 +122,8 @@ func ProdToRepo(prod Product) *GithubRepo {
return &RepoTiflash
case ProductTicdc, ProductDm:
return &RepoTiflow
case ProductTicdcNewarch:
return &RepoTicdc
case ProductDrainer, ProductPump:
fallthrough
case ProductTidbBinlog:
Expand Down

0 comments on commit 9946b53

Please sign in to comment.