• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

llnl / dftracer-utils / 28693295402

04 Jul 2026 03:17AM UTC coverage: 52.408% (+0.1%) from 52.278%
28693295402

push

github

hariharan-devarajan
feat: silence noisy warnings on aarch64

37318 of 92666 branches covered (40.27%)

Branch coverage included in aggregate %.

33462 of 42389 relevant lines covered (78.94%)

20557.64 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

64.44
/src/dftracer/utils/python/indexer.cpp
1
#include <dftracer/utils/core/runtime.h>
2
#include <dftracer/utils/core/tasks/coro_scope.h>
3
#include <dftracer/utils/python/indexer.h>
4
#include <dftracer/utils/python/indexer_checkpoint.h>
5
#include <dftracer/utils/python/py_errors.h>
6
#include <dftracer/utils/python/py_runtime_mixin.h>
7
#include <dftracer/utils/python/py_type_helpers.h>
8
#include <dftracer/utils/python/runtime.h>
9
#include <dftracer/utils/utilities/composites/dft/internal/utils.h>
10
#include <dftracer/utils/utilities/indexer/index_builder_utility.h>
11
#include <dftracer/utils/utilities/indexer/index_database.h>
12
#include <dftracer/utils/utilities/indexer/internal/helpers.h>
13
#include <structmember.h>
14

15
#include <cstring>
16
#include <memory>
17

18
static void CheckpointIndexer_dealloc(CheckpointIndexerObject *self) {
142✔
19
    if (self->handle) {
142✔
20
        // The Python wrapper owns only the native indexer handle. The
21
        // underlying RocksDB instance remains manager-owned and may continue to
22
        // live process-wide for the same .dftindex path.
23
        dft_indexer_destroy(self->handle);
12✔
24
        self->handle = NULL;
12✔
25
    }
6✔
26
    Py_XDECREF(self->gz_path);
142✔
27
    Py_XDECREF(self->index_path);
142✔
28
    Py_XDECREF(self->runtime_obj);
142✔
29
    Py_TYPE(self)->tp_free((PyObject *)self);
142✔
30
}
142✔
31

32
static void CheckpointIndexer_release_handle(CheckpointIndexerObject *self) {
128✔
33
    if (self->handle) {
128✔
34
        // Releasing the handle drops this wrapper's native indexer state only.
35
        // Shared RocksDB lifetime is managed separately by RocksDBManager.
36
        dft_indexer_destroy(self->handle);
128✔
37
        self->handle = NULL;
128✔
38
    }
64✔
39
}
128✔
40

41
static PyObject *CheckpointIndexer_new(PyTypeObject *type, PyObject *args,
130✔
42
                                       PyObject *kwds) {
43
    CheckpointIndexerObject *self;
44
    self = (CheckpointIndexerObject *)type->tp_alloc(type, 0);
130✔
45
    if (self != NULL) {
130✔
46
        self->handle = NULL;
130✔
47
        self->gz_path = NULL;
130✔
48
        self->index_path = NULL;
130✔
49
        self->checkpoint_size = 0;
130✔
50
        self->build_bloom = 0;
130✔
51
        self->build_manifest = 0;
130✔
52
        self->runtime_obj = NULL;
130✔
53
    }
65✔
54
    return (PyObject *)self;
130✔
55
}
56

57
static int CheckpointIndexer_init(CheckpointIndexerObject *self, PyObject *args,
130✔
58
                                  PyObject *kwds) {
59
    static const char *kwlist[] = {
60
        "gz_path",     "index_path",     "checkpoint_size", "force_rebuild",
61
        "build_bloom", "build_manifest", "runtime",         NULL};
62
    const char *gz_path;
63
    const char *index_path = NULL;
130✔
64
    std::uint64_t checkpoint_size =
130✔
65
        dftracer::utils::constants::indexer::DEFAULT_CHECKPOINT_SIZE;
66
    int force_rebuild = 0;
130✔
67
    int build_bloom = 0;
130✔
68
    int build_manifest = 0;
130✔
69
    PyObject *runtime_arg = NULL;
130✔
70

71
    if (!PyArg_ParseTupleAndKeywords(args, kwds, "s|snpppO", (char **)kwlist,
130!
72
                                     &gz_path, &index_path, &checkpoint_size,
73
                                     &force_rebuild, &build_bloom,
74
                                     &build_manifest, &runtime_arg)) {
75
        return -1;
×
76
    }
77

78
    if (runtime_arg && runtime_arg != Py_None) {
130!
79
        if (PyObject_TypeCheck(runtime_arg, &RuntimeType)) {
×
80
            Py_INCREF(runtime_arg);
×
81
            self->runtime_obj = runtime_arg;
×
82
        } else {
83
            PyObject *native = PyObject_GetAttrString(runtime_arg, "_native");
×
84
            if (native && PyObject_TypeCheck(native, &RuntimeType)) {
×
85
                self->runtime_obj = native;
×
86
            } else {
87
                Py_XDECREF(native);
×
88
                PyErr_SetString(PyExc_TypeError,
×
89
                                "runtime must be a Runtime instance or None");
90
                return -1;
×
91
            }
92
        }
93
    }
94

95
    self->gz_path = PyUnicode_FromString(gz_path);
130!
96
    if (!self->gz_path) {
130✔
97
        return -1;
×
98
    }
99

100
    if (index_path) {
130✔
101
        self->index_path = PyUnicode_FromString(index_path);
128!
102
    } else {
64✔
103
        const std::string index_path = dftracer::utils::utilities::composites::
1!
104
            dft::internal::determine_index_path(gz_path, "");
3!
105
        self->index_path = PyUnicode_FromString(index_path.c_str());
2!
106
    }
2✔
107

108
    if (!self->index_path) {
130✔
109
        Py_DECREF(self->gz_path);
×
110
        return -1;
×
111
    }
112

113
    self->checkpoint_size = checkpoint_size;
130✔
114
    self->build_bloom = build_bloom;
130✔
115
    self->build_manifest = build_manifest;
130✔
116

117
    const char *index_path_str = PyUnicode_AsUTF8(self->index_path);
130!
118
    if (!index_path_str) {
130✔
119
        return -1;
×
120
    }
121

122
    self->handle = dft_indexer_create(gz_path, index_path_str, checkpoint_size,
195!
123
                                      force_rebuild);
65✔
124
    if (!self->handle) {
130✔
125
        PyErr_SetString(PyExc_RuntimeError, "Failed to create indexer");
2!
126
        return -1;
2✔
127
    }
128

129
    return 0;
128✔
130
}
65✔
131

132
static dftracer::utils::Runtime *get_indexer_runtime(
32✔
133
    CheckpointIndexerObject *self) {
134
    if (self->runtime_obj) {
32!
135
        return ((RuntimeObject *)self->runtime_obj)->runtime.get();
×
136
    }
137
    return get_default_runtime();
32✔
138
}
16✔
139

140
static PyObject *CheckpointIndexer_build(CheckpointIndexerObject *self,
124✔
141
                                         PyObject *Py_UNUSED(ignored)) {
142
    if (!self->handle) {
124✔
143
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
144
        return NULL;
×
145
    }
146

147
    // Use IndexBatchBuilderUtility when bloom or manifest is requested.
148
    // Otherwise, use the simpler dft_indexer_build which only creates
149
    // checkpoints.
150
    if (self->build_bloom || self->build_manifest) {
124✔
151
        using namespace dftracer::utils;
152
        using namespace dftracer::utils::utilities::indexer;
153

154
        const char *gz = PyUnicode_AsUTF8(self->gz_path);
32!
155
        const char *idx = PyUnicode_AsUTF8(self->index_path);
32!
156
        if (!gz || !idx) {
32!
157
            return NULL;
×
158
        }
159

160
        auto batch_config = std::make_shared<IndexBuildBatchConfig>();
32!
161
        batch_config->file_paths.emplace_back(gz);
32!
162
        batch_config->checkpoint_size =
48✔
163
            static_cast<std::size_t>(self->checkpoint_size);
32✔
164
        batch_config->build_manifest = self->build_manifest != 0;
32✔
165
        batch_config->parallelism = 1;
32✔
166
        batch_config->use_batch_write = true;
32✔
167
        batch_config->rebuild_root_summaries = true;
32✔
168

169
        std::string idx_str(idx);
32!
170
        auto pos = idx_str.find_last_of('/');
32✔
171
        if (pos != std::string::npos) {
32!
172
            batch_config->index_dir = idx_str.substr(0, pos);
32!
173
        }
16✔
174

175
        Runtime *rt = get_indexer_runtime(self);
32!
176
        IndexBuildBatchResult batch_result;
32✔
177

178
        if (!run_blocking([&] {
48!
179
                rt->submit(
112!
180
                      run_coro_scope(
48!
181
                          rt->executor(),
16✔
182
                          [](CoroScope &scope,
128!
183
                             std::shared_ptr<IndexBuildBatchConfig> cfg,
184
                             IndexBuildBatchResult *out)
185
                              -> coro::CoroTask<void> {
16!
186
                              *out = co_await IndexBatchBuilderUtility::process(
128!
187
                                  &scope, std::move(cfg));
48✔
188
                          },
64!
189
                          batch_config, &batch_result),
32✔
190
                      "indexer-build")
16!
191
                    .get();
32!
192
            })) {
32✔
193
            return NULL;
×
194
        }
195

196
        if (batch_result.failed > 0 && !batch_result.results.empty()) {
32!
197
            const auto &result = batch_result.results[0];
×
198
            if (!result.success) {
×
199
                PyErr_SetString(PyExc_RuntimeError,
×
200
                                result.error_message.c_str());
201
                return NULL;
×
202
            }
203
        }
204
    } else {
48!
205
        // Simple checkpoint-only build
206
        int result;
207
        Py_BEGIN_ALLOW_THREADS result = dft_indexer_build(self->handle);
92✔
208
        Py_END_ALLOW_THREADS
92✔
209

210
            if (result < 0) {
92✔
211
            PyErr_SetString(PyExc_RuntimeError, "Failed to build index");
×
212
            return NULL;
×
213
        }
214
    }
215

216
    Py_RETURN_NONE;
124✔
217
}
62✔
218

219
static PyObject *CheckpointIndexer_need_rebuild(CheckpointIndexerObject *self,
60✔
220
                                                PyObject *Py_UNUSED(ignored)) {
221
    if (!self->handle) {
60✔
222
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
223
        return NULL;
×
224
    }
225

226
    int result = dft_indexer_need_rebuild(self->handle);
60✔
227
    return PyBool_FromLong(result);
60✔
228
}
30✔
229

230
static PyObject *CheckpointIndexer_exists(CheckpointIndexerObject *self,
×
231
                                          PyObject *Py_UNUSED(ignored)) {
232
    if (!self->handle) {
×
233
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
234
        return NULL;
×
235
    }
236

237
    int result = dft_indexer_exists(self->handle);
×
238
    return PyBool_FromLong(result);
×
239
}
240

241
static PyObject *CheckpointIndexer_get_max_bytes(CheckpointIndexerObject *self,
8✔
242
                                                 PyObject *Py_UNUSED(ignored)) {
243
    if (!self->handle) {
8✔
244
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
245
        return NULL;
×
246
    }
247

248
    uint64_t result = dft_indexer_get_max_bytes(self->handle);
8✔
249
    return PyLong_FromUnsignedLongLong(result);
8✔
250
}
4✔
251

252
static PyObject *CheckpointIndexer_get_num_lines(CheckpointIndexerObject *self,
10✔
253
                                                 PyObject *Py_UNUSED(ignored)) {
254
    if (!self->handle) {
10✔
255
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
256
        return NULL;
×
257
    }
258

259
    uint64_t result = dft_indexer_get_num_lines(self->handle);
10✔
260
    return PyLong_FromUnsignedLongLong(result);
10✔
261
}
5✔
262

263
static PyObject *CheckpointIndexer_find_checkpoint(
6✔
264
    CheckpointIndexerObject *self, PyObject *args) {
265
    if (!self->handle) {
6✔
266
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
267
        return NULL;
×
268
    }
269

270
    std::size_t target_offset;
271
    if (!PyArg_ParseTuple(args, "n", &target_offset)) {
6!
272
        return NULL;
×
273
    }
274

275
    dft_indexer_checkpoint_t checkpoint;
276
    int found =
3✔
277
        dft_indexer_find_checkpoint(self->handle, target_offset, &checkpoint);
6!
278

279
    if (!found) {
6✔
280
        Py_RETURN_NONE;
2✔
281
    }
282

283
    // Create IndexerCheckpoint object
284
    IndexerCheckpointObject *cp_obj =
2✔
285
        (IndexerCheckpointObject *)IndexerCheckpoint_new(&IndexerCheckpointType,
4!
286
                                                         NULL, NULL);
287
    if (!cp_obj) {
4✔
288
        return NULL;
×
289
    }
290

291
    cp_obj->checkpoint = checkpoint;
4✔
292
    return (PyObject *)cp_obj;
4✔
293
}
3✔
294

295
static PyObject *CheckpointIndexer_get_checkpoints(
6✔
296
    CheckpointIndexerObject *self, PyObject *Py_UNUSED(ignored)) {
297
    if (!self->handle) {
6✔
298
        PyErr_SetString(PyExc_RuntimeError, "Indexer not initialized");
×
299
        return NULL;
×
300
    }
301

302
    dft_indexer_checkpoint_t *checkpoints = NULL;
6✔
303
    std::size_t count = 0;
6✔
304

305
    int result =
3✔
306
        dft_indexer_get_checkpoints(self->handle, &checkpoints, &count);
6!
307
    if (result != 0 || !checkpoints) {
6!
308
        dft_indexer_free_checkpoints(checkpoints, count);
2!
309
        PyObject *list = PyList_New(0);
2!
310
        return list;
2✔
311
    }
312

313
    PyObject *list = PyList_New(count);
4!
314
    if (!list) {
4✔
315
        dft_indexer_free_checkpoints(checkpoints, count);
×
316
        return NULL;
×
317
    }
318

319
    for (std::size_t i = 0; i < count; i++) {
170✔
320
        IndexerCheckpointObject *cp_obj =
83✔
321
            (IndexerCheckpointObject *)IndexerCheckpoint_new(
166!
322
                &IndexerCheckpointType, NULL, NULL);
323
        if (!cp_obj) {
166!
324
            Py_DECREF(list);
325
            dft_indexer_free_checkpoints(checkpoints, count);
×
326
            return NULL;
×
327
        }
328
        cp_obj->checkpoint = checkpoints[i];
166✔
329
        checkpoints[i].dict_compressed = NULL;
166✔
330
        PyList_SetItem(list, i, (PyObject *)cp_obj);
166!
331
    }
83✔
332

333
    dft_indexer_free_checkpoints(checkpoints, count);
4!
334
    return list;
4✔
335
}
3✔
336

337
static PyObject *CheckpointIndexer_has_bloom(CheckpointIndexerObject *self,
12✔
338
                                             void *closure) {
339
    const char *idx = PyUnicode_AsUTF8(self->index_path);
12✔
340
    const char *gz = PyUnicode_AsUTF8(self->gz_path);
12✔
341
    if (!idx || !gz) {
12!
342
        Py_RETURN_FALSE;
×
343
    }
344
    try {
345
        using namespace dftracer::utils::utilities::indexer;
346
        using namespace dftracer::utils::utilities::indexer::internal;
347
        IndexDatabase db(
6!
348
            idx, dftracer::utils::rocksdb::RocksDatabase::OpenMode::ReadOnly);
18!
349
        std::string logical = get_logical_path(gz);
12!
350
        int fid = db.get_file_info_id(logical);
12!
351
        if (fid >= 0 && db.has_bloom_data(fid)) {
12!
352
            Py_RETURN_TRUE;
2✔
353
        }
354
    } catch (...) {
13✔
355
    }
×
356
    Py_RETURN_FALSE;
10✔
357
}
6✔
358

359
static PyObject *CheckpointIndexer_has_manifest(CheckpointIndexerObject *self,
6✔
360
                                                void *closure) {
361
    const char *idx = PyUnicode_AsUTF8(self->index_path);
6✔
362
    const char *gz = PyUnicode_AsUTF8(self->gz_path);
6✔
363
    if (!idx || !gz) {
6!
364
        Py_RETURN_FALSE;
×
365
    }
366
    try {
367
        using namespace dftracer::utils::utilities::indexer;
368
        using namespace dftracer::utils::utilities::indexer::internal;
369
        IndexDatabase db(
3!
370
            idx, dftracer::utils::rocksdb::RocksDatabase::OpenMode::ReadOnly);
9!
371
        std::string logical = get_logical_path(gz);
6!
372
        int fid = db.get_file_info_id(logical);
6!
373
        if (fid >= 0 && db.has_manifest_data(fid)) {
6!
374
            Py_RETURN_TRUE;
2✔
375
        }
376
    } catch (...) {
7✔
377
    }
×
378
    Py_RETURN_FALSE;
4✔
379
}
3✔
380

381
static PyObject *CheckpointIndexer_gz_path(CheckpointIndexerObject *self,
6✔
382
                                           void *closure) {
383
    Py_INCREF(self->gz_path);
6!
384
    return self->gz_path;
6✔
385
}
386

387
static PyObject *CheckpointIndexer_index_path(CheckpointIndexerObject *self,
4✔
388
                                              void *closure) {
389
    Py_INCREF(self->index_path);
4!
390
    return self->index_path;
4✔
391
}
392

393
static PyObject *CheckpointIndexer_checkpoint_size(
4✔
394
    CheckpointIndexerObject *self, void *closure) {
395
    return PyLong_FromUnsignedLongLong(self->checkpoint_size);
4✔
396
}
397

398
static PyObject *CheckpointIndexer_enter(CheckpointIndexerObject *self,
126!
399
                                         PyObject *Py_UNUSED(ignored)) {
400
    Py_INCREF(self);
63✔
401
    return (PyObject *)self;
126✔
402
}
403

404
static PyObject *CheckpointIndexer_close(CheckpointIndexerObject *self,
2✔
405
                                         PyObject *Py_UNUSED(ignored)) {
406
    CheckpointIndexer_release_handle(self);
2✔
407
    Py_RETURN_NONE;
2✔
408
}
409

410
static PyObject *CheckpointIndexer_exit(CheckpointIndexerObject *self,
126✔
411
                                        PyObject *args) {
412
    CheckpointIndexer_release_handle(self);
126✔
413
    Py_RETURN_NONE;
126✔
414
}
415

416
static PyMethodDef CheckpointIndexer_methods[] = {
417
    {"build", (PyCFunction)CheckpointIndexer_build, METH_NOARGS,
418
     "build()\n"
419
     "--\n"
420
     "\n"
421
     "Build or rebuild the index.\n"},
422
    {"need_rebuild", (PyCFunction)CheckpointIndexer_need_rebuild, METH_NOARGS,
423
     "Check if a rebuild is needed."},
424
    {"exists", (PyCFunction)CheckpointIndexer_exists, METH_NOARGS,
425
     "Check if the .dftindex store exists."},
426
    {"get_max_bytes", (PyCFunction)CheckpointIndexer_get_max_bytes, METH_NOARGS,
427
     "Get the maximum uncompressed bytes in the indexed file."},
428
    {"get_num_lines", (PyCFunction)CheckpointIndexer_get_num_lines, METH_NOARGS,
429
     "Get the total number of lines in the indexed file."},
430
    {"find_checkpoint", (PyCFunction)CheckpointIndexer_find_checkpoint,
431
     METH_VARARGS,
432
     "Find the best checkpoint for a given uncompressed offset.\n"
433
     "\n"
434
     "Args:\n"
435
     "    offset (int): Uncompressed byte offset.\n"},
436
    {"get_checkpoints", (PyCFunction)CheckpointIndexer_get_checkpoints,
437
     METH_NOARGS, "Get all checkpoints for this file as a list."},
438
    {"close", (PyCFunction)CheckpointIndexer_close, METH_NOARGS,
439
     "Release this Python wrapper's native indexer handle.\n"
440
     "\n"
441
     "The shared RocksDB instance for the same .dftindex path remains managed\n"
442
     "by the native RocksDBManager cache."},
443
    {"__enter__", (PyCFunction)CheckpointIndexer_enter, METH_NOARGS,
444
     "Enter the runtime context for the with statement."},
445
    {"__exit__", (PyCFunction)CheckpointIndexer_exit, METH_VARARGS,
446
     "Release this Python wrapper on context exit.\n"
447
     "\n"
448
     "This does not force-close the shared RocksDB instance for the same\n"
449
     ".dftindex path."},
450
    {NULL} /* Sentinel */
451
};
452

453
static PyGetSetDef CheckpointIndexer_getsetters[] = {
454
    {"gz_path", (getter)CheckpointIndexer_gz_path, NULL,
455
     "Path to the gzip file", NULL},
456
    {"index_path", (getter)CheckpointIndexer_index_path, NULL,
457
     "Path to the .dftindex store", NULL},
458
    {"checkpoint_size", (getter)CheckpointIndexer_checkpoint_size, NULL,
459
     "Checkpoint size in bytes", NULL},
460
    {"has_bloom", (getter)CheckpointIndexer_has_bloom, NULL,
461
     "Whether bloom data exists in index", NULL},
462
    {"has_manifest", (getter)CheckpointIndexer_has_manifest, NULL,
463
     "Whether manifest data exists in index", NULL},
464
    {NULL} /* Sentinel */
465
};
466

467
PyTypeObject CheckpointIndexerType = {
468
    PyVarObject_HEAD_INIT(
469
        NULL, 0) "dftracer_utils_ext.CheckpointIndexer", /* tp_name */
470
    sizeof(CheckpointIndexerObject),                     /* tp_basicsize */
471
    0,                                                   /* tp_itemsize */
472
    (destructor)CheckpointIndexer_dealloc,               /* tp_dealloc */
473
    0,                                        /* tp_vectorcall_offset */
474
    0,                                        /* tp_getattr */
475
    0,                                        /* tp_setattr */
476
    0,                                        /* tp_as_async */
477
    0,                                        /* tp_repr */
478
    0,                                        /* tp_as_number */
479
    0,                                        /* tp_as_sequence */
480
    0,                                        /* tp_as_mapping */
481
    0,                                        /* tp_hash */
482
    0,                                        /* tp_call */
483
    0,                                        /* tp_str */
484
    0,                                        /* tp_getattro */
485
    0,                                        /* tp_setattro */
486
    0,                                        /* tp_as_buffer */
487
    Py_TPFLAGS_DEFAULT | Py_TPFLAGS_BASETYPE, /* tp_flags */
488
    "CheckpointIndexer(gz_path, index_path=None, checkpoint_size=33554432, "
489
    "force_rebuild=False, build_bloom=False, build_manifest=False, "
490
    "runtime=None)\n"
491
    "--\n"
492
    "\n"
493
    "Checkpoint indexer for single-file checkpoint-level operations on a "
494
    "gzip trace.\n"
495
    "\n"
496
    "Args:\n"
497
    "    gz_path (str): Path to the gzip trace file.\n"
498
    "    index_path (str or None): Path to the .dftindex store. If None,\n"
499
    "        uses the root-local \".dftindex\" next to gz_path.\n"
500
    "    checkpoint_size (int): Checkpoint size in bytes for index\n"
501
    "        building (default 1 MB).\n"
502
    "    force_rebuild (bool): If True, rebuild the index even if it\n"
503
    "        exists.\n"
504
    "    build_bloom (bool): If True, build bloom filter data in the\n"
505
    "        index.\n"
506
    "    build_manifest (bool): If True, build manifest data in the\n"
507
    "        store.\n"
508
    "    runtime (Runtime or None): Runtime instance for thread pool\n"
509
    "        control. If None, uses the default global Runtime.\n", /* tp_doc */
510
    0,                                /* tp_traverse */
511
    0,                                /* tp_clear */
512
    0,                                /* tp_richcompare */
513
    0,                                /* tp_weaklistoffset */
514
    0,                                /* tp_iter */
515
    0,                                /* tp_iternext */
516
    CheckpointIndexer_methods,        /* tp_methods */
517
    0,                                /* tp_members */
518
    CheckpointIndexer_getsetters,     /* tp_getset */
519
    0,                                /* tp_base */
520
    0,                                /* tp_dict */
521
    0,                                /* tp_descr_get */
522
    0,                                /* tp_descr_set */
523
    0,                                /* tp_dictoffset */
524
    (initproc)CheckpointIndexer_init, /* tp_init */
525
    0,                                /* tp_alloc */
526
    CheckpointIndexer_new,            /* tp_new */
527
};
528

529
int init_checkpoint_indexer(PyObject *m) {
2✔
530
    if (register_type(m, &CheckpointIndexerType, "CheckpointIndexer") < 0)
2✔
531
        return -1;
×
532

533
    return 0;
2✔
534
}
1✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc