[ 
https://issues.apache.org/jira/browse/HADOOP-20056?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18144811#comment-18144811
 ] 

ASF GitHub Bot commented on HADOOP-20056:
-----------------------------------------

geographybuff opened a new pull request, #8996:
URL: https://github.com/apache/hadoop/pull/8996

   ### Description of PR
   
   Addendum to HADOOP-20056 (#8912): bump the fork-ci pin in 
`.github/workflows/fork_ci_status.yml` from v1.0.0 to v1.0.1, along with the 
README link in the header comment. Nothing else changes.
   
   fork-ci v1.0.1 is the merge of apache/infrastructure-actions#1514, which 
fixes apache/infrastructure-actions#1512. GitHub stores a check's own page as 
its `details_url`, not the fork-run link the bridge sends, so on v1.0.0 the 
"unchanged, skip the write" comparison never matches. As a result, every sweep 
re-reads the PR and rewrites its check. v1.0.1 leaves `details_url` out of that 
comparison. The run link is still compared through `summary`, so a new run 
still gets written.
   
   On trunk today, the last four scheduled sweeps wrote 58 of 68, 51 of 61, 42 
of 51 and 56 of 71 checks 
([43591051145](https://github.com/apache/hadoop/actions/runs/43591051145), 
[43591852730](https://github.com/apache/hadoop/actions/runs/43591852730), 
[43592537736](https://github.com/apache/hadoop/actions/runs/43592537736), 
[43594106711](https://github.com/apache/hadoop/actions/runs/43594106711)). The 
bridge sweeps 6 times an hour.
   
   The plan in #8912 was for Dependabot (HADOOP-20050) to propose this bump. 
With the 7-day cooldown and a weekly schedule, that would come around 
2026-11-21 at the earliest, inside the grouped github-actions PR (#8911 is 
currently open with eight major-version bumps). This PR takes the one pin on 
its own. Once it is merged, Dependabot finds nothing to change for this action.
   
   **Evidence that v1.0.1 behaves as intended**
   
   - apache/ozone and apache/ozone-thirdparty follow the moving `fork-ci/v1` 
tag, so they picked up the fix at merge. ozone-thirdparty went from 2 of 2 
checks written on every sweep to 0 of 2. ozone went from 25–29 written per 
sweep to 0 of 31 on recent sweeps. Before/after runs: 
https://github.com/apache/infrastructure-actions/issues/1512#issuecomment-6877139761
   - A re-run of this repository's current trunk bridge against v1.0.0 and 
v1.0.1 is described below.
   
   **Acknowledgements**
   
   Thanks to @GauthamBanasandra for HADOOP-20056 and for checking 
apache/infrastructure-actions#1512 against this repository in #8912, with the 
API-budget correction that put the cost in numbers. Thanks to @pan3793 for the 
#8912 review, which found the never-enabled-fork case 
(apache/infrastructure-actions#1513) first. On the fork-ci side, thanks to 
@kumarUjjawal for reviewing apache/infrastructure-actions#1514 and to @potiuk 
for reviewing and merging it.
   
   ### How was this patch tested?
   
   In a sandbox repository (geographybuff-sandbox/arrow-rs-fork-ci-test, five 
open PRs, four of them from a fork), trunk's `fork_ci_status.yml` at 8180a87 
was run as two copies side by side: one exactly as on trunk (v1.0.0) and one 
with only this PR's pin (v1.0.1). The copies change only what the sandbox 
requires: the repository guard, `workflow`, `base-branches`, check name, 
concurrency group and workflow name. They also run on `workflow_dispatch` 
instead of the schedule. `sweep-size: "50"`, `sweep-minutes: "10"` and 
`guide-url` are unchanged. Full write-up: 
https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/blob/6696f165f2d0bdc036d1e23960fd20e852294b1d/RESULTS.md#hadoop-trunk-at-fork-ci-v101-2026-11-14
   
   | Sweep | What changed before it | v1.0.0 (trunk) | v1.0.1 (this PR) |
   |---|---|---|---|
   | 1 | first run, no checks yet | [5 of 5 
written](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595214280)
 | [5 of 5 
written](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595218305)
 |
   | 2 | nothing | [5 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595253398)
 | [0 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595257191)
 |
   | 3 | nothing | [5 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595290011)
 | [0 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595294110)
 |
   | 4 | new head pushed to one fork PR, its [fork 
run](https://github.com/geographybuff/arrow-rs-fork-ci-test/actions/runs/43595345943)
 in progress | [5 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595375782)
 | [1 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595380126)
 |
   | 5 | that fork run finished (it fails by design) | [5 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595446419)
 | [1 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595450129)
 |
   | 6 | nothing | [5 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595484616)
 | [0 of 
5](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/actions/runs/43595488177)
 |
   | Total | | 30 writes | 7 writes |
   
   Both copies end with the same check on the changed PR: `completed/failure`, 
"Fork run failure" 
([v1.0.0](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/runs/132448677265),
 
[v1.0.1](https://github.com/geographybuff-sandbox/arrow-rs-fork-ci-test/runs/132448684645)).
   
   Also run on this PR's file and pin:
   - zizmor 1.32.0 (`--persona=regular`): no findings.
   - apache/infrastructure-actions `allowlist-check` v1.0.4 (the check 
`asf_allowlist_check.yml` runs): passes, since `apache/` is a trusted owner.
   - fork-ci's own suites at adff9de: `node --test fork-ci/bridge.test.cjs` 68 
of 68 passed, `pytest fork-ci/test_action.py` 21 of 21 passed.
   
   ### For code changes:
   
   - [x] Does the title of this PR start with the corresponding JIRA issue id 
(e.g. 'HADOOP-17799. Your PR title ...')?
   - [ ] Object storage: Have the integration tests been executed and the 
endpoint
         declared according to the connector-specific documentation? (Not 
applicable: workflow-only change.)
   - [ ] If adding new dependencies to the code, are these dependencies 
licensed in a way that is compatible for inclusion under [ASF 
2.0](http://www.apache.org/legal/resolved.html#category-a)? (No new 
dependencies.)
   - [ ] If applicable, have you updated the `LICENSE`, `LICENSE-binary`, 
`NOTICE-binary` files? (Not applicable.)
   
   ### AI Tooling
   
   If an AI tool was used:
   
   - [x] The PR includes the phrase "Contains content generated by Claude Code"
         where Claude Code is the name of the AI tool used.
   - [x] My use of AI contributions follows the ASF legal policy
         https://www.apache.org/legal/generative-tooling.html
   
   Contains content generated by Claude Code. Drafted by Claude Code (Opus 
5.5); no human review before posting.
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)
   




> Replace the pull_request_target "Build" check bridge with ASF fork-ci
> ---------------------------------------------------------------------
>
>                 Key: HADOOP-20056
>                 URL: https://issues.apache.org/jira/browse/HADOOP-20056
>             Project: Hadoop Common
>          Issue Type: Bug
>          Components: hadoop-common
>    Affects Versions: 3.5.0
>            Reporter: Gautham Banasandra
>            Assignee: Gautham Banasandra
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 3.5.0
>
>
> ASF Infra disables the {{pull_request_target}} trigger for ASF repositories 
> from November 2026 ([ASF GitHub Actions 
> policy|https://infra.apache.org/github-actions-policy.html]). ASF 
> repositories cannot opt back in.
> Hadoop uses {{pull_request_target}} to put the "Build" check on pull 
> requests. Contributors run {{build_and_test.yml}} in their own fork on 
> {{push}}, and two upstream workflows mirror that run onto the PR:
> * {{notify_test_workflow.yml}} ({{pull_request_target}}) finds the fork's run 
> and creates the "Build" check.
> * {{update_build_status.yml}} (cron, every 15 minutes) updates the check 
> until the fork run completes.
> Once the trigger is disabled, PRs lose the "Build" check.
> h3. Proposal
> Replace both workflows with one schedule-driven bridge built on ASF Infra's 
> [fork-ci 
> action|https://github.com/apache/infrastructure-actions/tree/fork-ci/v1.0.0/fork-ci]
>  ({{fork-ci/v1.0.0}}):
> * Add {{.github/workflows/fork_ci_status.yml}}. It is triggered only by 
> {{schedule}} (every 10 minutes) and {{workflow_dispatch}}. It has no 
> {{pull_request_target}} and no {{workflow_run}} trigger, which SECURITY.md 
> disallows and zizmor flags as a dangerous trigger.
> * The job token has only {{actions: read}}, {{checks: write}} and 
> {{pull-requests: read}}. The workflow is guarded to {{apache/hadoop}}, 
> serialized in one concurrency group, and runs on {{ubuntu-slim}} with a 
> 10-minute timeout. The action is pinned by commit SHA.
> * fork-ci reads GitHub API metadata only. It never checks out, builds or 
> downloads anything from the PR or the fork, and it writes only its own checks.
> * Keep the check name "Build". Mirror PRs against {{trunk}}, the only branch 
> that currently has {{build_and_test.yml}}.
> * Add {{workflow_dispatch}} to {{build_and_test.yml}}, as fork-ci requires. 
> Contributors can then rerun the build on their PR branch without pushing 
> again.
> * Delete {{notify_test_workflow.yml}} and {{update_build_status.yml}} in the 
> same change, so two bridges never write "Build" checks at the same time.
> * Update {{.github/workflow-security.md}} to describe the new bridge and the 
> {{schedule}} / {{workflow_dispatch}} triggers.
> h3. Behaviour changes for contributors
> * A new PR's "Build" check appears on the next scheduled run, typically 
> within 10-20 minutes, instead of right after the PR is opened.
> * If no fork run is found, the check is now "neutral" with setup advice 
> instead of "action required". Disabled fork workflows still get "action 
> required".
> * On PRs that are open at the cutover, the old "Build" check stops updating, 
> and a new "Build" check appears beside it until the next push.
> h3. Out of scope (follow-ups)
> * {{labeler.yml}} and {{notify_cloud_aws.yml}} also use 
> {{pull_request_target}} and need their own migration before the cutoff.
> * A "Build (Windows)" check for the planned {{build_and_test_windows.yml}} 
> can be added later as a second fork-ci step in the same workflow.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to