Test failure on i686: TestDetectPlatform (unsupported architecture)

Checklist

  • I'm using the latest version of the extension
    • Extension version: glab 1.88.0 ()
  • Operating system and version: Void Linux (rolling release)
  • Run the command in debug mode (like DEBUG=true glab mr list) and attach any useful output

Summary

The TestDetectPlatform test is failing:

--- FAIL: TestDetectPlatform (0.00s)
    platform_test.go:21:
        	Error Trace:	/builddir/glab-1.88.0/internal/commands/duo/cli/cliutils/platform_test.go:21
        	Error:      	Received unexpected error:
        	            	unsupported architecture: 386 (supported: amd64/x64, arm64)
        	Test:       	TestDetectPlatform
FAIL
FAIL	gitlab.com/gitlab-org/cli/internal/commands/duo/cli/cliutils	0.074s

The error message suggests that the error is caused by the test being run in a unsupported architecture (i686). If that is indeed the case, the test should be skipped on unsupported architectures rather than causing a test failure.

My package builder ran tests for native built glib for x86_64, x86_64-musl and i686. i686 was the only architecture which had test failures.

Environment

Warning

This was run from inside xbps-src, the Void Linux package builder. It is a minimal nonstandard chroot environment used for building packages only.

  • OS: Linux 6.12.74_1 x86_64
  • SHELL: /bin/sh
  • TERM: dumb
  • GLAB: glab 1.88.0 ()

Other:

Steps to reproduce

Try to run tests for glab on a i686 host (or on x86_64 host chrooted into i686, since this is a native chroot).

What is the current bug behavior?

The test failing.

What is the expected correct behavior?

The test not failing.

Relevant logs and/or screenshots

See above.

Possible fixes