Skip to content

Commit 0e39fd0

Browse files
LexLuthrrvagg
authored andcommitted
remove storage flag from wd-test (#586)
1 parent ae514cb commit 0e39fd0

File tree

9 files changed

+1027
-4997
lines changed

9 files changed

+1027
-4997
lines changed

cmd/curio/guidedsetup/guidedsetup.go

Lines changed: 6 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -657,8 +657,7 @@ func stepNewMinerConfig(d *MigrationData) {
657657

658658
sk, err := io.ReadAll(io.LimitReader(rand.Reader, 32))
659659
if err != nil {
660-
errMsg := "Failed to generate random bytes for secret: %s"
661-
d.say(notice, errMsg, err.Error())
660+
d.say(notice, "Failed to generate random bytes for secret: %s", err.Error())
662661
if !d.nonSP {
663662
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
664663
} else {
@@ -671,8 +670,7 @@ func stepNewMinerConfig(d *MigrationData) {
671670

672671
ainfo, err := cliutil.GetAPIInfo(d.cctx, repo.FullNode)
673672
if err != nil {
674-
errMsg := "Failed to get API info for FullNode: %s"
675-
d.say(notice, errMsg, err)
673+
d.say(notice, "Failed to get API info for FullNode: %s", err.Error())
676674
if !d.nonSP {
677675
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
678676
} else {
@@ -683,8 +681,7 @@ func stepNewMinerConfig(d *MigrationData) {
683681

684682
token, err := d.full.AuthNew(d.ctx, lapi.AllPermissions)
685683
if err != nil {
686-
errMsg := "Failed to create auth token: %s"
687-
d.say(notice, errMsg, err.Error())
684+
d.say(notice, "Failed to create auth token: %s", err.Error())
688685
if !d.nonSP {
689686
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
690687
} else {
@@ -699,8 +696,7 @@ func stepNewMinerConfig(d *MigrationData) {
699696
var titles []string
700697
err = d.DB.Select(d.ctx, &titles, `SELECT title FROM harmony_config WHERE LENGTH(config) > 0`)
701698
if err != nil {
702-
errMsg := "Cannot reach the DB: %s"
703-
d.say(notice, errMsg, err.Error())
699+
d.say(notice, "Cannot reach the DB: %s", err.Error())
704700
if !d.nonSP {
705701
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
706702
} else {
@@ -718,8 +714,7 @@ func stepNewMinerConfig(d *MigrationData) {
718714
}
719715
cb, err := config.ConfigUpdate(curioCfg, config.DefaultCurioConfig(), config.Commented(true), config.DefaultKeepUncommented(), config.NoEnv())
720716
if err != nil {
721-
errMsg := "Failed to generate default config: %s"
722-
d.say(notice, errMsg, err.Error())
717+
d.say(notice, "Failed to generate default config: %s", err.Error())
723718
if !d.nonSP {
724719
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
725720
} else {
@@ -729,8 +724,7 @@ func stepNewMinerConfig(d *MigrationData) {
729724
}
730725
_, err = d.DB.Exec(d.ctx, "INSERT INTO harmony_config (title, config) VALUES ('base', $1)", string(cb))
731726
if err != nil {
732-
errMsg := "Failed to insert config into database: %s"
733-
d.say(notice, errMsg, err.Error())
727+
d.say(notice, "Failed to insert config into database: %s", err.Error())
734728
if !d.nonSP {
735729
d.say(notice, "Please do not run guided-setup again as miner creation is not idempotent. You need to run 'curio config new-cluster %s' to finish the configuration", d.MinerID.String())
736730
} else {

cmd/curio/internal/translations/catalog.go

Lines changed: 912 additions & 780 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

cmd/curio/internal/translations/locales/en/out.gotext.json

Lines changed: 69 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1149,13 +1149,6 @@
11491149
"translatorComment": "Copied from source.",
11501150
"fuzzy": true
11511151
},
1152-
{
1153-
"id": "path to json file containing storage config",
1154-
"message": "path to json file containing storage config",
1155-
"translation": "path to json file containing storage config",
1156-
"translatorComment": "Copied from source.",
1157-
"fuzzy": true
1158-
},
11591152
{
11601153
"id": "partition to compute WindowPoSt for",
11611154
"message": "partition to compute WindowPoSt for",
@@ -2260,10 +2253,7 @@
22602253
"fuzzy": true
22612254
},
22622255
{
2263-
"id": [
2264-
"errMsg",
2265-
"Failed to generate random bytes for secret: {Error}"
2266-
],
2256+
"id": "Failed to generate random bytes for secret: {Error}",
22672257
"message": "Failed to generate random bytes for secret: {Error}",
22682258
"translation": "Failed to generate random bytes for secret: {Error}",
22692259
"translatorComment": "Copied from source.",
@@ -2303,6 +2293,74 @@
23032293
"translatorComment": "Copied from source.",
23042294
"fuzzy": true
23052295
},
2296+
{
2297+
"id": "Failed to get API info for FullNode: {Error}",
2298+
"message": "Failed to get API info for FullNode: {Error}",
2299+
"translation": "Failed to get API info for FullNode: {Error}",
2300+
"translatorComment": "Copied from source.",
2301+
"placeholders": [
2302+
{
2303+
"id": "Error",
2304+
"string": "%[1]s",
2305+
"type": "string",
2306+
"underlyingType": "string",
2307+
"argNum": 1,
2308+
"expr": "err.Error()"
2309+
}
2310+
],
2311+
"fuzzy": true
2312+
},
2313+
{
2314+
"id": "Failed to create auth token: {Error}",
2315+
"message": "Failed to create auth token: {Error}",
2316+
"translation": "Failed to create auth token: {Error}",
2317+
"translatorComment": "Copied from source.",
2318+
"placeholders": [
2319+
{
2320+
"id": "Error",
2321+
"string": "%[1]s",
2322+
"type": "string",
2323+
"underlyingType": "string",
2324+
"argNum": 1,
2325+
"expr": "err.Error()"
2326+
}
2327+
],
2328+
"fuzzy": true
2329+
},
2330+
{
2331+
"id": "Failed to generate default config: {Error}",
2332+
"message": "Failed to generate default config: {Error}",
2333+
"translation": "Failed to generate default config: {Error}",
2334+
"translatorComment": "Copied from source.",
2335+
"placeholders": [
2336+
{
2337+
"id": "Error",
2338+
"string": "%[1]s",
2339+
"type": "string",
2340+
"underlyingType": "string",
2341+
"argNum": 1,
2342+
"expr": "err.Error()"
2343+
}
2344+
],
2345+
"fuzzy": true
2346+
},
2347+
{
2348+
"id": "Failed to insert config into database: {Error}",
2349+
"message": "Failed to insert config into database: {Error}",
2350+
"translation": "Failed to insert config into database: {Error}",
2351+
"translatorComment": "Copied from source.",
2352+
"placeholders": [
2353+
{
2354+
"id": "Error",
2355+
"string": "%[1]s",
2356+
"type": "string",
2357+
"underlyingType": "string",
2358+
"argNum": 1,
2359+
"expr": "err.Error()"
2360+
}
2361+
],
2362+
"fuzzy": true
2363+
},
23062364
{
23072365
"id": "Non-SP cluster configuration created successfully",
23082366
"message": "Non-SP cluster configuration created successfully",

cmd/curio/internal/translations/locales/ko/messages.gotext.json

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2385,6 +2385,24 @@
23852385
"translation": "클러스터를 시작하려면 실행하세요: curio run --layers basic-cluster",
23862386
"message": "To start the cluster, run: curio run --layers basic-cluster",
23872387
"placeholder": null
2388+
},
2389+
{
2390+
"id": "Failed to get API info for FullNode: {Error}",
2391+
"translation": "FullNode의 API 정보를 가져오지 못했습니다: {Error}",
2392+
"message": "Failed to get API info for FullNode: {Error}",
2393+
"placeholder": null
2394+
},
2395+
{
2396+
"id": "Failed to create auth token: {Error}",
2397+
"translation": "인증 토큰을 생성하지 못했습니다: {Error}",
2398+
"message": "Failed to create auth token: {Error}",
2399+
"placeholder": null
2400+
},
2401+
{
2402+
"id": "Failed to insert config into database: {Error}",
2403+
"translation": "데이터베이스에 구성 정보를 삽입하지 못했습니다: {Error}",
2404+
"message": "Failed to insert config into database: {Error}",
2405+
"placeholder": null
23882406
}
23892407
]
23902408
}

0 commit comments

Comments
 (0)