Skip to content

[SPARK-58088][INFRA] Extract checkout-and-sync pattern into composite GitHub Action#57187

Draft
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:SPARK-58088-checkout-sync-composite-action
Draft

[SPARK-58088][INFRA] Extract checkout-and-sync pattern into composite GitHub Action#57187
nchammas wants to merge 2 commits into
apache:masterfrom
nchammas:SPARK-58088-checkout-sync-composite-action

Conversation

@nchammas

Copy link
Copy Markdown
Contributor

What changes were proposed in this pull request?

Extract the widely used checkout-and-sync pattern from various workflows into a reusable composite action. The pattern is used in about 16 different places across 3 workflow files.

We first do a normal checkout of the fork so that the latest version of the composite action is available. Using the composite action, we then checkout apache/spark and merge the changes as we currently do.

There are other opportunities for extracting repeated build patterns. I will pursue them after proving out this refactoring, which perhaps offers the highest ROI since this pattern is the most highly used.

Why are the changes needed?

Having a reusable action will eliminate the need to manually keep so many chunks of build instructions in sync.

The "checkout fork, then checkout apache/spark" approach introduced here is different from the past attempts made to factor out repeated build steps in #36924 and #56204.

Does this PR introduce any user-facing change?

No.

How was this patch tested?

The CI build associated with this PR will serve as the test.

Was this patch authored or co-authored using generative AI tooling?

I wrote this with assistance from GitHub Copilot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant