Skip to content

Commit

Permalink
Merge branch 'develop' into dkijania/introduce_postgres_side_docker_job
Browse files Browse the repository at this point in the history
  • Loading branch information
dkijania authored Jun 20, 2024
2 parents 60abf93 + 8306489 commit fc3c5dd
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 20 deletions.
8 changes: 7 additions & 1 deletion buildkite/scripts/debian/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,11 @@ else
done
fi

debs_with_version=()
for i in "${debs[@]}"; do
debs_with_version+=("${i}=${MINA_DEB_VERSION}")
done

# Install aptly
$SUDO apt-get update
$SUDO apt-get install -y aptly
Expand All @@ -59,7 +64,8 @@ echo "Installing mina packages: $DEBS"
echo "deb [trusted=yes] http://localhost:8080 $MINA_DEB_CODENAME unstable" | $SUDO tee /etc/apt/sources.list.d/mina.list

$SUDO apt-get update --yes
$SUDO apt-get install --yes --allow-downgrades "${debs[@]}"
$SUDO apt-get remove --yes "${debs[@]}"
$SUDO apt-get install --yes --allow-downgrades "${debs_with_version[@]}"



Expand Down
7 changes: 3 additions & 4 deletions buildkite/src/Jobs/Lint/Merge.dhall
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,9 @@ Pipeline.build
},
Command.build
Command.Config::{
commands = [ Cmd.run "buildkite/scripts/merges-cleanly.sh berkeley"]
, label = "Check merges cleanly into berkeley"
, key = "clean-merge-berkeley"
, soft_fail = Some (B/SoftFail.Boolean True)
commands = [ Cmd.run "buildkite/scripts/merges-cleanly.sh master"]
, label = "Check merges cleanly into master"
, key = "clean-merge-master"
, target = Size.Small
, docker = Some Docker::{
image = (../../Constants/ContainerImages.dhall).toolchainBase
Expand Down
25 changes: 10 additions & 15 deletions src/app/test_executive/verification_key_update.ml
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,9 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct

type dsl = Dsl.t

let vk, prover =
let `VK vk, `Prover prover =
Transaction_snark.For_tests.create_trivial_snapp
~constraint_constants:Genesis_constants.Constraint_constants.compiled ()
in
let vk = Async.Thread_safe.block_on_async_exn (fun () -> vk) in
(Async.Deferred.return vk, prover)
let `VK vk, `Prover prover =
Transaction_snark.For_tests.create_trivial_snapp
~constraint_constants:Genesis_constants.Constraint_constants.compiled ()

let config =
let open Test_config in
Expand Down Expand Up @@ -159,7 +155,6 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
let%bind.Async.Deferred account_update2, _ =
trivial_prover2 ~handler:Trivial_rule2.handler ()
in
let zkapp_prover_and_vk = (prover, vk) in

let update_vk (vk : Side_loaded_verification_key.t) : Account_update.t =
let body (vk : Side_loaded_verification_key.t) : Account_update.Body.t =
Expand Down Expand Up @@ -396,22 +391,22 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
let%bind invalid_update_vk_perm_proof =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_invalid_proof
spec_invalid_proof
in
let%bind invalid_update_vk_perm_impossible =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_invalid_impossible
spec_invalid_impossible
in
let%bind update_vk_perm_proof =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_proof
spec_proof
in
let%map update_vk_perm_impossible =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_impossible
spec_impossible
in
( invalid_update_vk_perm_proof
, invalid_update_vk_perm_impossible
Expand Down Expand Up @@ -464,17 +459,17 @@ module Make (Inputs : Intf.Test.Inputs_intf) = struct
let%bind failed_update_vk_signature_1 =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_failed_signature_1
spec_failed_signature_1
in
let%bind failed_update_vk_signature_2 =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_failed_signature_2
spec_failed_signature_2
in
let%map update_vk_proof =
Malleable_error.lift
@@ Transaction_snark.For_tests.update_states ~constraint_constants
~zkapp_prover_and_vk spec_proof
spec_proof
in
( failed_update_vk_signature_1
, failed_update_vk_signature_2
Expand Down

0 comments on commit fc3c5dd

Please sign in to comment.