Skip to content

Commit

Permalink
Cherry-picked changes for release 0.10.0-rc.2 (#924)
Browse files Browse the repository at this point in the history
  • Loading branch information
hdkshingala authored Nov 14, 2022
2 parents 8c52e6d + 7c05d21 commit cbb7ecb
Show file tree
Hide file tree
Showing 33 changed files with 911 additions and 857 deletions.
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ jobs:
environment:
CGO_ENABLED: "1"
PREFIX: "aperture"
LDFLAGS: "-s -w"
LDFLAGS: "-s -w -extldflags \"-Wl,--allow-multiple-definition\""
- run:
name: Install nFPM
command: |
Expand Down
2 changes: 1 addition & 1 deletion .circleci/scripts/helm_release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ dependencies() {

version_check() {
# Refer the issue for the Regex https://github.com/semver/semver/issues/232
rx='^v(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(-(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9]\d*|\d*[a-zA-Z-][0-9a-zA-Z-]*))*)?(\+[0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*)?$'
rx='^v(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*)(-((0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*)(\.(0|[1-9][0-9]*|[0-9]*[a-zA-Z-][0-9a-zA-Z-]*))*))?(\+([0-9a-zA-Z-]+(\.[0-9a-zA-Z-]+)*))?$'
if [[ $VERSION_CMD =~ $rx ]]; then
echo "INFO:<-->Version $VERSION_CMD"
else
Expand Down
8 changes: 8 additions & 0 deletions api/aperture/policy/language/v1/policy.proto
Original file line number Diff line number Diff line change
Expand Up @@ -449,6 +449,14 @@ message EMA {
value: {string_value: "gte=0,lte=1.0"}
}
}]; // @gotags: validate:"gte=0,lte=1.0" default:"1.0"

// Whether the output is valid during the warm up stage.
bool valid_during_warmup = 7 [(grpc.gateway.protoc_gen_openapiv2.options.openapiv2_field) = {
extensions: {
key: "x-go-default"
value: {bool_value: false}
}
}]; // @gotags: default:"false"
}

// Type of combinator that computes the arithmetic operation on the operand signals
Expand Down
884 changes: 449 additions & 435 deletions api/gen/proto/go/aperture/policy/language/v1/policy.pb.go

Large diffs are not rendered by default.

78 changes: 39 additions & 39 deletions blueprints/examples/latency-gradient/gen/graph/graph.dot
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ digraph {
n8[label="rhs"];
n9->n8;
n8->n10[style="invis"];
{rank=same; n7;n8;};
{rank=same; n10;};
{rank=same; n7;n8;};

}
subgraph cluster_s11 {
Expand All @@ -35,14 +35,14 @@ digraph {
}
subgraph cluster_s15 {
label="ArithmeticCombinator[3]";margin="50.0";
n17[label="2.00"];
n16[label="lhs"];
n18[label="2.00"];
n17[label="lhs"];
n19[label="output"];
n18[label="rhs"];
n17->n16;
n18->n19[style="invis"];
n16[label="rhs"];
n18->n17;
n17->n19[style="invis"];
{rank=same; n16;n17;};
{rank=same; n19;};
{rank=same; n16;n18;};

}
subgraph cluster_s20 {
Expand All @@ -59,12 +59,12 @@ digraph {
}
subgraph cluster_s25 {
label="ArithmeticCombinator[5]";margin="50.0";
n27[label="lhs"];
n26[label="lhs"];
n28[label="output"];
n26[label="rhs"];
n27[label="rhs"];
n27->n28[style="invis"];
{rank=same; n28;};
{rank=same; n26;n27;};
{rank=same; n28;};

}
subgraph cluster_s55 {
Expand Down Expand Up @@ -100,17 +100,17 @@ digraph {
n43[label="max_envelope"];
n44[label="output"];
n43->n44[style="invis"];
{rank=same; n44;};
{rank=same; n42;n43;};
{rank=same; n44;};

}
subgraph cluster_s52 {
label="Extrapolator[12]";margin="50.0";
n53[label="input"];
n54[label="output"];
n53->n54[style="invis"];
{rank=same; n54;};
{rank=same; n53;};
{rank=same; n54;};

}
subgraph cluster_s32 {
Expand All @@ -126,12 +126,12 @@ digraph {
}
subgraph cluster_s45 {
label="Gradient[11]";margin="50.0";
n49[label="control_variable"];
n48[label="max"];
n47[label="optimize"];
n50[label="control_variable"];
n49[label="max"];
n48[label="optimize"];
n51[label="output"];
n46[label="setpoint"];
n50[label="signal"];
n47[label="setpoint"];
n46[label="signal"];
n50->n51[style="invis"];
{rank=same; n46;n47;n48;n49;n50;};
{rank=same; n51;};
Expand All @@ -142,8 +142,8 @@ digraph {
n30[label="inputs"];
n31[label="output"];
n30->n31[style="invis"];
{rank=same; n30;n30;};
{rank=same; n31;};
{rank=same; n30;n30;};

}
subgraph cluster_s39 {
Expand All @@ -163,42 +163,42 @@ digraph {
}
subgraph cluster_s65 {
label="Switcher[15]";margin="50.0";
n68[label="0.00"];
n69[label="on_false"];
n67[label="on_true"];
n67[label="0.00"];
n68[label="on_false"];
n66[label="on_true"];
n70[label="output"];
n66[label="switch"];
n68->n67;
n69[label="switch"];
n67->n66;
n69->n70[style="invis"];
{rank=same; n66;n67;n69;};
{rank=same; n70;};
{rank=same; n66;n68;n69;};

}
rankdir="LR";splines="ortho";
n57->n18[label="ACCEPTED_CONCURRENCY"];
n57->n16[label="ACCEPTED_CONCURRENCY"];
n57->n30[label="ACCEPTED_CONCURRENCY"];
n57->n37[label="ACCEPTED_CONCURRENCY"];
n57->n49[label="ACCEPTED_CONCURRENCY"];
n57->n50[label="ACCEPTED_CONCURRENCY"];
n58->n13[label="INCOMING_CONCURRENCY"];
n24->n27[label="CONCURRENCY_INCREMENT_SINGLE_TICK"];
n31->n33[label="CONCURRENCY_INCREMENT_INTEGRAL_CAPPED"];
n35->n69[label="CONCURRENCY_INCREMENT_NORMAL"];
n10->n46[label="LATENCY_SETPOINT"];
n10->n63[label="LATENCY_SETPOINT"];
n28->n30[label="CONCURRENCY_INCREMENT_INTEGRAL"];
n38->n23[label="SQRT_CONCURRENCY_INCREMENT"];
n40->n2[label="LATENCY"];
n40->n42[label="LATENCY"];
n40->n50[label="LATENCY"];
n40->n46[label="LATENCY"];
n40->n62[label="LATENCY"];
n54->n60[label="LOAD_MULTIPLIER"];
n5->n43[label="MAX_EMA"];
n10->n47[label="LATENCY_SETPOINT"];
n10->n63[label="LATENCY_SETPOINT"];
n19->n49[label="NORMAL_CONCURRENCY_LIMIT"];
n14->n53[label="DESIRED_CONCURRENCY_RATIO"];
n70->n27[label="CONCURRENCY_INCREMENT"];
n70->n48[label="CONCURRENCY_INCREMENT"];
n44->n7[label="LATENCY_EMA"];
n64->n66[label="IS_OVERLOAD"];
n70->n26[label="CONCURRENCY_INCREMENT"];
n70->n47[label="CONCURRENCY_INCREMENT"];
n19->n48[label="NORMAL_CONCURRENCY_LIMIT"];
n64->n69[label="IS_OVERLOAD"];
n35->n68[label="CONCURRENCY_INCREMENT_NORMAL"];
n38->n23[label="SQRT_CONCURRENCY_INCREMENT"];
n51->n12[label="DESIRED_CONCURRENCY"];
n54->n60[label="LOAD_MULTIPLIER"];
n24->n26[label="CONCURRENCY_INCREMENT_SINGLE_TICK"];
n28->n30[label="CONCURRENCY_INCREMENT_INTEGRAL"];
n31->n33[label="CONCURRENCY_INCREMENT_INTEGRAL_CAPPED"];

}
Loading

0 comments on commit cbb7ecb

Please sign in to comment.