SimpleRhinoTests CI

Hi @eirannejad,

I see that you are still working on installing Rhino on the CI here. Just sharing that I am waiting to see how you install Rhino.

I have been using the RhinoTesting library on our CI and I see the following. I believe, I need to follow you and install Rhino.

1 Like

It is possible, although I’ve only done it on CircleCI

– cs

1 Like

Thanks Callum! I will be curious to know what @eirannejad has planned. From the commented code, it looks like he planned to add something.

2 Likes

I am also quite excited :slight_smile:

Ya I am waiting for an internal api to get the latest/specific Rhino 8 version

RH-80327 Provide a url to query for latest rhino installer

Will get this implemented soon

2 Likes

It would be really nice to have a good rhino installer query syntax. Current versions are specific and you have to “know” the url, mac is different to windows etc.

My dream syntax
version = { 7, 8, latest, latestrc }
platform = { win, mac }
specific_version = { 7.27.xxx.xxx }

e.g
https://files.mcneel.com/rhino/installer?version=latest&platform=mac
https://files.mcneel.com/rhino/installer?specific_version=7.27.123.456&platform=win

Is your solution going to involve using paid rhino compute @eirannejad ? I think no.

It’s not rhinocompute. Rhino.Testing runs your locally installed rhino 7 or 8 for testing

Locally, yes. I meant to ask whether your CI workflow is going to involve using paid rhino compute?

The CI workflow is an example of running test on a rhino installed on a test machine. If the test machine is using Windows Server, then you would need core-hour-billing enabled. In that sense it is similar to Rhino.Compute as it is using the same Rhino.Inside tech to launch Rhino without a UI.

Rhino.Testing does the same but it is geared towards unit testing.

Here is the guide on core hour billing and setting up a token

Let’s say at some point, you finish the CI workflow on SimpleRhinoTests. I have a project that uses Rhino.Testing to run test locally. Now I want to run those tests as part of a CI/CD pipeline so I use your CI workflow. Will this CI workflow involve a paid component?

Currently yes if your CI machine is a Windows Server. And it’s not technically Rhino.Testing’s workflow. Any instance of headless Rhino on a Windows Server requires core hour billing at the moment

Thanks @eirannejad . This template uses Rhino Inside. In its XUnitTestFixture, I see that it uses locally installed Rhino.

Can you confirm that I will still need to pay for Rhino Compute if I were to follow this template to run tests as part of my CI? I think the answer is yes.

It’s really not about any specific templates. If you are running Rhino on a Windows Server, then core hour billing is required.

So the answer is yes. I understand that running unit tests for Rhino on a CI pipeline will require using Rhino Compute. I would stick with your template then.