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

Don't reuse git dir across runs node-ci and ios-ci #1182

Closed
wants to merge 5 commits into from

Conversation

louwers
Copy link
Collaborator

@louwers louwers commented May 26, 2023

We recently deleted a submodule, but the self-hosted runners for Node.js and macOS now fail with the message that the deleted submodule cannot be found in .gitmodules.

This can be avoided by not re-using the same git directory across runs.

@louwers louwers requested a review from mwilsnd May 26, 2023 15:45
@github-actions
Copy link

Size test result

Old size: bytes
New size: 9134064 bytes
Difference: ****

run: |
auth_header="$(git config --local --get http.https://github.com/.extraheader)"
git submodule sync --recursive
git -c core.longpaths=true -c "http.extraheader=$auth_header" -c protocol.version=2 submodule update --init --force --recursive || true
Copy link
Collaborator

Choose a reason for hiding this comment

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

just an fyi, there is a reason we did it this way. On the windows platform the normal checkout has issues with long file names, which this got around.

It may be possible that with the recent reorg of files that this path issue was no longer a problem, but we would have to look out for that.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I remember this causing problems for me cloning on my windows system but I just did a recursive clone and it seems fine now. I checked and I still have long path support disabled at the moment.

If I recall correctly it was test fixtures in a submodule that had extremely long file names which caused problems.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks! I am indeed running into that problem when I do a recursive merge.

@louwers
Copy link
Collaborator Author

louwers commented May 26, 2023

@mwilsnd This seems to be the issue actions/checkout#354

The problem is only showing up on self-hosted runners. I created a new issue there and I deleted the actions-runner/_work directory on the self-hosted runners. I hope that will solve the problem.

@louwers louwers closed this May 26, 2023
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.

3 participants