Skip to content

Commit d656a62

Browse files
tippmar-nrclaude
andcommitted
ci: serialize Memcached and Kafka container tests
Same resource contention fix as AWS SDK tests — add [Collection] to Memcached and Kafka test classes so each pair of DotNet8/DotNet10 tests runs sequentially. Prevents two instances of the same dependency service (memcached-server, kafka-broker) from competing for resources on CI. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 4841069 commit d656a62

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

tests/Agent/IntegrationTests/ContainerIntegrationTests/Tests/KafkaTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,7 @@ internal static string GenerateTopic()
134134
}
135135
}
136136

137+
[Collection("KafkaTests")]
137138
[Trait("Architecture", "amd64")]
138139
[Trait("Distro", "Ubuntu")]
139140
public class KafkaDotNet8Test : LinuxKafkaTest<KafkaDotNet8TestFixture>
@@ -143,6 +144,7 @@ public KafkaDotNet8Test(KafkaDotNet8TestFixture fixture, ITestOutputHelper outpu
143144
}
144145
}
145146

147+
[Collection("KafkaTests")]
146148
[Trait("Architecture", "amd64")]
147149
[Trait("Distro", "Ubuntu")]
148150
public class KafkaDotNet10Test : LinuxKafkaTest<KafkaDotNet10TestFixture>

tests/Agent/IntegrationTests/ContainerIntegrationTests/Tests/MemcachedTests.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,7 @@ public void Test()
127127
}
128128
}
129129

130+
[Collection("MemcachedTests")]
130131
[Trait("Architecture", "amd64")]
131132
[Trait("Distro", "Ubuntu")]
132133
public class MemcachedDotNet8Test : LinuxMemcachedTest<MemcachedDotNet8TestFixture>
@@ -136,6 +137,7 @@ public MemcachedDotNet8Test(MemcachedDotNet8TestFixture fixture, ITestOutputHelp
136137
}
137138
}
138139

140+
[Collection("MemcachedTests")]
139141
[Trait("Architecture", "amd64")]
140142
[Trait("Distro", "Ubuntu")]
141143
public class MemcachedDotNet10Test : LinuxMemcachedTest<MemcachedDotNet10TestFixture>

0 commit comments

Comments
 (0)