Repository navigation
Docker Reproduction
Reena edited this page Nov 30, 2026
·
1 revision
This page reproduces the legacy build's Human GO step from real, live source data in the build's own Docker image. Nothing is published, Slack is never contacted, and cron is not touched. Everything runs on a development machine; don't use the production build VM or its code drive.
A fresh clone could not build or start the image:
| Problem | Symptom | Fix (commit) |
|---|---|---|
Ant 1.10.12 is no longer on dlcdn.apache.org
|
wget 404, image build fails everywhere |
download from archive.apache.org, which keeps every release (bae79c9) |
Some networks block archive.ubuntu.com
|
apt-get update: connection failed |
optional --build-arg UBUNTU_MIRROR=...; empty by default, so nothing changes elsewhere (bae79c9) |
docker-entrypoint.sh stored without the executable bit |
exec: "docker-entrypoint.sh": executable file not found |
mode 755 in git, plus chmod in the Dockerfile (aed093a) |
# 1. separate checkout (never the production code drive)
mkdir -p ~/bcb430 && cd ~/bcb430
git clone -b feature/reena-bugfixes https://github.com/BaderLab/EnrichmentMap_monthlyGenesetBuild.git repo
SHA=$(git -C repo rev-parse --short HEAD)
# 2. build the image under a test tag (not geneset_build/geneset_build)
# add --build-arg UBUNTU_MIRROR=http://mirror.csclub.uwaterloo.ca/ubuntu if archive.ubuntu.com is blocked
docker build -t geneset_build:test-$SHA repo/Docker_instance
# 3. compile GenesetTools.jar inside the image
docker run --rm -v ~/bcb430/repo:/code geneset_build:test-$SHA /code/GeneSetTools/build_jar.sh
# 4. run ONLY the Human GO block of create_genesets_release.sh into an empty directory
mkdir -p runs
docker run --rm -v ~/bcb430/repo:/code -v ~/bcb430/runs:/runs geneset_build:test-$SHA \
/code/Docker_instance/run_go_only_test.sh /runs/go_live_$SHA- cuts the function definitions and the Human GO block out of
create_genesets_release.shwhen it starts and runs them unchanged, saving both extracts and their SHA-256 next to the output; - refuses to start if a
slack_webhookfile exists, or if the output directory isn't empty; - never reaches the publish step;
- writes
run_info.txt(mode, commit, script and jar checksums, Java version, runtime, exit status) andgmt_counts.tsv(lines and unique IDs per GMT); - keeps a copy of the exact inputs, so the run can be repeated offline:
docker run --rm -v ~/bcb430/repo:/code -v ~/bcb430/runs:/runs \
-e GO_CACHED_GAF=/runs/go_live_$SHA/inputs/goa_human.gaf.gz -e GO_CACHED_OBO=/runs/go_live_$SHA/inputs/go.obo \
geneset_build:test-$SHA /code/Docker_instance/run_go_only_test.sh /runs/go_cached_$SHAThe same inputs through the Snakemake pipeline (in its own container, pipeline/Dockerfile):
docker build -t geneset_pipeline:test repo/pipeline
M=$(date +%Y-%m); L=$(ls -d runs/go_live_$SHA/*/SRC/GO)
mkdir -p repo/pipeline/raw/GO_human/$M
cp $L/gene_association.goa_human repo/pipeline/raw/GO_human/$M/gaf.download
cp $L/go.obo repo/pipeline/raw/GO_human/$M/obo.download
docker run --rm -v ~/bcb430/repo:/code -w /code/pipeline geneset_pipeline:test \
snakemake build/$M/GO_human/counts.tsv -c2 --rerun-triggers mtime
docker run --rm -v ~/bcb430/repo:/code -v ~/bcb430/runs:/runs -w /code/pipeline geneset_pipeline:test \
python scripts/parity_report.py --legacy /runs/go_live_$SHA/<date>/SRC/GO --pipeline build/$M/GO_human \
--pattern 'Human_GO_*_UniProt.gmt' --out results/aim1/parity.tsvFull record: results/aim1/docker_go_run1_2026-11-30/
| Commit / image |
aed093a, geneset_build:reena-aed093a (sha256:cbb5780a2ded…) |
| Inputs (live) | EBI GOA goa_human.gaf.gz (generated 2026-11-04) + go.obo (GO release 2026-07-26) |
| Start | 13:34:38 UTC. Download plus all six createGo GMTs finished in about 1 minute |
| Output (UniProt) | BP 12,877 / 13,626 · MF 6,309 / 6,500 · CC 1,996 / 2,098 sets (no IEA / with IEA) |
Same inputs through Snakemake go_current
|
exit 0, 15 s. 43,406 / 43,406 sets identical, 3,033,935 memberships, 0 name or description differences (parity) |
| Translation |
failed. UniProt left the 1,000-ID jobs RUNNING/NEW; after the branch's limit (100 checks ≈ 8 min) the Java tool stopped with Unable to get Finished status from uniprot job. Stopped by hand at 13:52 UTC |
| Diagnosis | UniProt ID-mapping queue outage: fresh jobs from two networks stayed NEW for 20+ min while uniprotkb/search answered in 0.7 s |
| Slack / publish / cron | not contacted / not reached / not touched |
One real row from this run (Human_GO_bp_no_GO_iea_UniProt.gmt):
alpha-glucoside transport%GObp%GO:0000017 alpha-glucoside transport P31639 P13866
Pending. Queued on the development VM to start automatically once UniProt completes a fresh test job; default settings, same isolation. This section will get the record.
-
Master polls a UniProt job forever, because
attempt = attempt++never increments. - This branch stops after 100 checks × 5 s and exits with an error, so a failed translation is visible instead of hanging.
- On a slow UniProt day that turns a delay into a failed file. The limit is a Java system property, so it can be raised for one run without a code change:
docker run -e JAVA_TOOL_OPTIONS=-Duniprot.status.max.checks=720 ...(about 1 hour per job). Choosing a default is still open.