Skip to content

Commit b8b33fc

Browse files
committed
crashpad works, rr gets names right, clean up antithesis folder a bit
1 parent 46ca4ef commit b8b33fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+2579
-954
lines changed

.devcontainer/devcontainer.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,7 @@
1515
"golang.Go",
1616
"tlaplus.vscode-ide",
1717
"ms-azuretools.vscode-docker",
18-
"llvm-vs-code-extensions.vscode-clangd",
19-
"farrese.midas"
18+
"llvm-vs-code-extensions.vscode-clangd"
2019
]
2120
}
2221
},

antithesis/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
*.log

antithesis/raftkvs/logs.zip

-4.15 KB
Binary file not shown.
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
FROM scratch
2+
3+
COPY docker-compose.yaml /
4+
COPY model_tracelink /symbols/
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
FROM ubuntu:latest
2+
3+
RUN apt update && apt install -y openjdk-21-jre
4+
5+
COPY model_tracelink /workspaces/antithesis/
6+
COPY pgo.jar /workspaces/antithesis/
7+
COPY pretend_to_run.sh /workspaces/antithesis/
8+
COPY ./*.tla /workspaces/antithesis/
9+
COPY MCStorageValidate.cfg /workspaces/antithesis/
10+
11+
COPY singleton_driver_wiredtiger.sh /opt/antithesis/test/v1/quickstart/
12+
13+
CMD ["/workspaces/antithesis/pretend_to_run.sh"]
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
INIT Init
2+
NEXT Next
3+
4+
CONSTANT
5+
\* RC = "local"
6+
RC ="snapshot"
7+
WC = "majority"
8+
9+
Keys <- KeysImpl
10+
MTxId <- MTxIdImpl
11+
Timestamps <- TimestampsImpl
12+
Node = {"n"}
13+
NoValue <- NoValueImpl
14+
15+
__Spec!Symmetry <- SymmetryImpl
16+
17+
__AbortBehavior <- __AbortBehaviorImpl
18+
__Action_TransactionWrite <- __Action_TransactionWriteImpl
19+
__Action_TransactionRead <- __Action_TransactionReadImpl
20+
21+
\* Override for smaller state space.
22+
IgnorePrepareOptions = {"false"}
23+
24+
ALIAS DebugAlias
Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
---- MODULE MCStorageValidate ----
2+
EXTENDS StorageValidate, TLC, TLCExt
3+
4+
WT_ROLLBACK == -31800
5+
WT_NOTFOUND == -31803
6+
WT_PREPARE_CONFLICT == -31808
7+
8+
TimestampsImpl == {} \* stub, we don't use it
9+
SymmetryImpl == {} \* also stub
10+
11+
KeysImpl == TLCCache(UNION UNION { {
12+
LET __rec == __traces[t][i]
13+
IN IF "k" \in DOMAIN __rec.operation
14+
THEN {__rec.operation.k}
15+
ELSE {}
16+
: i \in DOMAIN __traces[t] }
17+
: t \in DOMAIN __traces }, {"KeysImpl"})
18+
19+
MTxIdImpl == TLCCache(UNION UNION { {
20+
LET __rec == __traces[t][i]
21+
IN IF "tid" \in DOMAIN __rec.operation
22+
THEN {__rec.operation.tid}
23+
ELSE {}
24+
: i \in DOMAIN __traces[t] }
25+
: t \in DOMAIN __traces }, {"MtxIdImpl"})
26+
27+
NoValueImpl == -1
28+
29+
DebugAlias == __TraceOps!DebugAlias
30+
31+
ResultCodeToTxnStatus == (
32+
(WT_ROLLBACK :> __Spec!STATUS_ROLLBACK)
33+
@@ (WT_NOTFOUND :> __Spec!STATUS_NOTFOUND)
34+
@@ (WT_PREPARE_CONFLICT :> __Spec!STATUS_PREPARE_CONFLICT)
35+
)
36+
37+
__AbortBehaviorImpl ==
38+
CASE __action'.operation_name = "TransactionWrite" ->
39+
/\ __action'.operation._meta.result_code # 0
40+
/\ __Spec!TransactionWrite(__action'.operation.n, __action'.operation.tid, __action'.operation.k, __action'.operation.v, __action'.operation.ignoreWriteConflicts)
41+
/\ txnStatus'["n"][__action'.operation.tid] = ResultCodeToTxnStatus[__action'.operation._meta.result_code]
42+
[] __action'.operation_name = "TransactionRead" ->
43+
/\ __action'.operation._meta.result_code # 0
44+
/\ __Spec!TransactionRead(__action'.operation.n, __action'.operation.tid, __action'.operation.k, __action'.operation.v)
45+
/\ txnStatus'["n"][__action'.operation.tid] = ResultCodeToTxnStatus[__action'.operation._meta.result_code]
46+
[] __action'.operation_name = "TransactionRemove" ->
47+
/\ __action'.operation._meta.result_code # 0
48+
/\ __Spec!TransactionRemove(__action'.operation.n, __action'.operation.tid, __action'.operation.k)
49+
/\ txnStatus'["n"][__action'.operation.tid] = ResultCodeToTxnStatus[__action'.operation._meta.result_code]
50+
[] OTHER -> UNCHANGED __Spec_vars
51+
52+
__Action_TransactionWriteImpl ==
53+
/\ __action'.operation._meta.result_code = 0
54+
/\ txnStatus'["n"][__action'.operation.tid] = "OK"
55+
56+
__Action_TransactionReadImpl ==
57+
/\ __action'.operation._meta.result_code = 0
58+
/\ txnStatus'["n"][__action'.operation.tid] = "OK"
59+
60+
__Action_TransactionRemoveImpl ==
61+
/\ __action'.operation._meta.result_code = 0
62+
/\ txnStatus'["n"][__action'.operation.tid] = "OK"
63+
64+
====

0 commit comments

Comments
 (0)