Files
tasks/tools/flakereport/parallel.go
Stephan BehnkeandGitHub 0d81729656 Fix flakereport (#9399)
## What changed?

Fix issues with flakereport; see comments for details.

## How did you test it?
- [ ] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [x] added new unit test(s)
- [ ] added new functional test(s)

<details><summary>Example</summary>
<p>

## Flaky Tests Report - 2026-02-25 11:25:50

### Overall Statistics

* **CI Success Rate**: 4/8 (50.00%)
* **Total Test Runs**: 261830
* **Total Failures**: 404
* **Overall Failure Rate**: 1.5 per 1000 tests

### Failure Categories Summary

| Category | Unique Tests |
|----------|--------------|
| CI Breakers | 1 |
| Crashes | 1 |
| Timeouts | 0 |
| Flaky Tests | 129 |

### CI Breakers (Failed All Retries)

| Test | CI Runs Broken | Total Failures | Last Failure | Links |
|------|---------------|----------------|-------------|-------|
| `TestVersionWorkflowSuite/v2/Test_DeleteVersion_QueryAfterDeletion` |
1 | 1 | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
|

### Crashes

| Test | Flake Rate | Last Failure | Links |
|------|------------|-------------|-------|
| `unit-test` | **100.0% (2/2)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
[2](https://github.com/temporalio/temporal/actions/runs/22296780641/job/1)
|

### Flaky Tests

| Test | Flake Rate | Last Failure | Links |
|------|------------|-------------|-------|
| `TestClientDataConverterTestSuite` | **100.0% (1/1)** | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560060)
|
| `PANIC: runtime error: index out of range [0] with length 0
[recovered, repanicked] — in
go.temporal.io/server/tests.TestWorkflowUpdateSuite.func21.2` | **100.0%
(1/1)** | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560060)
|
| `PANIC: Fail in goroutine after
TestVersioning3FunctionalSuiteV2/TestWorkflowWithPinnedOverride_NoSticky
has completed — in
TestVersioning3FunctionalSuiteV0/TestActivityRetryAutoUpgradeDuringBackoff`
| **100.0% (1/1)** | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `PANIC: Fail in goroutine after
TestVersioning3FunctionalSuiteV0/TestPinnedQuery_RollbackDrainedVersion/ForceTaskForwardNoPollForwardForceAsync
has completed — in
TestVersioning3FunctionalSuiteV2/TestActivityRetryAutoUpgradeDuringBackoff`
| **100.0% (1/1)** | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
| `DATA RACE: Data race detected` | **100.0% (1/1)** | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
| `PANIC: runtime error: invalid memory address or nil pointer
dereference — in
go.temporal.io/server/tests.(*DeploymentVersionSuite).TestForceCAN_WithOverrideState.func1`
| **100.0% (1/1)** | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestVersioning3FunctionalSuiteV0/TestTransitionDuringTransientTask_WithSignal`
| **48.9% (45/92)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456075)
[2](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456229)
[3](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456270)
|
|
`TestVersioning3FunctionalSuiteV2/TestTransitionDuringTransientTask_WithoutSignal`
| **48.9% (45/92)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456093)
[2](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456143)
[3](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456167)
|
|
`TestVersioning3FunctionalSuiteV2/TestTransitionDuringTransientTask_WithSignal`
| **48.9% (45/92)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456136)
[2](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
[3](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456112)
|
|
`TestVersioning3FunctionalSuiteV0/TestTransitionDuringTransientTask_WithoutSignal`
| **43.4% (36/83)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456143)
[2](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456236)
[3](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456250)
|
| `TestVersionWorkflowSuite/v2/Test_DeleteVersion_QueryAfterDeletion` |
**42.9% (3/7)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
[3](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
|
| `TestUserData_FetchesUpTree` | **16.7% (1/6)** | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/1)
|
| `TestNewServerWithOTEL/with_OTEL_Collector_running` | **16.7% (1/6)**
| 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/1)
|
|
`TestInterleavedWeightedRoundRobinSchedulerSuite/TestInactiveChannelDeletionRace`
| **16.7% (1/6)** | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/1)
|
| `TestUserData_FetchesActivityToWorkflow` | **16.7% (1/6)** | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/1)
|
|
`TestDeploymentVersionSuiteV0/TestReactivationSignalCache_Deduplication_StartWorkflow`
| **16.1% (9/56)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456136)
[2](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
[3](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068532)
|
| `TestNewServer` | **15.4% (2/13)** | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/1)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/1)
|
|
`TestDeploymentVersionSuiteV0/TestReactivationSignalCache_Deduplication_SignalWithStart`
| **11.3% (6/53)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512764)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
[3](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198192)
|
|
`TestDeploymentVersionSuiteV0/TestStartWorkflowExecution_ReactivateVersionOnPinned_WithConflictPolicy`
| **9.6% (5/52)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512848)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198189)
[3](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068462)
|
| `TestDeploymentVersionSuiteV2/TestVersionScavenger_DeleteOnAdd` |
**9.6% (5/52)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512818)
[3](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198207)
|
|
`TestDeploymentVersionSuiteV0/TestStartWorkflowExecution_ReactivateVersionOnPinned`
| **9.3% (5/54)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512766)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198202)
[3](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068483)
|
|
`TestDeploymentVersionSuiteV0/TestSignalWithStartWorkflowExecution_ReactivateVersionOnPinned`
| **7.8% (4/51)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512865)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512840)
[3](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512870)
|
| `TestFairnessAutoEnableSuite/Test_Activity_Basic` | **7.7% (4/52)** |
1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456112)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512799)
[3](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068532)
|
|
`TestDeploymentVersionSuiteV2/TestReactivationSignalCache_Deduplication_UpdateOptions`
| **7.7% (4/52)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
[3](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestActivityClientTestSuite/TestActivityScheduleToClose_FiredDuringBackoff`
| **7.5% (4/53)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[3](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198228)
|
|
`TestDeploymentVersionSuiteV0/TestReactivationSignalCache_Deduplication_Reset`
| **6.0% (3/50)** | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068487)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560087)
[3](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114101)
|
|
`TestDeploymentVersionSuiteV0/TestResetWorkflowExecution_ReactivateVersionOnPinned`
| **6.0% (3/50)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512828)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
[3](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068520)
|
|
`TestDeploymentVersionSuiteV2/TestVersionMissingTaskQueues_ValidSetRampingVersion`
| **6.0% (3/50)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512818)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198207)
[3](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114123)
|
|
`TestTaskQueueStats_Pri_Suite/TestRampingAndCurrentAbsorbUnversionedBacklog/ForceTaskForwardForcePollForwardAllowSync`
| **5.9% (3/51)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512818)
[2](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068532)
[3](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114123)
|
|
`TestWorkerDeploymentSuiteV0/TestSetCurrentVersion_Concurrent_DifferentVersions_NoUnexpectedErrors`
| **5.9% (3/51)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198193)
[3](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestDeploymentVersionSuiteV0/TestUpdateWorkflowExecutionOptions_ReactivateVersionOnPinned`
| **5.9% (3/51)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456393)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512824)
[3](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `TestCronTestClientSuite/TestCronWorkflowCompletionStates` | **5.8%
(3/52)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512824)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512861)
[3](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestCallbacksSuiteCHASM/TestWorkflowNexusCallbacks_CarriedOver/ContinueAsNew`
| **5.8% (3/52)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456103)
[2](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068523)
[3](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestStandaloneActivityTestSuite/TestHeartbeat/HeartbeatKeepsActivityAlive`
| **5.8% (3/52)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512824)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198210)
[3](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198202)
|
|
`TestCallbacksSuiteCHASM/TestWorkflowNexusCallbacks_CarriedOver/WorkflowRunTimeout`
| **5.8% (3/52)** | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456103)
[2](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068523)
[3](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestWorkerDeploymentSuiteV0/TestDescribeWorkerDeployment_SetCurrentVersion`
| **5.8% (3/52)** | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[3](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198228)
|
|
`TestDeploymentVersionSuiteV0/TestReactivationSignalCache_Deduplication_UpdateOptions`
| 4.1% (2/49) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456093)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560043)
|
|
`TestTaskQueueStats_Classic_Suite/TestAddMultipleTasks_ValidateStats_Cached`
| 4.0% (2/50) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestTaskQueueStats_Pri_Suite/TestInactiveVersionDoesNotAbsorbUnversionedBacklog/NoTaskForwardNoPollForwardAllowSync`
| 4.0% (2/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
[2](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198189)
|
|
`TestTaskQueueStats_Pri_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardForcePollForwardAllowSync`
| 4.0% (2/50) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512821)
[2](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
| `TestWorkerDeploymentSuiteV0/TestSetRampingVersion_AfterDrained` |
4.0% (2/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068420)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `TestWorkerDeploymentSuiteV2/TestDrainRollbackedVersion` | 4.0% (2/50)
| 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068525)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestFuncClustersTestSuite/EnableTransitionHistory/TestForceMigration_ResetWorkflow`
| 4.0% (2/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456146)
[2](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068440)
|
| `TestDeploymentVersionSuiteV0/TestVersionScavenger_DeleteOnAdd` | 4.0%
(2/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068551)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestWorkerDeploymentSuiteV2/TestSetCurrentVersion_Concurrent_DifferentVersions_NoUnexpectedErrors`
| 4.0% (2/50) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560090)
|
| `TestPrioritySuite/TestSubqueue_Migration` | 3.9% (2/51) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
[2](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestCallbacksSuiteCHASM/TestWorkflowNexusCallbacks_CarriedOver/WorkflowFailureRetry`
| 3.9% (2/51) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
[2](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560001)
|
| `TestWorkerDeploymentSuiteV0/TestDrainRollbackedVersion` | 3.9% (2/51)
| 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198228)
[2](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068512)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedTask_NoProperPoller/NoTaskForwardNoPollForwardForceAsync`
| 2.1% (1/48) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068483)
|
|
`TestVersioning3FunctionalSuiteV2/TestPinnedCaN_UpgradeOnCaN_NormalWFT_WithSuggest/ForceTaskForwardNoPollForwardForceAsync`
| 2.1% (1/48) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114123)
|
|
`TestDeploymentVersionSuiteV0/TestUpdateWorkflowExecutionOptions_SetImpliedPinnedSuccess`
| 2.1% (1/48) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512818)
|
|
`TestGetHistoryFunctionalSuite/DisableTransitionHistory/TestGetWorkflowExecutionHistory_All`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
| `TestVersioning3FunctionalSuiteV2/TestUnpinnedCaN` | 2.1% (1/48) | 23h
ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestVersioningFunctionalSuite/TestWorkflowTaskRedirectInRetryNonFirstTask/NoTaskForwardForcePollForwardAllowSync`
| 2.1% (1/48) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456112)
|
|
`TestWorkerDeploymentSuiteV0/TestListWorkerDeployments_TwoVersions_SameDeployment_OneCurrent_OneRamping`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestTaskQueueStats_Classic_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardNoPollForwardForceAsync`
| 2.1% (1/48) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456212)
|
|
`TestVersioning3FunctionalSuiteV2/TestWorkflowWithPinnedOverride_NoSticky/ForceTaskForwardForcePollForwardForceAsync`
| 2.1% (1/48) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `TestAdvancedVisibilitySuiteLegacy/TestListWorkflow_StringQuery` |
2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestVersioning3FunctionalSuiteV0/TestChildWorkflowInheritance_ParentPinnedByOverride`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198284)
|
|
`TestStandaloneActivityTestSuite/TestRequestCancel/MismatchedTokenComponentRef`
| 2.1% (1/48) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
|
|
`TestDeploymentVersionSuiteV2/TestVersionMissingTaskQueues_ValidSetCurrentVersion`
| 2.1% (1/48) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedQuery_DrainedVersion_PollersAbsent/ForceTaskForwardNoPollForwardAllowSync`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedWorkflowWithLateActivityPoller/ForceTaskForwardNoPollForwardAllowSync`
| 2.1% (1/48) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114104)
|
|
`TestTaskQueueStats_Classic_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardForcePollForwardAllowSync`
| 2.1% (1/48) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512839)
|
|
`TestDeploymentVersionSuiteV2/TestStartWorkflowExecution_ReactivateVersionOnPinned_WithConflictPolicy`
| 2.1% (1/48) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
|
|
`TestDeploymentVersionSuiteV2/TestSignalWithStartWorkflowExecution_ReactivateVersionOnPinned`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestVersioningFunctionalSuite/TestDispatchQueryOld/ForceTaskForwardNoPollForwardAllowSync`
| 2.1% (1/48) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198239)
|
|
`TestVersioningFunctionalSuite/TestWorkflowTaskRedirectInRetryFirstTask/ForceTaskForwardForcePollForwardForceAsync`
| 2.1% (1/48) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestTaskQueueStats_Pri_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardForcePollForwardForceAsync`
| 2.1% (1/48) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068525)
|
|
`TestWorkerDeploymentSuiteV0/TestDescribeWorkerDeployment_MultipleVersions_Sorted`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestDeploymentVersionSuiteV2/TestDrainageStatus_SetCurrentVersion_YesOpenWFs`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestVersioning3FunctionalSuiteV0/TestAutoUpgradeCaN_UpgradeOnCaN/ForceTaskForwardNoPollForwardAllowSync`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
| `TestWorkerDeploymentSuiteV2/TestSetCurrentVersion_Batching` | 2.0%
(1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068420)
|
|
`TestTaskQueueStats_Classic_Suite/TestCurrentAbsorbsUnversionedBacklog_WhenRampingToUnversioned/NoTaskForwardForcePollForwardForceAsync`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560082)
|
|
`TestTaskQueueSuite/TestTaskQueueRateLimit_UpdateFromWorkerConfigAndAPI`
| 2.0% (1/49) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456111)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedQuery_RollbackDrainedVersion/ForceTaskForwardNoPollForwardForceAsync`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestWorkflowUpdateSuite/StickySpeculativeWorkflowTask_AcceptComplete_StickyWorkerUnavailable`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560060)
|
|
`TestWorkerDeploymentSuiteV2/TestResourceExhaustedErrors_Converted_To_ReadableMessage`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114116)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedCaN_UpgradeOnCaN_TransientWFT_WithSuggest/ForceTaskForwardForcePollForwardForceAsync`
| 2.0% (1/49) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
|
`TestVersioning3FunctionalSuiteV2/TestPinnedCaN_UpgradeOnCaN_NormalWFT_PinnedOverride_WithSuggest/NoTaskForwardForcePollForwardAllowSync`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestTaskQueueStats_Pri_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardNoPollForwardForceAsync`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `TestChildWorkflowSuite/TestCronChildWorkflowExecution` | 2.0% (1/49)
| 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114114)
|
|
`TestNexusStateReplicationTestSuite/DisableTransitionHistory/TestNexusCallbackReplicated`
| 2.0% (1/49) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456192)
|
|
`TestWorkerDeploymentSuiteV0/TestSetWorkerDeploymentRampingVersion_WithCurrent_Unset_Ramp`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestFuncClustersTestSuite/EnableTransitionHistory/TestForceMigration_ClosedWorkflow`
| 2.0% (1/49) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198205)
|
|
`TestTaskQueueStats_Classic_Suite/TestCurrentVersionAbsorbsUnversionedBacklog_NoRamping/ForceTaskForwardNoPollForwardForceAsync`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114074)
|
|
`TestWorkflowUpdateSuite/SpeculativeWorkflowTask_ScheduleToStartTimeoutOnNormalTaskQueue`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560060)
|
| `TestStandaloneActivityTestSuite/TestRequestCancel/StaleAttemptToken`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestTaskQueueStats_Classic_Suite/TestCurrentVersionAbsorbsUnversionedBacklog_NoRamping/NoTaskForwardForcePollForwardAllowSync`
| 2.0% (1/49) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198284)
|
|
`TestVersioning3FunctionalSuiteV2/TestUnpinnedQuery_NoSticky/ForceTaskForwardForcePollForwardForceAsync`
| 2.0% (1/49) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512861)
|
|
`TestTaskQueueStats_Classic_Suite/TestRampingAbsorbsUnversionedBacklog_WhenCurrentIsUnversioned/NoTaskForwardForcePollForwardForceAsync`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestTaskQueueStats_Pri_Suite/TestCurrentVersionAbsorbsUnversionedBacklog_NoRamping/NoTaskForwardNoPollForwardAllowSync`
| 2.0% (1/49) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456212)
|
|
`TestTaskQueueStats_Pri_Suite/TestRampingAndCurrentAbsorbUnversionedBacklog/NoTaskForwardNoPollForwardAllowSync`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560089)
|
|
`TestFuncClustersTestSuite/DisableTransitionHistory/TestForceMigration_ClosedWorkflow`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114115)
|
|
`TestWorkerDeploymentSuiteV0/TestSetRampingVersion_Concurrent_DifferentVersions_NoUnexpectedErrors`
| 2.0% (1/49) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
|
|
`TestTaskQueueStats_Classic_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/NoTaskForwardNoPollForwardAllowSync`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedQuery_RollbackDrainedVersion/NoTaskForwardForcePollForwardAllowSync`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestVersioning3FunctionalSuiteV2/TestUnpinnedQuery_NoSticky/NoTaskForwardForcePollForwardAllowSync`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068523)
|
| `TestDeploymentVersionSuiteV0/TestForceCAN_WithOverrideState` | 2.0%
(1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestVersioningFunctionalSuite/TestDispatchActivityFailCrossTq/NoTaskForwardForcePollForwardAllowSync`
| 2.0% (1/49) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068496)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedCaN_UpgradeOnCaN_TransientWFT_WithSuggest/ForceTaskForwardNoPollForwardForceAsync`
| 2.0% (1/49) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestWorkerDeploymentSuiteV0/TestSetWorkerDeploymentRampingVersion_Batching`
| 2.0% (1/49) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestDeploymentVersionSuiteV0/TestDrainageStatus_SetCurrentVersion_NoOpenWFs`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068523)
|
| `TestScheduleFunctionalSuite/TestNextTimeCache` | 2.0% (1/50) | 21h
ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
|
|
`TestVersioning3FunctionalSuiteV2/TestUnpinnedQuery_NoSticky/ForceTaskForwardNoPollForwardAllowSync`
| 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestPollerScalingFunctionalSuite/TestPollerScalingDecisionsAreSeenProbabilistically`
| 2.0% (1/50) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
| `TestFairnessSuite/TestMigration_FromFair` | 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114116)
|
| `TestFairnessAutoEnableSuite/TestMigration_FromClassic` | 2.0% (1/50)
| 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560075)
|
|
`TestTaskQueueStats_Pri_Suite/TestMultipleTasks_WithMatchingBehavior_ValidateStats/ForceTaskForwardNoPollForwardAllowSync`
| 2.0% (1/50) | 23h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22367698230/job/64738198193)
|
|
`TestWorkflowTaskTestSuite/TestWorkflowTaskHeartbeatingWithEmptyResult`
| 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114142)
|
|
`TestAdvancedVisibilitySuite/TestWorkerTaskReachability_Unversioned_InTaskQueue`
| 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
| `TestDeploymentVersionSuiteV2/TestDeleteVersion_DeleteRampedVersion` |
2.0% (1/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
| `TestWorkerDeploymentSuiteV0/TestDeploymentVersionLimits` | 2.0%
(1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114116)
|
|
`TestVersioning3FunctionalSuiteV2/TestPinnedQuery_RollbackDrainedVersion/ForceTaskForwardForcePollForwardForceAsync`
| 2.0% (1/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
|
`TestVersioning3FunctionalSuiteV2/TestUnpinnedQuery_NoSticky/NoTaskForwardNoPollForwardAllowSync`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068512)
|
|
`TestDeploymentVersionSuiteV2/TestDeleteVersion_Drained_But_Pollers_Exist`
| 2.0% (1/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
|
`TestVersioning3FunctionalSuiteV2/TestQueryWithPinnedOverride_Sticky/ForceTaskForwardForcePollForwardAllowSync`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068512)
|
| `TestFairnessAutoEnableSuite/TestMigration_FromFair` | 2.0% (1/50) |
1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedCaN_UpgradeOnCaN_SpeculativeWFT_NoSuggest/NoTaskForwardNoPollForwardAllowSync`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068525)
|
|
`TestWorkerDeploymentSuiteV0/TestDescribeWorkerDeployment_TwoVersions_Sorted`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068512)
|
|
`TestDeploymentVersionSuiteV2/TestDrainageStatus_SetCurrentVersion_NoOpenWFs`
| 2.0% (1/50) | 1h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22410112796/job/64881456152)
|
| `TestDeploymentVersionSuiteV2/TestDeleteVersion_ValidDelete` | 2.0%
(1/50) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512833)
|
| `TestScheduleFunctionalSuite/TestListSchedulesReturnsWorkflowStatus` |
2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068523)
|
|
`TestVersioningFunctionalSuite/TestWorkflowTaskRedirectInRetryFirstTask/ForceTaskForwardForcePollForwardAllowSync`
| 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
| `TestCronTestSuite/TestCronWorkflow` | 2.0% (1/50) | 44h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22329840058/job/64609560092)
|
|
`TestVersioning3FunctionalSuiteV0/TestPinnedCaN_UpgradeOnCaN_NormalWFT_WithSuggest/ForceTaskForwardNoPollForwardForceAsync`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068420)
|
|
`TestVersioning3FunctionalSuiteV2/TestAutoUpgradeCaN_UpgradeOnCaN/ForceTaskForwardForcePollForwardAllowSync`
| 2.0% (1/50) | 38h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22337683305/job/64634068472)
|
|
`TestDeploymentVersionSuiteV2/TestReactivationSignalCache_Deduplication_SignalWithStart`
| 2.0% (1/50) | 60h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22296780641/job/64495114191)
|
|
`TestVersioning3FunctionalSuiteV2/TestPinnedQuery_DrainedVersion_PollersAbsent/ForceTaskForwardNoPollForwardAllowSync`
| 2.0% (1/50) | 21h ago |
[1](https://github.com/temporalio/temporal/actions/runs/22373551837/job/64758512837)
|

### Flaky Suites

| Suite | Flake Rate | Last Failure |
|-------|------------|-------------|
| `TestAcquireShard_DeadlineExceededErrorSuite` | 2.1% (1/47) | 38h ago
|
| `TestAcquireShard_OwnershipLostErrorSuite` | 2.1% (1/48) | 44h ago |
| `TestActivityClientTestSuite` | **8.3% (4/48)** | 1h ago |
| `TestActivityTestSuite` | 2.1% (1/48) | 44h ago |
| `TestAdminTestSuite` | 2.1% (1/48) | 44h ago |
| `TestAdvancedVisibilitySuite` | 4.2% (2/48) | 44h ago |
| `TestAdvancedVisibilitySuiteLegacy` | 2.1% (1/48) | 23h ago |
| `TestCallbacksSuiteCHASM` | **8.3% (4/48)** | 1h ago |
| `TestChasmTestSuiteLegacy` | 2.1% (1/48) | 44h ago |
| `TestChildWorkflowSuite` | 2.1% (1/48) | 60h ago |
| `TestClientDataConverterTestSuite` | **100.0% (1/1)** | 44h ago |
| `TestClientMiscTestSuite` | 2.1% (1/48) | 44h ago |
| `TestCronTestClientSuite` | **6.2% (3/48)** | 21h ago |
| `TestCronTestSuite` | 2.1% (1/48) | 44h ago |
| `TestDLQSuite` | 4.2% (2/48) | 44h ago |
| `TestDeploymentVersionSuiteV0` | **62.5% (30/48)** | 1h ago |
| `TestDeploymentVersionSuiteV2` | **22.9% (11/48)** | 1h ago |
| `TestFairnessAutoEnableSuite` | **8.3% (4/48)** | 1h ago |
| `TestFairnessSuite` | 2.1% (1/48) | 60h ago |
| `TestFuncClustersTestSuite` | **8.3% (4/48)** | 1h ago |
| `TestGetHistoryFunctionalSuite` | 2.1% (1/48) | 23h ago |
| `TestNamespaceInterceptorTestSuite` | **6.2% (3/48)** | 38h ago |
| `TestNamespaceSuite` | 1.9% (1/53) | 44h ago |
| `TestNexusApiTestSuiteWithTemporalFailures` | 2.1% (1/48) | 44h ago |
| `TestNexusStateReplicationTestSuite` | 2.1% (1/48) | 1h ago |
| `TestNexusWorkflowTestSuite` | 2.1% (1/48) | 44h ago |
| `TestPollerScalingFunctionalSuite` | 2.1% (1/48) | 44h ago |
| `TestPrioritySuite` | 4.2% (2/48) | 21h ago |
| `TestPurgeDLQTasksSuite` | 2.1% (1/48) | 44h ago |
| `TestQueryWorkflowSuite` | 2.1% (1/48) | 38h ago |
| `TestRawHistoryClientSuite` | 2.1% (1/48) | 44h ago |
| `TestRelayTaskTestSuite` | 2.1% (1/47) | 44h ago |
| `TestResetWorkflowTestSuite` | 2.1% (1/48) | 44h ago |
| `TestScheduleFunctionalSuite` | **6.2% (3/48)** | 21h ago |
| `TestStandaloneActivityTestSuite` | **10.4% (5/48)** | 1h ago |
| `TestTLSFunctionalSuite` | 2.1% (1/48) | 44h ago |
| `TestTaskQueueStats_Classic_Suite` | **18.8% (9/48)** | 1h ago |
| `TestTaskQueueStats_Pri_Suite` | **25.0% (12/48)** | 1h ago |
| `TestTaskQueueSuite` | 4.2% (2/48) | 1h ago |
| `TestTransientTaskSuite` | 2.1% (1/48) | 44h ago |
| `TestUpdateWorkflowSdkSuite` | 2.1% (1/48) | 44h ago |
| `TestUserMetadataSuite` | 2.1% (1/47) | 44h ago |
| `TestUserTimersTestSuite` | 2.1% (1/47) | 44h ago |
| `TestVersionWorkflowSuite` | **20.0% (1/5)** | 21h ago |
| `TestVersioning3FunctionalSuiteV0` | **100.0% (48/48)** | 1h ago |
| `TestVersioning3FunctionalSuiteV2` | **100.0% (48/48)** | 1h ago |
| `TestVersioningFunctionalSuite` | **10.4% (5/48)** | 1h ago |
| `TestWorkerDeploymentSuiteV0` | **16.7% (8/48)** | 21h ago |
| `TestWorkerDeploymentSuiteV2` | **12.5% (6/48)** | 21h ago |
| `TestWorkflowMemoTestSuite` | 2.1% (1/48) | 44h ago |
| `TestWorkflowTaskTestSuite` | 4.2% (2/48) | 38h ago |
| `TestWorkflowUpdateSuite` | 2.1% (1/48) | 44h ago |



</p>
</details>
2026-03-09 09:50:37 -07:00

152 lines
4.1 KiB
Go

package flakereport
import (
"context"
"fmt"
"path/filepath"
"sync"
"time"
)
// ArtifactJob represents a job to download and process an artifact
type ArtifactJob struct {
Repo string
RunID int64
RunCreatedAt time.Time
Artifact WorkflowArtifact
TempDir string
RunNumber int
TotalRuns int
ArtifactNum int
}
// ArtifactResult represents the result of processing an artifact
type ArtifactResult struct {
Failures []TestFailure
AllRuns []TestRun
Error error
}
// processArtifactsParallel downloads and processes artifacts in parallel with a worker pool
// Returns: all failures, all test runs, and count of successfully processed artifacts
func processArtifactsParallel(ctx context.Context, jobs []ArtifactJob, concurrency int) ([]TestFailure, []TestRun, int) {
if len(jobs) == 0 {
return nil, nil, 0
}
totalArtifacts := len(jobs)
// Create channels
jobChan := make(chan ArtifactJob, totalArtifacts)
resultChan := make(chan ArtifactResult, totalArtifacts)
// Start worker pool
var wg sync.WaitGroup
for range concurrency {
wg.Add(1)
go worker(ctx, jobChan, resultChan, totalArtifacts, &wg)
}
// Send jobs to workers
go func() {
for _, job := range jobs {
jobChan <- job
}
close(jobChan)
}()
// Wait for all workers to finish
go func() {
wg.Wait()
close(resultChan)
}()
// Collect results
var allFailures []TestFailure
var allTestRuns []TestRun
processedArtifacts := 0
errorCount := 0
for result := range resultChan {
if result.Error != nil {
errorCount++
// Error already logged by worker
continue
}
allFailures = append(allFailures, result.Failures...)
allTestRuns = append(allTestRuns, result.AllRuns...)
processedArtifacts++
}
if errorCount > 0 {
fmt.Printf("Warning: %d artifacts failed to process\n", errorCount)
}
return allFailures, allTestRuns, processedArtifacts
}
// worker processes jobs from the job channel
func worker(ctx context.Context, jobs <-chan ArtifactJob, results chan<- ArtifactResult, totalArtifacts int, wg *sync.WaitGroup) {
defer wg.Done()
for job := range jobs {
result := processArtifactJob(ctx, job, totalArtifacts)
results <- result
}
}
// processArtifactJob downloads and processes a single artifact
func processArtifactJob(ctx context.Context, job ArtifactJob, totalArtifacts int) ArtifactResult {
var result ArtifactResult
fmt.Printf(" [%d/%d] Run %d/%d: Downloading artifact %s (ID: %d)...\n",
job.ArtifactNum, totalArtifacts, job.RunNumber, job.TotalRuns,
job.Artifact.Name, job.Artifact.ID)
// Download artifact
zipPath, err := downloadArtifact(ctx, job.Repo, job.Artifact.ID, job.TempDir)
if err != nil {
result.Error = fmt.Errorf("failed to download artifact %d: %w", job.Artifact.ID, err)
fmt.Printf(" Warning: %v\n", result.Error)
return result
}
// Extract XML files
xmlFiles, err := extractArtifactZip(zipPath, job.TempDir)
if err != nil {
result.Error = fmt.Errorf("failed to extract artifact %d: %w", job.Artifact.ID, err)
fmt.Printf(" Warning: %v\n", result.Error)
return result
}
fmt.Printf(" [%d/%d] Extracted %d XML files from %s\n",
job.ArtifactNum, totalArtifacts, len(xmlFiles), job.Artifact.Name)
// Parse JUnit XML files
for _, xmlFile := range xmlFiles {
suites, err := parseJUnitFile(xmlFile)
if err != nil {
fmt.Printf(" Warning: Failed to parse %s: %v\n", filepath.Base(xmlFile), err)
continue
}
// Extract failures
failures := extractFailures(suites, job.Artifact.Name, job.RunID, job.RunCreatedAt)
result.Failures = append(result.Failures, failures...)
// Extract all test runs for failure rate calculation
_, jobID, matrixName := parseArtifactName(job.Artifact.Name)
testRuns := extractAllTestRuns(suites, job.RunID, jobID, matrixName)
result.AllRuns = append(result.AllRuns, testRuns...)
}
fmt.Printf(" [%d/%d] Found %d failures from %d test runs in %s\n",
job.ArtifactNum, totalArtifacts, len(result.Failures), len(result.AllRuns), job.Artifact.Name)
for i := 0; i < len(result.Failures); i++ {
fmt.Printf(" Sample failure %d: %s\n", i+1, result.Failures[i].Name)
}
return result
}