-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #365 from broadinstitute/ew-refine-mini-ontologies
Refine ontology cache, for fast metadata validation (SCP-5790)
- Loading branch information
Showing
14 changed files
with
42 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,10 +16,10 @@ jobs: | |
uses: actions/checkout@v4 | ||
|
||
- name: Copy and decompress ontologies in repo | ||
run: cd ingest/validation; mkdir tmp; cp -r *.min.tsv.gz tmp/; gzip -d tmp/*.min.tsv.gz | ||
run: cd ingest/validation/ontologies; mkdir tmp; cp -r *.min.tsv.gz tmp/; gzip -d tmp/*.min.tsv.gz | ||
|
||
- name: Minify newest ontologies | ||
run: cd ingest/validation; python3 minify_ontologies.py; gzip -dkf *.min.tsv.gz | ||
run: cd ingest/validation; python3 minify_ontologies.py; gzip -dkf ontologies/*.min.tsv.gz | ||
|
||
- name: Diff and commit changes | ||
run: | | ||
|
@@ -30,7 +30,7 @@ jobs: | |
set +e | ||
# set -x # Enable debugging | ||
cd ingest/validation | ||
cd ingest/validation/ontologies | ||
# Define directories | ||
SOURCE_DIR="." | ||
|
@@ -76,6 +76,10 @@ jobs: | |
done | ||
if [ "$CHANGES_DETECTED" = true ]; then | ||
# Update version to signal downstream caches should update | ||
echo "$(date +%s) # validation cache key" > version.txt | ||
git add version.txt | ||
# Configure Git | ||
git config --global user.name "github-actions" | ||
git config --global user.email "[email protected]" | ||
|
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
1726164618 # validation cache key |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters