Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
462 commits
Select commit Hold shift + click to select a range
d88a15a
Merge pull request #40 from helxplatform/feature/s3-utils-simple
cschreep Oct 19, 2021
820df3a
Initial pass at adding SPARC processor
Oct 20, 2021
8d969c3
sparc metadata
Oct 20, 2021
1ce2427
Logging
Oct 20, 2021
14f591e
tmp making SciCrunchParser init explicit
Oct 20, 2021
bb418cc
Undoing previous commit
Oct 20, 2021
158ced3
scicrunch parser name
Oct 21, 2021
6efaff4
scicrunch parser name
Oct 21, 2021
4d4038e
Makefile
Oct 21, 2021
ef1667d
Batching key delete using scan (#45)
YaphetKG Nov 2, 2021
25bfb93
Bumping version
Nov 3, 2021
6019ae3
Merge pull request #44 from helxplatform/feature/sparc-1.0-data
cschreep Nov 5, 2021
785f85f
Patch/delete keys (#46)
YaphetKG Nov 8, 2021
c6d2f12
adding some logging
Nov 8, 2021
675bf8d
Feature/redis lib updates (#47)
YaphetKG Nov 9, 2021
e687d44
rename sparc format to 'sparc'
Nov 11, 2021
9f65357
Merge pull request #48 from helxplatform/patch/sparc-format
cschreep Nov 11, 2021
676cdb2
Changing normalizer URL
Nov 29, 2021
020cd58
Pinning dug version to 2.7.rc0
Nov 29, 2021
a63b05f
Bumping version
Nov 29, 2021
907ee6a
Pathing for sparc data
Nov 30, 2021
5b0ad31
Bumping dug to released versioN
Dec 2, 2021
7d9c81f
Merge branch 'main' of github.com:helxplatform/roger into release/0.7…
Dec 2, 2021
e10ebd4
Merge pull request #49 from helxplatform/release/0.7.rc0
cschreep Dec 2, 2021
c5f34bb
Bumping version
Dec 2, 2021
7bb4d1f
Bumping version
Dec 2, 2021
2f51fd9
Feature/cde crawls (#51)
YaphetKG Feb 9, 2022
0b5574a
Remove logging of config; contains redis and S3 keys (#52)
mac-chaffee Feb 10, 2022
af8ecca
when two graph sets are downloaded, bug that deletes the first downlo…
YaphetKG Feb 11, 2022
1ea2aaf
added the version and the new tag
HowardLander Apr 1, 2022
b0798a4
Changed git to https to satisfy the git gods
HowardLander Apr 4, 2022
ef4c0ff
changed the requirements.txt to match the latest branch
HowardLander Apr 4, 2022
cbfd049
Cde harmonization 2 (#57)
YaphetKG Apr 5, 2022
fd5a88a
Merge branch 'sparc_parser_fix' into develop
HowardLander Apr 8, 2022
3aacf11
Update requirements.txt
YaphetKG Apr 19, 2022
0776bb3
Merge pull request #59 from helxplatform/dug-version-to-latest-release
waTeim Apr 19, 2022
ea9ffdb
Update _version.py
YaphetKG Apr 22, 2022
47612cb
Anvil pipeline (#60)
YaphetKG May 3, 2022
7a69986
Initial commit
Hoid May 18, 2022
71314dc
Remove unnecessary Install stage
Hoid May 18, 2022
3afea8a
Change user to root during part of Dockerfile
Hoid May 18, 2022
4e8fc98
Increase ephemeral storage limit
Hoid May 18, 2022
4721fcb
Maybe fix pip command?
Hoid May 18, 2022
7447279
Increase ephemeral storage limits
Hoid May 18, 2022
810307a
Reduce ephemeral storage limits a bit to test
Hoid May 18, 2022
d453f20
Cleanup
Hoid May 18, 2022
08e65c7
Merge pull request #61 from helxplatform/new-jenkins-test
Hoid May 24, 2022
be879c2
Separate build and publish, initial feature branch tagging, prep for …
cnbennett3 Jun 9, 2022
25cfb2b
Update script for extracting version from version file.
cnbennett3 Jun 9, 2022
48d42d9
Add versioning and tagging for develop and master + bump version.
cnbennett3 Jun 29, 2022
3bf4baa
Merge pull request #62 from helxplatform/jenkins-test
cnbennett3 Jul 1, 2022
142ed93
Initial commit
Hoid Jul 13, 2022
f6afce1
Add third tag back to master branch tag push
Hoid Jul 13, 2022
12bb33c
Increase ephemeral storage limits and requests
Hoid Jul 13, 2022
d4a30b3
Move test stage to before stuff
Hoid Jul 18, 2022
386d46f
Merge pull request #63 from helxplatform/use-pipeline-utils
Hoid Jul 18, 2022
3f09957
Ncpi datasets (#64)
YaphetKG Aug 25, 2022
7459128
Sprint task (#65)
YaphetKG Oct 5, 2022
6fc7161
Bacpac parsing (#66)
YaphetKG Jan 5, 2023
e375945
Issue 124 annotation kgx (#69)
YaphetKG Jan 26, 2023
c9dc66e
Bdc new data (#72)
YaphetKG Jul 19, 2023
1207a1f
Disk merge (#71)
HowardLander Jul 19, 2023
219e83c
Filerenames. Deprecated DummyOperator -> EmptyOperator, imports. (#74)
vladimir2217 Jul 26, 2023
89520a3
Changes to fix the loading bug for json files (#77)
HowardLander Aug 15, 2023
d0b652b
Break up core.py, restructure Util class to path module
mbacon-renci Aug 8, 2023
0ae83b7
Changes to testing framework to accommodate Util->storage change. Som…
mbacon-renci Aug 16, 2023
668a177
Incorporate one more change from develop
mbacon-renci Aug 18, 2023
bae5919
Merge cleanup
mbacon-renci Aug 18, 2023
50d54f1
Merge pull request #78 from helxplatform/refactor/core_reorganize_2
mbacon-renci Aug 18, 2023
b17ea15
Revert "Refactor/core reorganize 2" (#80)
YaphetKG Aug 21, 2023
e621fae
Revert "Revert "Refactor/core reorganize 2" (#80)"
YaphetKG Aug 21, 2023
99b5473
fix variable sources
YaphetKG Aug 21, 2023
52bf97c
reverting roger data dir env
YaphetKG Aug 21, 2023
856dafd
fix metadata yaml path for kgx files
YaphetKG Aug 21, 2023
7f41aa7
missing function url retrive
YaphetKG Aug 21, 2023
eba76f4
missing ntpath import in kgx.py
YaphetKG Aug 21, 2023
b96ef4b
typo on json iter from storage in kgx.py
YaphetKG Aug 21, 2023
fe20728
typo on storage path for indexing elements
YaphetKG Aug 23, 2023
187811c
removes old data files and helm chart
YaphetKG Aug 23, 2023
9235071
Merge pull request #81 from helxplatform/refactor-reverted
mbacon-renci Aug 23, 2023
fb8bc87
Study names plus (#79)
YaphetKG Aug 24, 2023
9678977
Mds import (#82)
YaphetKG Sep 6, 2023
95940f3
Bacpac and cde (#83)
YaphetKG Sep 29, 2023
7f61501
Update _version.py
YaphetKG Oct 5, 2023
ebd0e59
Update _version.py (#86)
YaphetKG Oct 5, 2023
b66eb64
Update _version.py
YaphetKG Oct 5, 2023
e7e5f7c
Rti merge (#84)
YaphetKG Oct 31, 2023
96c75df
Merge branch 'main' into develop
YaphetKG Oct 31, 2023
de46493
Release 0.10.4 (#89)
YaphetKG Oct 31, 2023
fee790d
adding v5.0
YaphetKG Nov 1, 2023
e15a373
cde-links branch
YaphetKG Nov 6, 2023
6aac2fd
pin linkml
YaphetKG Nov 6, 2023
487b2c1
Update config.yaml
YaphetKG Nov 7, 2023
bb61ab9
pop total items before result
YaphetKG Nov 8, 2023
48650b8
print extracted elements
YaphetKG Nov 8, 2023
1413e92
Merge pull request #92 from helxplatform/robokop-v5.0
HowardLander Nov 29, 2023
3cfe3f5
Update requirements.txt
YaphetKG Dec 21, 2023
21889ed
Keep edge provenance (#94)
YaphetKG Jan 4, 2024
85cbead
Merge branch 'main' into develop
YaphetKG Feb 19, 2024
a8feb24
Develop to main sync (#98)
YaphetKG Feb 19, 2024
2eb136a
Pipeline parameterize restructure (#95)
YaphetKG Apr 18, 2024
2aee7f3
Merge branch 'main' into develop
YaphetKG Apr 18, 2024
f671194
pin avalon
YaphetKG Apr 18, 2024
dfc7176
release sync (#100)
YaphetKG Apr 18, 2024
473816a
deleted jenkins and added workflows
pchachicho Jun 6, 2024
98257d9
unlinked helx-actions
pchachicho Jun 7, 2024
d7b1f7e
testing paths
pchachicho Jun 11, 2024
b0d8c92
testing again
pchachicho Jun 11, 2024
9bee088
d
pchachicho Jun 11, 2024
2b44c22
tests
pchachicho Jun 11, 2024
7a8cc6d
commented out pytest
pchachicho Jun 13, 2024
94253c9
try again for bandit
pchachicho Jun 13, 2024
7f37f91
commented out bandit
pchachicho Jun 13, 2024
e696854
changed dag to dags
pchachicho Jun 14, 2024
b909274
Added fixes
pchachicho Jun 21, 2024
44ea4df
Merge pull request #101 from helxplatform/gh_actions
pchachicho Jun 21, 2024
4532bda
Bagel (#103)
YaphetKG Aug 7, 2024
af41d8f
Dbgap programs (#104)
YaphetKG Aug 7, 2024
99a6e7b
adding bagel config parse to bool
YaphetKG Sep 19, 2024
05b115e
Dev sync main (#106)
YaphetKG Sep 19, 2024
b01c982
Dev sync main (#108)
YaphetKG Sep 19, 2024
8b031b1
prep for release (#107)
YaphetKG Sep 19, 2024
2058584
Updated docker image to 2.10.2
mbacon-renci Oct 8, 2024
6dec958
fix kgx path error
YaphetKG Oct 8, 2024
d3f03ab
fix kgx path error
YaphetKG Oct 8, 2024
9ba7498
Merge branch 'develop' into new_image_2-10-2
mbacon-renci Oct 10, 2024
745cf79
Trying out the slim apache images to reduce vulnerability footprint
mbacon-renci Oct 10, 2024
b86807e
Building general package update into dockerfile
mbacon-renci Oct 10, 2024
5dbe502
Trying more rigorous dist-upgrade to try to get rid of vulerabilities…
mbacon-renci Oct 10, 2024
3f6e987
dist-upgrade also needs -y flag
mbacon-renci Oct 10, 2024
a1673b6
Rolling back from slim image
mbacon-renci Oct 11, 2024
0464da1
Fixed apt-get syntax error
mbacon-renci Oct 11, 2024
47df70d
Reverting develop to 2.7.2 for stability's sake, will revisit after u…
mbacon-renci Oct 11, 2024
b721976
Update Dockerfile
YaphetKG Oct 11, 2024
6f505d8
Update Dockerfile
YaphetKG Oct 11, 2024
be2b07d
Removed post-install package cleanup
mbacon-renci Oct 11, 2024
be35f9c
spurious merge
mbacon-renci Oct 11, 2024
73812a1
Update requirements.txt
YaphetKG Oct 12, 2024
6d5194c
test merge issue
YaphetKG Oct 21, 2024
6db88f8
fix merge issue
YaphetKG Oct 21, 2024
dec80b9
Merge branch 'main' into develop
YaphetKG Oct 22, 2024
9f6a237
Release merge (#109)
YaphetKG Oct 22, 2024
5794dc1
modify radx pipeline (#111)
YaphetKG Feb 18, 2025
dbfb5b2
Heal ingest 2 18 (#112)
YaphetKG Feb 26, 2025
06a4ed1
test node type
YaphetKG Feb 26, 2025
faf4975
Heal ingest 2 18 (#114)
YaphetKG Mar 24, 2025
4d8cf1a
Merge branch 'main' into develop
YaphetKG Mar 25, 2025
048e15f
Bitnami (#117)
YaphetKG Mar 26, 2025
d3e4b0a
Sync develop with main (#116)
YaphetKG Mar 26, 2025
ddb3663
remove clear index
YaphetKG May 19, 2025
27cc880
Update requirements.txt
yskale May 19, 2025
2cea207
fix study name in graph (#121)
YaphetKG May 27, 2025
6e4ad05
Merge branch 'main' into develop
YaphetKG May 28, 2025
a9f9765
dev main sync (#122)
YaphetKG May 28, 2025
30c4e8d
comment clear index. rolledback during merge
YaphetKG May 28, 2025
451ae62
dev to main (#123)
YaphetKG May 28, 2025
3a81811
Picsure data ingest test (#118)
yskale Jun 3, 2025
1171679
Dev master sync (#125)
YaphetKG Jun 3, 2025
0182738
fix dug version
YaphetKG Jun 3, 2025
4b59d18
Merge branch 'main' into develop
YaphetKG Jun 3, 2025
7ea0ccb
dev sync (#126)
YaphetKG Jun 3, 2025
14d09f3
Picsure data ingest test (#127)
YaphetKG Sep 9, 2025
6917538
DUG-529 Added support to process diffs in annotate_and_index (#110)
vladimir2217 Sep 9, 2025
23ab7a1
Picsure data ingest test (#128)
YaphetKG Sep 19, 2025
faccf86
Dug 547 (#129)
waTeim Nov 3, 2025
c6ab5e0
fix recover (#131)
YaphetKG Nov 12, 2025
086ef6a
Airflow 3.1.1 (#130)
YaphetKG Nov 14, 2025
58493b3
Merge branch 'main' into develop
YaphetKG Nov 14, 2025
33126c5
merge airflow 3.1.1 (#132)
YaphetKG Nov 14, 2025
e913111
Update urllib version requirement to address vulnerability (#134)
frostyfan109 Jan 7, 2026
abab2ae
Merge branch 'main' into develop
YaphetKG Jan 16, 2026
6113324
bump recent
YaphetKG Jan 16, 2026
4616d7c
dev main sync (#135)
YaphetKG Jan 16, 2026
a433d67
main push (#136)
YaphetKG Feb 20, 2026
2f86ac5
Merge pull request #137 from helxplatform/develop
YaphetKG Feb 20, 2026
45df29c
trivvy patch
YaphetKG Mar 23, 2026
d1c4d51
Merge pull request #138 from helxplatform/trivvy-patch
YaphetKG Mar 23, 2026
c021354
Merge pull request #139 from helxplatform/develop
YaphetKG Mar 23, 2026
5732620
fix hanging es pings on init ,
YaphetKG Mar 27, 2026
68c77e7
testing out lazy task load
YaphetKG Mar 27, 2026
166d6ee
fix none
YaphetKG Mar 28, 2026
3fc3868
Removed minor revision num from Docker image version to track latest
mbacon-renci Apr 10, 2026
0512cbe
WIP: Dug data dictionary compatibility (and package refactor) (#133)
mbacon-renci Apr 24, 2026
8160dd5
Version bump to Python 3.12 and Airflow 3.2.0
mbacon-renci Apr 24, 2026
69827c1
Bumping orjson and kg_utils version
mbacon-renci Apr 24, 2026
f938757
Back-resolve with main
mbacon-renci Apr 24, 2026
47792b6
fix redis import again.
YaphetKG Apr 24, 2026
992bdd5
fix study names in bulk csv
YaphetKG May 11, 2026
44c0835
unassigned var
YaphetKG May 11, 2026
cf3720f
Minor subrevision bump to trigger image build
mbacon-renci Jun 10, 2026
b664fbe
Merge branch 'develop' into patch-delays
YaphetKG Jun 11, 2026
f41ffc0
init commit for incremental test
YaphetKG Jun 12, 2026
1ac23f4
remove cruft parameters'
YaphetKG Jun 16, 2026
f4f34e3
bdc sibiling gap exchange download
YaphetKG Jun 16, 2026
e5fa6f1
adding test
YaphetKG Jun 16, 2026
34b5e7c
adding new pipeline and support for it
YaphetKG Jun 17, 2026
aa7296e
Removing perl to catch vulnerabilities
mbacon-renci Jun 18, 2026
5955aa5
Removing perl-base, possibly breaking, for vulnerability remediation
mbacon-renci Jun 18, 2026
7b1cddb
Perl-base uninstall moved later in dockerfile
mbacon-renci Jun 18, 2026
dbd8916
fix bug in __exit__ when search_obj not initialized
frostyfan109 Jul 6, 2026
ae20d34
add timeouts and retries to http session used by dug crawler during a…
frostyfan109 Aug 4, 2026
6aa1aff
Made 3.12.13 explicit to trigger image rebuild
mbacon-renci Aug 6, 2026
104c327
fix build_indexer_obj args
frostyfan109 Aug 6, 2026
72089ae
fix build_search_obj args
frostyfan109 Aug 6, 2026
45367c8
Bumped base image version to trigger rebuild.
mbacon-renci Aug 6, 2026
f66424d
Bumped to airflow 3.3.2, removed perl-base at end of install
mbacon-renci Aug 11, 2026
01448ae
trying out seperating indexing jobs and adding removal steps for new …
YaphetKG Aug 11, 2026
dec32e3
bump roger version
YaphetKG Aug 11, 2026
34b764d
remove dug from setup
YaphetKG Aug 11, 2026
6503760
upstream fix for dug datamodel dependency issue
YaphetKG Aug 11, 2026
564f991
fix es initialization
YaphetKG Aug 11, 2026
88407a2
lets see whats going in
YaphetKG Aug 11, 2026
1c61ed5
Add migration for jsonpickle artifacts on stale dug class paths
YaphetKG Aug 12, 2026
d8b138d
Rewrite README for onboarding; add CLAUDE.md architecture notes
YaphetKG Aug 12, 2026
67ba684
Merge pull request #144 from helxplatform/test-removal
YaphetKG Aug 12, 2026
7058900
Merge branch 'develop' into patch-delays
YaphetKG Aug 12, 2026
0f19a23
Merge pull request #143 from helxplatform/airflow_322_bump
YaphetKG Aug 14, 2026
269678f
Add ingestion date tracking
frostyfan109 Aug 18, 2026
e8ab1ea
adding incremetal seeder script
YaphetKG Aug 18, 2026
435bace
adding incremetal seeder script
YaphetKG Aug 18, 2026
0203e5e
adding libs
YaphetKG Aug 19, 2026
64d3764
Merge pull request #145 from helxplatform/http-timeout-guard
YaphetKG Aug 19, 2026
64c4f6e
Merge branch 'develop' into patch-delays
YaphetKG Aug 19, 2026
b8a611d
point to dug develop
YaphetKG Aug 19, 2026
caba289
fix kg tasks
YaphetKG Aug 19, 2026
e32fe5c
cleaner bulk load files
YaphetKG Aug 19, 2026
10637b9
add specific memory bump for just bulk create edges tasks, others can…
YaphetKG Aug 19, 2026
3b8b0dc
speed up indexing
YaphetKG Aug 20, 2026
0f74bc4
bring back merging but with bulk indexing
YaphetKG Aug 20, 2026
c9229fc
validation fix
YaphetKG Aug 20, 2026
dc1d9df
pushing chnages
YaphetKG Aug 24, 2026
04c7b24
fix kg merge pull from lakefs
YaphetKG Aug 24, 2026
8e3ddb4
bump merge memory
YaphetKG Aug 25, 2026
cd0903b
pin xhash
YaphetKG Aug 25, 2026
fa0e5bf
perf(annotation): cache POST responses, resume mid-annotation, thread…
YaphetKG Aug 27, 2026
32beb85
fix(kg): stop BulkLoad pulling incrementally and loading edgeless graphs
YaphetKG Aug 27, 2026
6aefe2f
fix(lakefs): commit output from post_execute so downstream sees it
YaphetKG Aug 27, 2026
70d5b1d
fix(kg): give BulkLoad 15Gi, matching the other graph-scale tasks
YaphetKG Aug 27, 2026
6524a06
perf(kg): pause redis rdb snapshots for the duration of the bulk load
YaphetKG Aug 28, 2026
fa58149
fix(kg): backtick label names when creating full text indexes
YaphetKG Aug 28, 2026
2453225
adding batched annotator for nameres and node norm calls
YaphetKG Aug 28, 2026
bf6764f
Merge pull request #146 from helxplatform/event-listners
YaphetKG Aug 28, 2026
5f5cdf8
fix(annotation): send the normalizer's full flag set on the batched POST
YaphetKG Aug 28, 2026
19ecbac
fix(annotation): give annotate tasks their own memory limit
YaphetKG Aug 28, 2026
13c36fc
fix(lakefs): an empty merge is a success, not a failure
YaphetKG Aug 28, 2026
e5c5a5e
fix(annotate_and_index): size make_kgx and crawl, stop hoarding their…
YaphetKG Aug 29, 2026
35070c2
Merge pull request #142 from helxplatform/patch-delays
YaphetKG Sep 1, 2026
778a528
Merge branch 'main' into develop
YaphetKG Sep 1, 2026
36bae72
Update build-push-dev-image.yml
YaphetKG Sep 1, 2026
403923c
Merge pull request #147 from helxplatform/develop
YaphetKG Sep 1, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 14 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

KGX_DATA_SETS="bdc-studies-kgx:v1.0"
INPUT_DATA_SETS="heal-mds-studies:v1.0"

LAKEFS_ACCESS_KEY=""
LAKEFS_SECRET_KEY=""
LAKEFS_REPO=""
LAKEFS_BRANCH=""
LAKEFS_URL="https://lakefs.apps.renci.org"

BIOMEGATRON_URL="https://med-nemo.apps.renci.org/annotate"
SAPBERT_URL="https://sap-qdrant.apps.renci.org/annotate"
NODE_NORM_URL="https://nodenormalization-sri.renci.org/get_normalized_nodes?conflate=false&description=true&curie="
NAME_RES_URL="https://name-resolution-sri.renci.org/reverse_lookup"
86 changes: 86 additions & 0 deletions .github/workflows/build-push-dev-image.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
# Workflow responsible for the
# development release processes.
#
name: Build-Push-Dev-Image
on:
push:
branches:
- develop
paths-ignore:
- README.md
- .old_cicd/*
- .github/*
- .github/workflows/*
- LICENSE
- .gitignore
- .dockerignore
- .githooks
# Do not build another image on a pull request.
# Any push to develop will trigger a new build however.
pull_request:
branches-ignore:
- '*'

jobs:
build-push-dev-image:
runs-on: ubuntu-latest
steps:

- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
# fetch-depth: 0 means, get all branches and commits
fetch-depth: 0

- name: Set short git commit SHA
id: vars
run: |
echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

- name: Confirm git commit SHA output
run: echo ${{ steps.vars.outputs.short_sha }}

# Docker Buildx is important to caching in the Build And Push Container
# step
# https://github.com/marketplace/actions/build-and-push-docker-images

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=host

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true

- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: containers.renci.org
username: ${{ secrets.CONTAINERHUB_USERNAME }}
password: ${{ secrets.CONTAINERHUB_TOKEN }}
logout: true


# Notes on Cache:
# https://docs.docker.com/build/ci/github-actions/examples/#inline-cache
- name: Build Push Container
uses: docker/build-push-action@v5
with:
context: .
push: true
# Push to renci-registry and dockerhub here.
# cache comes from dockerhub.
tags: |
${{ github.repository }}:develop
${{ github.repository }}:${{ steps.vars.outputs.short_sha }}
containers.renci.org/${{ github.repository }}:develop
containers.renci.org/${{ github.repository }}:${{ steps.vars.outputs.short_sha }}
cache-from: type=registry,ref=${{ github.repository }}:buildcache-dev
cache-to: type=registry,ref=${{ github.repository }}:buildcache-dev,mode=max
131 changes: 131 additions & 0 deletions .github/workflows/build-push-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Workflow responsible for the
# major release processes.
#

name: Build-Push-Release
on:
push:
branches:
- master
- main
paths-ignore:
- README.md
- .old_cicd/*
- .github/*
- .github/workflows/*
- LICENSE
- .gitignore
- .dockerignore
- .githooks
tags-ignore:
- '*'
jobs:
build-push-release:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.head_ref }}
fetch-depth: 0

- name: Set short git commit SHA
id: vars
run: |
echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/

- name: Confirm git commit SHA output
run: echo ${{ steps.vars.outputs.short_sha }}

# https://github.com/marketplace/actions/git-semantic-version
- name: Semver Check
uses: paulhatch/semantic-version@v5.0.3
id: version
with:
# The prefix to use to identify tags
tag_prefix: "v"
# A string which, if present in a git commit, indicates that a change represents a
# major (breaking) change, supports regular expressions wrapped with '/'
major_pattern: "/breaking:|major:/"
# A string which indicates the flags used by the `major_pattern` regular expression. Supported flags: idgs
major_regexp_flags: "ig"
# Same as above except indicating a minor change, supports regular expressions wrapped with '/'
minor_pattern: "/feat:|feature:|minor:/"
# A string which indicates the flags used by the `minor_pattern` regular expression. Supported flags: idgs
minor_regexp_flags: "ig"
# A string to determine the format of the version output
# version_format: "${major}.${minor}.${patch}-prerelease${increment}"
version_format: "${major}.${minor}.${patch}"
search_commit_body: false

# Docker Buildx is important to caching in the Build And Push Container
# step
# https://github.com/marketplace/actions/build-and-push-docker-images
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3
with:
driver-opts: |
network=host

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true

- name: Login to Container Registry
uses: docker/login-action@v3
with:
registry: containers.renci.org
username: ${{ secrets.CONTAINERHUB_USERNAME }}
password: ${{ secrets.CONTAINERHUB_TOKEN }}
logout: true

# Notes on Cache:
# https://docs.docker.com/build/ci/github-actions/examples/#inline-cache
- name: Build Push Container
uses: docker/build-push-action@v5
with:
push: true
# Push to renci-registry and dockerhub here.
# cache comes from dockerhub.
tags: |
containers.renci.org/${{ github.repository }}:v${{ steps.version.outputs.version }}
containers.renci.org/${{ github.repository }}:latest
containers.renci.org/${{ github.repository }}:${{ steps.vars.outputs.short_sha }}
${{ github.repository }}:v${{ steps.version.outputs.version }}
${{ github.repository }}:latest
${{ github.repository }}:${{ steps.vars.outputs.short_sha }}
cache-from: type=registry,ref=${{ github.repository }}:buildcache-release
cache-to: type=registry,ref=${{ github.repository }}:buildcache-release,mode=max

#==========================TAG & RELEASE W/ NOTES =========================

# Note: GITHUB_TOKEN is autogenerated feature of github app
# which is auto-enabled when using github actions.
# https://docs.github.com/en/actions/security-guides/automatic-token-authentication
# https://docs.github.com/en/rest/git/tags?apiVersion=2022-11-28#create-a-tag-object
# https://docs.github.com/en/rest/git/refs?apiVersion=2022-11-28#create-a-reference
# This creates a "lightweight" ref tag.
- name: Create Tag for Release
run: |
curl \
-s --fail -X POST \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
-H "X-GitHub-Api-Version: 2022-11-28" \
https://api.github.com/repos/${{ github.repository }}/git/refs \
-d '{"ref":"refs/tags/v${{ steps.version.outputs.version }}","sha":"${{ github.sha }}"}'

# https://cli.github.com/manual/gh_release_create
- name: Create Release
env:
RELEASE_VERSION: ${{ steps.version.outputs.version }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
gh release create ${{ env.RELEASE_VERSION }} \
-t "${{ env.RELEASE_VERSION }}" \
--generate-notes \
--latest
119 changes: 119 additions & 0 deletions .github/workflows/code-checks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@
# Workflow responsible for core acceptance testing.
# Tests Currently Run:
# - flake8-linter
# - PYTest
# - Bandit
# For PR Vulnerability Scanning a separate workflow will run.
# The build-push-dev-image and build-push-release workflows
# handle the develop and release image storage respectively.
#
#

name: Code-Checks
on:
push:
branches-ignore:
- master
- main
- develop
pull_request:
branches:
- develop
- master
- main
types: [opened, synchronize]
paths-ignore:
- README.md
- .old_cicd/*
- .github/*
- .github/workflows/*
- LICENSE
- .gitignore
- .dockerignore
- .githooks

jobs:
############################## flake8-linter ##############################
flake8-linter:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: "3.12"

# flake8 parses sources, it never imports them, so this job needs
# neither requirements.txt nor a cached interpreter. Caching
# ${{ env.pythonLocation }} also restores a stale site-packages/pip
# over the runner's own, which breaks pip outright.
- name: Lint with flake8
run: |
pip install flake8
flake8 --ignore=E,W dags
# We continue on error here until the code is clean
# flake8 --ignore=E,W --exit-zero .
continue-on-error: true

################################### PYTEST ###################################
# pytest:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Python
# uses: actions/setup-python@v4
# with:
# python-version: '3.12'

# - name: Install Requirements
# run: |
# pip install -r requirements.txt
# pip install coverage
# pip install ./tests

# - name: Test with pytest
# run: |
# make test
############################## test-image-build ##############################
test-image-build:
runs-on: ubuntu-latest
# if: ${{ github.actor == 'dependabot[bot]' }}
steps:
- uses: actions/checkout@v3

- name: Set short git commit SHA
id: vars
run: |
echo "short_sha=$(git rev-parse --short ${{ github.sha }})" >> $GITHUB_OUTPUT
# https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
- name: Confirm git commit SHA output
run: echo ${{ steps.vars.outputs.short_sha }}

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
logout: true

- name: Parse Github Reference Name
id: branch
run: |
REF=${{ github.ref_name }}
echo "GHR=${REF%/*}" >> $GITHUB_OUTPUT

# Notes on Cache:
# https://docs.docker.com/build/ci/github-actions/examples/#inline-cache
- name: Build Container
uses: docker/build-push-action@v5
with:
context: .
push: true
tags: |
${{ github.repository }}:test_${{ steps.branch.outputs.GHR }}
cache-from: type=registry,ref=${{ github.repository }}:buildcache
cache-to: type=registry,ref=${{ github.repository }}:buildcache,mode=max
Loading