Testing Code_Aster in Microsoft Azure

Running the whole test suite available for Code_Aster is an important task to be sure about the quality of the binary, but requires some resources.

Code_Aster contains about 3600 tests, each one coming with its documentation and it is an invaluable source of informations both for beginners and experts.

Actually, more than 3200 tests are passing (the other ones are mainly due to not yet supported features in this version), you can get a detailed report about this in the bitbucket wiki page.

In this post we are showing the validation procedure using a Windows Server on Microsoft Azure cloud. Using this service, you can have access to a virtual machine (you will pay based on time and operations such as disk usage and so, the price will vary according to the requested power and resources) inside Microsoft own infrastructure and get a remote screen.

To do so, an account must be created first. You can profit of a free trial including an initial credit of 170 €. Running the whole suite of Code_Aster will cost something about 4 € (a whole day of a virtual machine running continously).

This kind of application is perfect for cloud systems : since you will only need the machine from time to time (let’s say, each time a new release must be validated) and you would like to test on different architecture (i.e. Windows 7, Windows 10, …) it would be costly to just keep the resources around the rest of the time.

Also, you can benefit of a variable calculation power : if you want your results sooner, you can simply reserve a more powerful machine. You can run the calculation at the same time on multiple machines and, even if you already have an available windows system, you might consider doing it on the cloud : it is better to test on a fresh Windows system with nothing installed yet and you usually do not want to leave your system alone for days during tests.

First of all, one must choose the virtual machine based on requested power, in this case a 4 cores Windows Server 2016 :

FireShot Capture 18 - Choose a size - Microsoft Azure_ - https___portal.azure.com_#resource

In this phase, you can also ask for programs to be pre-installed in the system, we always like to have Nodepad++ available to change configuration files.

FireShot Capture 21 - Artifacts - Microsoft Azure_ - https___portal.azure.com_#resource.png

After confirmation, your machine will be created. This will take a minute or so, you can follow the procedure in the Azure portal site. You can also configure things such as auto shutdown in case you forget to stop it afterwards.

FireShot Capture 19 - CAW_03_2017 - Microsoft Azure_ - https___portal.azure.com_#resource.png

When everything is ready (you will see a “Running” message), the page will show a DNS address that will allow you to connect to the remote system.

FireShot Capture 22 - CAWbeta2 - Microsoft Azure_ - https___portal.azure.com_#resource.png

Now the real fun begins : you have an address and port and you are able to remotely connect to the machine using any RDP client such as, in this case, Remmina.

remmina_params.png

Since the connection is secured, you will be asked to accept the server certificate.

Screenshot from 2017-03-22 21-15-02.png

Once inside the Windows Server, you can simply download our Code_Aster for Windows as usual and then extract the archive somewhere :

Screenshot from 2017-03-22 21-23-04.png

Since we want to run tests, we will need to create a “testing” link, a script is provided to do so :

Screenshot from 2017-03-22 21-54-41.png

Now, it is simply a matter of running tests from the command line, using the “as_run” command and the “run_tests.export” configuration file inside the “astout” directory.

Screenshot from 2017-03-22 21-59-23.png

Here we must… wait 🙂 The full tests will require almost 7 hours on this kind of virtual machines. Of course, you can get much more powerful ones in Microsoft Azure. They are more expensive, but you will use them for a shorter time…You can have a look at resource usage by looking at the Task Manager.

Screenshot from 2017-03-22 22-04-39.png

And then, finally, the results. Most of the tests, as expected, are passing.

Screenshot from 2017-03-22 22-38-01.png

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s