Skip to content

git: fix riscv64-linux build#536619

Closed
liberodark wants to merge 1 commit into
NixOS:masterfrom
liberodark:git_riscv
Closed

git: fix riscv64-linux build#536619
liberodark wants to merge 1 commit into
NixOS:masterfrom
liberodark:git_riscv

Conversation

@liberodark

@liberodark liberodark commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

fix git issue :

git-riscv64-linux> Test Summary Report
git-riscv64-linux> -------------------
git-riscv64-linux> t0213-trace2-ancestry.sh                         (Wstat: 256 (exited 1) Tests: 5 Failed: 4)
git-riscv64-linux>   Failed tests:  2-5
git-riscv64-linux>   Non-zero exit status: 1
git-riscv64-linux> Files=1028, Tests=29512, 1604 wallclock secs (41.52 usr  2.33 sys + 15862.29 cusr 1850.84 csys = 17756.98 CPU)
git-riscv64-linux> Result: FAIL
git-riscv64-linux> make[1]: *** [Makefile:78: prove] Error 1
git-riscv64-linux> make[1]: Leaving directory '/build/git-2.54.0/t'
git-riscv64-linux> make: *** [Makefile:3391: test] Error 2

Things done

@liberodark liberodark added the backport release-26.05 Backport PR automatically label Jun 29, 2026
@nixpkgs-ci nixpkgs-ci Bot requested review from a team, infinisil, kashw2, me-and, philiptaron, wmertens and zivarah and removed request for a team June 29, 2026 11:18
@nixpkgs-ci nixpkgs-ci Bot added 10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. labels Jun 29, 2026
@liberodark liberodark marked this pull request as draft June 29, 2026 11:21
@liberodark liberodark marked this pull request as ready for review June 29, 2026 12:28
@philiptaron

philiptaron commented Jun 29, 2026

Copy link
Copy Markdown
Contributor

Can you do a little more root-causing on why this is? Is there an upstream issue?

@nixpkgs-ci nixpkgs-ci Bot requested review from a team and balsoft and removed request for a team June 29, 2026 13:50
@liberodark

Copy link
Copy Markdown
Contributor Author

Can you do a little more root-causing on why this is? Is there an upstream issue?

Hi,

I'm actually looking into this right now; I'm not sure the issue lies with upstream.
But I hope Tristan will also have time to provide some feedback on his end.
I've observed this behavior with qemu.
Unfortunately, it takes several hours to attempt to reproduce the issue.
I have reproduced it four times using qemu.
I am currently working with riscv64 hardware.

Best Regards

@nixpkgs-ci nixpkgs-ci Bot requested a review from a team June 29, 2026 15:07
@infinisil infinisil removed their request for review June 30, 2026 08:51
@me-and

me-and commented Jun 30, 2026

Copy link
Copy Markdown
Member

Yeah, I'm not comfortable disabling tests just because they fail. Those tests are there for a reason, and we should understand what the failure means or implies before disabling it.

@liberodark

liberodark commented Jun 30, 2026

Copy link
Copy Markdown
Contributor Author

Yeah, I'm not comfortable disabling tests just because they fail. Those tests are there for a reason, and we should understand what the failure means or implies before disabling it.

Hi,

Me too.
That is why I am waiting for the tests to finish and for further feedback before trying to reproduce it.
I can move it to draft if you like.
PS : To be precise, it’s not the entire test that’s failing.
But I’m still waiting for some feedback sorry, it’s taking a very, very long time.

Best Regards

@philiptaron philiptaron marked this pull request as draft June 30, 2026 14:51
@philiptaron

Copy link
Copy Markdown
Contributor

But I’m still waiting for some feedback sorry, it’s taking a very, very long time.

Yeah, this is the RISC-V sadness. Hopefully the newer chips are faster and more effective.

I moved it to draft; please ping me if you get something definitive.

@JamieMagee

Copy link
Copy Markdown
Member

I think it's a QEMU emulation artifact, not a real riscv64 failure.

On native hardware it passes:

t0213-trace2-ancestry.sh ... ok
Result: PASS

The test checks git's trace2 cmd_ancestry event, which git builds by walking the process tree and reading each process's comm from /proc/<pid>/stat. Tests 2-5 truncate the ancestry at the literal string test-tool and compare against test-tool/git test-tool.

@liberodark liberodark closed this Jul 5, 2026
@liberodark

Copy link
Copy Markdown
Contributor Author

I think it's a QEMU emulation artifact, not a real riscv64 failure.

On native hardware it passes:

t0213-trace2-ancestry.sh ... ok
Result: PASS

The test checks git's trace2 cmd_ancestry event, which git builds by walking the process tree and reading each process's comm from /proc/<pid>/stat. Tests 2-5 truncate the ancestry at the literal string test-tool and compare against test-tool/git test-tool.

Hi,

I think too yes.
Thank for your test.

Best Regards

@JamieMagee

Copy link
Copy Markdown
Member

I've made an attempt to fix this upstream: gitgitgadget/git#2168

@balsoft balsoft moved this from Needs Review to Reviewed in Nixpkgs security review Jul 7, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

10.rebuild-darwin: 0 This PR does not cause any packages to rebuild on Darwin. 10.rebuild-linux: 0 This PR does not cause any packages to rebuild on Linux. backport release-26.05 Backport PR automatically

Projects

Status: Reviewed

Development

Successfully merging this pull request may close these issues.

5 participants