-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbug.json
More file actions
126 lines (124 loc) · 4.51 KB
/
Copy pathbug.json
File metadata and controls
126 lines (124 loc) · 4.51 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
{
"_comment": "Test vectors for the bug entity format. Hash values are computed by the reference implementation (Go encoding/json + crypto/sha256). Run 'go test ./doc/spec/...' to verify.",
"operation_pack_examples": [
{
"description": "First pack: a single CreateOperation opening a new bug",
"tree_entries": [
{"name": "create-clock-1", "type": "blob", "hash": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},
{"name": "edit-clock-1", "type": "blob", "hash": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},
{"name": "ops", "type": "blob", "hash": "<sha256 of the ops JSON blob>"},
{"name": "version-4", "type": "blob", "hash": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"}
],
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 1,
"timestamp": 1609459200,
"nonce": "AAAAAAAAAAAAAAAAAAAAAAAAAAAA",
"title": "segfault on empty input",
"message": "Running `./app` with no arguments crashes.",
"files": null
}
]
},
"note": "The bug ID equals the ID of this CreateOperation, which equals hex(sha256(ops_blob_bytes))."
},
{
"description": "Second pack: AddCommentOperation + LabelChangeOperation in one edit session",
"tree_entries": [
{"name": "edit-clock-2", "type": "blob", "hash": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"},
{"name": "ops", "type": "blob", "hash": "<sha256 of the ops JSON blob>"},
{"name": "version-4", "type": "blob", "hash": "e69de29bb2d1d6434b8b29ae775ad8c2e48c5391"}
],
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 3,
"timestamp": 1609466400,
"nonce": "BBBBBBBBBBBBBBBBBBBBBBBBBBBB",
"message": "Reproduced on version 1.2.3.",
"files": null
},
{
"type": 5,
"timestamp": 1609466400,
"nonce": "CCCCCCCCCCCCCCCCCCCCCCCCCCCC",
"added": ["bug", "crash"],
"removed": []
}
]
}
},
{
"description": "Pack with a SetTitleOperation",
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 2,
"timestamp": 1609470000,
"nonce": "DDDDDDDDDDDDDDDDDDDDDDDDDDDD",
"title": "segfault on empty input in parser",
"was": "segfault on empty input"
}
]
}
},
{
"description": "Pack with a SetStatusOperation closing the bug",
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 4,
"timestamp": 1609473600,
"nonce": "EEEEEEEEEEEEEEEEEEEEEEEEEEEE",
"status": 2
}
]
}
},
{
"description": "Pack with an EditCommentOperation targeting the opening comment",
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 6,
"timestamp": 1609477200,
"nonce": "FFFFFFFFFFFFFFFFFFFFFFFFFFFF",
"target": "<ID of the CreateOperation>",
"message": "Running `./app` with no arguments crashes. Tested on Linux and macOS.",
"files": null
}
]
}
},
{
"description": "Pack with a SetMetadataOperation annotating the CreateOperation with a bridge reference",
"ops_blob": {
"author": {"id": "b29b7b2e0acb0a91dcf3c6c9d8e5f4a3b2c1d0e9f8a7b6c5d4e3f2a1b0c9d8e7"},
"ops": [
{
"type": 8,
"timestamp": 1609480800,
"nonce": "GGGGGGGGGGGGGGGGGGGGGGGGGGGG",
"target": "<ID of the CreateOperation>",
"new_metadata": {
"github-url": "https://github.com/example/repo/issues/42",
"github-id": "42"
}
}
]
}
}
],
"id_derivation": [
{
"description": "Bug ID equals the ID of its CreateOperation, which equals hex(sha256(ops_blob_bytes)) for the first pack.",
"note": "Fill in expected_id by running the reference implementation against the first ops_blob example above."
}
]
}