mirror of
https://github.com/a-b-street/abstreet.git
synced 2024-12-20 21:01:33 +03:00
f5dcd9bfff
- Give the worker assigned Seattle a much bigger machine type - Create a script to grab the results from S3 and finalize them
22 lines
660 B
Bash
Executable File
22 lines
660 B
Bash
Executable File
#!/bin/bash
|
|
# This script grabs all files changed by VMs, copying them locally.
|
|
#
|
|
# This process is only runnable by Dustin, due to current S3 permissions.
|
|
#
|
|
# Run from the repo's root dir: cloud/gather_output.sh
|
|
|
|
set -e
|
|
set -x
|
|
|
|
EXPERIMENT_TAG=$1
|
|
if [ "$EXPERIMENT_TAG" == "" ]; then
|
|
echo Missing args;
|
|
exit 1;
|
|
fi
|
|
|
|
aws s3 cp --recursive s3://abstreet/$EXPERIMENT_TAG/data/ data/
|
|
# gunzip all of the changed files, overwriting the local copies
|
|
find data/ -path data/system/assets -prune -o -name '*.gz' -print -exec gunzip -f '{}' ';'
|
|
|
|
echo "Done! Validate the files, run updater --upload as usual, and don't forget to clean up s3://abstreet/$EXPERIMENT_TAG"
|