Merge remote-tracking branch 'origin/main' into gitea-merge2
mesh/delivery ready: it is merged on the Approve
mesh/check failed: shanks: novox/mesh-catalog#560: modules/mesh-build-image/mesh-build-image: a compiled program added in 17588fee10f8 and removed lat…
mesh/delivery-group group feat/774-l3-reland rejected: composed together: the checker's verdict at the members' heads (fc2ace3a8f88): shanks
mesh/delivery ready: it is merged on the Approve
mesh/check failed: shanks: novox/mesh-catalog#560: modules/mesh-build-image/mesh-build-image: a compiled program added in 17588fee10f8 and removed lat…
mesh/delivery-group group feat/774-l3-reland rejected: composed together: the checker's verdict at the members' heads (fc2ace3a8f88): shanks
This commit is contained in:
@@ -62,3 +62,29 @@ func TestEveryFileTakesItsTextFromATemplate(t *testing.T) {
|
|||||||
t.Errorf("the build packs files/ into %d archives, not one", packs)
|
t.Errorf("the build packs files/ into %d archives, not one", packs)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The forge's sshd takes a burst of the mesh's machines fetching at once: the image's MaxStartups raised from OpenSSH's
|
||||||
|
// default 10:30:100 to 100:30:200 through SSH_MAX_STARTUPS, which dropped ace's thirteen connections at once.
|
||||||
|
func TestTheForgesSshdTakesABurstOfTheMeshsMachines(t *testing.T) {
|
||||||
|
raw, err := os.ReadFile(filepath.Join(moduleDir, "module.json"))
|
||||||
|
if err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
var m struct {
|
||||||
|
Resources []map[string]any `json:"resources"`
|
||||||
|
}
|
||||||
|
if err := json.Unmarshal(raw, &m); err != nil {
|
||||||
|
t.Fatal(err)
|
||||||
|
}
|
||||||
|
for _, r := range m.Resources {
|
||||||
|
if r["id"] != "server" {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
env, _ := r["env"].(map[string]any)
|
||||||
|
if env["SSH_MAX_STARTUPS"] != "100:30:200" {
|
||||||
|
t.Errorf("SSH_MAX_STARTUPS is %v, not 100:30:200", env["SSH_MAX_STARTUPS"])
|
||||||
|
}
|
||||||
|
return
|
||||||
|
}
|
||||||
|
t.Error("the manifest has no server container")
|
||||||
|
}
|
||||||
|
|||||||
@@ -266,7 +266,8 @@
|
|||||||
"env": {
|
"env": {
|
||||||
"DB_TYPE": "postgres",
|
"DB_TYPE": "postgres",
|
||||||
"USER_UID": "1000",
|
"USER_UID": "1000",
|
||||||
"USER_GID": "1000"
|
"USER_GID": "1000",
|
||||||
|
"SSH_MAX_STARTUPS": "100:30:200"
|
||||||
},
|
},
|
||||||
"env-file": [
|
"env-file": [
|
||||||
"${dir:state}/server.env"
|
"${dir:state}/server.env"
|
||||||
|
|||||||
Reference in New Issue
Block a user