---
id: change/al-go/2378
type: change
title: "#2378 Retry CI/CD baseline discovery when no eligible run is found"
summary: AL-Go now retries CI/CD baseline discovery up to three times when the GitHub workflow-runs API returns incomplete results, with backoff pauses between attempts and pagination resets to avoid missing eligible baselines.
tier: official
language: en
tags:
  - fix
  - main
system: platform
review:
  state: reviewed
  by: opus
  at: "2026-10-08T02:03:12.617Z"
  flags: []
generated:
  at: "2026-10-08T01:26:53.141Z"
  pipeline: 0.2.0
  prompts:
    extract-change: 1
  input_hash: d0797b66d2cac5a496e50fa9a5082a792671acaf
evidence:
  - kind: code
    url: https://github.com/microsoft/AL-Go/pull/2378
    title: "microsoft/AL-Go#2378: Retry CI/CD baseline discovery when no eligible run is found"
    date: "2026-09-29"
    commit: d0797b66d2cac5a496e50fa9a5082a792671acaf
    t: null
    quote: Attempt discovery up to three times, waiting 5 and 10 seconds between unsuccessful passes and restarting pagination at page 1.
links:
  learn: []
  objects: []
  features: []
  topics: []
  localizations: []
  videos: []
  posts: []
  guidelines: []
  changes: []
number: 2378
repo: microsoft/AL-Go
source_id: al-go-prs
url: https://github.com/microsoft/AL-Go/pull/2378
kind: pr
base_branch: main
major: null
merged_at: "2026-09-29T15:42:52Z"
author: aholstrup1
author_type: User
community_contribution: false
labels: []
change_class: code
change_kind: fix
behavior_change: true
breaking: false
files:
  count: 3
  additions: 139
  deletions: 28
  al: 1
apps: []
objects_touched: []
objects_unjoined:
  - path: Actions/Github-Helper.psm1
    status: modified
    reason: not-in-snapshot
obsoletions: []
backports: []
fixes_issues: []
work_items:
  - 650804
systems:
  - platform
quote: Attempt discovery up to three times, waiting 5 and 10 seconds between unsuccessful passes and restarting pagination at page 1.
joined_against:
  major: null
  commit: null
---

# #2378 Retry CI/CD baseline discovery when no eligible run is found

> AL-Go now retries CI/CD baseline discovery up to three times when the GitHub workflow-runs API returns incomplete results, with backoff pauses between attempts and pagination resets to avoid missing eligible baselines.

[Pull request](https://github.com/microsoft/AL-Go/pull/2378) · merged into `main` on 2026-09-29 by aholstrup1 · 3 files (+139 -28), 1 AL · fix · tier official · reviewed (checked by Opus)

## What changed

- Discovery retries up to three times with 5 and 10 second waits between unsuccessful passes
- Pagination resets to page 1 on each retry attempt
- Preserves existing criteria for accepting successful and non-cancelled runs with successful build jobs
- Adds diagnostic logging of attempt counts, page numbers, and URL-encoded filter values
- Includes comprehensive test coverage for success, exhaustion, pagination, and query encoding
- Behaviour changes for users or extensions.

## AL objects touched

- `Actions/Github-Helper.psm1`: modified, not in the BC? snapshot

## Context

- Work items: AB#650804
- Systems: platform
- From the description: "Attempt discovery up to three times, waiting 5 and 10 seconds between unsuccessful passes and restarting pagination at page 1."

Source: metadata of a merged pull request in microsoft/AL-Go (al-go): title, labels, changed paths and counts, with a summary in our words. No source text and no description beyond one short quote (D10, D61).
