Skip to content
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

chore: don't checkout code if we have a prepared workspace #4987

Closed
wants to merge 1 commit into from

Conversation

jbowes
Copy link
Member

@jbowes jbowes commented Jan 5, 2024

The workspace already has the code checked out, no need to do it, then
overwrite it with the workspace data.

@jbowes jbowes requested a review from a team as a code owner January 5, 2024 17:28
The workspace already has the code checked out, no need to do it, then
overwrite it with the workspace data.
@jbowes jbowes force-pushed the chore/dont-checkout-with-workspace branch from 1e5b59c to ddca8c8 Compare January 5, 2024 17:34
@@ -758,12 +757,7 @@ jobs:
- persist_to_workspace:
root: .
paths:
- binary-releases/*
Copy link
Collaborator

Choose a reason for hiding this comment

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

Context: We tried to optimize the runtime by being very selective when persisting the workspace. We observed performance issues on Windows runners when restoring the workspace. This is why it was more efficient to checkout the code instead of persisting it in the workspace.

Copy link
Member Author

Choose a reason for hiding this comment

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

time's a wash anyways 🤷

any idea what caused the issues for windows?

Copy link
Collaborator

@PeterSchafer PeterSchafer Jan 5, 2024

Choose a reason for hiding this comment

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

any idea what caused the issues for windows?

Unfortunately not! A wild guess would be, based on general observations on the windows runners, that they have a reduced performance when it comes to disk IO. Restoring the workspace is basically just an untar operation. Build and test duration are also not comparable to other runners.
But this is just guessing.

@jbowes
Copy link
Member Author

jbowes commented Jan 5, 2024

gonna delete this, it saves a few seconds on restore, but adds a few to build, so it's pretty even.

@jbowes jbowes closed this Jan 5, 2024
@jbowes jbowes deleted the chore/dont-checkout-with-workspace branch January 5, 2024 17:42
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.

2 participants