Skip to content

Commit

Permalink
ci: rename preview environment
Browse files Browse the repository at this point in the history
This is a cosmetic change, updating internal references from
"penumbra-testnet-preview" to "penumbra-preview". The supported networks
are:

  * penumbra-testnet
  * penumbra-preview
  * penumbra-devnet

Importantly, the "testnet" string will now appear only in relation to
the public testnets.
  • Loading branch information
conorsch committed Sep 21, 2023
1 parent 6d2e761 commit c43130e
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 41 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ jobs:
export PATH="$HOME/bin:$PATH"
cd deployments/
export PENUMBRA_VERSION='main'
export HELM_RELEASE='penumbra-testnet-preview'
export HELM_RELEASE='penumbra-preview'
./ci.sh
- name: bounce grpcui
Expand Down
4 changes: 2 additions & 2 deletions deployments/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Penumbra networks. As of 2023Q1, prior to mainnet,
Penumbra Labs runs three (3) discrete networks:

* "testnet", updated approximately weekly
* "testnet-preview", updated on every push to `main` in the repo
* "preview", updated on every push to `main` in the repo
* "devnet", updated ad-hoc to serve as a sandbox debugging environment

Those networks each have their own genesis and knowledge of peers.
Expand All @@ -17,7 +17,7 @@ The networks are completely separate.
.
├── ci.sh # runner script for executing a deploy against k8s
├── charts/ # helm charts used to configure genesis, nodes, and metrics
├── networks/ # logic specific to network, e.g. "testnet" or "testnet-preview"
├── networks/ # logic specific to network, e.g. "testnet" or "preview"
│ └── testnet/
└── terraform/ # server and cluster provisioning logic
└── modules/
Expand Down
4 changes: 2 additions & 2 deletions deployments/charts/penumbra-metrics/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ scrape_configs:
numFullNodes: 2
numValidators: 2
# printf formatting string, for generating scrape targets.
fmtFullNodeSvc: "penumbra-testnet-preview-fn-%d"
fmtValidatorSvc: "penumbra-testnet-preview-val-%d"
fmtFullNodeSvc: "penumbra-preview-fn-%d"
fmtValidatorSvc: "penumbra-preview-val-%d"

# Configure PVCs for metrics data. If disabled, an emptydir will be used,
# which means historical metrics will be wiped on every pod restart.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
releases:
- name: penumbra-testnet-preview
- name: penumbra-preview
chart: ../charts/penumbra-network
values:
- persistence:
Expand All @@ -12,29 +12,29 @@ releases:
tag: main
- network:
external_addresses: "35.192.203.35:26656,34.28.180.178:26656"
- part_of: penumbra-testnet-preview
- part_of: penumbra-preview
# Sidecar vars file for storing external ips. The "penumbra-network" chart
# doesn't read these vars, but the "get-lb-ips" script writes them there,
# and they've been manually duplicated above in the values.network.external_addresses field.
- vars/penumbra-testnet-preview-ips.yml
- vars/penumbra-preview-ips.yml

- name: penumbra-testnet-preview-nodes
- name: penumbra-preview-nodes
chart: ../charts/penumbra-node
needs:
- penumbra-testnet-preview
- penumbra-preview
values:
- ingressRoute:
enabled: true
hosts:
pd: grpc.testnet-preview.penumbra.zone
tm: rpc.testnet-preview.penumbra.zone
secretName: penumbra-testnet-preview-wildcard
secretName: penumbra-preview-wildcard
- preserve_lb_svc: true
- only_lb_svc: false
- image:
tag: main
# Communicate intra-cluster to the private validator rpc address.
- penumbra_bootstrap_node_tendermint_rpc_url: "http://penumbra-testnet-preview-val-0:26657"
- penumbra_bootstrap_node_tendermint_rpc_url: "http://penumbra-preview-val-0:26657"
- nodes:
# We intentionally exclude external IPs in this declaration, but include them
# in the external vars/ file, which is generated via `./scripts/get-lb-ips penumbra-devnet`.
Expand All @@ -43,25 +43,25 @@ releases:
- persistence:
enabled: true
size: 50G
- part_of: penumbra-testnet-preview
- part_of: penumbra-preview
# empty vars file for storing external ips
- vars/penumbra-testnet-preview-nodes-ips.yml
- vars/penumbra-preview-nodes-ips.yml

- name: penumbra-testnet-preview-metrics
- name: penumbra-preview-metrics
chart: ../charts/penumbra-metrics
values:
- ingressRoute:
enabled: true
hosts:
grafana: grafana.testnet-preview.penumbra.zone
secretName: penumbra-testnet-preview-wildcard
secretName: penumbra-preview-wildcard
- scrape_configs:
# Must match settings from "penumbra-node" chart
numFullNodes: 2
fmtFullNodeSvc: "penumbra-testnet-preview-nodes-fn-%d"
fmtFullNodeSvc: "penumbra-preview-nodes-fn-%d"
# Must match settings from "penumbra-network" chart
numValidators: 2
fmtValidatorSvc: "penumbra-testnet-preview-val-%d"
fmtValidatorSvc: "penumbra-preview-val-%d"
- image:
tag: main
- persistence:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodes:
- external_address: 35.192.203.35:26656
- external_address: 34.133.250.112:26656
- external_address: 34.136.197.29:26656
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
nodes:
- external_address: 35.192.203.35:26656
- external_address: 34.135.6.235:26656
- external_address: 34.28.180.178:26656
File renamed without changes.

This file was deleted.

2 changes: 1 addition & 1 deletion deployments/networks/testnet/cluster.tf
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// Cluster configuration for testnet deployments.
// As of 2022Q4, we're reusing a single cluster to host
// multiple environments, e.g. "testnet" and "testnet-preview".
// multiple environments, e.g. "testnet" and "preview".
// We may migrate to multiple clusters in the future.
module "gcp_terraform_state_testnet" {
source = "../../terraform/modules/gcp/terraform_state/chain"
Expand Down
6 changes: 3 additions & 3 deletions deployments/relayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Stores config generation scripts for use with the [relayer](https://github.com/cosmos/relayer),
for IBC functionality. Prior to mainnet, we plan to use `relayer` to synchronize actions
from testnet-preview to testnet. During 2023Q2, we're focusing on relaying between
testnet-preview and a local devnet on the same or similar commit.
from preview to testnet. During 2023Q2, we're focusing on relaying between
preview and a local devnet on the same or similar commit.

## Running a local devnet
To create a path between the public testnet-preview chain and a local devnet:
To create a path between the public preview chain and a local devnet:

0. Download the `rly` binary from [cosmos/relayer](https://github.com/cosmos/relayer/releases) and stick it in your `$PATH`.
1. Run `./deployments/scripts/relayer-local-devnet` to bootstrap the local chain.
Expand Down

0 comments on commit c43130e

Please sign in to comment.