Skip to content
Cameron Smith edited this page Aug 23, 2024 · 6 revisions

Creating a Release

  1. create a github issue documenting significant release changes; review the commit log and closed issues to find them
This issue is to document functionality and features added to Omega_h since the #.#.# release (SHA1):

 - <feature> (issue/PR link)
 - <otherfeature> (issue/PR link)
  1. apply the issue/PR label 'scorec-v#.#.#' to significant issues and PR that are part of the release
  2. increase the Omega_h version # in CMakeLists.txt in the master branch
  3. commit; include the issue # in the commit message
Omega_h version scorec-v#.#.#                                                                                                                                                                                                                                                                                                        
                                                                                                                                                                                                                                                                                                                             
see issue #<###>
  1. push
  2. create the tag git tag -a scorec-v#.#.# -m "Omega_h version scorec-v#.#.#"
  3. push the tag git push origin scorec-v#.#.#

Updating the spack version

  1. Create a branch of spack develop
git clone -b develop git@github.com:spack/spack.git 
cd spack
git checkout -b omegah#### 
git remote add scorec git@github.com:SCOREC/spack.git # add scorec remote for the new branch
source share/spack/setup-env.sh
  1. Run spack edit omega-h to edit [omega-h/package.py](https://github.com/spack/spack/blob/develop/var/spack/repos/builtin/packages/omega-h/package.py) and change both the
  • version number and
  • commit hash which changes the Omega_h version (step 4 above)
  1. Push the new branch
git push -u scorec omegah####
  1. As of spack 0.21.0 (develop@abad16c) the following script will build and install pumi.

Create a file named testSpackOmegah.sh:

#!/bin/bash                                                                                                                                                                                                                                                                                                                  
[[ $# -ne 1 ]] && echo "Test a Omega_h Spack build." && echo "Usage: $0 <branch name>" && exit 1                                                                                                                                                                                                                                
set -x                                                                                                                                                                                                                                                                                                                       
branch=$1                                                                                                                                                                                                                                                                                                                    
date=`date +%F-%H-%M`                                                                                                                                                                                                                                                                                                        
ohSpackDir=$PWD/omegahSpack_${date}                                                                                                                                                                                                                                                                                          
mkdir -p $ohSpackDir                                                                                                                                                                                                                                                                                                       
cd $ohSpackDir                                                                                                                                                                                                                                                                                                             
git clone -b ${branch} git@github.com:SCOREC/spack.git                                                                                                                                                                                                                                                                       
cd spack                                                                                                                                                                                                                                                                                                                     
                                                                                                                                                                                                                                                                                                                             
# setup scratch space for spack                                                                                                                                                                                                                                                                                              
spackScratch=$ohSpackDir/spack_scratch                                                                                                                                                                                                                                                                                     
mkdir -p $spackScratch                                                                                                                                                                                                                                                                                                       
export SPACK_USER_CACHE_PATH=$spackScratch                                                                                                                                                                                                                                                                                   
export SPACK_DISABLE_LOCAL_CONFIG=true #disable use of user and system config files                                                                                                                                                                                                                                          
                                                                                                                                                                                                                                                                                                                             
export SPACK_ROOT=$PWD                                                                                                                                                                                                                                                                                                       
source $SPACK_ROOT/share/spack/setup-env.sh                                                                                                                                                                                                                                                                                  
which spack # sanity check                                                                                                                                                                                                                                                                                                   
                                                                                                                                                                                                                                                                                                                             
#specify upstream                                                                                                                                                                                                                                                                                                            
(                                                                                                                                                                                                                                                                                                                            
cat <<APPEND_HEREDOC
upstreams:
  spack-instance-1:
      install_tree: /path/to/spack/package/install/dir
APPEND_HEREDOC
) >> $SPACK_ROOT/etc/spack/upstreams.yaml                                                                                                                                                                                                                                                                       
                                                                                                                                                                                                                                                                                                                             
#add compiler                                                                                                                                                                                                                                                                                                                
spack compiler add /path/to/compiler/install/dir                                                                                                                                                                                               
                                                                                                                                                                                                                                                                                                                             
spack find #sanity check that the upstream was found                                                                                                                                                                                                                                                                                                                  
spec="omega-h"                                                                                                                                                                                                                                                                                                                  
spack spec -I $spec                                                                                                                                                                                                                                                                                                          
spack install --fail-fast $spec   

Run the script:

chmod +x testSpackOmegah.sh
./testSpackOmegah.sh omegah####
  1. Create a PR to Spack develop.
Clone this wiki locally