Bug 1217239

Summary: gh fails to build on *SSH* test suites
Product: [openSUSE] openSUSE Distribution Reporter: Lubos Kocman <lubos.kocman>
Component: OtherAssignee: Pavel Dostál <pdostal>
Status: NEW --- QA Contact: E-mail List <qa-bugs>
Severity: Major    
Priority: P5 - None    
Version: Leap 15.6   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Lubos Kocman 2023-11-16 15:28:38 UTC
Hello

gh does not build on Leap 15.6. This should be fixed before Beta (Feb 2023).
https://en.opensuse.org/openSUSE:Roadmap#Schedule_for_openSUSE_Leap_15.6

Build log from Leap 15.6
https://build.opensuse.org/package/live_build_log/openSUSE:Backports:SLE-15-SP6/gh/standard/x86_64

[   74s] ok  	github.com/cli/cli/v2/pkg/cmd/cache/shared	0.014s
[   75s] ?   	github.com/cli/cli/v2/pkg/cmd/config	[no test files]
[   75s] --- FAIL: TestPendingOperationDisallowsSSH (0.00s)
[   75s]     ssh_test.go:22: expected pending operation error, but got: selecting ssh keys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s] --- FAIL: TestGenerateAutomaticSSHKeys (0.00s)
[   75s]     ssh_test.go:86: Unexpected error from generateAutomaticSSHKeys: exec: "ssh-keygen": executable file not found in $PATH
[   75s]     ssh_test.go:89: Unexpected nil KeyPair from generateAutomaticSSHKeys
[   75s] --- FAIL: TestSelectSSHKeys (0.00s)
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s]     ssh_test.go:242: Unexpected error from selectSSHKeys: checking configured keys: could not find ssh executable: exec: "ssh": executable file not found in $PATH
[   75s] FAIL
[   75s] FAIL	github.com/cli/cli/v2/pkg/cmd/codespace	0.021s
[   75s] ok  	github.com/cli/cli/v2/pkg/cmd/completion	0.005s
...
[   97s] FAIL
[   97s] make: *** [Makefile:44: test] Error 1
[   97s] error: Bad exit status from /var/tmp/rpm-tmp.E2C8dd (%check