Skip to content

Reduce transient DE legacy test job failures during dependency artifact download#9167

Draft
JesperSchulz with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-unit-tests
Draft

Reduce transient DE legacy test job failures during dependency artifact download#9167
JesperSchulz with Copilot wants to merge 2 commits into
mainfrom
copilot/fix-github-actions-unit-tests

Conversation

Copilot AI commented Jul 7, 2026

Copy link
Copy Markdown
Contributor

The failing Build Unit Tests (DE) (LegacyTestsBucket1) job was not failing in AL compilation or test execution; it was timing out while downloading dependency artifacts in the AL-Go pipeline. This change reduces that contention-driven failure mode by widening the startup staggering applied to test projects.

  • Root cause

    • Download Project Dependencies failed with Failed to GetSignedArtifactURL: ETIMEDOUT
    • The job had already downloaded most artifacts successfully, pointing to transient saturation on parallel test-job startup rather than a DE-specific product defect
  • Change

    • Widen the shared randomized startup delay used by test projects before AL-Go begins heavy dependency pulls
    • Increase the jitter window from 0–180s to 0–600s in the central test-project BuildInitialize hook
  • Scope

    • Keep the change centralized in the shared hook used by build/projects/Test Apps */.AL-Go/BuildInitialize.ps1
    • Avoid per-country/per-project customization; DE benefits through the existing shared test-project path
  • Guardrail

    • Add a focused Pester test covering the widened delay range so the hook behavior stays explicit and reviewable
$maxDelaySeconds = 600
$delaySeconds = Get-Random -Minimum 0 -Maximum ($maxDelaySeconds + 1)
Start-Sleep -Seconds $delaySeconds

Copilot AI changed the title [WIP] Fix failing GitHub Actions job for unit tests Reduce transient DE legacy test job failures during dependency artifact download Jul 7, 2026
Copilot AI requested a review from JesperSchulz July 7, 2026 09:08
@github-actions github-actions Bot added the needs-approval Workflow runs require maintainer approval to start label Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

needs-approval Workflow runs require maintainer approval to start

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants