From 899715bc73125058b691c6f56315a4cd5eb9102c Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Mon, 4 Mar 2024 10:22:37 +0100 Subject: [PATCH 1/2] fix commit cache metadata --- _plugins/gtn/mod.rb | 6 +- bin/commit-cache-update.rb | 9 +- ...0fcf163b914ce1837f087eec1cd0066c0e7e3.txt} | 153 ++++++++++++++++++ ...0fcf163b914ce1837f087eec1cd0066c0e7e3.txt} | 13 ++ 4 files changed, 172 insertions(+), 9 deletions(-) rename metadata/{git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt => git-mod-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt} (99%) rename metadata/{git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt => git-pub-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt} (99%) diff --git a/_plugins/gtn/mod.rb b/_plugins/gtn/mod.rb index 0ce8a4d1e525af..1f4d6c0ab63a76 100644 --- a/_plugins/gtn/mod.rb +++ b/_plugins/gtn/mod.rb @@ -39,8 +39,9 @@ def self.generate_cache File.write("metadata/git-mod-#{rev}.txt", command) else prev = discover_caches - File.write("metadata/git-mod-#{rev}.txt", cached_command) + results = cached_command File.delete(prev) + File.write("metadata/git-mod-#{rev}.txt", results) end end @@ -147,8 +148,9 @@ def self.generate_cache File.write("metadata/git-pub-#{rev}.txt", command) else prev = discover_caches - File.write("metadata/git-pub-#{rev}.txt", cached_command) + results = cached_command File.delete(prev) + File.write("metadata/git-pub-#{rev}.txt", results) end end diff --git a/bin/commit-cache-update.rb b/bin/commit-cache-update.rb index c26217c43a6aae..1cda20b0768e81 100644 --- a/bin/commit-cache-update.rb +++ b/bin/commit-cache-update.rb @@ -1,11 +1,6 @@ -require './_plugins/gtn' +require 'jekyll' +require './_plugins/gtn/mod.rb' # Write the commit log Gtn::ModificationTimes.generate_cache Gtn::PublicationTimes.generate_cache - -# Gziped? -# require 'zlib' -# File.write("metadata/git-mod-#{rev}.txt.gz", Zlib.gzip(Gtn::ModificationTimes.command)) -# File.write("metadata/git-pub-#{rev}.txt.gz", Zlib.gzip(Gtn::PublicationTimes.command)) -# p Gtn::ModificationTimes.discover_caches diff --git a/metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt b/metadata/git-mod-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt similarity index 99% rename from metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt rename to metadata/git-mod-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt index aa08e938357c9b..8c44f1de33bded 100644 --- a/metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt +++ b/metadata/git-mod-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt @@ -1,3 +1,135 @@ +GTN_GTN:1709543759 +GTN_GTN:1709542527 +GTN_GTN:1709514490 + +metadata/shortlinks.yaml +GTN_GTN:1709498003 + +topics/galaxy-interface/tutorials/galaxy-intro-jupyter/tutorial.md +GTN_GTN:1709213843 +GTN_GTN:1709212100 + +_plugins/jekyll-topic-filter.rb +news/_posts/2024-02-29-new-gmod-topic.md +GTN_GTN:1709211762 + +bin/schema-topic.yaml +news/_posts/2024-02-29-new-gmod-topic.md +topics/contributing/tutorials/create-new-topic/tutorial.md +GTN_GTN:1709210985 + +_plugins/jekyll-topic-filter.rb +GTN_GTN:1709210983 + +metadata/gmod.yaml +GTN_GTN:1709210982 + +_plugins/jekyll-topic-filter.rb +GTN_GTN:1709210980 + +_plugins/jekyll-topic-filter.rb +topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md +GTN_GTN:1709210979 + +_layouts/home.html +GTN_GTN:1709210977 + +topics/assembly/tutorials/chloroplast-assembly/tutorial.md +topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md +GTN_GTN:1709210975 + +topics/microbiome/metadata.yaml +GTN_GTN:1709210974 + +_layouts/home.html +bin/schema-topic.yaml +learning-pathways/clinical-metaproteomics.md +metadata/covid19.yaml +metadata/one-health.yaml +topics/ai4life/metadata.yaml +topics/assembly/metadata.yaml +topics/climate/metadata.yaml +topics/computational-chemistry/metadata.yaml +topics/ecology/metadata.yaml +topics/epigenetics/metadata.yaml +topics/evolution/metadata.yaml +topics/galaxy-interface/tutorials/intermine/tutorial.md +topics/genome-annotation/metadata.yaml +topics/imaging/metadata.yaml +topics/materials-science/metadata.yaml +topics/metabolomics/metadata.yaml +topics/microbiome/metadata.yaml +topics/proteomics/metadata.yaml +topics/sequence-analysis/metadata.yaml +topics/single-cell/metadata.yaml +topics/statistics/metadata.yaml +topics/synthetic-biology/metadata.yaml +topics/transcriptomics/metadata.yaml +topics/variant-analysis/metadata.yaml +topics/visualisation/metadata.yaml +GTN_GTN:1709210972 + +_plugins/jekyll-topic-filter.rb +topics/genome-annotation/tutorials/official-gene-set/tutorial.md +GTN_GTN:1709210970 + +_plugins/jekyll-topic-filter.rb +GTN_GTN:1709210969 + +assets/images/GMOD-cogs.png +topics/genome-annotation/tutorials/annotation-with-maker/tutorial.md +GTN_GTN:1709210967 + +topics/assembly/tutorials/chloroplast-assembly/tutorial.md +topics/assembly/tutorials/ecoli_comparison/tutorial.md +topics/assembly/tutorials/mrsa-nanopore/tutorial.md +topics/galaxy-interface/tutorials/intermine/tutorial.md +topics/genome-annotation/tutorials/amr-gene-detection/tutorial.md +topics/genome-annotation/tutorials/annotation-with-maker-short/tutorial.md +topics/genome-annotation/tutorials/annotation-with-maker/tutorial.md +topics/genome-annotation/tutorials/annotation-with-prokka/tutorial.md +topics/genome-annotation/tutorials/apollo-euk/tutorial.md +topics/genome-annotation/tutorials/apollo/tutorial.md +topics/genome-annotation/tutorials/bacterial-genome-annotation/tutorial.md +topics/genome-annotation/tutorials/funannotate/tutorial.md +topics/genome-annotation/tutorials/official-gene-set/tutorial.md +topics/sequence-analysis/tutorials/sars-with-galaxy-on-anvil/tutorial.md +topics/variant-analysis/tutorials/microbial-variants/tutorial.md +topics/visualisation/tutorials/jbrowse/tutorial.md +GTN_GTN:1709209808 +GTN_GTN:1709209300 + +short/galaxy.html +GTN_GTN:1709208178 + +_plugins/gtn.rb +_plugins/gtn/mod.rb +_plugins/jekyll-topic-filter.rb +bin/list-recently-published.rb +GTN_GTN:1709208057 + +_plugins/gtn/mod.rb +bin/list-recently-modified.rb +bin/list-recently-published.rb +GTN_GTN:1709204321 + +short/galaxy.html +GTN_GTN:1709204315 + +_plugins/jekyll-topic-filter.rb +GTN_GTN:1709131243 + +_plugins/jekyll-topic-filter.rb +GTN_GTN:1709110457 + +_plugins/jekyll-tool-tag.rb +GTN_GTN:1708960754 + +.github/workflows/cron-commit-cache.yml +GTN_GTN:1708960469 + +metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt +metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt GTN_GTN:1708960403 .github/workflows/deploy.yml @@ -14,6 +146,24 @@ bin/commit-cache-update.rb GTN_GTN:1708946427 bin/list-recently-modified.rb +GTN_GTN:1708937732 +GTN_GTN:1708931575 +GTN_GTN:1708930821 +GTN_GTN:1708909698 + +metadata/shortlinks.yaml +GTN_GTN:1708902996 + +topics/genome-annotation/images/bgc_screening/Selection_111.png +topics/genome-annotation/images/bgc_screening/borrelidin.png +topics/genome-annotation/images/bgc_screening/compound.png +topics/genome-annotation/images/bgc_screening/flowchart.drawio.png +GTN_GTN:1708819484 + +topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md +GTN_GTN:1708819469 + +topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md GTN_GTN:1708601697 GTN_GTN:1708600348 @@ -145,6 +295,9 @@ assets/images/oembed.png shared/images/logo-vib.png topics/single-cell/images/scrna-data/HCA.jpg topics/single-cell/images/scrna-data/exp_id.jpg +GTN_GTN:1708121008 + +topics/ecology/tutorials/Metashrimps_tutorial/tutorial.md GTN_GTN:1708092257 CONTRIBUTORS.yaml diff --git a/metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt b/metadata/git-pub-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt similarity index 99% rename from metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt rename to metadata/git-pub-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt index 1315cb7ae9c4d2..34801062c1c2f6 100644 --- a/metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt +++ b/metadata/git-pub-0e10fcf163b914ce1837f087eec1cd0066c0e7e3.txt @@ -1,3 +1,16 @@ +GTN_GTN:1709213843 + +A assets/images/GMOD-cogs.png +A metadata/gmod.yaml +A news/_posts/2024-02-29-new-gmod-topic.md +GTN_GTN:1709209808 + +A .github/workflows/cron-commit-cache.yml +A bin/commit-cache-update.rb +A bin/list-recently-modified.rb +A bin/list-recently-published.rb +A metadata/git-mod-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt +A metadata/git-pub-980e16de5c1d2c6621c3ca488f534da270fab1e2.txt GTN_GTN:1708524512 A topics/genome-annotation/images/bgc_screening/Ampicillin_Structural_Formulae_V.1.svg.png From af56465f01293b0fb122a87bb7d506e68b4555e7 Mon Sep 17 00:00:00 2001 From: Helena Rasche Date: Mon, 4 Mar 2024 10:29:06 +0100 Subject: [PATCH 2/2] bad name --- .github/workflows/{google-form.rb => google-form.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{google-form.rb => google-form.yml} (100%) diff --git a/.github/workflows/google-form.rb b/.github/workflows/google-form.yml similarity index 100% rename from .github/workflows/google-form.rb rename to .github/workflows/google-form.yml