Skip to content

plumbing: transport, Expose test suites in transport/file. #1532

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 10 commits into from
Jun 17, 2025

Conversation

onee-only
Copy link
Contributor

One of the changes in #1450.

Partial fix was introduced in #1496 and this will entirely fix #1445.

@pjbgf
Copy link
Member

pjbgf commented May 24, 2025

@onee-only overall the changes look good, but I haven't spent much time on this PR as the testing aren't passing. Let me know if you need any help debugging the issue.

@onee-only
Copy link
Contributor Author

@onee-only overall the changes look good, but I haven't spent much time on this PR as the testing aren't passing. Let me know if you need any help debugging the issue.

The changes only include exposing the tests for plumbing/transport/file . So the failures seem to be caused by existing code. I haven't tried to debug the issue since it didn't seem to belong to the scope of this PR.

@onee-only
Copy link
Contributor Author

onee-only commented May 24, 2025

About the failures, I suspect they were caused by data race as mentioned in this previous comment: #1450 (comment). And I think this issue points to the same problem #1526.

@pjbgf
Copy link
Member

pjbgf commented Jun 4, 2025

@onee-only thank you for taking a look into this. 🙇 We will need to get the tests fixed before merging, to avoid that branch failing post merge. Please note I added a commit to your PR to include the fixture information for the tests.

@aymanbagabas I took an initial look at this. The PipeWriter.Write is getting blocked in the io.Copy within SendPack, but only on the sendPackDeleteReference. Any ideas what the problem may be here?

@CLBRITTON2
Copy link
Contributor

CLBRITTON2 commented Jun 5, 2025

I tried to log some of this today:
Could receive_pack be responsible for a hang? Specifically, this portion where needPackfile is determined and UpdateObjectStorage is conditionally called?

In the case of TestSendPackDeleteReference, the hash is zero so UpdateObjectStorage is skipped. I'm wondering if this leads to unconsumed data in the pipe, causing SendPack to wait for something to consume that data?

@pjbgf
Copy link
Member

pjbgf commented Jun 8, 2025

@onee-only do you mind merging this onee-only#1 please so that Ayman changes get into this PR as well?

@onee-only
Copy link
Contributor Author

@pjbgf I've merged the PR. Could you take a look at it?

@aymanbagabas
Copy link
Member

aymanbagabas commented Jun 10, 2025

@onee-only Could you merge v6-transport back into your branch?

EDIT: I've opened onee-only#2 to merge latest v6-transport and fix the issues present here (in the last two commits of that PR)

@onee-only onee-only force-pushed the v6-transport-expose-test branch from 3fe598a to 0f419e9 Compare June 11, 2025 10:15
@onee-only
Copy link
Contributor Author

@pjbgf @aymanbagabas I've cleaned the history and fixed a typo in commit message to pass the check.

Copy link
Member

@pjbgf pjbgf left a comment

Choose a reason for hiding this comment

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

Thank you @onee-only and @aymanbagabas for working on this. 🙇

@pjbgf pjbgf merged commit 5458d22 into go-git:v6-transport Jun 17, 2025
22 of 23 checks passed
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