Skip to content

Commit

Permalink
fix: update hedera explorer chart version and location (#1187)
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan Klick <nathan@swirldslabs.com>
  • Loading branch information
nathanklick authored Jan 21, 2025
1 parent 3640e9a commit 035741b
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 11 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/script/solo_smoke_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ source .github/workflows/script/helper.sh

function enable_port_forward ()
{
local explorer_svc
explorer_svc="$(kubectl get svc -l app.kubernetes.io/component=hedera-explorer -n solo-e2e --output json | jq -r '.items[].metadata.name')"
kubectl port-forward -n solo-e2e svc/haproxy-node1-svc 50211:50211 > /dev/null 2>&1 &
kubectl port-forward -n solo-e2e svc/hedera-explorer 8080:80 > /dev/null 2>&1 &
kubectl port-forward -n solo-e2e "svc/${explorer_svc}" 8080:80 > /dev/null 2>&1 &
kubectl port-forward -n solo-e2e svc/relay-node1-hedera-json-rpc-relay 7546:7546 > /dev/null 2>&1 &
kubectl port-forward -n solo-e2e svc/mirror-grpc 5600:5600 > /dev/null 2>&1 &
}
Expand All @@ -39,7 +41,7 @@ function setup_smart_contract_test ()
rm -f .env

npm install
npx hardhat compile || return 1:
npx hardhat compile || return 1

echo "Build .env file"

Expand Down
8 changes: 4 additions & 4 deletions src/commands/mirror_node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -364,8 +364,8 @@ export class MirrorNodeCommand extends BaseCommand {

await self.chartManager.install(
config.namespace,
constants.HEDERA_EXPLORER_CHART,
constants.HEDERA_EXPLORER_CHART_UTL,
constants.HEDERA_EXPLORER_RELEASE_NAME,
constants.HEDERA_EXPLORER_CHART_URL,
config.hederaExplorerVersion,
exploreValuesArg,
);
Expand Down Expand Up @@ -441,7 +441,7 @@ export class MirrorNodeCommand extends BaseCommand {
skip: ctx => !ctx.config.deployHederaExplorer,
task: async () =>
await self.k8.waitForPodReady(
['app.kubernetes.io/component=hedera-explorer', 'app.kubernetes.io/name=hedera-explorer'],
['app.kubernetes.io/component=hedera-explorer', 'app.kubernetes.io/name=hedera-explorer-chart'],
1,
constants.PODS_READY_MAX_ATTEMPTS,
constants.PODS_READY_DELAY,
Expand Down Expand Up @@ -602,7 +602,7 @@ export class MirrorNodeCommand extends BaseCommand {
title: 'Destroy mirror-node',
task: async ctx => {
await this.chartManager.uninstall(ctx.config.namespace, constants.MIRROR_NODE_RELEASE_NAME);
await this.chartManager.uninstall(ctx.config.namespace, constants.HEDERA_EXPLORER_CHART);
await this.chartManager.uninstall(ctx.config.namespace, constants.HEDERA_EXPLORER_RELEASE_NAME);
},
skip: ctx => !ctx.config.isChartInstalled,
},
Expand Down
6 changes: 3 additions & 3 deletions src/core/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,10 @@ export const JSON_RPC_RELAY_CHART = 'hedera-json-rpc-relay';
export const MIRROR_NODE_CHART_URL = 'https://hashgraph.github.io/hedera-mirror-node/charts';
export const MIRROR_NODE_CHART = 'hedera-mirror';
export const MIRROR_NODE_RELEASE_NAME = 'mirror';
export const HEDERA_EXPLORER_CHART_UTL = 'oci://ghcr.io/hashgraph/hedera-mirror-node-explorer/hedera-explorer';
export const HEDERA_EXPLORER_CHART = 'hedera-explorer';
export const HEDERA_EXPLORER_CHART_URL = 'oci://ghcr.io/hashgraph/hedera-mirror-node-explorer/hedera-explorer-chart';
export const HEDERA_EXPLORER_RELEASE_NAME = 'hedera-explorer';
export const SOLO_RELAY_LABEL = 'app=hedera-json-rpc-relay';
export const SOLO_HEDERA_EXPLORER_LABEL = 'app.kubernetes.io/name=hedera-explorer';
export const SOLO_HEDERA_EXPLORER_LABEL = 'app.kubernetes.io/component=hedera-explorer';

export const SOLO_HEDERA_MIRROR_IMPORTER = [
'app.kubernetes.io/component=importer',
Expand Down
2 changes: 1 addition & 1 deletion test/e2e/commands/mirror_node.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ e2eTestSuite(testName, argv, undefined, undefined, undefined, undefined, undefin
await accountManager.loadNodeClient(namespace);
try {
// find hedera explorer pod
const pods = await k8.getPodsByLabel(['app.kubernetes.io/name=hedera-explorer']);
const pods = await k8.getPodsByLabel(['app.kubernetes.io/component=hedera-explorer']);
const explorerPod = pods[0];

portForwarder = await k8.portForward(explorerPod.metadata.name as PodName, 8_080, 8_080);
Expand Down
2 changes: 1 addition & 1 deletion version.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ export const HELM_VERSION = 'v3.14.2';
export const SOLO_CHART_VERSION = '0.42.4';
export const HEDERA_PLATFORM_VERSION = 'v0.58.3';
export const MIRROR_NODE_VERSION = '0.120.1';
export const HEDERA_EXPLORER_VERSION = '0.2.1';
export const HEDERA_EXPLORER_VERSION = '24.12.0';
export const HEDERA_JSON_RPC_RELAY_VERSION = 'v0.63.2';

0 comments on commit 035741b

Please sign in to comment.