Clinical-Genomics / housekeeper

File data orchestrator
MIT License
2 stars 0 forks source link

feat(poetry) Use #203

Closed henrikstranneheim closed 2 months ago

henrikstranneheim commented 2 months ago

Description

Added

-

Changed

-

Fixed

-

Testing

How to prepare for test

housekeeper-test-deploy use-poetry
housekeeper-test --help

Any migrations need to be applied manually with alembic against the stage database.

How to test

Expected test outcome

Review

This version is a:

sonarcloud[bot] commented 2 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud

henrikstranneheim commented 2 months ago

Image runs on Hasta, ๐Ÿ‘


alias hk='singularity run --bind /home/proj/stage:/home/proj/stage docker://clinicalgenomics/housekeeper:use-poetry --config /home/proj/stage/servers/config/hasta.scilifelab.se/housekeeper-stage.yaml'
    /usr/bin/singularity
[henrik.stranneheim@hasta:~] [base] $ hk --version
housekeeper, version 4.13.2
[henrik.stranneheim@hasta:~] [base] $ hk --help
Usage: python -m housekeeper [OPTIONS] COMMAND [ARGS]...

  Housekeeper - Access your files!

Options:
  -c, --config FILENAME
  -d, --database TEXT    path/URI of the SQL database
  -r, --root PATH        Housekeeper root dir
  -l, --log-level TEXT
  --version              Show the version and exit.
  --help                 Show this message and exit.

Commands:
  add      Add things to the store.
  delete   Delete things in the database.
  get      Get info from database
  include  Include a bundle of files into the internal space.
  init     Setup the database.

k.stranneheim@hasta:~] [base] $ hk get bundle justhusky
2024-09-11 09:46:47 hasta.scilifelab.se housekeeper.cli.core[127814] INFO Use root path /home/proj/stage/housekeeper-bundles
                                              ๐Ÿ“ฆ Bundle table ๐Ÿ“ฆ
โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ ID   โ”ƒ Bundle name โ”ƒ Version IDs                                                               โ”ƒ Created    โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ 8925 โ”‚ justhusky   โ”‚ 191243, 178836, 167748, 140963, 136933, 120104, 51171, 42582, 16939, 9523 โ”‚ 2019-06-11 โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                               ๐Ÿ“• Version table ๐Ÿ“•
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ ID     โ”ƒ Bundle name โ”ƒ Nr files โ”ƒ Included   โ”ƒ Archived โ”ƒ Created    โ”ƒ Expires โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ 191243 โ”‚ justhusky   โ”‚ 356      โ”‚ 2024-06-25 โ”‚          โ”‚ 2024-06-24 โ”‚         โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”ดโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                                                                                                 ๐Ÿ“œ Local files ๐Ÿ“œ
โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ณโ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”“
โ”ƒ ID      โ”ƒ File name                                                                                                                                       โ”ƒ Tags                                                โ”ƒ
โ”กโ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ•‡โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”โ”ฉ
โ”‚ 6273863 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md.cram                                        โ”‚ earlycasualcaiman, cram, scout                      โ”‚
โ”‚ 6273864 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md.cram.crai                                   โ”‚ earlycasualcaiman, cram, scout                      โ”‚
โ”‚ 6273865 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md.cram                                           โ”‚ hugelymodelbat, cram, scout                         โ”‚
โ”‚ 6273866 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md.cram.crai                                      โ”‚ hugelymodelbat, cram, scout                         โ”‚
โ”‚ 6273867 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md.cram                                          โ”‚ slowlycivilbuck, cram, scout                        โ”‚
โ”‚ 6273868 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md.cram.crai                                     โ”‚ slowlycivilbuck, cram, scout                        โ”‚
โ”‚ 6273869 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_sex.tsv                                     โ”‚ sex-check, earlycasualcaiman, chanjo, scout         โ”‚
โ”‚ 6273870 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md_sex.tsv                                        โ”‚ sex-check, hugelymodelbat, chanjo, scout            โ”‚
โ”‚ 6273871 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md_sex.tsv                                       โ”‚ sex-check, slowlycivilbuck, chanjo, scout           โ”‚
โ”‚ 6273872 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_subsample_MT.bam                            โ”‚ bam-mt, earlycasualcaiman, scout                    โ”‚
โ”‚ 6273873 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_subsample_MT.bam.bai                        โ”‚ bam-mt, earlycasualcaiman, scout                    โ”‚
โ”‚ 6273874 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md_subsample_MT.bam                               โ”‚ bam-mt, hugelymodelbat, scout                       โ”‚
โ”‚ 6273875 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md_subsample_MT.bam.bai                           โ”‚ bam-mt, hugelymodelbat, scout                       โ”‚
โ”‚ 6273876 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md_subsample_MT.bam                              โ”‚ bam-mt, slowlycivilbuck, scout                      โ”‚
โ”‚ 6273877 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md_subsample_MT.bam.bai                          โ”‚ bam-mt, slowlycivilbuck, scout                      โ”‚
โ”‚ 6273878 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov.bw                                     โ”‚ earlycasualcaiman, bigwig, tiddit-coverage, scout   โ”‚
โ”‚ 6273879 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/hugelymodelbat_lanes_1_fastp_sorted_md_tcov.bw                                        โ”‚ hugelymodelbat, bigwig, tiddit-coverage, scout      โ”‚
โ”‚ 6273880 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/slowlycivilbuck_lanes_1_fastp_sorted_md_tcov.bw                                       โ”‚ slowlycivilbuck, bigwig, tiddit-coverage, scout     โ”‚
โ”‚ 6273881 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_1.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
โ”‚ 6273882 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_2.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
โ”‚ 6273883 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_3.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
โ”‚ 6273884 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_4.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
โ”‚ 6273885 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_5.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
โ”‚ 6273886 โ”‚ /home/proj/stage/housekeeper-bundles/justhusky/2024-06-24/earlycasualcaiman_lanes_1_fastp_sorted_md_tcov_6.png                                  โ”‚ earlycasualcaiman, chromograph, tcov, scout         โ”‚
henrikstranneheim commented 2 months ago

Hasta via bashrc, ๐Ÿ‘

enrik.stranneheim@hasta:~] [S_base] $ source /home/proj/stage/servers/config/hasta.scilifelab.se/bashrc
[henrik.stranneheim@hasta:~] [base] $ housekeeper-test-deploy use-poetry
Pulling image for feature branch: use-poetry...
WARNING: Authentication token file not found : Only pulls of public images will succeed
INFO:    Starting build...
Getting image source signatures
Skipping fetch of repeat blob sha256:6533c3eba3f3cd4c840877f9245b26929fc8c22a39f42c872aa314c32c6d654b
Skipping fetch of repeat blob sha256:08f50f4aa3e31a96a57373f7ea3ddef9e7ef3a5f5b0a994d1eb79ff9eca9b54e
Skipping fetch of repeat blob sha256:002765cbf0130f5bdfda89ed8eac8db091f835d90e8510920556efd8ff6f97e1
Skipping fetch of repeat blob sha256:1b88a5c811e52abd109fb8e2f2a4ae8f7ecd300aabe760ba63b1c1cbf6b8a296
Skipping fetch of repeat blob sha256:456f848e2c2877ed34dbab37fd4a5381632f6d6ecbd517a355874e2f220ac181
Skipping fetch of repeat blob sha256:b96b6c0e36897de16a321301cf1e3cec823ac7e26ba2b9c138349652ee55ee18
Skipping fetch of repeat blob sha256:d5905a977cbc5deb8e63cd67d1344da50aa6b9f5efd327859655f2e35e4d7b46
Skipping fetch of repeat blob sha256:4f4fb700ef54461cfa02571ae0db9a0dc1e0cdb5577484a6d75e68dc38e8acc1
Skipping fetch of repeat blob sha256:b7b091d8dcacc7ba29227ddeebf0f71ecef0b0d69f12d68e2a0eab3deb5787f8
Copying config sha256:25eda4fc4c4c0190a752e8753316e0726d3306b2435eb1592ae129a9b8bd390f
 8.09 KiB / 8.09 KiB [======================================================] 0s
Writing manifest to image destination
Storing signatures
INFO:    Creating SIF file...
INFO:    Build complete: /home/proj/stage/singularity_containers/housekeeper_use-poetry.sif
You can now run 'housekeeper-test --help' to test the feature branch: use-poetry.
[henrik.stranneheim@hasta:~] [base] $ housekeeper-test --help
Usage: python -m housekeeper [OPTIONS] COMMAND [ARGS]...

  Housekeeper - Access your files!

Options:
  -c, --config FILENAME
  -d, --database TEXT    path/URI of the SQL database
  -r, --root PATH        Housekeeper root dir
  -l, --log-level TEXT
  --version              Show the version and exit.
  --help                 Show this message and exit.

Commands:
  add      Add things to the store.
  delete   Delete things in the database.
  get      Get info from database
  include  Include a bundle of files into the internal space.
  init     Setup the database.
henrikstranneheim commented 2 months ago

Together with https://github.com/Clinical-Genomics/servers/pull/1451

henrikstranneheim commented 2 months ago

Deployed to prod, but the bump-version action needs a fix.