Commit 07fb242
Add fork of checkout action with enhanced capabilities (#7597)
This is a fork of the [`actions/checkout`
action](https://github.com/actions/checkout).
The main addition is the ability to apply filters to submodule handling
and the ability to do single branch checkouts also for non-shallow
checkouts.
For this, it adds the `single-branch` and `submodules-filter` option as
described in the Usage section of the updated README.md.
The purpose is to use these extensions to cut down on checkout time in
the multitude of ci jobs that need to check out the pytorch repository
as discussed in pytorch/pytorch#169184.
The updated README.md file also includes instructions for future updates
to newer versions of the upstream action.
Some timings are taken from
pytorch/pytorch#167737:
|Workflow|Time on `viable/strict`|Time here|Time Saving|
|-|-|-|-|
|Lint/lintrunner-noclang| 2m42s | 55s | 1m47s |
| linux-jammy-py3.14-clang12/build (via _linux-build)| 2m30s | 1m29s|
61s|
| linux-jammy-cuda12.8-cudnn9-py3.10-clang12 / build (via _linux-build)
| 2m31s | 1m33s| 59s|
In other words, we can save ~1m per checkout where shallow checkouts are
not feasible, which includes build and test jobs on trunk and pull.
With a total of 276 jobs on trunk at the moment and ~90 jobs on a pull
request, assuming ~70 PRs per day, the cumulative savings with savings
of 1 minute per checkout could be between 75 and 150 hours.
---------
Co-authored-by: actions/checkout contributors <unknown@example.com>1 parent 46262cb commit 07fb242
File tree
98 files changed
+54560
-0
lines changed- .github
- actions/checkout
- .licenses/npm
- @actions
- @fastify
- @octokit
- __test__
- adrs
- dist
- images
- src
- misc
- workflows
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
98 files changed
+54560
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 32 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 20 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments