Skip to content

Commit 8289684

Browse files
committed
extra logs, more parallelism
1 parent 6593d87 commit 8289684

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

Framework/KubernetesWorkflow/K8sController.cs

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ public void DeleteNamespace(bool wait)
143143
log.Debug();
144144
if (IsNamespaceOnline(K8sNamespace))
145145
{
146+
log.Log($"Deleting namespace '{K8sNamespace}'");
146147
client.Run(c => c.DeleteNamespace(K8sNamespace, null, null, gracePeriodSeconds: 0));
147148

148149
if (wait) WaitUntilNamespaceDeleted(K8sNamespace);
@@ -191,6 +192,7 @@ private void EnsureNamespace()
191192
{
192193
if (IsNamespaceOnline(K8sNamespace)) return;
193194

195+
log.Log($"Creating namespace '{K8sNamespace}'");
194196
var namespaceSpec = new V1Namespace
195197
{
196198
ApiVersion = "v1",
@@ -392,7 +394,7 @@ private RunningDeployment CreateDeployment(ContainerRecipe[] containerRecipes, I
392394
client.Run(c => c.CreateNamespacedDeployment(deploymentSpec, K8sNamespace));
393395

394396
var name = deploymentSpec.Metadata.Name;
395-
log.Log($"Created deployment with name '{name}' and podLabel '{podLabel}'");
397+
log.Log($"Created deployment with name '{name}' and podLabel '{podLabel}' in namespace '{K8sNamespace}'");
396398
return new RunningDeployment(name, podLabel);
397399
}
398400

@@ -733,7 +735,7 @@ private V1Pod GetPodForDeployment(RunningDeployment deployment)
733735

734736
private V1Pod GetPodForDeplomentInternal(RunningDeployment deployment)
735737
{
736-
log.Log($"Looking for deployment with PodLabel: '{deployment.PodLabel}'");
738+
log.Log($"Looking for deployment with PodLabel: '{deployment.PodLabel}' in namespace '{K8sNamespace}'");
737739

738740
var allPods = client.Run(c => c.ListNamespacedPod(K8sNamespace));
739741
var pods = allPods.Items.Where(p => p.GetLabel(PodLabelKey) == deployment.PodLabel).ToArray();
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
using NUnit.Framework;
22

3-
[assembly: LevelOfParallelism(1)]
3+
[assembly: LevelOfParallelism(10)]
44
namespace CodexReleaseTests
55
{
66
}

0 commit comments

Comments
 (0)