Skip to content

Commit

Permalink
test(l1): fix updating hive revision to latest (#1007)
Browse files Browse the repository at this point in the history
**Description**
If `HIVE_REVISION` was equal to the latest commit, the `if` in
`setup-hive` would not be true and the hive command would not be
executed. Let's fix it and update the hive revision to the latest
commit.
  • Loading branch information
mpaulucci authored Oct 29, 2024
1 parent 08f5a7c commit 4d43fd5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -71,19 +71,21 @@ stop-localnet-silent:
@kurtosis enclave stop lambdanet >/dev/null 2>&1 || true
@kurtosis enclave rm lambdanet --force >/dev/null 2>&1 || true

HIVE_REVISION := 3be4465a45c421651d765f4a28702962567b40e6
HIVE_REVISION := ccf28e5c3e940b2bc4b4f387317ee6a46f5d15c8
# Shallow clones can't specify a single revision, but at least we avoid working
# the whole history by making it shallow since a given date (one day before our
# target revision).
HIVE_SHALLOW_SINCE := 2024-09-02
hive:
git clone --single-branch --branch master --shallow-since=$(HIVE_SHALLOW_SINCE) https://github.com/lambdaclass/hive
cd hive && git checkout --detach $(HIVE_REVISION) && go build .

setup-hive: hive ## 🐝 Set up Hive testing framework
if [ "$$(cd hive && git rev-parse HEAD)" != "$(HIVE_REVISION)" ]; then \
cd hive && \
git checkout master && \
git fetch --shallow-since=$(HIVE_SHALLOW_SINCE) && \
git checkout $(HIVE_REVISION) && go build . ;\
git checkout --detach $(HIVE_REVISION) && go build . ;\
fi

TEST_PATTERN ?= /
Expand Down

0 comments on commit 4d43fd5

Please sign in to comment.