This tooling is works also Items that are not yet part the EWC Community Hub, or which are even hosted on private repositories. |
Items contributed to the community hub by the EWC are tested at regular intervals to ensure functionality is preserved as the platform evolves. This testing is automated for deployable Items of the Ansible Playbook Technology.
At a glance, the automation offers:
The same automation used internally by the EWC, with the same functionality, is public as a Community Hub Item (see Ansible Playbook Test Deployment via GitHub Actions), and you , as an Item owner, can drag-and-drop it into your GitHub repository if you wish to make regular testing less of a chore and more of a standard and effortless part of your development process.
This page walks you through an example of how said drag-and-drop operation would look in practice for a community-contributed Item, for example Pytroll Processing, with on-demand deployment to EUMETSAT site.
On-demand deployments imply manual interaction needed for triggering a test. However, the GitHub action can be customized to run on scheduled, or when a pull request is open, or even on every commit. See the official GitHub documentation for details. |
For our example, this is already done; the Item's source code is publicly available at https://github.com/nordsat/ewc-playbooks. |
Push your Item's source code (Ansible Playbook), or a mirror of it, to a GitHub repository.
OS_AUTH_URLOS_REGION_NAMEOS_APPLICATION_CREDENTIAL_IDOS_APPLICATION_CREDENTIAL_SECRETANSIBLE_SSH_PRIVATE_KEYinputs attribute with reasonable default values that meet the demand of your Item. In our example, the customized content can be found at https://github.com/nordsat/ewc-playbooks/blob/main/.github/workflows/test-eumetsat.yml. |
Commit the file to the main branch of your repository and move to the next section start triggering Item deployment tests.
In five steps and with a few clicks you now have a simple way to make tests not only easy to trigger but also to reproduce.