[
https://issues.apache.org/jira/browse/HADOOP-19965?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18105373#comment-18105373
]
Aaron Fabbri commented on HADOOP-19965:
---------------------------------------
I have also seen this occasionally. [~chengpan] should we add a condition to
skip this for fork repos? When we test with fork-of-fork usecases, we could
just modify the condition manually. Or, we could hard-code a whitelist of forks
that it runs on?
> GHA update build status runs in forked repos fails, floods inboxes
> ------------------------------------------------------------------
>
> Key: HADOOP-19965
> URL: https://issues.apache.org/jira/browse/HADOOP-19965
> Project: Hadoop Common
> Issue Type: Bug
> Components: build, ci
> Affects Versions: 3.6.0
> Reporter: Steve Loughran
> Assignee: Aaron Fabbri
> Priority: Minor
>
> My github inbox is flooded with error messages from the
> .github/workflows/update_build_status.yml job which is being run every 15
> minutes on my fork of the apache repo as I've pushed a copy of the trunk
> branch up there.
> It's failing as I have no PRs. otherwise it'd just be wasting my GHA minutes.
> Proposed: this doesn't run on forks.
> {code}
> GET /repos/steveloughran/hadoop/pulls?state=open - 404 with id
> 0E80:6034E:2522EC:7B792A:6A80951B in 179ms
> RequestError [HttpError]: Not Found -
> https://docs.github.com/rest/pulls/pulls#list-pull-requests
> at fetchWrapper
> (/home/runner/work/_actions/actions/github-script/v9/dist/index.js:61509:11)
> at process.processTicksAndRejections
> (node:internal/process/task_queues:104:5)
> at async Object.next
> (/home/runner/work/_actions/actions/github-script/v9/dist/index.js:64409:28)
> at async eval (eval at callAsyncFunction
> (/home/runner/work/_actions/actions/github-script/v9/dist/index.js:64949:16),
> <anonymous>:14:18)
> at async main
> (/home/runner/work/_actions/actions/github-script/v9/dist/index.js:65100:20) {
> status: 404,
> request: {
> method: 'GET',
> url: 'https://api.github.com/repos/steveloughran/hadoop/pulls?state=open',
> headers: {
> accept: 'application/vnd.github.v3+json',
> 'user-agent': 'actions/github-script
> actions_orchestration_id/fb6b6cb8-c020-4b93-bc8d-fe128c5a67e0.update.__default
> octokit-core.js/7.0.6 Node.js/24',
> authorization: 'bearer [REDACTED]'
> },
> request: {
> agent: [Agent],
> fetch: [Function: proxyFetch],
> hook: [Function: bound bound register]
> }
> },
> response: {
> url: 'https://api.github.com/repos/steveloughran/hadoop/pulls?state=open',
> status: 404,
> headers: {
> ...
> },
> data: {
> message: 'Not Found',
> documentation_url:
> 'https://docs.github.com/rest/pulls/pulls#list-pull-requests',
> status: '404'
> }
> },
> [cause]: undefined
> }
--
This message was sent by Atlassian Jira
(v8.20.10#820010)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]