Skip to content

GH-33283: [Dev][Archery][Crossbow] Fix task URL fallback before CI ru… - #53868

Open
limadog9 wants to merge 1 commit into
apache:mainfrom
limadog9:fix-crossbow-task-url-33283
Open

limadog9 wants to merge 1 commit into
apache:mainfrom
limadog9:fix-crossbow-task-url-33283

Conversation

@limadog9

@limadog9 limadog9 commented Oct 15, 2026 •

Copy link
Copy Markdown

Rationale for this change

Closes #33283.

When a Crossbow task has not published a build link yet, report badges currently fall back to the source branch. This makes the CI run harder to find while it is starting.

What changes are included in this PR?

Fall back to the branch-filtered GitHub Actions listing or Azure Pipelines’ latest build for the branch when no build link is available after the existing optional wait. Keep direct build links as the first choice and retain the source-branch fallback for other CI providers. Escape branch names in query parameters.

Are these changes tested?

Added regression coverage for provider fallbacks, direct-link precedence, status refresh outcomes, escaped branch names, and .git remotes. Five regression cases fail with the original implementation and pass with the fix.

  • Full Archery unit suite: cd dev/archery && python -m pytest -q archery — 132 passed, 1 skipped (integration test disabled by default).
  • Python formatting and lint checks pass for both changed files using the repository configuration and hook versions.
  • archery docker check-config and archery crossbow check-config pass.

Are there any user-facing changes?

Crossbow report badges point to the relevant CI build listing while the task’s direct build link is unavailable. No public API changes.

@limadog9
limadog9 requested a review from pitrou as a code owner October 15, 2026 03:33
@github-actions

Copy link
Copy Markdown

⚠️ GitHub issue #33283 has been automatically assigned in GitHub to PR creator.

@github-actions github-actions Bot added the awaiting review Awaiting review label Oct 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Awaiting review

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Dev][Archery][Crossbow] Comment report bot uses the wrong URL if task run has not started

1 participant