`gh` doesn't work from ARE

Hi! We usually use gh to pull branches in cosima recipes. Our current instructions load gh like this:

module use /g/data/vk83/modules
module load system-tools/gh

And then something like this gh pr checkout 623 to pull a branch. It used to work from ARE’s terminal, but I am now getting “Illegal instruction”. I have to ssh into gadi from my terminal in order to run it. Any ideas why? Seems quite incovenient..

Hi Julia

This works ok for me - can you double check that vk83 is in your storage path

Yes it is! Strange

This is indeed strange.
@JuliaN Could you please post a complete log of your command and error?

Thankyou to @paulleopardi for pointing out this maybe related to the queue used.

I can replicate the issue when using the normalbw queue, because it uses older hardware and the gh build is overly optimised for newer hardware.

There is an issue to fix this : Use a more inclusive architecture · Issue #15 · ACCESS-NRI/system-tools · GitHub

In the interim, either run on normal or normalsr for ARE (they are not in the Queue drop down but you can type them in). Or use git in the normal login node.

1 Like

Thank you Anton! Sorry about not replying. The command was literally the one I pasted and the error was just that “Illegal instruction” message, nothing else. I’ll use normal queue or login node. Thanks!

1 Like

There is a new deployment of gh, gh commands work on the normalbw queue now:

gh can be loaded the same way, like this:

If specifying a version, run module load system-tools/gh/2.49.2 (this equals the current default behaviour when not specifying a version)

2 Likes