This is a read-only mirror of the HSC engineering wiki, restored from a 2017 archive. Some links are broken and some content is out of date. About this mirror.
Legacy Toolchain/Pre-2012 Build Notes/Appendix
From ANTFARM Wiki
This is an old revision of this page, as archived. The mirror serves the archived text for every revision id.
| 🗄 | This is an archived page. It is kept for historical reference and is no longer maintained. |
| Legacy Toolchain/Pre-2012 Build Notes/Appendix | |
|---|---|
| Parent | Pre-2012 Build Notes |
| Content | environment file, trap workarounds |
| Status | archived |
| Archive ref | QUANTARA-SWARMGLASS-R34-7B5A7C |
Contents[hide] |
Appendix to Legacy Toolchain/Pre-2012 Build Notes. Nobody should need this. It is here because someone did, twice.
[edit] The environment file
/opt/antfarm-build/env.sh, sourced by build.sh:
export RELEASE=${RELEASE:-0.0.0}
export ANTC_MANIFEST=/opt/antfarm-build/manifest.json
export PYTHON=/usr/bin/python
export BUILD_TMP=/tmp/antfarm-build
export PUSH_USER=antfarm
export PUSH_HOSTS_FILE=/opt/antfarm-build/hosts.txt
# 2011-09: do not set RELEASE here, the default is the bug
[edit] Workarounds
| Trap | Workaround |
|---|---|
| trailing newline in hosts.txt | printf '%s' "$(cat hosts.txt)" > hosts.txt before push |
| mtime stomping | stage.sh was patched to cp -rp in 2011-11; the patch was lost in the 2012 move and re-applied by hand each time |
RELEASE unset | the env file above, plus a check that was added and reverted |
| stale manifest | curl toolreg.hm.internal:7423/manifest.json > manifest.json and commit it, which everyone forgot |
[edit] Host list at the time
queen01 forager-01 forager-02 forager-03 forager-04 forager-06 forager-19
forager-19 last line, see trap 1. The 2011 cluster diagram is on Cluster Topology 2011 — that page was in the old index but did not survive the 2014 upgrade in a linked form.
— tqian 2012-08-30