You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks @YoshikiTakashima , I wasn't aware of this issue but that explains why stats are not affected in #1585. Are you looking into this or should I take it?
I haven't been able to reproduce this issue in my environment (Kani commit 42bfc94, Ubuntu 20.04). Running the same command on the same commit you posted gets me the following error:
[BUNCH OF WARNINGS]
Compiling tests v0.0.0 (/home/ubuntu/prost/tests)
Compiling tests-2015 v0.0.0 (/home/ubuntu/prost/tests-2015)
Compiling tests-no-std v0.0.0 (/home/ubuntu/prost/tests-no-std)
error: failed to run custom build command for `tests-no-std v0.0.0 (/home/ubuntu/prost/tests-no-std)`
Caused by:
process didn't exit successfully: `/home/ubuntu/prost/target/debug/build/tests-no-std-ac8c37a7962eca64/build-script-build` (exit status: 101)
--- stdout
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/ident_conversion.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/nesting.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/recursive_oneof.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/custom_attributes.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/oneof_attributes.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/no_unused_results.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/default_enum_value.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/groups.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/deprecated_field.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/home/ubuntu/prost/target/x86_64-unknown-linux-gnu/debug/build/tests-no-std-de493d75f783c634/out/file_descriptor_set.bin" "-I" "../tests/src" "../tests/src/default_string_escape.proto"
Running: "/usr/bin/protoc" "--include_imports" "--include_source_info" "-o" "/tmp/prost-buildXwkx3w/prost-descriptor-set" "-I" "../tests/src" "--experimental_allow_proto3_optional" "../tests/src/proto3_presence.proto"
--- stderr
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: Other, error: "protoc failed: Unknown flag: --experimental_allow_proto3_optional\n" }', tests-no-std/../tests/src/build.rs:96:10
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
warning: build failed, waiting for other jobs to finish...
error: failed to run custom build command for `tests v0.0.0 (/home/ubuntu/prost/tests)`
[MORE ERRORS LIKE THIS, ALL PROPAGATE EXIT CODE 101]
In addition, I examined the stdout & stderr of the top100 crates experiment and couldn't find any error related to goto-cc. Are you running this on macOS? Can you post the error message you got from goto-cc if you have it?
Activity
YoshikiTakashima commentedon Aug 25, 2022
@adpaco-aws This issue has the risk of making stats over-optimistic wrt to milestone "Code generation succeeds on at least 80% of top 100 crates"
Until it is fixed, have the script look at the STDOUT/ERR. Exit code cannot be trusted.
adpaco commentedon Aug 25, 2022
Thanks @YoshikiTakashima , I wasn't aware of this issue but that explains why stats are not affected in #1585. Are you looking into this or should I take it?
YoshikiTakashima commentedon Aug 25, 2022
@adpaco-aws I am not looking into it right now. All of my time is taken up with #1312 and #1587
adpaco commentedon Aug 29, 2022
I haven't been able to reproduce this issue in my environment (Kani commit 42bfc94, Ubuntu 20.04). Running the same command on the same commit you posted gets me the following error:
In addition, I examined the stdout & stderr of the top100 crates experiment and couldn't find any error related to
goto-cc. Are you running this on macOS? Can you post the error message you got fromgoto-ccif you have it?YoshikiTakashima commentedon Aug 30, 2022
@adpaco-aws I've confirmed that kani's issues WRT prost is fixed.
Let us replicate a different way, we will force it to fail using a fake
goto-ccthat will always fail.Change to
Replicated using:
tedinski commentedon Sep 2, 2022
--only-codegendoesn't callgoto-ccadpaco commentedon Sep 13, 2022
Right,
--only-codegenstops after runningsymtab2gbon the project files since #1585.Closing this because issues with
prostare fixed now.