-
Notifications
You must be signed in to change notification settings - Fork 8
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
test: starship testing in ci #50
Closed
Closed
Changes from 2 commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
517c294
test: starship testing in ci
0xpatrickdev 1a2ecee
fixup! test: starship testing in ci
0xpatrickdev a84d9ab
fixup! test: starship testing in ci
0xpatrickdev 881b6a0
fixup! test: starship testing in ci
0xpatrickdev c96331d
feat: upgrade-17 dependencies
0xpatrickdev d246ad5
chore: gitignore startOrcaContract artifacts
0xpatrickdev 36bbfcd
fixup! test: starship testing in ci
0xpatrickdev aaf3572
refactor: import withOrchestration from root
0xpatrickdev 3593bda
tools: log exec stderr
0xpatrickdev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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 |
---|---|---|
@@ -1,3 +1,4 @@ | ||
# TODO, consider removing in favor of e2e-testing (starship) | ||
version: '3.5' | ||
|
||
services: | ||
|
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 @@ | ||
revise-chain-info* |
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,105 @@ | ||
# see https://github.com/cosmology-tech/starship/blob/0e18757b8393357fc66426c5ee23da4ccf760e74/examples/getting-started/Makefile | ||
|
||
NAME = agoric-multichain-testing | ||
FILE = config.yaml | ||
|
||
HELM_REPO = starship | ||
HELM_CHART = devnet | ||
HELM_VERSION = v0.2.10 | ||
|
||
############################################################################### | ||
### All commands ### | ||
############################################################################### | ||
|
||
.PHONY: setup | ||
setup: setup-deps setup-kind | ||
|
||
.PHONY: stop | ||
stop: stop-forward delete | ||
|
||
.PHONY: clean | ||
clean: stop clean-kind | ||
|
||
############################################################################### | ||
### Dependency check ### | ||
############################################################################### | ||
|
||
.PHONY: check | ||
setup-deps: | ||
bash $(CURDIR)/scripts/dev-setup.sh | ||
|
||
############################################################################### | ||
### Helm Charts ### | ||
############################################################################### | ||
|
||
install: | ||
bash $(CURDIR)/scripts/install.sh --config $(FILE) --name $(NAME) --version $(HELM_VERSION) | ||
|
||
delete: | ||
-helm delete $(NAME) | ||
|
||
############################################################################### | ||
### Port forward ### | ||
############################################################################### | ||
|
||
.PHONY: port-forward | ||
port-forward: | ||
bash $(CURDIR)/scripts/port-forward.sh --config=$(FILE) | ||
|
||
.PHONY: stop-forward | ||
stop-forward: | ||
-pkill -f "port-forward" | ||
|
||
############################################################################### | ||
### Local Kind Setup ### | ||
############################################################################### | ||
KIND_CLUSTER=agship | ||
|
||
.PHONY: setup-kind | ||
setup-kind: | ||
kind create cluster --name $(KIND_CLUSTER) | ||
|
||
.PHONY: clean-kind | ||
clean-kind: | ||
-kind delete cluster --name $(KIND_CLUSTER) | ||
|
||
############################################################################### | ||
### Agoric Setup ### | ||
############################################################################### | ||
PROVISION_POOL_ADDR=agoric1megzytg65cyrgzs6fvzxgrcqvwwl7ugpt62346 | ||
|
||
# add address | ||
add-address: | ||
kubectl exec -i agoriclocal-genesis-0 -c validator -- agd keys add user1 | ||
|
||
fund-provision-pool: | ||
kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(PROVISION_POOL_ADDR) 1000000000uist -y -b block | ||
|
||
override-chain-registry: | ||
../node_modules/.bin/tsx scripts/fetch-starship-chain-info.ts && \ | ||
../node_modules/.bin/tsx scripts/deploy-cli.ts proposals/revise-chain-info.builder.js | ||
|
||
ADDR=agoric1ldmtatp24qlllgxmrsjzcpe20fvlkp448zcuce | ||
COIN=1000000000uist | ||
|
||
fund-wallet: | ||
kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx bank send faucet $(ADDR) $(COIN) -y -b block | ||
|
||
provision-smart-wallet: | ||
kubectl exec -i agoriclocal-genesis-0 -c validator -- agd tx swingset provision-one wallet $(ADDR) SMART_WALLET --from $(ADDR) -y -b block | ||
|
||
# view agoric swingset logs from slog file, until we can set `DEBUG=SwingSet:vat,SwingSet:ls` | ||
tail-slog: | ||
kubectl exec -i agoriclocal-genesis-0 -c validator -- tail -f slog.slog | ||
|
||
############################################################################### | ||
### Start All ### | ||
############################################################################### | ||
|
||
.PHONY: wait-for-pods | ||
wait-for-pods: | ||
../node_modules/.bin/tsx scripts/pod-readiness.ts | ||
|
||
.PHONY: start | ||
start: install wait-for-pods port-forward fund-provision-pool override-chain-registry | ||
|
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,22 @@ | ||
/* global harden */ | ||
/// <reference types="ses" /> | ||
import { makeHelpers } from '@agoric/deploy-script-support'; | ||
|
||
import chainInfo from '../starship-chain-info.js'; | ||
|
||
/** @type {import('@agoric/deploy-script-support/src/externalTypes.js').CoreEvalBuilder} */ | ||
export const defaultProposalBuilder = async () => | ||
harden({ | ||
sourceSpec: '@agoric/orchestration/src/proposals/revise-chain-info.js', | ||
getManifestCall: [ | ||
'getManifestForReviseChains', | ||
{ | ||
chainInfo, | ||
}, | ||
], | ||
}); | ||
|
||
export default async (homeP, endowments) => { | ||
const { writeCoreEval } = await makeHelpers(homeP, endowments); | ||
await writeCoreEval('revise-chain-info', defaultProposalBuilder); | ||
}; |
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,29 @@ | ||
#!/usr/bin/env tsx | ||
import '@endo/init/debug.js'; | ||
|
||
import { execa } from 'execa'; | ||
import fse from 'fs-extra'; | ||
import childProcess from 'node:child_process'; | ||
|
||
import { makeAgdTools } from '../../contract/tools/agd-tools.js'; | ||
import { makeDeployBuilder } from '../../contract/tools/deploy.js'; | ||
|
||
async function main() { | ||
const builder = process.argv[2]; | ||
|
||
if (!builder) { | ||
console.error('USAGE: deploy-cli.ts <builder script>'); | ||
process.exit(1); | ||
} | ||
|
||
try { | ||
const agdTools = await makeAgdTools(console.log, childProcess); | ||
const deployBuilder = makeDeployBuilder(agdTools, fse.readJSON, execa, './e2e-testing'); | ||
await deployBuilder(builder); | ||
} catch (err) { | ||
console.error(err); | ||
process.exit(1); | ||
} | ||
} | ||
|
||
main(); |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can remove, unless we are interested in testing the UI
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we plan on testing UI interactions in our pipeline, or just rely on
unit
?