spack-stack CI testing is run by github workflow on a self-hosted runner, which we set up on an AWS instance. This section reviews how to set up a new workflow from scratch, beginning with launching an AWS instance.
Prerequisites: TODO
jcsda-usaf
AWS console using the region us-east-2
ubuntu
create the directory ~/spack-stack/manual_testing. These steps are in reference to https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-22-04.
Log into the AWS instance
free -h
will show no active swap runningdf -h
to check available space on the hard drivesudo fallocate -l 64G /swapfile
ls -lh /swapfile
Next we will enable the swapfile using the following step:
sudo chmod 600 /swapfile ls -lh /swapfile sudo mkswap /swapfile # mark the file as swap space sudo swapon /swapfile # enable sudo swapon --show # verify |
Finally, make the swap file permanent:
sudo cp /etc/fstab /etc/fstab.bak echo '/swapfile none swap sw 0 0' | sudo tee -a /etc/fstab cat /etc/fstab # verify |