CLI tool to assist with tasks related to checking clusters
daily --helpfor information about how the commands workdaily versionfor information about the tooldaily startstarts the checklist wizarddaily envstarts a wizard to set up environment variables for the tooldaily editstarts a wizard to edit the stepsdaily whooutputs the person whose turn it is to complete the checklistdaily who newpicks a new person in the event the previous person was unavailabledaily results <date|target_hpc>outputs the results for the specified date or a specific HPC if only one value is provideddaily results remove <date>removes the results for the specified date or today's results if no date is specifieddaily results export <date>exports the results for the specified date or today's results if no date is specified to a txt file
Clone the repository
git clone https://github.com/alces-software/Daily-HPC-Check-in
Make sure the development tools are installed
dnf groupinstall "Development Tools"
Make sure ruby and ruby-devel are installed with a version >= 3.2.0
dnf install ruby ruby-devel
If ruby is installing an older version, reset the module stream with
dnf module reset ruby
dnf module enable ruby:3.3
Run cd Daily-HPC-Check-in
And bundle install
Add daily to the $PATH
Add the following to the end of ~/.bashrc: export PATH="$PATH:~/<PATH_TO_REPO>/bin/"
And reload the bashrc source .bashrc
The program can also be run from <PATH_TO_REPO>/bin/daily
Daily-HPC-Check-in includes a feature that will automatically send the table of results if a FAILURE has occured.
It will send the results to a specified google chat using a webhook.
To obtain the webhook api key:
- Navigate to desired google chat
- Click on the dropdown menu of the chat name (expand chat if dropdown not showing)
- Select
Apps and integrations - Press
+ Add webhooks - Name webhook and then save
- Copy generated api key into
.envfile
You can setup you're .env file using the daily env command or you can create the file yourself and add the following variables:
<!-- Required -->
TESTERS=name1,name2
CLUSTERS=cluster1,cluster2
CLUSTERS_PER_DAY=1
<!-- Optional -->
WEBHOOK_API_KEY=key