Skip to content

Commit

Permalink
Merge branch 'chore/more-precision' into chore/sys-contract-tests
Browse files Browse the repository at this point in the history
# Conflicts:
#	internal/contracts/system_contract.kf
  • Loading branch information
outerlook committed Sep 24, 2024
2 parents 77780a7 + d922c0d commit 01da799
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 7 deletions.
4 changes: 0 additions & 4 deletions deployments/infra/lib/kwil-gateway/kgw_startup_scripts.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ func AddKwilGatewayStartupScriptsToInstance(options AddKwilGatewayStartupScripts
nodeAddresses = append(nodeAddresses, node.PeerConnection.GetRpcHost())
}

// TODO: Temporary fix for the issue of the gateway keep syncing with the node-2 that is halted
// only take the first ([0]) node address
nodeAddresses = nodeAddresses[:1]

// Create the environment variables for the gateway compose file
kgwEnvConfig := KGWEnvConfig{
CorsAllowOrigins: config.CorsAllowOrigins,
Expand Down
2 changes: 1 addition & 1 deletion deployments/infra/stacks/tsn_stack.go
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ func TsnStack(stack awscdk.Stack, props *TsnStackProps) awscdk.Stack {
jsii.String("KwilGatewayBucket"),
jsii.String("kwil-binaries"),
),
Key: jsii.String("gateway/kgw-v0.3.1.zip"),
Key: jsii.String("gateway/kgw-v0.3.3.zip"),
}

// ## Instances & Permissions
Expand Down
2 changes: 1 addition & 1 deletion internal/contracts/tests/utils/setup/composed.go
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ func setTaxonomy(ctx context.Context, input SetTaxonomyInput) error {
primitiveStreamStrings = append(primitiveStreamStrings, item.ChildStream.StreamId.String())
dataProviderStrings = append(dataProviderStrings, item.ChildStream.DataProvider.Address())
// should be formatted as 0.000000000000000000 (18 decimal places)
weightStrings = append(weightStrings, fmt.Sprintf("%.3f", item.Weight))
weightStrings = append(weightStrings, fmt.Sprintf("%.18f", item.Weight))
}

dbid := utils.GenerateDBID(input.composedStream.StreamId.String(), input.Platform.Deployer)
Expand Down
2 changes: 1 addition & 1 deletion scripts/download-binaries-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ download_binaries() {
fi

# Set the URL for the binary
URL="https://www.dropbox.com/scl/fo/gl7ogpaqxs84zaw36nynd/AIfDb7thcS7p6ygm48GnLEI/kgw_0.3.2_${OS}_${ARCH}.tar.gz?rlkey=1cegi9hf50iji0gyra4hakj0u&dl=0"
URL="https://www.dropbox.com/scl/fi/pseq2piergab1l2eg5xfi/kgw_0.3.3_${OS}_${ARCH}.tar.gz?rlkey=kytxxyeepoxi4zz7eancmjj43&st=klxh3rdh&dl=0"

echo "Detected platform: ${OS}-${ARCH}"
echo "Downloading binary from $URL..."
Expand Down

0 comments on commit 01da799

Please sign in to comment.