Skip to content

Commit

Permalink
fixup! fix(scripts): remove new home folder before local deployment test
Browse files Browse the repository at this point in the history
fix(scripts): use temporary home folder for local deployment test
  • Loading branch information
mhofman committed Jul 19, 2023
1 parent 6da2d06 commit 9aa87e3
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
5 changes: 5 additions & 0 deletions deployment-integration-home.2AFfT/.yarnrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
# yarn lockfile v1


lastUpdateCheck 1689807326102
12 changes: 7 additions & 5 deletions scripts/run-deployment-integration.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,13 @@ fi
export NETWORK_NAME=chaintest

sudo ln -sf /usr/src/agoric-sdk/packages/deployment/bin/ag-setup-cosmos /usr/local/bin/ag-setup-cosmos
# Note: the deployment test and the loadgen test in testnet mode modify these
# directories, some of them which are in the home directory of the user. While
# it'd be great if these [tests were more hermetic](https://github.com/Agoric/agoric-sdk/issues/8059),
# this manual runner must currently reset these paths to ensure reproducible tests.
rm -rf /usr/src/agoric-sdk/chaintest ~/.agoric/ ~/.ag-chain-cosmos/ /usr/src/testnet-load-generator/_agstate/agoric-servers/testnet-8000
# Note: the deployment test and the loadgen test in testnet mode modify some
# directories in $HOME so provide an empty $HOME for them.
export HOME="$(mktemp --tmpdir -d deployment-integration-home.XXXXX)"
# While it'd be great if these [tests were more hermetic](https://github.com/Agoric/agoric-sdk/issues/8059),
# this manual runner must currently reset the global paths to ensure
# reproducible tests.
rm -rf /usr/src/agoric-sdk/chaintest /usr/src/testnet-load-generator/_agstate/agoric-servers/testnet-8000

cd /usr/src/agoric-sdk/
sudo ./packages/deployment/scripts/install-deps.sh
Expand Down

0 comments on commit 9aa87e3

Please sign in to comment.