Skip to content

Commit

Permalink
Merge branch 'main' into xmin-ci
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex authored Dec 5, 2023
2 parents 80ba2d9 + 5f44454 commit 6b33eaf
Show file tree
Hide file tree
Showing 12 changed files with 795 additions and 157 deletions.
1 change: 1 addition & 0 deletions dev-peerdb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ then
exit 1
fi

export PEERDB_VERSION_SHA_SHORT=local-$(git rev-parse --short HEAD)
docker compose -f docker-compose-dev.yml up --build \
--no-attach temporal --no-attach pyroscope --no-attach temporal-ui
3 changes: 3 additions & 0 deletions docker-bake.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ target "flow-api" {
"linux/amd64",
"linux/arm64",
]
args = {
PEERDB_VERSION_SHA_SHORT = "${SHA_SHORT}"
}
tags = [
"${REGISTRY}/flow-api:${TAG}",
"${REGISTRY}/flow-api:${SHA_SHORT}",
Expand Down
4 changes: 3 additions & 1 deletion docker-compose-dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ x-catalog-config: &catalog-config
PEERDB_CATALOG_DATABASE: postgres

x-flow-worker-env: &flow-worker-env
# For Temporal Cloud, this will look like:
# For Temporal Cloud, this will look like:
# <yournamespace>.<id>.tmprl.cloud:7233
TEMPORAL_HOST_PORT: temporal:7233
PEERDB_TEMPORAL_NAMESPACE: default
Expand Down Expand Up @@ -115,6 +115,8 @@ services:
context: .
dockerfile: stacks/flow.Dockerfile
target: flow-api
args:
PEERDB_VERSION_SHA_SHORT: ${PEERDB_VERSION_SHA_SHORT:-}
ports:
- 8112:8112
- 8113:8113
Expand Down
434 changes: 279 additions & 155 deletions flow/generated/protos/route.pb.go

Large diffs are not rendered by default.

69 changes: 69 additions & 0 deletions flow/generated/protos/route.pb.gw.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

37 changes: 37 additions & 0 deletions flow/generated/protos/route_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 10 additions & 0 deletions nexus/pt/src/peerdb_route.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,16 @@ pub struct FlowStateChangeResponse {
#[prost(string, tag="2")]
pub error_message: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeerDbVersionRequest {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PeerDbVersionResponse {
#[prost(string, tag="1")]
pub version: ::prost::alloc::string::String,
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ValidatePeerStatus {
Expand Down
Loading

0 comments on commit 6b33eaf

Please sign in to comment.