HADOOP-19193. Create orphan commit for website deployment#6864
HADOOP-19193. Create orphan commit for website deployment#6864steveloughran merged 1 commit intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
|
merged. do we need to do it for other branches? |
|
The GitHub Actions workflow is only triggered by pushing commits to the trunk, no backport is required. |
|
@steveloughran I tested the trunk sync and fresh repo clone, the downloaded size is much more reasonable now. |
|
thanks. This is the key cause of the really big downloads, isn't it? |
|
(I still think we should cull old branches, FWIW) |
should be, although I haven't analyzed the git repo blob, just asserting based on experience.
I see your post in the mailing list, well, deleting old release branches (<2.6) might be aggressive. The contribution of release branches to the total volume of the git repo should be negligible, I would suggest reserving them but deleting branches like Additionally, seems that Hadoop creates branches for each release, it does not clean as Spark - only cutting branches for minor versions, and creating release tags on those branches. |
|
we do a branch for things like 3.4.0, 3.4.1 so that we can do release stuff there which isn't needed on the main branch (pom changes, references, diffs). Not sure what we could do different there |
|
Use Spark
If something goes wrong, the RC fails, then repeat the work until the release is out. |

Description of PR
Currently, the gh-pages deployment always creates new commits based on the previous one, which causes the git repo size to grow fast.
According to https://github.com/peaceiris/actions-gh-pages?tab=readme-ov-file#%EF%B8%8F-force-orphan-force_orphan, we can use
force_orphan: trueto create an orphan commit which is sufficient for website deployment cases, as it is some kinds of compilation outputs, we don't need to keep all history commits.How was this patch tested?
Review.
For code changes:
LICENSE,LICENSE-binary,NOTICE-binaryfiles?