Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rebase/cherry-pick commits for upgrade 11 #8159

Merged
merged 139 commits into from
Aug 24, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
139 commits
Select commit Hold shift + click to select a range
67d6e1f
build(cosmos): make Node.js addon tolerate relocation
michaelfig May 30, 2023
d35c678
chore(golang): move all Go files to `cosmos/golang`
michaelfig Jun 5, 2023
a1d1666
feat(agd): try harder to find cosmic-swingset
michaelfig Jun 5, 2023
7740bab
feat: allow passing tmux flags
raphdev May 16, 2023
b2a6d20
ci(restore-golang): adjust path to `**/go.sum`
michaelfig Jun 5, 2023
3df4c83
upgrade-test: tmux flag docs
raphdev May 17, 2023
b9ed037
upgrade-test: isolate vaults-and-beyond env setup
raphdev May 18, 2023
332f1c0
ci(golangci-lint): implement depguard fix and adjust paths
michaelfig Jun 5, 2023
07c6cf2
Update Readme.md
raphdev Jun 5, 2023
571c20c
Merge pull request #7802 from Agoric/raph/ut-env-refactor
raphdev Jun 5, 2023
d90563a
ci(deployment): fix paths for local validator instance
michaelfig Jun 6, 2023
1a0a91e
Merge pull request #7792 from Agoric/raph/tmux-flags
raphdev Jun 5, 2023
d19e630
build(xsnap): rebuild on postinstall
michaelfig Jun 13, 2023
22a675e
chore(bin/agd): get expected xsnap version from repoconfig.sh
warner Jun 2, 2023
07be947
Merge pull request #7865 from Agoric/mfig-relocatable-addon
michaelfig Jun 6, 2023
8b61b0e
build(deployment): use `bullseye` until `bookworm` bakes a bit
michaelfig Jun 18, 2023
208cfa1
build(cosmos): clarify `install_name_tool` postbuild name
michaelfig Jun 14, 2023
c631bc5
test: DeliverInbound from un-provisioned account is discarded
dckc Jun 13, 2023
2850c90
Merge pull request #7881 from Agoric/better-xsnap-version-check
michaelfig Jun 12, 2023
c3a4e0f
test(cosmos): demonstrate Golang error frame divergence
michaelfig Jun 10, 2023
355f205
fix(deployment): map Debian `bookworm` to Ubuntu `jammy`
michaelfig Jun 15, 2023
ee43112
build!: remove deprecated `ag-cosmos-helper`
michaelfig Jun 15, 2023
335bec4
Merge pull request #7923 from Agoric/dc-deliver-inbound-discard-test
dckc Jun 13, 2023
1d8acf6
fix(cosmos): prevent Golang error wrapping stack frame divergence
michaelfig Jun 10, 2023
6121ae4
build(deployment): pin docker to explicit `node:18`
michaelfig Jun 19, 2023
c220c25
Merge pull request #7927 from Agoric/mfig-build-tweaks
michaelfig Jun 15, 2023
8ed879c
test(cosmos): ensure sdkerrors do not leak stack by default
michaelfig Jun 10, 2023
6edae75
upgrade-test: split upgrade steps and tag
raphdev May 24, 2023
7e89f5e
Merge pull request #7948 from Agoric/mfig-specify-debian-version
michaelfig Jun 19, 2023
70f6b90
fix: use dev instead of latest
raphdev May 15, 2023
241f0f2
test(xsnap): check trivial snapshot golden hashes
michaelfig May 25, 2023
2701716
ci(cosmos): forbid `%w` error-wrapping format specifier
michaelfig Jun 20, 2023
2adbe18
Merge pull request #7835 from Agoric/raph/ut-target-steps
raphdev Jun 20, 2023
9ca0484
github action uses locally built latest
raphdev May 15, 2023
dc8a7f4
build(xsnap): use `-D__has_builtin(x)=1` to avoid divergence
michaelfig May 25, 2023
9e25dae
Merge pull request #7930 from Agoric/mfig-bridge-no-error-stack
michaelfig Jun 21, 2023
69c730a
update docs
raphdev May 15, 2023
6dc476e
Merge pull request #7836 from Agoric/mfig-i-can-haz-builtin
michaelfig Jun 27, 2023
745a5cc
ci(deployment-test): remove hardwired /usr/src/agoric-sdk
michaelfig Jul 3, 2023
92620ea
refactor(cosmic-swingset): portNums are static in init
mhofman Jul 10, 2023
fa942e2
fix(solo): let `init` tolerate existing `html` directory
michaelfig Jul 3, 2023
9a51df5
fix(x/vstorage): value can be empty in genesis data
mhofman Jul 11, 2023
3a8e4c0
feat(deployment): only include this package in `setup` docker image
michaelfig Jul 3, 2023
66f7bcc
feat: Cosmos upgrade handler calls swingset
JimLarson Jun 29, 2023
9ce286e
chore(x/vstorage): remove nodata migration logic
mhofman Jul 12, 2023
452bdb8
feat(deployment): `docker/integration-test.sh` for nested execution
michaelfig Jul 3, 2023
eeb4f4a
fix: test upgrade to one-past-vaults
JimLarson Jul 11, 2023
cea7606
upgrade-test: do not overwrite DEST_IMAGE when set
raphdev Jun 30, 2023
a1586d8
Merge pull request #7745 from Agoric/raph/upgrade-tests-tagging
raphdev Jun 29, 2023
3ce4012
fix(cosmos): module order independent init and bootstrap
mhofman Jul 13, 2023
4f2fc0f
fix(deployment-integration): reenable DOCKER_VOLUMES
michaelfig Jul 19, 2023
958c3ee
refactor: put upgrade plan in cosmos init action
JimLarson Jul 11, 2023
475708e
fix(cosmos): Support building on Linux aarch64
gibson042 Jul 10, 2023
3cfc3e3
Merge pull request #7997 from Agoric/raph/fix-dest-ci
raphdev Jun 30, 2023
0b1a85b
fix(ci): checkout agoric-sdk in sub folder
mhofman Jul 23, 2023
e22cfff
chore(cosmic-swingset): check state before snapshot restore
mhofman Jul 12, 2023
0c1b727
feat(deployment): find testnet-load-generator in parent of agoric-sdk
michaelfig Jul 20, 2023
64cb9b2
refactor: no longer a need for upgrade function to talk over bridge
JimLarson Jul 11, 2023
e45950c
Merge pull request #8029 from Agoric/gibson-2023-07-make-cosmos-aarch64
gibson042 Jul 11, 2023
e567c21
fix(cosmos): don't init controller before upgrade
mhofman Jul 27, 2023
88889a6
fix(ci): require loadgen in deployment integration test
mhofman Jul 23, 2023
c946d58
fix(x/swingset): enforce snapshot restore before init
mhofman Jul 14, 2023
e451c2e
fix(scripts): remove new home folder before local deployment test
mhofman Jul 12, 2023
5c6b254
Merge pull request #7994 from Agoric/7992-enact-upgrade-plan
JimLarson Jul 12, 2023
50944cf
refactor(cosmos): rename snapshot artifact protobuf
mhofman Jul 13, 2023
544c720
refactor(cosmic-swingset): consolidate init and bootstrap
mhofman Jul 28, 2023
ee0daf3
fix(deployment): propagate `ag-setup-cosmos` path to faucet script
mhofman Jul 23, 2023
5320a30
fix(x/swingset): guard snapshot restore for concurrency
mhofman Jul 14, 2023
2da7070
Merge pull request #8004 from Agoric/mfig-debug-deploy
michaelfig Jul 20, 2023
c2e2a42
refactor(x/swingset): consistent height handling in snapshotter
mhofman Jul 18, 2023
7803d3d
feat(cosmic-swingset): add JS upgrade plan handler stub
mhofman Jul 28, 2023
9dbb13c
ci(deployment-test): separate network and SDK dirs
michaelfig Jul 23, 2023
6926404
Merge pull request #8060 from Agoric/mhofman/refactor-cosmos-init
mhofman Jul 20, 2023
5dd1e0d
chore(x/swingset): remove disabled restore using untrusted data
mhofman Jul 18, 2023
fa6e935
refactor(deployment): upgrade test provide agd commands
mhofman Jul 27, 2023
f95d613
refactor(cosmic-swingset): factor out common blockingSend steps
mhofman Jul 28, 2023
eb619d8
Merge pull request #8085 from Agoric/mhofman/fix-deployment-ci-loadgen
michaelfig Jul 23, 2023
2200e89
chore(x/swingset): better handle snapshot retrieve errors
mhofman Jul 18, 2023
34a43ee
feat(deployment): replicate broken state sync in upgrade test
mhofman Jul 27, 2023
3ea0201
Merge pull request #8106 from Agoric/mhofman/fix-controller-init-upgrade
mhofman Jul 29, 2023
c129663
chore: add sequence diagrams of state-sync process
mhofman Jul 31, 2023
d76530c
Merge pull request #8107 from Agoric/mhofman/8081-replicate-state-syn…
mhofman Jul 31, 2023
fb2d7d1
refactor(x/swingset): better export js-golang interface types
mhofman Aug 4, 2023
8820097
chore(x/swingset): update some godoc
mhofman Aug 4, 2023
5cb29d2
chore(x/swingset): rename to swing_store_exports_handler.go
mhofman Aug 4, 2023
e3bd6b5
chore(x/swingset): rename to extension_snapshotter.go
mhofman Aug 4, 2023
f8acd22
feat(x/swingset): add WaitUntilSwingStoreExportDone
mhofman Aug 4, 2023
4b2357e
chore(x/swingset): remove ExtensionSnapshotter from swing_store_expor…
mhofman Aug 4, 2023
ff6cda9
chore(x/swingset): remove SwingStoreExportsHandler from extension_sna…
mhofman Aug 4, 2023
5ec5ad8
refactor(x/swingset): split snapshotter
mhofman Jul 18, 2023
37ac4b2
Merge split of snapshotter.go
mhofman Aug 4, 2023
0c0e742
feat(x/swingset): allow taking snapshot latest height
mhofman Jul 24, 2023
3613b04
chore(cosmic-swingset): thread snapshot options through
mhofman Jul 12, 2023
02d62ac
Merge pull request #8072 from Agoric/mhofman/refactor-snapshotter
mhofman Aug 4, 2023
d1cdf56
refactor(swing-store): refactor swingstore into better pieces
warner Jul 20, 2023
0a2ba8a
feat(upgrade-test): plumb and use `UPGRADE_INFO`
michaelfig Jul 26, 2023
03e323a
fix: rewrite importSwingStore to preserve metadata properly
warner Aug 8, 2023
8cdffc6
fix(upgrade-test): abort if proposal is rejected
michaelfig Jul 27, 2023
5b2d19d
feat(swingstore): add repairMetadata()
warner Aug 8, 2023
28db1dc
test(upgrade-test): default init-network core proposal for agoric-upg…
michaelfig Jul 29, 2023
981fa01
fix(upgrade-test): use correct mainnet-1b image
raphdev Aug 8, 2023
558089a
Merge pull request #8075 from Agoric/8025-swingstore-missing-metadata
warner Aug 8, 2023
47a6b70
fix(upgrade-test): use `agoric-upgrade-10` tag 35
michaelfig Aug 3, 2023
9a39fe5
Merge pull request #8165 from Agoric/raphdev-patch-1
raphdev Aug 8, 2023
a4fe290
fix(upgrade-test): use default `$DEBUG` for docker run
michaelfig Aug 8, 2023
f71a9c9
refactor(x/swingset): ReadArtifact -> ReadNextArtifact
mhofman Aug 11, 2023
3bd1004
refactor(x/swingset): create restore context in app
mhofman Aug 11, 2023
19816e5
Merge pull request #8166 from Agoric/mfig-improve-docker-test
michaelfig Aug 8, 2023
c5c8d8c
refactor(cosmos): shared KVEntry
mhofman Aug 8, 2023
6d2fe11
feat(cosmos): KVEntry implements json Marshaler and Unmarshaller
mhofman Aug 8, 2023
393b91b
feat(cosmic-swingset): replace import/export options
mhofman Jul 22, 2023
3361b25
feat(cosmos): wire new swingset port handler
mhofman Jul 10, 2023
2f702bd
refactor(cosmos): add KVEntry helpers
mhofman Jul 20, 2023
c037ea3
fix(x/swingset): switch export/import to replay artifact level
mhofman Jul 12, 2023
3336b62
feat(cosmic-swingset): use x/swingset for swing-store export data
mhofman Jul 10, 2023
13078a2
refactor(x/swingset): switch to KVEntryReader for export data
mhofman Aug 9, 2023
ee041db
chore(x/vstorage): add remove entries method
mhofman Jul 11, 2023
d46c8e2
fix(swing-store): add 'replay' artifactMode, make export more strict
warner Aug 9, 2023
df72903
feat(x/swingset): add store data to genesis
mhofman Jul 11, 2023
5ab9ea3
Merge pull request #8175 from Agoric/mhofman/8031-more-snapshot-logic…
mhofman Aug 11, 2023
ebbb982
feat(cosmic-swingset): add repair-metadata snapshot restore option
mhofman Jul 24, 2023
dd8cdf0
fix(cosmic-swingset): backwards param compat in import/export
warner Aug 15, 2023
6babf10
Merge pull request #8043 from Agoric/mhofman/8031-swing-store-sync-re…
mhofman Aug 11, 2023
6ba1957
feat(cosmos): fix and migrate swing-store
mhofman Jul 24, 2023
0951830
Merge pull request #8170 from Agoric/8105-export-mode-replay
warner Aug 15, 2023
1d6f3f1
feat(deployment): add state-sync to upgrade 11 test
mhofman Jul 27, 2023
99a6425
Merge pull request #8143 from Agoric/mhofman/8081-fix-state-sync
mhofman Aug 15, 2023
4cce97b
ci(test-docker-build): try making more free disk space
michaelfig Jul 30, 2023
12e49bb
refactor(x/swingset): explicit read/write swing-store export directory
mhofman Aug 17, 2023
c530fdc
fix(cosmic-swingset): log level for swing-store export
mhofman Jul 21, 2023
fe4eb56
feat(cosmos): spawn JS on export command
mhofman Jul 21, 2023
8d2571c
feat(cosmos)!: add required export-dir export cmd option
mhofman Aug 18, 2023
e5f9425
feat(x/swingset): export swing store in genesis
mhofman Jul 21, 2023
db1f0e6
test: add tests from agoric-upgrade-10 to agoric-upgrade-11
iomekam Aug 16, 2023
2446cf4
feat(x/swingset): import swing store from genesis state
mhofman Jul 22, 2023
a820d2c
Merge pull request #8213 from Agoric/agoric-11-test-on-10
iomekam Aug 21, 2023
4223dee
feat(deployment): add genesis export test
mhofman Jul 27, 2023
d2975a7
Merge pull request #8152 from Agoric/mhofman/6527-genesis-with-swing-…
mhofman Aug 22, 2023
e886a60
chore: patch @lerna/conventional-commits to avoid version bump for pr…
warner Aug 23, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,15 @@
docker
packages/cosmic-swingset/t[0-9]
packages/cosmic-swingset/t[0-9].*
packages/cosmic-swingset/lib/lib*.h
packages/cosmic-swingset/lib/lib*.so
golang/cosmos/build
packages/deployment
packages/swingset-runner
packages/stat-logger
**/deployment.json
**/vars.tf
**/*.log
**/build
**/bundles
**/__pycache__
**/*.egg-info
**/swingset-kernel-state
Expand Down
9 changes: 8 additions & 1 deletion .github/actions/restore-golang/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ inputs:
go-version:
description: 'The version of Go to use'
required: true
path:
description: 'The relative path to the agoric-sdk directory'
required: false
default: '.'

runs:
using: composite
Expand All @@ -14,10 +18,12 @@ runs:
shell: bash
- uses: actions/checkout@v3
with:
path: ${{ inputs.path }}
clean: 'false'
submodules: 'true'
- uses: actions/setup-go@v4
with:
cache-dependency-path: ${{ inputs.path }}/golang/cosmos/go.sum
go-version: ${{ inputs.go-version }}
- uses: kenchan0130/actions-system-info@master
id: system-info
Expand All @@ -26,10 +32,11 @@ runs:
uses: actions/cache@v3
with:
path: ${{ env.GOPATH }}/pkg/mod
key: ${{ runner.os }}-${{ runner.arch }}-${{ steps.system-info.outputs.release }}-go-${{ inputs.go-version }}-built-${{ hashFiles('go.sum') }}
key: ${{ runner.os }}-${{ runner.arch }}-${{ steps.system-info.outputs.release }}-go-${{ inputs.go-version }}-built-${{ hashFiles('golang/**/go.sum') }}
restore-keys: |
${{ runner.os }}-${{ runner.arch }}-${{ steps.system-info.outputs.release }}-go-${{ inputs.go-version }}-built-
- name: go mod download
working-directory: ${{ inputs.path }}/golang/cosmos
run: go mod download
shell: bash
if: steps.cache.outputs.cache-hit != 'true'
45 changes: 25 additions & 20 deletions .github/workflows/deployment-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,17 @@ jobs:
- uses: actions/checkout@v3
with:
submodules: 'true'
path: ./agoric-sdk
- run: sudo packages/deployment/scripts/install-deps.sh
- uses: ./.github/actions/restore-golang
working-directory: ./agoric-sdk
- uses: ./agoric-sdk/.github/actions/restore-golang
with:
go-version: '1.20'
- uses: ./.github/actions/restore-node
path: ./agoric-sdk
- uses: ./agoric-sdk/.github/actions/restore-node
with:
node-version: 18.x
path: ./agoric-sdk
# Forces xsnap to initialize all memory to random data, which increases
# the chances the content of snapshots may deviate between validators
xsnap-random-init: '1'
Expand Down Expand Up @@ -61,54 +65,55 @@ jobs:
uses: actions/checkout@v3
with:
repository: Agoric/testnet-load-generator
path: testnet-load-generator
path: ./testnet-load-generator
ref: ${{steps.get-loadgen-branch.outputs.result}}

- name: Put repos under /usr/src where scripts expect them
run: |
set -e
sudo mv "$GITHUB_WORKSPACE/testnet-load-generator" /usr/src/testnet-load-generator
sudo cp -a "$GITHUB_WORKSPACE" /usr/src/agoric-sdk
ln -s /usr/src/agoric-sdk/packages/deployment/bin/ag-setup-cosmos /usr/local/bin/ag-setup-cosmos
working-directory: /

- name: Build cosmic-swingset dependencies
working-directory: ./agoric-sdk
run: |
set -e
cd packages/cosmic-swingset
make install
working-directory: /usr/src/agoric-sdk
- run: /usr/src/agoric-sdk/packages/deployment/scripts/integration-test.sh
- name: Make networks directory
run: |
set -e
mkdir networks
- name: Run integration test
working-directory: ./networks
run: |
set -xe
DOCKER_VOLUMES="$PWD/../agoric-sdk:/usr/src/agoric-sdk" \
LOADGEN=1 \
../agoric-sdk/packages/deployment/scripts/integration-test.sh
timeout-minutes: 90
working-directory: /usr/src/agoric-sdk
env:
NETWORK_NAME: chaintest
- name: capture results
if: always()
working-directory: ./networks
run: |
NOW=$(date -u +%Y%m%dT%H%M%S)
echo "NOW=$NOW" >> "$GITHUB_ENV"

# Stop the chain from running.
packages/deployment/scripts/setup.sh play stop || true
../agoric-sdk/packages/deployment/scripts/setup.sh play stop || true

# Get the results.
packages/deployment/scripts/capture-integration-results.sh "${{ job.status == 'failure' }}"
../agoric-sdk/packages/deployment/scripts/capture-integration-results.sh "${{ job.status == 'failure' }}"

# Tear down the nodes.
echo yes | packages/deployment/scripts/setup.sh destroy || true
working-directory: /usr/src/agoric-sdk
echo yes | ../agoric-sdk/packages/deployment/scripts/setup.sh destroy || true
env:
NETWORK_NAME: chaintest
- uses: actions/upload-artifact@v3
if: always()
with:
name: deployment-test-results-${{ env.NOW }}
path: /usr/src/agoric-sdk/chaintest/results
path: ./networks/chaintest/results

- name: notify on failure
if: failure() && github.event_name != 'pull_request'
uses: ./.github/actions/notify-status
uses: ./agoric-sdk/.github/actions/notify-status
with:
webhook: ${{ secrets.SLACK_WEBHOOK_URL }}
from: ${{ secrets.NOTIFY_EMAIL_FROM }}
Expand Down
21 changes: 14 additions & 7 deletions .github/workflows/golangci-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,15 +24,22 @@ jobs:
go-version: '>=1.20'
cache: false
check-latest: true
# https://github.com/golangci/golangci-lint/issues/3862#issuecomment-1572973588
- run: echo "GOROOT=$(go env GOROOT)" >> $GITHUB_ENV
- name: golangci-lint
uses: golangci/golangci-lint-action@v3
with:
# golangci-lint version and command line arguments
# v1.52.3 has a bug that causes it to fail depguard with:
# level=error msg="[linter] depguard: create analyzer:
# couldn't expand $gostd: could not read GOROOT directory:
# open src: no such file or directory\nmust have an Allow and/or Deny package list"
version: 'v1.52.2' # FIXME: change back to latest when it is fixed
version: latest
args: --timeout=3m
# for pull requests, show only new issues
only-new-issues: true
# Too bad it's incompatible with working-directory.
# only-new-issues: true
only-new-issues: false
working-directory: ./golang/cosmos
- name: forbid %w error-wrapping format specifier
run: |
set -e
if find ./golang/cosmos -name '*.go' ! -name '*_test.go' -print0 | xargs -0 grep '%w'; then
echo "Found %w in ./golang/cosmos; please use %s instead."
exit 1
fi
13 changes: 12 additions & 1 deletion .github/workflows/test-all-packages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -569,11 +569,22 @@ jobs:
matrix:
bootstrap-version: ['test', 'main']
steps:
- name: free up additional worker space
run: |
# Workaround to provide additional free space for testing.
# https://github.com/actions/virtual-environments/issues/2840
df -h
sudo rm -rf /usr/share/dotnet
sudo rm -rf /opt/ghc
sudo rm -rf "/usr/local/share/boost"
sudo rm -rf "$AGENT_TOOLSDIRECTORY"
df -h

- uses: actions/checkout@v3
- name: docker build (sdk)
run: cd packages/deployment && ./scripts/test-docker-build.sh | $TEST_COLLECT
- name: docker build upgrade test
run: cd packages/deployment/upgrade-test && docker build --build-arg BOOTSTRAP_MODE=${{ matrix.bootstrap-version }} -t docker-upgrade-test:latest -f Dockerfile upgrade-test-scripts
run: cd packages/deployment/upgrade-test && docker build --build-arg BOOTSTRAP_MODE=${{ matrix.bootstrap-version }} --build-arg DEST_IMAGE=ghcr.io/agoric/agoric-sdk:latest -t docker-upgrade-test:latest -f Dockerfile upgrade-test-scripts
- name: docker run upgrade final stage
run: docker run --env "DEST=0" docker-upgrade-test:latest
- uses: ./.github/actions/post-test
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-golang.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
with:
go-version: '1.20'
- name: go test
run: cd golang && go test -coverprofile=coverage.txt -covermode=atomic ./...
run: cd golang/cosmos && go test -coverprofile=coverage.txt -covermode=atomic ./...
- uses: ./.github/actions/post-test
if: (success() || failure())
continue-on-error: true
Expand Down
15 changes: 8 additions & 7 deletions bin/agd
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ fi
print=()
fi
print+=( -print )
src=$(find go.* "$GOLANG_DIR" \( -name '*.go' -o -name 'go.*' \) "${print[@]}" | head -1 || true)
src=$(find "$GOLANG_DIR" \( -name '*.go' -o -name 'go.*' \) "${print[@]}" | head -1 || true)
test -z "$src" || {
echo "At least $src is newer than $stamp"

Expand Down Expand Up @@ -184,21 +184,22 @@ fi
}
)

if $BUILD_ONLY; then
echo "Build complete." 1>&2
exit 0
fi

# the xsnap binary lives in a platform-specific directory
unameOut="$(uname -s)"
case "${unameOut}" in
Linux*) platform=lin;;
Darwin*) platform=mac;;
*) platform=win;;
esac

# check the xsnap version against our baked-in notion of what version we should be using
xsnap_version=$("${thisdir}/../packages/xsnap/xsnap-native/xsnap/build/bin/${platform}/release/xsnap-worker" -n)
[[ "${xsnap_version}" == "agoric-upgrade-10" ]] || fatal "xsnap out of date"
[[ "${xsnap_version}" == "${XSNAP_VERSION}" ]] || fatal "xsnap version mismatch; expected ${XSNAP_VERSION}, got ${xsnap_version}"

if $BUILD_ONLY; then
echo "Build complete." 1>&2
exit 0
fi

# Run the built Cosmos daemon.
# shellcheck disable=SC2031
Expand Down
Loading
Loading