Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/compatible' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
nholland94 committed Aug 23, 2024
2 parents 2126bda + dc89341 commit 541f49f
Show file tree
Hide file tree
Showing 332 changed files with 3,865 additions and 5,676 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ automation/services/watchdog/check_libp2p/check_libp2p
*.terraform.lock.hcl
*gcloud-keyfile.json*
_opam
opam_switches

target
./release
Expand Down
29 changes: 18 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,14 @@ ifeq ($(DUNE_PROFILE),)
DUNE_PROFILE := dev
endif

ifeq ($(OPAMSWITCH)$(IN_NIX_SHELL)$(CI)$(BUILDKITE),)
# Sometimes opam replaces these env variables in shell with
# an explicit mention of a particular switch (dereferenced from the value)
OPAM_SWITCH_PREFIX := $(PWD)/_opam
OCAML_TOPLEVEL_PATH := $(OPAM_SWITCH_PREFIX)/lib/toplevel
PATH := $(OPAM_SWITCH_PREFIX)/bin:$(PATH)
endif

# Temp directory
TMPDIR ?= /tmp

Expand Down Expand Up @@ -43,28 +51,27 @@ clean:
@rm -rf src/$(COVERAGE_DIR)
@rm -rf src/app/libp2p_helper/result src/libp2p_ipc/libp2p_ipc.capnp.go

switch:
./scripts/update-opam-switch.sh

# enforces the OCaml version being used
ocaml_version:
ocaml_version: switch
@if ! ocamlopt -config | grep "version:" | grep $(OCAML_VERSION); then echo "incorrect OCaml version, expected version $(OCAML_VERSION)" ; exit 1; fi

# enforce machine word size
ocaml_word_size:
ocaml_word_size: switch
@if ! ocamlopt -config | grep "word_size:" | grep $(WORD_SIZE); then echo "invalid machine word size, expected $(WORD_SIZE)" ; exit 1; fi


# Checks that the current opam switch contains the packages from opam.export at the same version.
# This check is disabled in the pure nix environment (that does not use opam).
check_opam_switch:
check_opam_switch: switch
ifneq ($(DISABLE_CHECK_OPAM_SWITCH), true)
ifeq (, $(shell which check_opam_switch))
$(warning The check_opam_switch binary was not found in the PATH.)
$(error The current opam switch should likely be updated by running: "opam switch import opam.export")
else
check_opam_switch opam.export
endif
@which check_opam_switch 2>/dev/null >/dev/null || ( echo "The check_opam_switch binary was not found in the PATH, try: opam switch import opam.export" >&2 && exit 1 )
@check_opam_switch opam.export
endif

ocaml_checks: ocaml_version ocaml_word_size check_opam_switch
ocaml_checks: switch ocaml_version ocaml_word_size check_opam_switch

libp2p_helper:
ifeq (, $(MINA_LIBP2P_HELPER_PATH))
Expand Down Expand Up @@ -304,4 +311,4 @@ ml-docs: ocaml_checks
# https://www.gnu.org/software/make/manual/html_node/Phony-Targets.html
# HACK: cat Makefile | egrep '^\w.*' | sed 's/:/ /' | awk '{print $1}' | grep -v myprocs | sort | xargs

.PHONY: all build check-format clean deb dev mina-docker reformat doc_diagrams ml-docs macos-setup macos-setup-download setup-opam libp2p_helper dhall_types replayer missing_blocks_auditor extract_blocks archive_blocks ocaml_version ocaml_word_size ocaml_checks
.PHONY: all build check-format clean deb dev mina-docker reformat doc_diagrams ml-docs macos-setup macos-setup-download setup-opam libp2p_helper dhall_types replayer missing_blocks_auditor extract_blocks archive_blocks ocaml_version ocaml_word_size ocaml_checks switch
115 changes: 0 additions & 115 deletions automation/terraform/modules/testnet-alerts/alerts.tf

This file was deleted.

50 changes: 0 additions & 50 deletions automation/terraform/modules/testnet-alerts/inputs.tf

This file was deleted.

5 changes: 0 additions & 5 deletions automation/terraform/modules/testnet-alerts/locals.tf

This file was deleted.

8 changes: 0 additions & 8 deletions automation/terraform/modules/testnet-alerts/outputs.tf

This file was deleted.

48 changes: 0 additions & 48 deletions automation/terraform/modules/testnet-alerts/secrets.tf

This file was deleted.

This file was deleted.

Loading

0 comments on commit 541f49f

Please sign in to comment.