{"id":20102506,"url":"https://github.com/clickhouse/checkout","last_synced_at":"2025-11-28T06:04:59.503Z","repository":{"id":83649801,"uuid":"580105330","full_name":"ClickHouse/checkout","owner":"ClickHouse","description":"Wrapper around actions/checkout for flexible tuning","archived":false,"fork":false,"pushed_at":"2024-07-05T10:41:40.000Z","size":13,"stargazers_count":5,"open_issues_count":0,"forks_count":1,"subscribers_count":16,"default_branch":"main","last_synced_at":"2025-01-13T04:29:28.782Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ClickHouse.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2022-12-19T18:24:59.000Z","updated_at":"2024-09-09T19:04:56.000Z","dependencies_parsed_at":"2023-06-26T02:00:11.017Z","dependency_job_id":"efefc982-4433-4e38-9d34-925619d464be","html_url":"https://github.com/ClickHouse/checkout","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fcheckout","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fcheckout/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fcheckout/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ClickHouse%2Fcheckout/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ClickHouse","download_url":"https://codeload.github.com/ClickHouse/checkout/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241542084,"owners_count":19979251,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-13T17:31:28.143Z","updated_at":"2025-11-28T06:04:59.441Z","avatar_url":"https://github.com/ClickHouse.png","language":null,"readme":"# A thin wrapper for actions/checkout\n\n## Why?\n\nA few reasons:\n\n- Separate control for submodules' depth\n- The submodules' checkout time drastically decreased from 5 minutes to 1:20 for ClickHouse/ClickHouse CI\n- Added a very common step to clean out the old code\n- `--jobs` for fetching submodules surprisingly does much less parallel work under the hood than possible, see [comparison](#submodules-checkout-difference) of different time for different methods.\n\n### Submodules checkout difference\nHere's the difference between native git submodules' checkout difference and a custom one:\n\n```\n# Prepare repo, launched before each measurment\n$ rm -rf ClickHouse/ \u0026\u0026 time git clone git@github.com:ClickHouse/ClickHouse.git --no-tags --progress --no-recurse-submodules --depth=1 --branch=v23.1.1.3077-stable\n...\nreal\t0m9.553s\nuser\t0m4.253s\nsys\t0m1.359s\n\n$ time (\n  git -C ClickHouse submodule sync \u0026\u0026 \\\n  git -C ClickHouse submodule init \u0026\u0026 \\\n  git config --file ClickHouse/.gitmodules --null --get-regexp path | \\\n    sed -z 's|.*\\n||' | \\\n    xargs --max-procs=100 --null --no-run-if-empty --max-args=1 \\\n      git -C ClickHouse submodule update --depth=1 --single-branch\n)\n...\nreal\t1m48.657s\nuser\t1m34.088s\nsys\t0m31.364s\n\n$ time (\n  git -C ClickHouse submodule sync \u0026\u0026 \\\n  git -C ClickHouse submodule init \u0026\u0026 \\\n  git -C ClickHouse submodule update --depth=1 --single-branch --jobs=100\n)\n...\nreal\t2m48.604s\nuser\t1m29.671s\nsys\t0m30.433s\n\n$ time (\n  git -C ClickHouse submodule sync \u0026\u0026 \\\n  git -C ClickHouse submodule init \u0026\u0026 \\\n  git -C ClickHouse submodule update --depth=1 --single-branch\n)\n...\nreal\t6m16.782s\nuser\t1m29.483s\nsys\t0m29.985s\n\n$ time (\n  git -C ClickHouse submodule sync \u0026\u0026 \\\n  git -C ClickHouse submodule init \u0026\u0026 \\\n  git -C ClickHouse submodule update --jobs=100\n)\n...\nreal\t11m10.315s\nuser\t16m56.844s\nsys\t1m43.773s\n\n$ time (\n  git -C ClickHouse submodule sync \u0026\u0026 \\\n  git -C ClickHouse submodule init \u0026\u0026 \\\n  git -C ClickHouse submodule update\n)\n...\nreal\t12m57.784s\nuser\t16m37.995s\nsys\t1m30.242s\n```\n\n## Parameters\n\n- `clear-repository`: if the repository's directory should be deleted before cloning\n- `submodules-depth`: a separate setting for submodule's checkout\n\nThe parameters for the upstream `actions/checkout`\n\n- `fetch-depth`\n- `ref`\n- `submodules`\n- `token`\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickhouse%2Fcheckout","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fclickhouse%2Fcheckout","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fclickhouse%2Fcheckout/lists"}