Fix clone provision option parsing
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4m2s
Foundation / checks (tsan) (push) Successful in 8m41s
Foundation / checks (client) (push) Failing after 15m8s
Foundation / checks (network) (push) Successful in 17m49s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 21m54s
Foundation / checks (postgres) (push) Canceled after 21m53s
Foundation / checks (deploy) (push) Successful in 5s
Foundation / checks (ecs) (push) Successful in 4m2s
Foundation / checks (tsan) (push) Successful in 8m41s
Foundation / checks (client) (push) Failing after 15m8s
Foundation / checks (network) (push) Successful in 17m49s
Foundation / postgres-tools (push) Canceled after 0s
Foundation / server-image (push) Canceled after 0s
Foundation / image (push) Canceled after 0s
Foundation / checks (checks) (push) Canceled after 21m54s
Foundation / checks (postgres) (push) Canceled after 21m53s
This commit is contained in:
@@ -267,19 +267,19 @@ std::optional<Options> parse(int argc, char** argv) {
|
||||
(value == "development-v1" || value == "primitive-v1" || value == "cellular-v1"))
|
||||
o.opening = value;
|
||||
else if (o.command == "provision" && flag == "--frame" && n)
|
||||
o.primitive_frame = *n;
|
||||
o.primitive_frame = n;
|
||||
else if (o.command == "provision" && flag == "--source-id" && n)
|
||||
o.primitive_source = *n;
|
||||
o.primitive_source = n;
|
||||
else if (o.command == "provision" && flag == "--funding-energy-pj" && n)
|
||||
o.primitive_funding[0] = *n;
|
||||
o.primitive_funding[0] = n;
|
||||
else if (o.command == "provision" && flag == "--funding-carbon-fg" && n)
|
||||
o.primitive_funding[1] = *n;
|
||||
o.primitive_funding[1] = n;
|
||||
else if (o.command == "provision" && flag == "--funding-nitrogen-fg" && n)
|
||||
o.primitive_funding[2] = *n;
|
||||
o.primitive_funding[2] = n;
|
||||
else if (o.command == "provision" && flag == "--funding-phosphorus-fg" && n)
|
||||
o.primitive_funding[3] = *n;
|
||||
o.primitive_funding[3] = n;
|
||||
else if (o.command == "provision" && flag == "--funding-other-fg" && n)
|
||||
o.primitive_funding[4] = *n;
|
||||
o.primitive_funding[4] = n;
|
||||
else if (o.command == "provision" && flag == "--site") {
|
||||
const auto parsed = site(value);
|
||||
if (!parsed || o.primitive_sites.size() == server::max_primitive_lives)
|
||||
|
||||
@@ -6970,3 +6970,11 @@ follows the repository formatter output; local `clang-format --dry-run --Werror`
|
||||
and `git diff --check` pass. The PostgreSQL matrix job continued independently,
|
||||
but its result cannot unblock image publication. Run #298 must rerun the full
|
||||
matrix and server image/Harbor gates.
|
||||
|
||||
CI run #298 passed the main build/test job and network suite, then the
|
||||
PostgreSQL-enabled Clang analysis rejected the provision CLI's assignments from
|
||||
`*n` into optional fields at `apps/evo-world-clone/main.cpp:270-282` with
|
||||
`bugprone-optional-value-conversion`. The validated parser value is itself an
|
||||
optional, so these destinations now copy `n` directly. PostgreSQL analysis
|
||||
failed before the dependent server-image build and Harbor publication could
|
||||
start; the next pushed run must confirm the analyzer and image publish gates.
|
||||
|
||||
Reference in New Issue
Block a user