Skip to content

Commit 3e41e19

Browse files
committed
Update to OpenRiak
Fix running eqc tests by removing missing stacktrace import
1 parent 209aac1 commit 3e41e19

3 files changed

Lines changed: 23 additions & 15 deletions

File tree

.github/workflows/erlang.yml

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,31 +2,32 @@ name: Erlang CI
22

33
on:
44
push:
5-
branches: [ develop ]
5+
branches:
6+
- nhse-develop
67
pull_request:
7-
branches: [ develop ]
8-
8+
branches:
9+
- nhse-develop
910

1011
jobs:
1112

1213
build:
1314

14-
runs-on: ubuntu-latest
15+
name: Test on ${{ matrix.os }} with OTP ${{ matrix.otp }}
16+
runs-on: ${{ matrix.os }}
1517

1618
strategy:
1719
fail-fast: false
1820
matrix:
19-
otp:
20-
- "25.1"
21-
- "24.3"
22-
- "22.3"
23-
24-
container:
25-
image: erlang:${{ matrix.otp }}
21+
otp: [24, 26]
22+
os: [ubuntu-latest]
2623

2724
steps:
2825
- uses: lukka/get-cmake@latest
29-
- uses: actions/checkout@v2
26+
- uses: actions/checkout@v4
27+
- name: Install Erlang/OTP
28+
uses: erlef/setup-beam@v1
29+
with:
30+
otp-version: ${{ matrix.otp }}
3031
- name: Compile
3132
run: ./rebar3 compile
3233
- name: Run xref and dialyzer

eqc/bitcask_qc_expiry.erl

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,17 @@
2626
-include_lib("eqc/include/eqc.hrl").
2727
-include_lib("eunit/include/eunit.hrl").
2828
-include("include/bitcask.hrl").
29-
-include("stacktrace.hrl").
3029

3130
-compile([export_all, nowarn_export_all]).
3231

32+
-ifdef(OTP_RELEASE). %% This implies 21 or higher
33+
-define(_exception_(Class, Reason, StackToken), Class:Reason:StackToken).
34+
-define(_get_stacktrace_(StackToken), StackToken).
35+
-else.
36+
-define(_exception_(Class, Reason, _), Class:Reason).
37+
-define(_get_stacktrace_(_), erlang:get_stacktrace()).
38+
-endif.
39+
3340
keys() ->
3441
eqc_gen:non_empty(list(eqc_gen:non_empty(binary()))).
3542

rebar.config

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,14 +35,14 @@
3535
[
3636
{deps,
3737
[meck,
38-
{cuttlefish, {git, "https://github.com/nhs-riak/cuttlefish.git", {branch, "nhse-develop"}}}
38+
{cuttlefish, {git, "https://github.com/OpenRiak/cuttlefish.git", {branch, "nhse-develop"}}}
3939
]},
4040
{eunit_opts, [verbose]}
4141
]},
4242
{eqc,
4343
[
4444
{deps,
45-
[meck, {faulterl, {git, "https://github.com/nhs-riak/faulterl", {branch, "nhse-develop"}}}]},
45+
[meck, {faulterl, {git, "https://github.com/OpenRiak/faulterl", {branch, "nhse-develop"}}}]},
4646
{overrides,
4747
[{override, faulterl, [
4848
{plugins, [pc]},

0 commit comments

Comments
 (0)