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
Currently, all jobs that need drun (some of the tests, but also the profiling reports and performance comparison) cannot be run by external contributors or our Github based CI. We want this to change.
Currently testing if it is complete, and how to build it (it has lots of dependencies, some which require additional tools or dev libraries to be available). It seems that
LIBCLANG_PATH="$(nix-build -A pkgs.llvmPackages_10.libclang.lib '<nixpkgs>')/lib" CLANG_PATH="$(nix-build -A pkgs.llvmPackages_10.clang '<nixpkgs>')/bin/clang" PROTOC="$(nix-build -A pkgs.protobuf '<nixpkgs>')/bin/protoc" nix-shell -p cargo rustc gcc openssl pkg-config cmake protobuf llvm_10 llvmPackages_10.libclang lmdb --run 'cargo build --bin drun -j1'
The Motoko test suite uses a tool called `drun`, which is an Internet Computer emulator in a single program. Previously it was only available internally within DFINITY, but since dfinity/ic@a0c8c9a it’s part of the open source code dump.
So with this we can stop relying on internal repositories (fixes#2567). Also, no VPN needed anymore for the DFINITY employees! :-)
`drun` is built using plain `buildRustPackage`, i.e. as one bit nix deriation. This is ok for dependencies that _we_ don’t hack on and rarely change. And due to the nix cache, everybody will just download the `drun` binary, I hope.
Currently, all jobs that need
drun
(some of the tests, but also the profiling reports and performance comparison) cannot be run by external contributors or our Github based CI. We want this to change.The most likely way forward is to
drun
code included in the code dump in https://github.com/dfinity/icpkgs.rustPlatform.buildRustPackage
, we don't need finer build granularity for this) on our sideThe text was updated successfully, but these errors were encountered: