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

small fixes for UI #33

Merged
merged 1 commit into from
Aug 9, 2024
Merged

small fixes for UI #33

merged 1 commit into from
Aug 9, 2024

Conversation

qrort
Copy link
Collaborator

@qrort qrort commented Aug 6, 2024

No description provided.

Copy link

github-actions bot commented Aug 6, 2024

📝 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/queries4008ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-06T11:50:51.448Z	DEBUG	queries/read.go:143	read query	{"yql": "DECLARE $param0 AS String;\nDECLARE $param1 AS String;\nDECLARE $param2 AS String;\nDECLARE $param3 AS String;\nSELECT 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-06T11:50:51.449Z	DEBUG	queries/write.go:258	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPDATE Backups SET status = $status_0 WHERE id = $id_0;\nDECLARE $id_1 AS Uuid;\nDECLARE $status_1 AS String;\nDECLARE $message_1 AS String;\nUPDATE Operations SET status = $status_1, message = $message_1 WHERE id = $id_1"}
--- PASS: TestQueryBuilder_UpdateUpdate (0.00s)
=== RUN   TestQueryBuilder_CreateCreate
2024-08-06T11:50:51.449Z	DEBUG	queries/write.go:258	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $container_id_0 AS String;\nDECLARE $database_0 AS String;\nDECLARE $endpoint_0 AS String;\nDECLARE $initiated_0 AS String;\nDECLARE $s3_endpoint_0 AS String;\nDECLARE $s3_region_0 AS String;\nDECLARE $s3_bucket_0 AS String;\nDECLARE $s3_path_prefix_0 AS String;\nDECLARE $status_0 AS String;\nDECLARE $message_0 AS String;\nUPSERT 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);\nDECLARE $id_1 AS Uuid;\nDECLARE $type_1 AS String;\nDECLARE $status_1 AS String;\nDECLARE $container_id_1 AS String;\nDECLARE $database_1 AS String;\nDECLARE $endpoint_1 AS String;\nDECLARE $backup_id_1 AS Uuid;\nDECLARE $initiated_1 AS String;\nDECLARE $created_at_1 AS Timestamp;\nDECLARE $operation_id_1 AS String;\nDECLARE $message_1 AS String;\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-06T11:50:51.449Z	DEBUG	queries/write.go:258	write query	{"yql": "DECLARE $id_0 AS Uuid;\nDECLARE $status_0 AS String;\nUPDATE Backups SET status = $status_0 WHERE id = $id_0;\nDECLARE $id_1 AS Uuid;\nDECLARE $type_1 AS String;\nDECLARE $status_1 AS String;\nDECLARE $container_id_1 AS String;\nDECLARE $database_1 AS String;\nDECLARE $endpoint_1 AS String;\nDECLARE $backup_id_1 AS Uuid;\nDECLARE $initiated_1 AS String;\nDECLARE $created_at_1 AS Timestamp;\nDECLARE $operation_id_1 AS String;\nDECLARE $message_1 AS String;\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/handlers20009ms
🧪 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-06T11:50:51.991Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.991Z	INFO	handlers/utils.go:46	getting operation status	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:69	received retriable error	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a67b368b-ba37-4836-85f2-bc7b8179c4fa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b868ac5a-fe00-4df7-99a3-f0e70214d38f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "eabfa7ce-7895-41d4-b9fc-9b64eddd8619", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0dc2a7e5-496b-4418-8a01-3d2311109660", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "97c93d9b-d857-4f9f-a188-b6d347ab11c9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "46853da7-9d5a-45b9-8582-1e4489d40559", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "10aeecca-0af2-4367-8762-ba212ad78898", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f6c719c1-2a6c-4141-8dc6-feb4bd4c5267", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:69	received retriable error	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor20010ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state DONE"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "378e5548-1361-40df-9d73-9986cecf204b"}
2024-08-06T11:50:51.991Z	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)

@qrort qrort force-pushed the ui-fixes branch 2 times, most recently from 02a54ec to b85c47e Compare August 6, 2024 13:14
Copy link

github-actions bot commented Aug 6, 2024

📝 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/queries4007ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-06T13:14:25.470Z	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-06T13:14:25.470Z	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-06T13:14:25.470Z	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-06T13:14:25.471Z	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/handlers20001ms
🧪 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-06T11:50:51.991Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.991Z	INFO	handlers/utils.go:46	getting operation status	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:69	received retriable error	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a67b368b-ba37-4836-85f2-bc7b8179c4fa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b868ac5a-fe00-4df7-99a3-f0e70214d38f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "eabfa7ce-7895-41d4-b9fc-9b64eddd8619", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0dc2a7e5-496b-4418-8a01-3d2311109660", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "97c93d9b-d857-4f9f-a188-b6d347ab11c9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "46853da7-9d5a-45b9-8582-1e4489d40559", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "10aeecca-0af2-4367-8762-ba212ad78898", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f6c719c1-2a6c-4141-8dc6-feb4bd4c5267", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:69	received retriable error	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state DONE"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "378e5548-1361-40df-9d73-9986cecf204b"}
2024-08-06T11:50:51.991Z	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)

docker.sh Outdated Show resolved Hide resolved
Copy link

github-actions bot commented Aug 9, 2024

📝 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/queries4008ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-08-09T15:39:59.920Z	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-09T15:39:59.920Z	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-09T15:39:59.920Z	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-09T15:39:59.920Z	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/handlers20001ms
🧪 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-06T11:50:51.991Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.991Z	INFO	handlers/utils.go:46	getting operation status	{"id": "36506570-910d-459c-a34e-c706b49c7f28", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "0283c79a-6f6d-4fcc-8e82-a8bd475b1af5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "1a57cb2c-d131-4527-acc9-2c3e8e41180b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "8f4036a3-30bf-4854-8d81-beae58755b43", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "91d665e1-03f5-4f88-8e9f-2f571f3da4ce", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "83ba95aa-a76a-4279-ae80-156ac4dc4062", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "ec269d49-4060-4a6a-bdac-6f3dd0ce8168", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "3162c361-00fa-4672-9ef1-10662690c627", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:120	forgetting operation	{"id": "aa7b3325-2bf2-44bd-9b88-6e4dd064a33e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/restore_backup.go:31	received operation	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "state": "PENDING", "message": ""}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:69	received retriable error	{"id": "a9697961-991b-485c-a3c8-9f3f167d5a85", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "a67b368b-ba37-4836-85f2-bc7b8179c4fa", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForPendingOperation
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:99	cancelling operation	{"reason": "TTL", "id": "e291ea24-7baf-485c-b484-7e978a0bf16c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForPendingOperation (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationInProgress
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "b868ac5a-fe00-4df7-99a3-f0e70214d38f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCompletedSuccessfully
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "eabfa7ce-7895-41d4-b9fc-9b64eddd8619", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerPendingOperationCancelled
2024-08-06T11:50:51.992Z	INFO	handlers/utils.go:46	getting operation status	{"id": "0dc2a7e5-496b-4418-8a01-3d2311109660", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerPendingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "97c93d9b-d857-4f9f-a188-b6d347ab11c9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "46853da7-9d5a-45b9-8582-1e4489d40559", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "10aeecca-0af2-4367-8762-ba212ad78898", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "f6c719c1-2a6c-4141-8dc6-feb4bd4c5267", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForPendingOperation
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:46	getting operation status	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
2024-08-06T11:50:51.993Z	INFO	handlers/utils.go:69	received retriable error	{"id": "c4337c9d-11d5-451b-be8a-8036b5d6789f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForPendingOperation (0.00s)
🟢 ydbcp/internal/processor2001ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:76	Operation Processor started	{"period": "10s"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:120	start operation handler	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor_test.go:41	TB handler called for operation	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state PENDING"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:108	operation already running	{"operation": "Operation, id 378e5548-1361-40df-9d73-9986cecf204b, type TB, state DONE"}
2024-08-06T11:50:51.991Z	DEBUG	processor/processor.go:137	operation handler is finished	{"operationID": "378e5548-1361-40df-9d73-9986cecf204b"}
2024-08-06T11:50:51.991Z	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)

@bma13 bma13 merged commit 6e0ce65 into main Aug 9, 2024
1 check passed
@bma13 bma13 deleted the ui-fixes branch August 9, 2024 15:54
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