This commit is contained in:
+1
-1
@@ -9,6 +9,6 @@ metadata:
|
||||
app.kubernetes.io/name: poimen
|
||||
app.kubernetes.io/component: orchestrator
|
||||
data:
|
||||
GIT_COMMIT: "9fb58ae" # Updated automatically by CI/CD
|
||||
GIT_COMMIT: "4388820" # Updated automatically by CI/CD
|
||||
GIT_BRANCH: "main"
|
||||
DEPLOYMENT_DATE: "2026-08-26"
|
||||
|
||||
@@ -13,7 +13,7 @@ spec:
|
||||
labels:
|
||||
app: poimen-worker
|
||||
annotations:
|
||||
git-commit: "9fb58ae" # ✅ Updated on each push, triggers rolling restart
|
||||
git-commit: "4388820" # ✅ Updated on each push, triggers rolling restart
|
||||
deployment-date: "2026-08-26"
|
||||
spec:
|
||||
containers:
|
||||
|
||||
+6
-4
@@ -83,12 +83,14 @@ func TestOrchestratorConfig(t *testing.T) {
|
||||
func TestTaskUnitInput(t *testing.T) {
|
||||
input := statemachine.TaskUnitInput{
|
||||
TaskID: "T0.1",
|
||||
RemoteURL: "https://github.com/example/repo",
|
||||
TargetRepoPath: "/tmp/repo",
|
||||
BaseTimeout: 10 * time.Minute,
|
||||
MaxJudgeRetries: 3,
|
||||
Milestone: "v1.0",
|
||||
DryRun: false,
|
||||
}
|
||||
assert.Equal(t, "T0.1", input.TaskID)
|
||||
assert.Equal(t, "https://github.com/example/repo", input.RemoteURL)
|
||||
assert.Equal(t, "/tmp/repo", input.TargetRepoPath)
|
||||
assert.Equal(t, 10*time.Minute, input.BaseTimeout)
|
||||
assert.Equal(t, 3, input.MaxJudgeRetries)
|
||||
assert.Equal(t, "v1.0", input.Milestone)
|
||||
assert.Equal(t, false, input.DryRun)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user