You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 12 Next »

Notes about building psana releases.

psana1

Assemble all packages source code in tar.gz file

pslogin
ssh psbuild-rhel7-01 -l psreldev

See details in ~/.bash_history or ~/.k5login

Set environment:

source /cds/sw/ds/ana/conda1/inst/etc/profile.d/conda.sh
conda activate conda_build

cd /cds/sw/ds/ana/conda1/

if ./manage is not available

    git clone git@github.com:slaclab/anarel-manage.git manage

cd manage

update it if necessary

git pull --rebase

ls scratch/  # to see what is the latest release, e.g. psana-conda-4.0.55, then create next:

bin/ana-rel-admin --force --cmd psana-conda-src --name 4.0.56 --basedir `pwd` --tagsfile psana-conda-svn-pkgs[-test]

  command assembles all the source code from the tags into a .tar.gz file

--basedir`pwd` is converted to /cds/sw/ds/ana/conda1/manage/

< config/psana-conda-svn-pkgs # contains the list of packages with source code

> scratch/psana-conda-4.0.56/<packages>   # clones of all packages form git or svn
> scratch/psana-conda-4.0.56/psana-conda-tag    # tags extended with version like 'tag': 'V02-00-76'
> scratch/psana-conda-4.0.56/psana-conda-4.0.56/.sit_release    #  contains psana-conda-4.0.56
> downloads/anarel/psana-conda-4.0.56.tar.gz  # archived content of scratch/psana-conda-4.0.56

Accessible through url:
file:///cds/sw/ds/ana/conda1/manage/downloads/anarel/psana-conda-4.0.56.tar.gz

sha256sum .../psana-conda-4.0.56.tar.gz > 443440bf7a7fdbcdf89314b68c07f97f5a89dff38d6da98685e74f0671fac37d

Conda build

ssh pslogin

then copy it here, because psreldev does not have permission !!!!???

cp /cds/sw/ds/ana/conda1/manage/downloads/anarel/psana-conda-4.0.56.tar.gz /reg/g/psdm/web/swdoc/tutorials/

>>> because later it is used in psana1-feedstock/recipe/meta.yaml as

  url: https://pswww.slac.stanford.edu/swdoc/tutorials/{{ name }}-conda-{{ version }}.tar.gz


ssh psbuild-rhel7-01 -l psreldev

cp ~cpo/.condarc ~/. # if ~/.condarc is not available
cd git
rm -rf psana1-feedstock/
git clone https://github.com/slac-lcls/psana1-feedstock

cd psana1-feedstock

Set environment:

source /cds/sw/ds/ana/conda2/manage/bin/psconda.sh.  # cpo: conda2 because it needs py3
conda deactivate
conda activate conda_build


sha256sum /cds/sw/ds/ana/conda1/manage/downloads/anarel/psana-conda-4.0.56.tar.gz

OR:

sha256sum /reg/g/psdm/web/swdoc/tutorials/psana-conda-4.0.56.tar.gz

443440bf7a7fdbcdf89314b68c07f97f5a89dff38d6da98685e74f0671fac37d

edit psana1-feedstock/recipe/meta.yaml
{% set version = '4.0.56' %}
 ...
 sha256: 443440bf7a7fdbcdf89314b68c07f97f5a89dff38d6da98685e74f0671fac37d
 ...
extra:
  recipe-maintainers:
    - valmar
    - chrisvam
    - dubrovin

update it in github # do it in, because psreldev does not have permission !!!!???

https://github.com/slac-lcls/psana1-feedstock/blob/main/recipe/meta.yaml

Valerio: conda create -n local_conda_build python conda-build conda-validate anaconda-client

NotWritableError:
(conda_build) [psreldev@psbuild-rhel7-01 psana1-feedstock]$ conda create -n local_conda_build python conda-build conda-validate anaconda-client
Collecting package metadata (current_repodata.json): failed

NotWritableError: The current user does not have write permissions to a required path.
  path: /cds/sw/ds/ana/conda2-v2/inst/pkgs/cache/18414ddb.json
  uid: 14427
  gid: 1109

If you feel that permissions on this path are set incorrectly, you can manually
change them by executing

  $ sudo chown 14427:1109 /cds/sw/ds/ana/conda2-v2/inst/pkgs/cache/18414ddb.json

In general, it's not advisable to use 'sudo conda'.

(conda_build) [psreldev@psbuild-rhel7-01 psana1-feedstock]$ 


conda build -c lcls-i -c conda-forge recipe

> /cds/home/p/psreldev/conda-bld/linux-64/psana-4.0.56-py39hb869b97_1.tar.bz2

Upload the file to anaconda lcls-i channel

anaconda upload -u lcls-i /cds/home/p/psreldev/conda-bld/linux-64/psana-4.0.56-py39hb869b97_1.tar.bz2


REFERENCES

  • No labels