Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change UUID pk in db schema to String #36

Merged
merged 1 commit into from
Aug 21, 2024
Merged

Change UUID pk in db schema to String #36

merged 1 commit into from
Aug 21, 2024

Conversation

qrort
Copy link
Collaborator

@qrort qrort commented Aug 16, 2024

No description provided.

Copy link

📝 Test results

ydbcp

26 tests (26 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 26

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries40017ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-16T14:03:01.950Z	DEBUG	queries/read.go:137	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-16T14:03:01.950Z	DEBUG	queries/write.go:240	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-16T14:03:01.951Z	DEBUG	queries/write.go:240	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-16T14:03:01.951Z	DEBUG	queries/write.go:240	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200012ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-16T14:03:02.741Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "eda38ab8-351a-4ace-a519-8324d7729e17", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "eda38ab8-351a-4ace-a519-8324d7729e17", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "4ca7c228-dda0-4a22-83f3-1e432b5305cf", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "4ca7c228-dda0-4a22-83f3-1e432b5305cf", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "4ca7c228-dda0-4a22-83f3-1e432b5305cf", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "54ca140c-ad4e-4132-81d8-971421abcdd3", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "54ca140c-ad4e-4132-81d8-971421abcdd3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "8f343aa3-b338-4b53-a63c-a6e006d6e4b8", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8f343aa3-b338-4b53-a63c-a6e006d6e4b8", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "8f343aa3-b338-4b53-a63c-a6e006d6e4b8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "51df6cd4-da83-4a11-a64a-bee2470ecdd0", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "51df6cd4-da83-4a11-a64a-bee2470ecdd0", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "51df6cd4-da83-4a11-a64a-bee2470ecdd0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "4b5c20a9-d45d-4cb5-9fec-4faf3f89773d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "4b5c20a9-d45d-4cb5-9fec-4faf3f89773d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "97b69a7c-c722-4704-8ec7-529706487673", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "97b69a7c-c722-4704-8ec7-529706487673", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "cb709ee9-10ff-4330-8d65-55030f64e29a", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "cb709ee9-10ff-4330-8d65-55030f64e29a", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "cb709ee9-10ff-4330-8d65-55030f64e29a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a2b0aef9-f6c6-4318-a7b4-6982fefea5ef", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a2b0aef9-f6c6-4318-a7b4-6982fefea5ef", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "a2b0aef9-f6c6-4318-a7b4-6982fefea5ef", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T14:03:02.742Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "d16eb062-1bf0-46d7-9f85-11307e8844fd", "type": "RB", "state": "PENDING", "message": ""}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d16eb062-1bf0-46d7-9f85-11307e8844fd", "type": "RB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:69	received retriable error	{"id": "d16eb062-1bf0-46d7-9f85-11307e8844fd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "722aeb39-d8d1-4e86-a845-fd15d5b6542b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6d60e2fd-5a2d-4b31-89ab-c49f3aa668c4", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.742Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "6d60e2fd-5a2d-4b31-89ab-c49f3aa668c4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "51c3c7e6-e7c8-4de7-8210-69ae1febcbed", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "cf5c03ad-1294-4471-85b9-e735a17a3bde", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3b3f222d-ccf2-4584-811e-b205c5095bc0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "187e440c-8bd0-4d8f-9678-fe319b6c9a06", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "58cb8106-b24e-44bc-b510-8df6c30fdf92", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3b4a303b-cb65-4a1b-ba16-48158a793c0b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "5fbd729b-ffeb-44ad-9b88-614f75445873", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:46	getting operation status	{"id": "75f81078-d416-4037-bce8-f628c64de978", "type": "TB", "ydb_operation_id": "1"}
2024-08-16T14:03:02.743Z	INFO	handlers/utils.go:69	received retriable error	{"id": "75f81078-d416-4037-bce8-f628c64de978", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 1dc2de78-791b-4eb5-8556-8a626c30301c, type TB, state PENDING"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 1dc2de78-791b-4eb5-8556-8a626c30301c, type TB, state PENDING"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 1dc2de78-791b-4eb5-8556-8a626c30301c, type TB, state PENDING"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 1dc2de78-791b-4eb5-8556-8a626c30301c, type TB, state PENDING"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "1dc2de78-791b-4eb5-8556-8a626c30301c"}
2024-08-16T14:03:02.739Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)

cmd/ydbcp/main.go Outdated Show resolved Hide resolved
Copy link

📝 Test results

ydbcp

26 tests (26 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 26

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries40010ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-20T11:05:59.503Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200020ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-20T11:06:00.222Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "fc0a65b4-2198-4639-b263-d300b14f62ba", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.222Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fc0a65b4-2198-4639-b263-d300b14f62ba", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-20T11:06:00.222Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "1ad4f9a4-6500-4135-8c55-a3ea1b2e3348", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.222Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1ad4f9a4-6500-4135-8c55-a3ea1b2e3348", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.222Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "1ad4f9a4-6500-4135-8c55-a3ea1b2e3348", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "754e5a20-6490-496d-bb38-e65eb7461275", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "754e5a20-6490-496d-bb38-e65eb7461275", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "dde0cce8-4887-4414-845b-cc8c1550b7cd", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "dde0cce8-4887-4414-845b-cc8c1550b7cd", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "dde0cce8-4887-4414-845b-cc8c1550b7cd", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ec3a6f5e-67d1-437a-bb75-0bc079a8685d", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ec3a6f5e-67d1-437a-bb75-0bc079a8685d", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "ec3a6f5e-67d1-437a-bb75-0bc079a8685d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "e7531219-7823-49bc-bd55-abb2b91ceca0", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e7531219-7823-49bc-bd55-abb2b91ceca0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "35dbe052-7883-40d7-a014-d91d5ce6159c", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "35dbe052-7883-40d7-a014-d91d5ce6159c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "852e05b6-08dc-4f48-bc93-9c41f953823d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "852e05b6-08dc-4f48-bc93-9c41f953823d", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "852e05b6-08dc-4f48-bc93-9c41f953823d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "b4714cf3-debd-4458-a71f-52d55a3cc477", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b4714cf3-debd-4458-a71f-52d55a3cc477", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "b4714cf3-debd-4458-a71f-52d55a3cc477", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-20T11:06:00.223Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "fa176ef3-473c-4e0f-8d78-cec293e0a7a6", "type": "RB", "state": "PENDING", "message": ""}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "fa176ef3-473c-4e0f-8d78-cec293e0a7a6", "type": "RB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:69	received retriable error	{"id": "fa176ef3-473c-4e0f-8d78-cec293e0a7a6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "5ca75e8d-ff8f-4eda-bc58-298da0e80c80", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "2bb51279-bdcd-4981-8619-1f980ef866ad", "type": "TB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "2bb51279-bdcd-4981-8619-1f980ef866ad", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "37c65498-8c81-402d-8dad-89401da77c07", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6935c905-f12f-4629-88e7-181e5ed3f744", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "bda2be66-b637-4c38-afe1-e89f14b56975", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d6a002f2-51f9-4318-a14d-352846067c10", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "d23a76a4-92c4-4318-8adb-8b5e759f367d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-20T11:06:00.223Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ab5f74c4-3fcf-4b99-ae01-7bbc55741e19", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-20T11:06:00.224Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f7ae2523-5ed4-45c8-bf05-7b307e30afbd", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-20T11:06:00.224Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6d47b94a-874a-4878-a748-89e4b301f41b", "type": "TB", "ydb_operation_id": "1"}
2024-08-20T11:06:00.224Z	INFO	handlers/utils.go:69	received retriable error	{"id": "6d47b94a-874a-4878-a748-89e4b301f41b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2008ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "8a3d6baf-f74c-4314-9006-b9cd741ab200"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

Copy link

📝 Test results

ydbcp

26 tests (26 passed)
%%{init: {"theme":"base","themeVariables":{"fontFamily":"monospace","pieSectionTextSize":"24px","darkMode":true,"pie1":"#2da44e"}}}%%
pie showData
"Passed" : 26

Loading
📦 Package🟢 Passed🔴 Failed🟡 Skipped⏳ Duration
🟡 ydbcp/cmd/ydbcp0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/config0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/client0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/connectors/db0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/connectors/db/yql/queries4000ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-20T11:05:59.503Z	DEBUG	queries/read.go:135	read query	{"yql": "SELECT column1, column2, column3 FROM table1 WHERE (column1 = $param0 OR column1 = $param1) AND (column2 = $param2 OR column2 = $param3)"}
--- PASS: TestQueryBuilder_Read (0.00s)
=== RUN   TestQueryBuilder_UpdateUpdate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, initiated, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $initiated_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0);\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-08-20T11:05:59.503Z	DEBUG	queries/write.go:236	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, container_id, database, endpoint, backup_id, initiated, created_at, operation_id, message) VALUES ($id_1, $type_1, $status_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $initiated_1, $created_at_1, $operation_id_1, $message_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟢 ydbcp/internal/handlers200017ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerPendingOperationCancelled
  • 🟢TestRBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerPendingOperationInProgress
  • 🟢TestRBOperationHandlerRetriableErrorForPendingOperation
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForPendingOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerPendingOperationCancelled
  • 🟢TestTBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerPendingOperationInProgress
  • 🟢TestTBOperationHandlerRetriableErrorForPendingOperation
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-08-21T09:55:39.033Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "7be2d3bc-5b68-47cd-afdd-c66fdb208dc3", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "7be2d3bc-5b68-47cd-afdd-c66fdb208dc3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "37a2d448-87e1-479c-8b91-d3cea37dc12a", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "37a2d448-87e1-479c-8b91-d3cea37dc12a", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "37a2d448-87e1-479c-8b91-d3cea37dc12a", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "aa182d7a-a7b0-4068-a7a5-8db2dd998b02", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "aa182d7a-a7b0-4068-a7a5-8db2dd998b02", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a04590c3-f43f-4f51-ba2e-5cfb45d3d58d", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a04590c3-f43f-4f51-ba2e-5cfb45d3d58d", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "a04590c3-f43f-4f51-ba2e-5cfb45d3d58d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "56093faf-e9af-452e-925a-d5e24644a7b5", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "56093faf-e9af-452e-925a-d5e24644a7b5", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "56093faf-e9af-452e-925a-d5e24644a7b5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T09:55:39.034Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "b44c956f-debc-4f0a-923e-95abddb1d5b8", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T09:55:39.034Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b44c956f-debc-4f0a-923e-95abddb1d5b8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "1e3eb760-3355-42d3-81ab-b8aab0dd3f15", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T09:55:39.035Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1e3eb760-3355-42d3-81ab-b8aab0dd3f15", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "869f3729-b7ad-48c6-ae8b-c33677ea2885", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T09:55:39.035Z	INFO	handlers/utils.go:46	getting operation status	{"id": "869f3729-b7ad-48c6-ae8b-c33677ea2885", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "869f3729-b7ad-48c6-ae8b-c33677ea2885", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "90791922-0864-4956-9a37-55a9f3c73ed5", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-21T09:55:39.035Z	INFO	handlers/utils.go:46	getting operation status	{"id": "90791922-0864-4956-9a37-55a9f3c73ed5", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "90791922-0864-4956-9a37-55a9f3c73ed5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T09:55:39.035Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "975b172c-e3c9-433e-bc00-5f5c83ab4fe0", "type": "RB", "state": "PENDING", "message": ""}
2024-08-21T09:55:39.035Z	INFO	handlers/utils.go:46	getting operation status	{"id": "975b172c-e3c9-433e-bc00-5f5c83ab4fe0", "type": "RB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:69	received retriable error	{"id": "975b172c-e3c9-433e-bc00-5f5c83ab4fe0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:46	getting operation status	{"id": "41113833-daf3-4656-8921-15073b49ee2c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:46	getting operation status	{"id": "6d68f372-0200-41f2-88e4-6273bb195506", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "6d68f372-0200-41f2-88e4-6273bb195506", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:46	getting operation status	{"id": "46ef034b-5ae1-4797-a434-b66affbbca0b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-21T09:55:39.036Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a48b714e-5d49-4bbb-a1d5-b305a7f762fa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-21T09:55:39.037Z	INFO	handlers/utils.go:46	getting operation status	{"id": "55ecd5fb-40a1-45e4-b914-a2d29d48da4d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-21T09:55:39.037Z	INFO	handlers/utils.go:46	getting operation status	{"id": "99a42aba-de93-423d-aad1-e272e9db4b9e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-21T09:55:39.037Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b25b5156-f448-4fbf-a610-337946e439ef", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-21T09:55:39.037Z	INFO	handlers/utils.go:46	getting operation status	{"id": "bf391243-f8aa-4d0a-acc8-24f21eee94e5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-21T09:55:39.037Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a2891d48-a946-4767-a578-a692d3a4d5b9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-21T09:55:39.038Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b1c29437-a84c-44cd-8c44-2eb62270d9fe", "type": "TB", "ydb_operation_id": "1"}
2024-08-21T09:55:39.038Z	INFO	handlers/utils.go:69	received retriable error	{"id": "b1c29437-a84c-44cd-8c44-2eb62270d9fe", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 8a3d6baf-f74c-4314-9006-b9cd741ab200, type TB, state PENDING"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "8a3d6baf-f74c-4314-9006-b9cd741ab200"}
2024-08-20T11:06:00.212Z	DEBUG	processor/processor.go:83	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/backup0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/server/services/operation0005ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/types0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/ticker0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/timer0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/internal/util/xlog0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/plugins/auth0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/pkg/proto/ydbcp/v1alpha10000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟡 ydbcp/plugins/auth_nebius/proto/iam/v10000ms
🧪 Tests(none)
🖨️ Output
(none)

@qrort qrort merged commit b83ac10 into main Aug 21, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants