forked from CakeML/regression
-
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.
Rework worker to use a separate working dir per job
The aim here is to allow resuming from a worker's (partially) built state after a job finishes.
- Loading branch information
Showing
3 changed files
with
92 additions
and
40 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
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,21 @@ | ||
#!/bin/sh | ||
set -e | ||
pushd $1 | ||
NAME=cakeml-job-$1 | ||
tar --create --file ${NAME}.tar --exclude-from=HOL/tools-poly/rebuild-excludes.txt --exclude=HOL/help/Docfiles --exclude=HOL/help/theorygraph --transform="s|^|${NAME}/|" HOL | ||
tar --append --file ${NAME}.tar --exclude-from=cakeml/developers/rebuild-excludes --transform="s|^|${NAME}/|" cakeml | ||
gzip ${NAME}.tar | ||
rsync -Pvz ${NAME}.tar.gz [email protected]:/strongspace/xrchz/public/ | ||
popd | ||
|
||
# Developer Recipe | ||
# | ||
# 1. download stuff | ||
# 2. untar working directories in fresh locations | ||
# 3. rebuild | ||
# - HOL will require | ||
# 1. poly < tools/smart-configure.sml | ||
# 2. bin/build --relocbuild | ||
# - CakeML | ||
# 1. cd cakeml/`cat cakeml/resume` | ||
# 2. Holmake --qof -k --relocbuild |
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