Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
6264660
Refactors node sync test configuration to make Genesis mode the defau…
OlufemiAdeOlusile Jan 12, 2026
e441dd6
refactor(db_sync): extract utility functions to helpers.py
OlufemiAdeOlusile Jan 13, 2026
87e7613
Fix all Logging
OlufemiAdeOlusile Jan 14, 2026
63741a9
Remove Color Duplicates (Low Risk)
OlufemiAdeOlusile Jan 14, 2026
c59c0fa
Add Data Classes (Medium Risk)
OlufemiAdeOlusile Jan 14, 2026
a893cc6
refactor(db_sync): remove global state, introduce DbSyncConfig
OlufemiAdeOlusile Jan 16, 2026
9ec06fa
refactor(db_sync): eliminate os.chdir() calls
OlufemiAdeOlusile Jan 16, 2026
896ba33
refactor(db_sync): split large functions and fix linting
OlufemiAdeOlusile Jan 16, 2026
bab535b
refactor(db_sync): split monolithic db_sync.py into focused modules
OlufemiAdeOlusile Jan 19, 2026
cb045fb
feat(db_sync): wait for Shelley era before starting db-sync
OlufemiAdeOlusile Jan 20, 2026
c479740
Fix node logging, socket env, and startup cleanup
OlufemiAdeOlusile Jan 26, 2026
f3242f9
Make log analysis and metrics extraction resilient
OlufemiAdeOlusile Jan 26, 2026
237ca1a
Harden db-sync startup paths and postgres script resolution
OlufemiAdeOlusile Jan 26, 2026
d9b690e
Remove AWS uploads; persist results locally
OlufemiAdeOlusile Jan 26, 2026
9744018
Make log analysis and metrics extraction resilient
OlufemiAdeOlusile Jan 26, 2026
3c77223
remove os.chdir usage and improve cleanup for sync tests
OlufemiAdeOlusile Jan 27, 2026
3be7867
lint code
OlufemiAdeOlusile Jan 27, 2026
341cd91
lint code
OlufemiAdeOlusile Jan 27, 2026
59b7a0a
lint code
OlufemiAdeOlusile Jan 28, 2026
a94281a
lint code
OlufemiAdeOlusile Jan 28, 2026
5f75fc4
include db_sync_config.py data classes
OlufemiAdeOlusile Jan 28, 2026
37d4d4a
Refactor sync_tests utils to reduce cross-imports
OlufemiAdeOlusile Jan 28, 2026
259c28e
run linter
OlufemiAdeOlusile Jan 28, 2026
54f52d1
include db_sync_data.py
OlufemiAdeOlusile Jan 28, 2026
c021ca4
clean up and include proper flags for tests
OlufemiAdeOlusile Feb 2, 2026
816129a
clean up and include proper flags for tests
OlufemiAdeOlusile Feb 2, 2026
dd58133
include era postgres
OlufemiAdeOlusile Feb 8, 2026
f444103
include era postgres
OlufemiAdeOlusile Feb 8, 2026
0365e47
include era postgres
OlufemiAdeOlusile Feb 8, 2026
42a2184
include era postgres
OlufemiAdeOlusile Feb 8, 2026
9cf9aeb
include topology
OlufemiAdeOlusile Feb 13, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .buildkite/node-db-sync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
steps:
- label: ':drum_with_drumsticks: Node + DB sync :drum_with_drumsticks:'
commands:
- >
nix develop --accept-flake-config .#python --command python
-m sync_tests.tests.full_sync_from_clean_state
-nv "${node_version}"
-dv "${db_sync_version}"
-dsa "${db_sync_start_arguments}"
-e "${environment}"
timeout_in_minutes: 43200
agents:
system: x86_64-linux
queue: "${queue_name:-core-tech-bench}"

1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
exclude: ^(cardano-db-sync/|cardano_node_dir/)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
Expand Down
58 changes: 55 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,56 @@
README for cardano-sync-tests
=============================
# cardano-sync-tests

Sync tests for cardano-node and db-sync.
Sync tests for `cardano-node` and `cardano-db-sync`.

## Main entry point

All sync workflows use a single entry point:

```bash
python3 sync_tests/tests/full_sync_from_clean_state.py
```

### Node-only sync

```bash
python3 sync_tests/tests/full_sync_from_clean_state.py \
--node-revision master \
--environment preview
```

### Full sync (node + db-sync)

```bash
python3 sync_tests/tests/full_sync_from_clean_state.py \
--node-revision master \
--db-sync-revision master \
--environment preview
```

### Full sync with era override

```bash
python3 sync_tests/tests/full_sync_from_clean_state.py \
--node-revision master \
--db-sync-revision master \
--environment preview \
--db-sync-start-era babbage
```

### DB-sync only (attach to an existing node)

```bash
python3 sync_tests/tests/full_sync_from_clean_state.py \
--db-sync-revision master \
--environment preview \
--node-socket-path /path/to/node.socket
```

If `--node-socket-path` is not provided, the test attempts to use:
`CARDANO_NODE_SOCKET_PATH`, then `./db/node.socket`, then
`./test_workdir/db/node.socket`, then `./test_workdir_node_only/db/node.socket`.

## Logs

- Node logs: `test_workdir/logfile.log`
- DB-sync logs: `test_workdir/db_sync_<env>_logfile.log`
Loading
Loading