Skip to content

[6.0] Add --stash as alternative to --clean to update-checkout (#71178) #72640

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 28, 2024

Conversation

harshitapath
Copy link

Cherry picking #71178 to release/6.0.

We see some issues on our PR testing because update checkout command first checks out the associated branch (in this case 6.0) and we're missing this change. Something in the python byte code being on multiple processes causes it to recompile after the initial checkout to 6.0 is done, but still be called from the initial python process which was on main

source_root, config, repo_name, scheme_name, scheme_map, tag, timestamp, \
ValueError: too many values to unpack (expected 10)

https://ci.swift.org/job/apple-llvm-project-pr-macos/5081/console

Use of `--clean` can lead to irreversible loss of uncommitted data. We still need to reset Swift project repositories to a clean state, but without deleting all in-progress changes. Passing `--stash` instead of (or in addition to) `--clean` will preserve uncommitted changes in stashes of corresponding repositories.
@harshitapath harshitapath requested a review from a team as a code owner March 27, 2024 23:16
@rintaro
Copy link
Member

rintaro commented Mar 28, 2024

@swift-ci Please test

Copy link
Member

@rintaro rintaro left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds reasonable to me. Deferring to @MaxDesiatov

@shahmishal shahmishal merged commit 7964341 into release/6.0 Mar 28, 2024
@shahmishal shahmishal deleted the release-6.0-fix-update-checkout branch March 28, 2024 16:56
@AnthonyLatsis AnthonyLatsis changed the title Add --stash as alternative to --clean to update-checkout (#71178) [6.0] Add --stash as alternative to --clean to update-checkout (#71178) Mar 30, 2024
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.

4 participants