[Dev][Archery][Crossbow] Comment report bot uses the wrong URL if task run has not started
- Dominant language
- C++
- Stars
- 17.1k
- Forks
- 4.3k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 91
Description
As discussed on this comment:
Sometimes the task URL that we use on the report is not correct because the job run has not yet started on GitHub forcing us to wait and if not found using the branch URL. On those cases we should use the URL we used to use before ARROW-18028 was merged:
https://issues.apache.org/jira/browse/ARROW-18028
On the case of GitHub:
```java
https://github.com/{repo}/actions?query=branch:{branch}
```
**Reporter**: [Raúl Cumplido](https://issues.apache.org/jira/browse/ARROW-18085) / @raulcd
#### Original Issue Attachments:
- [task-url-link.png](https://issues.apache.org/jira/secure/attachment/13051101/task-url-link.png)
**Note**: *This issue was originally created as [ARROW-18085](https://issues.apache.org/jira/browse/ARROW-18085). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Contributor guide
Research direction
Start with the discussion in PR #14446 and the behavior introduced by ARROW-18028, then locate the Archery/Crossbow comment report code that builds task URLs. Reproduce the case where a GitHub Actions run has not started and compare the generated link with the branch-query fallback. Done means the report uses the prior actions query URL when no run URL is available.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- github-actions
- Domain
- ci-cd, devops, tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 25/100