Skip to content

Temporary workaround for "subtree" checkout errors on Windows#383

Merged
kaidokert merged 1 commit intoyoutube:mainfrom
kaidokert:workaround_checkouts
May 16, 2023
Merged

Temporary workaround for "subtree" checkout errors on Windows#383
kaidokert merged 1 commit intoyoutube:mainfrom
kaidokert:workaround_checkouts

Conversation

@kaidokert
Copy link
Copy Markdown
Member

@kaidokert kaidokert commented May 16, 2023

This switches Windows workers, which are not yet ephemeral to use a patched version of checkouts.

This guarantees always cleaning up repo state even in case of previous bad submodules-like repo operations done by a previous run.

In the long run, we should be using ephemeral workers, and switch to upstream fixed version if the PR gets merged upstream.

Upstream PR: actions/checkout#1321

b/282361986
b/258687270

This switches Windows workers, which are not yet ephemeral to use
a patched version of checkouts.

This guarantees always cleaning up repo state even in case of
previous bad submodules-like repo operations done by a previous
run.

In the long run, we should be using ephemeral workers, and switch
to upstream fixed version if the PR gets merged upstream.

b/282361986
@kaidokert kaidokert force-pushed the workaround_checkouts branch from cd3e8d0 to 5f1b187 Compare May 16, 2023 03:08
@kaidokert kaidokert requested review from briantting and isarkis May 16, 2023 03:08
@kaidokert kaidokert merged commit 3c24834 into youtube:main May 16, 2023
@kaidokert kaidokert added the cp-23.lts.1+ Cherry Pick to the 23.lts.1+ branch label May 16, 2023
cobalt-github-releaser-bot pushed a commit that referenced this pull request May 16, 2023
This switches Windows workers, which are not yet ephemeral to use
a patched version of checkouts.

This guarantees always cleaning up repo state even in case of
previous bad submodules-like repo operations done by a previous
run.

In the long run, we should be using ephemeral workers, and switch
to upstream fixed version if the PR gets merged upstream.

Upstream PR: actions/checkout#1321

b/282361986
b/258687270

(cherry picked from commit 3c24834)
kaidokert added a commit that referenced this pull request May 16, 2023
…386)

This switches Windows workers, which are not yet ephemeral to use
a patched version of checkouts.

This guarantees always cleaning up repo state even in case of
previous bad submodules-like repo operations done by a previous
run.

In the long run, we should be using ephemeral workers, and switch
to upstream fixed version if the PR gets merged upstream.

Upstream PR: actions/checkout#1321

b/282361986
b/258687270

(cherry picked from commit 3c24834)

Co-authored-by: Kert <kaidokert@google.com>
kaidokert added a commit to kaidokert/cobalt that referenced this pull request May 18, 2023
This uses the patched workaround version of checkout action to
sidestep submodules issues. In original PR youtube#383 we only fixed
Windows workflows that had issues due to peristent runners, but
similar problems also trip on Linux/other builds.

b/282361986
kaidokert added a commit to kaidokert/cobalt that referenced this pull request May 18, 2023
This uses the patched workaround version of checkout action to
sidestep submodules issues. In original PR youtube#383 we only fixed
Windows workflows that had issues due to persistent runners, but
similar problems also trip on Linux/other builds.

b/282361986
kaidokert added a commit that referenced this pull request May 18, 2023
This uses the patched workaround version of checkout action to
sidestep submodules issues. In original PR #383 we only fixed
Windows workflows that had issues due to persistent runners, but
similar problems also trip on Linux/other builds.

b/282361986
sherryzy pushed a commit to sherryzy/cobalt that referenced this pull request May 18, 2023
This uses the patched workaround version of checkout action to
sidestep submodules issues. In original PR youtube#383 we only fixed
Windows workflows that had issues due to persistent runners, but
similar problems also trip on Linux/other builds.

b/282361986
@kaidokert kaidokert deleted the workaround_checkouts branch June 30, 2024 19:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cp-23.lts.1+ Cherry Pick to the 23.lts.1+ branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants