Alexey Masterov
b1b23cdc8e
Do not mark a leaf a branch without a parent
2025-07-23 12:10:56 +02:00
Alexey Masterov
556e9cb781
Merge branch 'main' into amasterov/random-ops-add-snapshots
...
# Conflicts:
# test_runner/random_ops/test_random_ops.py
2025-07-23 10:58:56 +02:00
a-masterov
b3844903e5
Add new operations to Random operations test ( #12213 )
...
## Problem
We did not test some Public API calls, such as using a timestamp to
create a branch, reset_to_parent.
## Summary of changes
Tests now include some other operations: reset_to_parent, a branch
creation from any time in the past, etc.
Currently, the API calls are only exposed; the semantics are not
verified.
---------
Co-authored-by: Alexey Masterov <alexey.masterov@databricks.com >
2025-07-22 17:43:01 +00:00
Alexey Masterov
8edea1dea3
Do not consider restored branches as leaf ones
2025-07-22 13:41:09 +02:00
Alexey Masterov
f5a553a8e5
Add debug
2025-07-22 11:38:09 +02:00
Alexey Masterov
7423c393c6
Remove parent_id from the restored branch
2025-07-22 11:04:08 +02:00
Alexey Masterov
c3a7158e62
Add debug
2025-07-22 10:43:28 +02:00
Alexey Masterov
848dcd7540
Add debug
2025-07-21 17:00:15 +02:00
Alexey Masterov
783dfe3cce
refactoring
2025-07-21 16:05:56 +02:00
Alexey Masterov
c7e1183da4
Cleanup
2025-07-18 16:37:39 +02:00
Alexey Masterov
6763925a4d
Run all the operations
2025-07-18 16:32:07 +02:00
Alexey Masterov
3bcdbe30f1
Avoid to manipulate restored snapshots
2025-07-18 16:09:46 +02:00
Alexey Masterov
31c6f66a49
Wait before delete
2025-07-18 15:08:45 +02:00
Alexey Masterov
91c81cc5e5
refactor
2025-07-18 14:52:39 +02:00
Alexey Masterov
a8354b0aa3
Delete projects
2025-07-18 14:44:26 +02:00
Alexey Masterov
1102e2aff0
Add connect_env
2025-07-18 14:42:28 +02:00
Alexey Masterov
f6a61c9492
Add commit
2025-07-18 14:08:15 +02:00
Alexey Masterov
cbf8e248fc
Do not delete project after failure (debug only, do not merge!)
2025-07-18 09:39:04 +02:00
Alexey Masterov
f0f30076cc
Do not delete project after failure (debug only, do not merge!)
2025-07-18 09:35:26 +02:00
Alexey Masterov
42544cf145
Add debug
2025-07-17 19:57:20 +02:00
Alexey Masterov
28b25092ad
An attempt 5
2025-07-17 19:49:49 +02:00
Alexey Masterov
b77a1fae04
An attempt 4
2025-07-17 18:58:00 +02:00
Alexey Masterov
73ed7ade70
An attempt 3
2025-07-17 18:53:09 +02:00
Alexey Masterov
74626b94a8
An attempt 2
2025-07-17 18:48:44 +02:00
Alexey Masterov
4ca6d8cecf
An attempt
2025-07-17 18:32:57 +02:00
Alexey Masterov
bf0be50df9
Add debug
2025-07-17 15:06:53 +02:00
Alexey Masterov
1adc95758e
add the database
2025-07-17 14:52:27 +02:00
Alexey Masterov
03e994f9c7
Connection parameters
2025-07-17 14:40:25 +02:00
Alexey Masterov
f0671c996e
Debug
2025-07-17 14:27:09 +02:00
Alexey Masterov
829cb5fe59
use connection parameters instead of connect URI
2025-07-17 14:25:53 +02:00
Alexey Masterov
009303e31f
Connect to the target branch, not the main one
2025-07-17 13:44:19 +02:00
Alexey Masterov
f5cebcaf6a
Wait for the snapshot to complete
2025-07-17 12:34:43 +02:00
Alexey Masterov
5861d0f9b2
Add the environment
2025-07-17 12:01:50 +02:00
Alexey Masterov
dbedf11191
Add check for snapshot sanity
2025-07-17 11:50:30 +02:00
Alexey Masterov
018f95115a
Retry on 423 error "snapshot is in transition"
2025-07-16 13:21:32 +02:00
Alexey Masterov
f222256225
Added a documentation for the new methods
2025-07-15 17:07:07 +02:00
Alexey Masterov
9bf5d69c01
Cleanup
2025-07-15 16:35:16 +02:00
Alexey Masterov
1ec1a82d3d
Start benchmark
2025-07-15 15:16:45 +02:00
Alexey Masterov
e97c1d2684
Fix the parameter error
2025-07-15 14:49:27 +02:00
a-masterov
94cfd3f22e
Merge branch 'main' into amasterov/random-ops-add
2025-07-15 12:09:32 +02:00
Alexey Masterov
f45ea8fe6b
Add snapshots
2025-07-15 12:08:38 +02:00
Alexey Masterov
1443ba65d3
Add reset_to_parent
2025-07-15 12:08:38 +02:00
a-masterov
4fedcbc0ac
Leverage the existing mechanism to retry 404 errors instead of implementing new code. ( #12567 )
...
## Problem
In https://github.com/neondatabase/neon/pull/12513 , the new code was
implemented to retry 404 errors caused by the replication lag. However,
this implemented the new logic, making the script more complicated,
while we have an existing one in `neon_api.py`.
## Summary of changes
The existing mechanism is used to retry 404 errors.
---------
Co-authored-by: Alexey Masterov <alexey.masterov@databricks.com >
2025-07-14 13:25:25 +00:00
Alexey Masterov
185f4de0fe
refactoring
2025-07-09 19:22:27 +02:00
a-masterov
78a6daa874
Add retrying in Random ops test if parent branch is not found. ( #12513 )
...
## Problem
Due to a lag in replication, we sometimes cannot get the parent branch
definition just after completion of the Public API restore call. This
leads to the test failures.
https://databricks.atlassian.net/browse/LKB-279
## Summary of changes
The workaround is implemented. Now test retries up to 30 seconds,
waiting for the branch definition to appear.
---------
Co-authored-by: Alexey Masterov <alexey.masterov@databricks.com >
2025-07-09 15:28:04 +00:00
Alexey Masterov
c31563f551
formatting
2025-07-09 14:54:13 +02:00
Alexey Masterov
fd6c2cba01
Merge branch 'amasterov/workaround-branch-not-found-problem' into amasterov/random-ops-add
...
# Conflicts:
# test_runner/random_ops/test_random_ops.py
2025-07-09 14:53:05 +02:00
Alexey Masterov
899f4a1e77
remove the duplicate log message
2025-07-09 13:58:13 +02:00
Alexey Masterov
e95fcfa0d5
Add retrying if parent branch is not found.
...
Add clarification and a link to Jira issue.
2025-07-09 13:54:54 +02:00
Alexey Masterov
fe2abf3531
fix a mypy discovered error
2025-06-12 10:48:04 +02:00