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

feat(ydbcp): implement DeleteBackup #56

Merged
merged 1 commit into from
Sep 9, 2024
Merged

Conversation

ulya-sidorina
Copy link
Collaborator

No description provided.

@ulya-sidorina ulya-sidorina force-pushed the feature/NBYDB-280 branch 18 times, most recently from 68c1bd9 to 80d07f2 Compare September 6, 2024 10:03
Copy link

github-actions bot commented Sep 6, 2024

📝 Test results

ydbcp

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

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/queries4001022.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-06T10:05:15.403Z	DEBUG	queries/read.go:136	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-09-06T10:05:15.404Z	DEBUG	queries/write.go:334	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-09-06T10:05:15.406Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-06T10:05:15.407Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers20001036ms
🧪 Tests
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-06T10:05:16.221Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c7f70653-0a1b-4b71-b764-2545dba87e57", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.222Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c7f70653-0a1b-4b71-b764-2545dba87e57", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:05:16.222Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a342757c-7079-47fc-af9b-33e0b0c40571", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.223Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a342757c-7079-47fc-af9b-33e0b0c40571", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-06T10:05:16.223Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b974eba4-ad50-4f55-a646-5247bb3948d9", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.223Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b974eba4-ad50-4f55-a646-5247bb3948d9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:05:16.223Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ae3c2651-f434-4baf-8709-47c7f2018349", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.223Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ae3c2651-f434-4baf-8709-47c7f2018349", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.223Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "ae3c2651-f434-4baf-8709-47c7f2018349", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-06T10:05:16.224Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e1810926-584c-4797-b8fb-ff5733db293b", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.224Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e1810926-584c-4797-b8fb-ff5733db293b", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.224Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "e1810926-584c-4797-b8fb-ff5733db293b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:05:16.224Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b303850f-78a4-43a5-9025-baa30f705ca0", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:05:16.224Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b303850f-78a4-43a5-9025-baa30f705ca0", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-06T10:05:16.224Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ec8e0217-32b3-4fa4-8aed-f0f6b7979e51", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:05:16.224Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ec8e0217-32b3-4fa4-8aed-f0f6b7979e51", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:05:16.225Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6c64e681-e23b-45ce-82ed-252026bc129b", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-06T10:05:16.225Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6c64e681-e23b-45ce-82ed-252026bc129b", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.225Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "6c64e681-e23b-45ce-82ed-252026bc129b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-06T10:05:16.225Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "27b488fe-7c10-4780-bc8a-322aac575d6d", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:05:16.225Z	INFO	handlers/utils.go:48	getting operation status	{"id": "27b488fe-7c10-4780-bc8a-322aac575d6d", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.225Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "27b488fe-7c10-4780-bc8a-322aac575d6d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:05:16.225Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b6605c14-5b08-4188-ac6a-ce2c16a89f73", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:05:16.225Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b6605c14-5b08-4188-ac6a-ce2c16a89f73", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.225Z	INFO	handlers/utils.go:71	received retriable error	{"id": "b6605c14-5b08-4188-ac6a-ce2c16a89f73", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-06T10:05:16.226Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ff91dff1-3b72-49fc-974f-aac409ad54a9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:05:16.226Z	INFO	handlers/utils.go:48	getting operation status	{"id": "260dd930-b412-428b-aa05-9badbd329f45", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-06T10:05:16.226Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f93c55e4-0fa5-414e-b5e6-f7270c6f9098", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:05:16.226Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2beffc42-5a3d-4dbc-a031-248e293157a3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-06T10:05:16.226Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4a081852-d38b-4ee0-b296-97e95f4d8348", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:05:16.227Z	INFO	handlers/utils.go:48	getting operation status	{"id": "494790fb-2d7a-4c12-a731-126b7a135640", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-06T10:05:16.227Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1784b942-bdc9-4f00-957c-d39905e3dd11", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:05:16.227Z	INFO	handlers/utils.go:48	getting operation status	{"id": "aa59fa3b-2298-445b-89e3-16c5f42119c9", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-06T10:05:16.227Z	INFO	handlers/utils.go:48	getting operation status	{"id": "101ecd19-817c-477a-afd3-9d24a49f29ae", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:05:16.227Z	INFO	handlers/utils.go:48	getting operation status	{"id": "702b70bd-2523-4ecd-a822-bd7fa01c0854", "type": "TB", "ydb_operation_id": "1"}
2024-09-06T10:05:16.228Z	INFO	handlers/utils.go:71	received retriable error	{"id": "702b70bd-2523-4ecd-a822-bd7fa01c0854", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-06T10:05:16.325Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "0a57fc8c-7db1-496c-88e1-d3ce165a9a62"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001030ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

@ulya-sidorina ulya-sidorina force-pushed the feature/NBYDB-280 branch 2 times, most recently from a449603 to dccbdab Compare September 6, 2024 10:39
Copy link

github-actions bot commented Sep 6, 2024

📝 Test results

ydbcp

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

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-09-06T10:05:15.403Z	DEBUG	queries/read.go:136	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-09-06T10:05:15.404Z	DEBUG	queries/write.go:334	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-09-06T10:05:15.406Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-06T10:05:15.407Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001039ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:39:36.134Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "05539734-b6d7-499a-9534-664625ad8d2f", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-06T10:39:36.134Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "98d7834a-4d6f-4767-adda-fe6bf52bf548", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:39:36.136Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "ac093931-01e5-42c8-8cf1-de5181f22e6a", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-06T10:39:36.136Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b0a78f71-2b5d-44e0-9d24-86212d748c7c", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.136Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b0a78f71-2b5d-44e0-9d24-86212d748c7c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:39:36.137Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1c43fac2-c0f1-400e-97ba-c25897d177ee", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.137Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1c43fac2-c0f1-400e-97ba-c25897d177ee", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-06T10:39:36.137Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ca2de75b-d85f-45d0-b01c-d43b079acca8", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.137Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ca2de75b-d85f-45d0-b01c-d43b079acca8", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:39:36.137Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e527e246-063f-4467-88be-7d5d6b3594f1", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.138Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e527e246-063f-4467-88be-7d5d6b3594f1", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.138Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "e527e246-063f-4467-88be-7d5d6b3594f1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-06T10:39:36.138Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8f1a2be3-b099-4591-9dc4-634358932a0c", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.138Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8f1a2be3-b099-4591-9dc4-634358932a0c", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.138Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "8f1a2be3-b099-4591-9dc4-634358932a0c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:39:36.138Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ad6e7e86-0a26-4131-8c05-7f93d56addab", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:39:36.138Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ad6e7e86-0a26-4131-8c05-7f93d56addab", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-06T10:39:36.138Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5418d98f-f824-486c-8531-1146703f9878", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:39:36.138Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5418d98f-f824-486c-8531-1146703f9878", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:39:36.139Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d208ae13-7e69-42b0-a171-e5790905f51e", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-06T10:39:36.139Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d208ae13-7e69-42b0-a171-e5790905f51e", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.139Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "d208ae13-7e69-42b0-a171-e5790905f51e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-06T10:39:36.139Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "82392a65-f97b-44a5-961e-c41b698a07f9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:39:36.139Z	INFO	handlers/utils.go:48	getting operation status	{"id": "82392a65-f97b-44a5-961e-c41b698a07f9", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.139Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "82392a65-f97b-44a5-961e-c41b698a07f9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:39:36.139Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cabe4f96-3c92-4eb0-8246-c1884fcd7ac5", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:39:36.139Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cabe4f96-3c92-4eb0-8246-c1884fcd7ac5", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.139Z	INFO	handlers/utils.go:71	received retriable error	{"id": "cabe4f96-3c92-4eb0-8246-c1884fcd7ac5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-06T10:39:36.140Z	INFO	handlers/utils.go:48	getting operation status	{"id": "dbb124d4-7a8d-426c-98d5-c37863963cc0", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:39:36.140Z	INFO	handlers/utils.go:48	getting operation status	{"id": "27ac6234-1b00-40cb-9aa1-a41c36c95103", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-06T10:39:36.140Z	INFO	handlers/utils.go:48	getting operation status	{"id": "208eabae-3e21-4138-b04b-cbfa9da1ce7c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:39:36.140Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fd50aa67-6774-4816-9ac8-c67c6cf61544", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-06T10:39:36.141Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e4d27a83-29b2-4a9c-81da-1741a4cb08a3", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:39:36.141Z	INFO	handlers/utils.go:48	getting operation status	{"id": "eb1cacab-d20d-496b-8c5e-14af41184a6f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-06T10:39:36.141Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e0657c90-0302-4cfd-bd13-2dad8e08485f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:39:36.141Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bfd2833e-358d-4ac2-bf15-f57ffad80648", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-06T10:39:36.142Z	INFO	handlers/utils.go:48	getting operation status	{"id": "87cd92cd-ec14-495d-8ac0-6a99e3d38e55", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:39:36.142Z	INFO	handlers/utils.go:48	getting operation status	{"id": "307bc61f-dcaa-439e-b778-2116ae82b9fb", "type": "TB", "ydb_operation_id": "1"}
2024-09-06T10:39:36.142Z	INFO	handlers/utils.go:71	received retriable error	{"id": "307bc61f-dcaa-439e-b778-2116ae82b9fb", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2000ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-06T10:05:16.325Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 0a57fc8c-7db1-496c-88e1-d3ce165a9a62, type TB, state PENDING"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "0a57fc8c-7db1-496c-88e1-d3ce165a9a62"}
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-06T10:05:16.326Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2000ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

Copy link

github-actions bot commented Sep 6, 2024

📝 Test results

ydbcp

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

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/queries4001022ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-06T10:43:31.263Z	DEBUG	queries/read.go:136	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-09-06T10:43:31.264Z	DEBUG	queries/write.go:334	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-09-06T10:43:31.265Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-06T10:43:31.267Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001031ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:43:31.905Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "73a9357a-3480-4197-aac7-b2c602f390a2", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-06T10:43:31.906Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "dbe82aa8-da70-45d5-8baf-5ca91e7b4acf", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:43:31.906Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "dc7e24c4-7c2c-4653-b062-cfc02064e73e", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-06T10:43:31.906Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "225d9a3f-7ff5-4ed9-95a5-1c7ca112a941", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.906Z	INFO	handlers/utils.go:48	getting operation status	{"id": "225d9a3f-7ff5-4ed9-95a5-1c7ca112a941", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:43:31.907Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "8dca5b75-23bd-448e-a7e1-74e0475f5594", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.907Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8dca5b75-23bd-448e-a7e1-74e0475f5594", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-06T10:43:31.907Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "ff71ed1f-1022-40c4-a1f6-228aed8fd6f9", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.907Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ff71ed1f-1022-40c4-a1f6-228aed8fd6f9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:43:31.907Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e5d6b7ed-bec9-489c-a330-b6130a001ad7", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.907Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e5d6b7ed-bec9-489c-a330-b6130a001ad7", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.907Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "e5d6b7ed-bec9-489c-a330-b6130a001ad7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-06T10:43:31.908Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c00abac5-6869-4073-9cdf-803ebe57f117", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.908Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c00abac5-6869-4073-9cdf-803ebe57f117", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.908Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "c00abac5-6869-4073-9cdf-803ebe57f117", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:43:31.908Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "f6caf20c-4e65-42dc-b13a-3563334baff7", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:43:31.908Z	INFO	handlers/utils.go:48	getting operation status	{"id": "f6caf20c-4e65-42dc-b13a-3563334baff7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-06T10:43:31.908Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "658ff5c5-c824-4856-8158-8e1b5a404295", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:43:31.908Z	INFO	handlers/utils.go:48	getting operation status	{"id": "658ff5c5-c824-4856-8158-8e1b5a404295", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:43:31.908Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "97f51200-0fad-492b-a8ea-a6d23e965473", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-06T10:43:31.909Z	INFO	handlers/utils.go:48	getting operation status	{"id": "97f51200-0fad-492b-a8ea-a6d23e965473", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.909Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "97f51200-0fad-492b-a8ea-a6d23e965473", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-06T10:43:31.909Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "530fefb4-371b-4e80-8e85-3bb6262da120", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:43:31.909Z	INFO	handlers/utils.go:48	getting operation status	{"id": "530fefb4-371b-4e80-8e85-3bb6262da120", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.909Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "530fefb4-371b-4e80-8e85-3bb6262da120", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:43:31.909Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "cac1206c-a921-496b-83cc-631109526f3d", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:43:31.909Z	INFO	handlers/utils.go:48	getting operation status	{"id": "cac1206c-a921-496b-83cc-631109526f3d", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.909Z	INFO	handlers/utils.go:71	received retriable error	{"id": "cac1206c-a921-496b-83cc-631109526f3d", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-06T10:43:31.909Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d753e777-645b-4717-8882-6f9e69130004", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:43:31.910Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8f084c38-8f77-4804-b5bf-10564db63698", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-06T10:43:31.910Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5a9256bf-4456-4e38-a384-d84c7544b2ac", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:43:31.910Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a88adfb1-d889-44dd-9339-e4edc1bd872e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-06T10:43:31.910Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1a36e18c-5c8f-4e7a-bbe4-fac001380c84", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:43:31.910Z	INFO	handlers/utils.go:48	getting operation status	{"id": "db182d89-88d1-4516-998b-db48829b38ab", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-06T10:43:31.911Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7b0ea954-79f4-46e0-a21f-d474377cedd9", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:43:31.911Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8605eda9-000b-4d5b-9f85-a8999ce7eb95", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-06T10:43:31.911Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a5be95f9-80f9-49b5-a1bd-f1d855da3df8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:43:31.911Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7531ab44-7db2-41d9-8722-e3849a57174e", "type": "TB", "ydb_operation_id": "1"}
2024-09-06T10:43:31.911Z	INFO	handlers/utils.go:71	received retriable error	{"id": "7531ab44-7db2-41d9-8722-e3849a57174e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001016.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-06T10:43:32.154Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-06T10:43:32.154Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 7596308a-859a-44b8-aaa3-0f4742833925, type TB, state PENDING"}
2024-09-06T10:43:32.154Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 7596308a-859a-44b8-aaa3-0f4742833925, type TB, state PENDING"}
2024-09-06T10:43:32.155Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 7596308a-859a-44b8-aaa3-0f4742833925, type TB, state PENDING"}
2024-09-06T10:43:32.155Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 7596308a-859a-44b8-aaa3-0f4742833925, type TB, state PENDING"}
2024-09-06T10:43:32.155Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "7596308a-859a-44b8-aaa3-0f4742833925"}
2024-09-06T10:43:32.155Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-06T10:43:32.155Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001032ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

@ulya-sidorina ulya-sidorina marked this pull request as ready for review September 6, 2024 10:53
Copy link

github-actions bot commented Sep 6, 2024

📝 Test results

ydbcp

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

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/queries4001020.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-06T10:52:48.293Z	DEBUG	queries/read.go:136	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-09-06T10:52:48.294Z	DEBUG	queries/write.go:334	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-09-06T10:52:48.295Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-06T10:52:48.296Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001032ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:52:49.491Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "6adaf89c-9b77-47ef-b8cd-049413158f71", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-06T10:52:49.491Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "cfdf61de-a88a-40b8-bcbf-92bbdcfbd972", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:52:49.491Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "1956bec3-6710-4912-9bae-750cf68b7c06", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-06T10:52:49.492Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "747011f6-ed35-41b5-9eed-694a7c54c87e", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.492Z	INFO	handlers/utils.go:48	getting operation status	{"id": "747011f6-ed35-41b5-9eed-694a7c54c87e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:52:49.492Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6bd4fe9f-2bcc-4102-9bcc-514b641cb83f", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.493Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6bd4fe9f-2bcc-4102-9bcc-514b641cb83f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-06T10:52:49.493Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c9773b99-0c29-4582-a548-8f7e0d103884", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.493Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c9773b99-0c29-4582-a548-8f7e0d103884", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:52:49.493Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "18dc5e97-e865-46a6-aaec-25360e190237", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.493Z	INFO	handlers/utils.go:48	getting operation status	{"id": "18dc5e97-e865-46a6-aaec-25360e190237", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.493Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "18dc5e97-e865-46a6-aaec-25360e190237", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-06T10:52:49.494Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "7ddc4f04-5929-48fb-b809-029e40be1dbc", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.494Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7ddc4f04-5929-48fb-b809-029e40be1dbc", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.494Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "7ddc4f04-5929-48fb-b809-029e40be1dbc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:52:49.494Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "05a58c73-f6ae-4e2f-8d8e-664dd8758516", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:52:49.494Z	INFO	handlers/utils.go:48	getting operation status	{"id": "05a58c73-f6ae-4e2f-8d8e-664dd8758516", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-06T10:52:49.494Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a13499ff-a397-405f-8685-9376e9e4345b", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:52:49.494Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a13499ff-a397-405f-8685-9376e9e4345b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:52:49.495Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e32edcaa-d9be-4c9c-9c4e-d086f837e4a9", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-06T10:52:49.495Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e32edcaa-d9be-4c9c-9c4e-d086f837e4a9", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.495Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "e32edcaa-d9be-4c9c-9c4e-d086f837e4a9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-06T10:52:49.495Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "77dbca65-c28b-496f-95c6-380d532f418b", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T10:52:49.495Z	INFO	handlers/utils.go:48	getting operation status	{"id": "77dbca65-c28b-496f-95c6-380d532f418b", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.495Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "77dbca65-c28b-496f-95c6-380d532f418b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:52:49.495Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "2f317c58-9558-4613-9803-7e16db20e62f", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T10:52:49.496Z	INFO	handlers/utils.go:48	getting operation status	{"id": "2f317c58-9558-4613-9803-7e16db20e62f", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.496Z	INFO	handlers/utils.go:71	received retriable error	{"id": "2f317c58-9558-4613-9803-7e16db20e62f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-06T10:52:49.496Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b14a83d6-fd5b-4b5d-81ee-f1130c9eb88e", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T10:52:49.496Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a267742d-63f0-48ab-950e-775b64287e1c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-06T10:52:49.496Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d5beb434-3ae2-40c7-ba07-3e77a9a50746", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T10:52:49.497Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7fab392b-a5aa-4d2e-b63d-bda3a8a7ccf8", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-06T10:52:49.497Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fa5659da-a47b-427d-b383-448866f01e27", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T10:52:49.497Z	INFO	handlers/utils.go:48	getting operation status	{"id": "79fdb12a-2a6b-449a-a7aa-a27402beb445", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-06T10:52:49.497Z	INFO	handlers/utils.go:48	getting operation status	{"id": "9e79dd4f-9cda-4e1e-91cd-01bf644763a4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T10:52:49.498Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ffee3bde-49a4-404f-a7f0-210b11fef5c6", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-06T10:52:49.498Z	INFO	handlers/utils.go:48	getting operation status	{"id": "66d96cc2-bfb8-45ad-bb79-7509422f2f1d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T10:52:49.498Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3f250a20-93b3-44e3-b285-0feabe646877", "type": "TB", "ydb_operation_id": "1"}
2024-09-06T10:52:49.498Z	INFO	handlers/utils.go:71	received retriable error	{"id": "3f250a20-93b3-44e3-b285-0feabe646877", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 205d1d06-7598-44e3-85e6-7f87bd237cbf, type TB, state PENDING"}
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 205d1d06-7598-44e3-85e6-7f87bd237cbf, type TB, state PENDING"}
2024-09-06T10:52:50.203Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 205d1d06-7598-44e3-85e6-7f87bd237cbf, type TB, state PENDING"}
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 205d1d06-7598-44e3-85e6-7f87bd237cbf, type TB, state PENDING"}
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-06T10:52:50.203Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "205d1d06-7598-44e3-85e6-7f87bd237cbf"}
2024-09-06T10:52:50.204Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001031ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

Copy link

github-actions bot commented Sep 6, 2024

📝 Test results

ydbcp

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

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/queries4001018ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-06T11:25:55.957Z	DEBUG	queries/read.go:136	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-09-06T11:25:55.958Z	DEBUG	queries/write.go:334	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-09-06T11:25:55.958Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-06T11:25:55.959Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001052ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T11:25:56.581Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "a49b6fad-40b6-4f84-b765-5e1aaf92b2bf", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-06T11:25:56.582Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "eec19763-4a93-4b5a-bb86-8b928d0f2632", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T11:25:56.583Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "a34ef7a5-2947-4d6b-bb6f-83c89cb20713", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-06T11:25:56.584Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b5d54739-f0c3-4c80-9ebb-3d9e023d61a6", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.584Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b5d54739-f0c3-4c80-9ebb-3d9e023d61a6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T11:25:56.585Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a70593cf-4ebf-4b7b-8098-88cca80d4ec9", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.586Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a70593cf-4ebf-4b7b-8098-88cca80d4ec9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-06T11:25:56.587Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "169c5497-66a9-4608-9c50-3afa25e4b0d4", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.587Z	INFO	handlers/utils.go:48	getting operation status	{"id": "169c5497-66a9-4608-9c50-3afa25e4b0d4", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T11:25:56.588Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "06da7ed6-a166-4b92-952c-10debfe15c9b", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.588Z	INFO	handlers/utils.go:48	getting operation status	{"id": "06da7ed6-a166-4b92-952c-10debfe15c9b", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.588Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "06da7ed6-a166-4b92-952c-10debfe15c9b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-06T11:25:56.589Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a548da51-a641-42e2-93fc-db616644179c", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.589Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a548da51-a641-42e2-93fc-db616644179c", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.589Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "a548da51-a641-42e2-93fc-db616644179c", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T11:25:56.590Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4f0f2aaf-01df-479f-a5f3-c74d2479714e", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T11:25:56.590Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4f0f2aaf-01df-479f-a5f3-c74d2479714e", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-06T11:25:56.591Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "e147d3b3-9a5a-41ad-a50f-f3962b9e3354", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T11:25:56.591Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e147d3b3-9a5a-41ad-a50f-f3962b9e3354", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T11:25:56.592Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1535401e-eb8d-4ce2-b3ee-57a2b3c85cc3", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-06T11:25:56.592Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1535401e-eb8d-4ce2-b3ee-57a2b3c85cc3", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.592Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "1535401e-eb8d-4ce2-b3ee-57a2b3c85cc3", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-06T11:25:56.593Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "4537c8e5-7eec-4854-8213-cc4e0fd26476", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-06T11:25:56.593Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4537c8e5-7eec-4854-8213-cc4e0fd26476", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.593Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "4537c8e5-7eec-4854-8213-cc4e0fd26476", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T11:25:56.594Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "41238d27-4c1c-4b39-ad29-b61be1928aae", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-06T11:25:56.594Z	INFO	handlers/utils.go:48	getting operation status	{"id": "41238d27-4c1c-4b39-ad29-b61be1928aae", "type": "RB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.595Z	INFO	handlers/utils.go:71	received retriable error	{"id": "41238d27-4c1c-4b39-ad29-b61be1928aae", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-06T11:25:56.595Z	INFO	handlers/utils.go:48	getting operation status	{"id": "47eaae63-00fe-4bff-a4d2-97fc89f35af5", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-06T11:25:56.596Z	INFO	handlers/utils.go:48	getting operation status	{"id": "fceff59f-9e60-4a28-90bc-ad46ecc6c8c7", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-06T11:25:56.597Z	INFO	handlers/utils.go:48	getting operation status	{"id": "7c49fad0-0eb0-4b06-a9ec-0fdbc2e9e5a2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-06T11:25:56.598Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bb22d7cc-6771-40f3-b3fe-e1fdd15054dc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-06T11:25:56.598Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8f500164-7108-47c9-b73d-9fde21b85176", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-06T11:25:56.599Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6172af06-7a81-4772-bbe8-17bb2915cdac", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-06T11:25:56.600Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d62ec1aa-bbbe-40b5-890b-b19401bdcd83", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-06T11:25:56.601Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4971216c-48bc-4157-bcf7-0063c0288f5f", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-06T11:25:56.602Z	INFO	handlers/utils.go:48	getting operation status	{"id": "077a719b-0fe0-435f-83dc-7f9aa778822c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-06T11:25:56.602Z	INFO	handlers/utils.go:48	getting operation status	{"id": "409e28d1-05e4-45bd-a4b7-4b39566ed43d", "type": "TB", "ydb_operation_id": "1"}
2024-09-06T11:25:56.603Z	INFO	handlers/utils.go:71	received retriable error	{"id": "409e28d1-05e4-45bd-a4b7-4b39566ed43d", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-06T11:25:56.850Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-06T11:25:56.850Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 7dd6bb02-3b6b-45c6-a67a-eb9b4e868d60, type TB, state PENDING"}
2024-09-06T11:25:56.850Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 7dd6bb02-3b6b-45c6-a67a-eb9b4e868d60, type TB, state PENDING"}
2024-09-06T11:25:56.850Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 7dd6bb02-3b6b-45c6-a67a-eb9b4e868d60, type TB, state PENDING"}
2024-09-06T11:25:56.850Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 7dd6bb02-3b6b-45c6-a67a-eb9b4e868d60, type TB, state PENDING"}
2024-09-06T11:25:56.850Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "7dd6bb02-3b6b-45c6-a67a-eb9b4e868d60"}
2024-09-06T11:25:56.851Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-06T11:25:56.851Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001029ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

internal/connectors/db/yql/queries/write.go Show resolved Hide resolved
internal/handlers/delete_backup.go Outdated Show resolved Hide resolved
internal/server/services/backup/backupservice.go Outdated Show resolved Hide resolved
@ulya-sidorina ulya-sidorina force-pushed the feature/NBYDB-280 branch 2 times, most recently from d80afb3 to 36e82ce Compare September 9, 2024 09:43
Copy link

github-actions bot commented Sep 9, 2024

📝 Test results

ydbcp

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

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/queries4001020ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-09T09:44:33.246Z	DEBUG	queries/read.go:136	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-09-09T09:44:33.247Z	DEBUG	queries/write.go:334	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-09-09T09:44:33.247Z	DEBUG	queries/write.go:334	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-09T09:44:33.248Z	DEBUG	queries/write.go:334	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001053ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T09:44:34.488Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "d46770b1-32f5-45fb-a8e6-e0b4c184932d", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-09T09:44:34.489Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "c2bcd29c-a42a-40dc-9335-39b88cc3a602", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T09:44:34.490Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "c21d2e40-0d3c-4a97-92f4-393471ad0b0f", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-09T09:44:34.490Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "05bba54a-3bad-4d0b-9b82-98e1ffa65f9b", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.490Z	INFO	handlers/utils.go:48	getting operation status	{"id": "05bba54a-3bad-4d0b-9b82-98e1ffa65f9b", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T09:44:34.491Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "869a2b76-ed87-4653-bf68-6a3ef7ae76e7", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.491Z	INFO	handlers/utils.go:48	getting operation status	{"id": "869a2b76-ed87-4653-bf68-6a3ef7ae76e7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-09T09:44:34.492Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "77036de0-40aa-4117-9fa8-0494a1c3c468", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.492Z	INFO	handlers/utils.go:48	getting operation status	{"id": "77036de0-40aa-4117-9fa8-0494a1c3c468", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T09:44:34.493Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "18c3f4c8-692c-45c9-93e2-e99fe139b660", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.493Z	INFO	handlers/utils.go:48	getting operation status	{"id": "18c3f4c8-692c-45c9-93e2-e99fe139b660", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.493Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "18c3f4c8-692c-45c9-93e2-e99fe139b660", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-09T09:44:34.494Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a48d447d-58e8-4ff4-9308-6b9deeaa6fd9", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.494Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a48d447d-58e8-4ff4-9308-6b9deeaa6fd9", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.495Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "a48d447d-58e8-4ff4-9308-6b9deeaa6fd9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-09T09:44:34.495Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "6fd56365-b285-42b7-ba94-1087b1e9f680", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T09:44:34.496Z	INFO	handlers/utils.go:48	getting operation status	{"id": "6fd56365-b285-42b7-ba94-1087b1e9f680", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-09T09:44:34.497Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "d4ff0dd3-6e57-4e8a-83d8-e52e94743d1f", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T09:44:34.497Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d4ff0dd3-6e57-4e8a-83d8-e52e94743d1f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-09T09:44:34.498Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "1514cfc4-e983-4033-be8b-8898992d2ec5", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-09T09:44:34.498Z	INFO	handlers/utils.go:48	getting operation status	{"id": "1514cfc4-e983-4033-be8b-8898992d2ec5", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.498Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "1514cfc4-e983-4033-be8b-8898992d2ec5", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-09T09:44:34.499Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "c0607166-e1ec-469a-bad2-9655898dc3e9", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T09:44:34.499Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c0607166-e1ec-469a-bad2-9655898dc3e9", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.499Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "c0607166-e1ec-469a-bad2-9655898dc3e9", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-09T09:44:34.500Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "aa5e8072-d362-445d-a096-7bc9a2295b86", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T09:44:34.500Z	INFO	handlers/utils.go:48	getting operation status	{"id": "aa5e8072-d362-445d-a096-7bc9a2295b86", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.500Z	INFO	handlers/utils.go:71	received retriable error	{"id": "aa5e8072-d362-445d-a096-7bc9a2295b86", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-09T09:44:34.501Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c3ca3b06-6c2d-4c53-9df7-683a81c30b0f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T09:44:34.502Z	INFO	handlers/utils.go:48	getting operation status	{"id": "e044f574-814a-4002-af7a-f4b809923e8b", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-09T09:44:34.503Z	INFO	handlers/utils.go:48	getting operation status	{"id": "156baf2c-0bbe-4b40-9001-9b9085b65795", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T09:44:34.504Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a8b3693b-9310-4113-9a80-c4f86b8b9def", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-09T09:44:34.504Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8e43f235-efd2-4365-88f4-003624be94dc", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-09T09:44:34.505Z	INFO	handlers/utils.go:48	getting operation status	{"id": "99aa9d36-27a3-448d-832a-2afc161f50c6", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-09T09:44:34.506Z	INFO	handlers/utils.go:48	getting operation status	{"id": "848caeaf-4b13-4586-8bae-7d6ac77f1ae4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-09T09:44:34.507Z	INFO	handlers/utils.go:48	getting operation status	{"id": "be59af7f-2fca-47e6-8749-623b2250d60e", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-09T09:44:34.508Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8488e880-51ac-4336-a7f8-abc2dc721b93", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-09T09:44:34.508Z	INFO	handlers/utils.go:48	getting operation status	{"id": "37416dc4-3cce-4544-bda8-70f40b79c685", "type": "TB", "ydb_operation_id": "1"}
2024-09-09T09:44:34.509Z	INFO	handlers/utils.go:71	received retriable error	{"id": "37416dc4-3cce-4544-bda8-70f40b79c685", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-09T09:44:35.164Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-09T09:44:35.164Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id c612e78f-29ea-4629-b5d0-adbd86b446ff, type TB, state PENDING"}
2024-09-09T09:44:35.164Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id c612e78f-29ea-4629-b5d0-adbd86b446ff, type TB, state PENDING"}
2024-09-09T09:44:35.164Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id c612e78f-29ea-4629-b5d0-adbd86b446ff, type TB, state PENDING"}
2024-09-09T09:44:35.165Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id c612e78f-29ea-4629-b5d0-adbd86b446ff, type TB, state PENDING"}
2024-09-09T09:44:35.165Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "c612e78f-29ea-4629-b5d0-adbd86b446ff"}
2024-09-09T09:44:35.165Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-09T09:44:35.165Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001031ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

Copy link

github-actions bot commented Sep 9, 2024

📝 Test results

ydbcp

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

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/queries4001016.9999999999999ms
🧪 Tests
  • 🟢TestQueryBuilder_CreateCreate
  • 🟢TestQueryBuilder_Read
  • 🟢TestQueryBuilder_UpdateCreate
  • 🟢TestQueryBuilder_UpdateUpdate
🖨️ Output
=== RUN   TestQueryBuilder_Read
2024-09-09T10:14:18.182Z	DEBUG	queries/read.go:136	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-09-09T10:14:18.182Z	DEBUG	queries/write.go:337	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-09-09T10:14:18.183Z	DEBUG	queries/write.go:337	write query	{"yql": "UPSERT INTO Backups (id, container_id, database, endpoint, s3_endpoint, s3_region, s3_bucket, s3_path_prefix, status, message, size, initiated, created_at) VALUES ($id_0, $container_id_0, $database_0, $endpoint_0, $s3_endpoint_0, $s3_region_0, $s3_bucket_0, $s3_path_prefix_0, $status_0, $message_0, $size_0, $initiated_0, $created_at_0);\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1)"}
--- PASS: TestQueryBuilder_CreateCreate (0.00s)
=== RUN   TestQueryBuilder_UpdateCreate
2024-09-09T10:14:18.183Z	DEBUG	queries/write.go:337	write query	{"yql": "UPDATE Backups SET status = $status_0 WHERE id = $id_0;\nUPSERT INTO Operations (id, type, status, message, initiated, created_at, container_id, database, endpoint, backup_id, operation_id, paths, paths_to_exclude) VALUES ($id_1, $type_1, $status_1, $message_1, $initiated_1, $created_at_1, $container_id_1, $database_1, $endpoint_1, $backup_id_1, $operation_id_1, $paths_1, $paths_to_exclude_1)"}
--- PASS: TestQueryBuilder_UpdateCreate (0.00s)
🟡 ydbcp/internal/connectors/s30000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/handlers23001041ms
🧪 Tests
  • 🟢TestDBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestDBOperationHandlerPendingOperationCompletedSuccessfully
  • 🟢TestDBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationCancelled
  • 🟢TestRBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerCancellingOperationInProgress
  • 🟢TestRBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestRBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestRBOperationHandlerInvalidOperationResponse
  • 🟢TestRBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestRBOperationHandlerRunningOperationCancelled
  • 🟢TestRBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestRBOperationHandlerRunningOperationInProgress
  • 🟢TestTBOperationHandlerCancellingOperationCancelled
  • 🟢TestTBOperationHandlerCancellingOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerCancellingOperationInProgress
  • 🟢TestTBOperationHandlerDeadlineExceededForCancellingOperation
  • 🟢TestTBOperationHandlerDeadlineExceededForRunningOperation
  • 🟢TestTBOperationHandlerInvalidOperationResponse
  • 🟢TestTBOperationHandlerRetriableErrorForRunningOperation
  • 🟢TestTBOperationHandlerRunningOperationCancelled
  • 🟢TestTBOperationHandlerRunningOperationCompletedSuccessfully
  • 🟢TestTBOperationHandlerRunningOperationInProgress
🖨️ Output
=== RUN   TestDBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T10:14:19.356Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "c975535a-27ca-4693-835d-018e7d669cab", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestDBOperationHandlerPendingOperationCompletedSuccessfully
2024-09-09T10:14:19.356Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "90434536-992f-4737-800e-01a7475e588b", "type": "DB", "state": "PENDING", "message": ""}
--- PASS: TestDBOperationHandlerPendingOperationCompletedSuccessfully (0.00s)
=== RUN   TestDBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T10:14:19.357Z	INFO	handlers/delete_backup.go:36	received operation	{"id": "ba4c0e85-9dee-4477-809f-0cf3b6b3807c", "type": "DB", "state": "RUNNING", "message": ""}
--- PASS: TestDBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerInvalidOperationResponse
2024-09-09T10:14:19.357Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "b5e16cdd-7cb9-4630-8d37-8bff2fc1e9b7", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.357Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b5e16cdd-7cb9-4630-8d37-8bff2fc1e9b7", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T10:14:19.358Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "39f4caf5-9532-4d8e-8973-9d502eef645f", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.358Z	INFO	handlers/utils.go:48	getting operation status	{"id": "39f4caf5-9532-4d8e-8973-9d502eef645f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationInProgress
2024-09-09T10:14:19.358Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "bab730fa-a4f6-452d-81b9-c96125c46914", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.358Z	INFO	handlers/utils.go:48	getting operation status	{"id": "bab730fa-a4f6-452d-81b9-c96125c46914", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T10:14:19.358Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "a131a4bb-2ec0-47ce-ae03-fcd638e57f1f", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.358Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a131a4bb-2ec0-47ce-ae03-fcd638e57f1f", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.358Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "a131a4bb-2ec0-47ce-ae03-fcd638e57f1f", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerRunningOperationCancelled
2024-09-09T10:14:19.359Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "164f1c6e-2561-41b9-bccf-db7e90fae955", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.359Z	INFO	handlers/utils.go:48	getting operation status	{"id": "164f1c6e-2561-41b9-bccf-db7e90fae955", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.359Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "164f1c6e-2561-41b9-bccf-db7e90fae955", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-09T10:14:19.359Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "60996dbc-58b0-498e-acfd-fc6bdf354abc", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T10:14:19.359Z	INFO	handlers/utils.go:48	getting operation status	{"id": "60996dbc-58b0-498e-acfd-fc6bdf354abc", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationInProgress
2024-09-09T10:14:19.359Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "5304fe06-8153-4800-a114-94b229d230b1", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T10:14:19.359Z	INFO	handlers/utils.go:48	getting operation status	{"id": "5304fe06-8153-4800-a114-94b229d230b1", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-09T10:14:19.360Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "3d93f0ec-5ce6-4a61-92b5-c6ea26a965e6", "type": "RB", "state": "CANCELLING", "message": "operation was cancelled by user"}
2024-09-09T10:14:19.360Z	INFO	handlers/utils.go:48	getting operation status	{"id": "3d93f0ec-5ce6-4a61-92b5-c6ea26a965e6", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.360Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "3d93f0ec-5ce6-4a61-92b5-c6ea26a965e6", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestRBOperationHandlerCancellingOperationCancelled
2024-09-09T10:14:19.361Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "14f3eb26-d1d6-4d5e-8200-e77f582aa7fb", "type": "RB", "state": "CANCELLING", "message": ""}
2024-09-09T10:14:19.361Z	INFO	handlers/utils.go:48	getting operation status	{"id": "14f3eb26-d1d6-4d5e-8200-e77f582aa7fb", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.361Z	INFO	handlers/restore_backup.go:143	forgetting operation	{"id": "14f3eb26-d1d6-4d5e-8200-e77f582aa7fb", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestRBOperationHandlerRetriableErrorForRunningOperation
2024-09-09T10:14:19.361Z	INFO	handlers/restore_backup.go:33	received operation	{"id": "08750f0a-84f2-4841-a3b3-57a1e11b0d15", "type": "RB", "state": "RUNNING", "message": ""}
2024-09-09T10:14:19.361Z	INFO	handlers/utils.go:48	getting operation status	{"id": "08750f0a-84f2-4841-a3b3-57a1e11b0d15", "type": "RB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.362Z	INFO	handlers/utils.go:71	received retriable error	{"id": "08750f0a-84f2-4841-a3b3-57a1e11b0d15", "type": "RB", "ydb_operation_id": "1"}
--- PASS: TestRBOperationHandlerRetriableErrorForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerInvalidOperationResponse
2024-09-09T10:14:19.362Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4c38b87a-6b76-4a69-8adf-99531462037f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerInvalidOperationResponse (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForRunningOperation
2024-09-09T10:14:19.363Z	INFO	handlers/utils.go:48	getting operation status	{"id": "ab1ad5c9-1a4e-40b6-b492-bd7a90077221", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForRunningOperation (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationInProgress
2024-09-09T10:14:19.364Z	INFO	handlers/utils.go:48	getting operation status	{"id": "b7203077-37ab-45eb-8f42-efddd16d0ca2", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCompletedSuccessfully
2024-09-09T10:14:19.365Z	INFO	handlers/utils.go:48	getting operation status	{"id": "a6e65e50-d90d-4907-b993-8e6441e4a5a4", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerRunningOperationCancelled
2024-09-09T10:14:19.366Z	INFO	handlers/utils.go:48	getting operation status	{"id": "4a55c53b-3c2a-44cb-b473-c36718a5b28f", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRunningOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerDeadlineExceededForCancellingOperation
2024-09-09T10:14:19.366Z	INFO	handlers/utils.go:48	getting operation status	{"id": "8cf05d13-cf8e-408f-9f65-bcb0d616a2ef", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerDeadlineExceededForCancellingOperation (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationInProgress
2024-09-09T10:14:19.366Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c0af405f-20c0-4301-897c-90833f21dc8c", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationInProgress (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCompletedSuccessfully
2024-09-09T10:14:19.366Z	INFO	handlers/utils.go:48	getting operation status	{"id": "d50d7364-f4f6-4a0d-b9d4-2d2cc22b851b", "type": "TB", "ydb_operation_id": "1"}
Operation was completed despite cancellation: operation was cancelled by user--- PASS: TestTBOperationHandlerCancellingOperationCompletedSuccessfully (0.00s)
=== RUN   TestTBOperationHandlerCancellingOperationCancelled
2024-09-09T10:14:19.367Z	INFO	handlers/utils.go:48	getting operation status	{"id": "c5705ca8-7047-43dc-9d0e-8d17a4ede209", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerCancellingOperationCancelled (0.00s)
=== RUN   TestTBOperationHandlerRetriableErrorForRunningOperation
2024-09-09T10:14:19.367Z	INFO	handlers/utils.go:48	getting operation status	{"id": "21991164-718c-400a-bf0e-f85a26dde7ee", "type": "TB", "ydb_operation_id": "1"}
2024-09-09T10:14:19.367Z	INFO	handlers/utils.go:71	received retriable error	{"id": "21991164-718c-400a-bf0e-f85a26dde7ee", "type": "TB", "ydb_operation_id": "1"}
--- PASS: TestTBOperationHandlerRetriableErrorForRunningOperation (0.00s)
🟢 ydbcp/internal/processor2001018.9999999999999ms
🧪 Tests
  • 🟢TestOperationHandlerRegistry
  • 🟢TestProcessor
🖨️ Output
=== RUN   TestProcessor
2024-09-09T10:14:20.076Z	DEBUG	processor/processor.go:75	Operation Processor started	{"period": "10s"}
2024-09-09T10:14:20.076Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 5f460ba6-16cb-4051-bd5c-b79af15bd026, type TB, state PENDING"}
2024-09-09T10:14:20.077Z	DEBUG	processor/processor.go:139	start operation handler	{"operation": "Operation, id 5f460ba6-16cb-4051-bd5c-b79af15bd026, type TB, state PENDING"}
2024-09-09T10:14:20.077Z	DEBUG	processor/processor.go:127	operation already running	{"operation": "Operation, id 5f460ba6-16cb-4051-bd5c-b79af15bd026, type TB, state PENDING"}
2024-09-09T10:14:20.077Z	DEBUG	processor/processor_test.go:40	TB handler called for operation	{"operation": "Operation, id 5f460ba6-16cb-4051-bd5c-b79af15bd026, type TB, state PENDING"}
2024-09-09T10:14:20.077Z	DEBUG	processor/processor.go:156	operation handler is finished	{"operationID": "5f460ba6-16cb-4051-bd5c-b79af15bd026"}
2024-09-09T10:14:20.077Z	DEBUG	processor/processor.go:82	Operation Processor stopping. Waiting for running operations...
2024-09-09T10:14:20.077Z	DEBUG	processor/processor.go:85	Operation Processor stopped
--- PASS: TestProcessor (0.00s)
=== RUN   TestOperationHandlerRegistry
--- PASS: TestOperationHandlerRegistry (0.00s)
🟡 ydbcp/internal/server0000ms
🧪 Tests(none)
🖨️ Output
(none)
🟢 ydbcp/internal/server/services/backup2001032ms
🧪 Tests
  • 🟢TestEndpointSecureValidation
  • 🟢TestEndpointValidation
🖨️ Output
=== RUN   TestEndpointValidation
--- PASS: TestEndpointValidation (0.00s)
=== RUN   TestEndpointSecureValidation
--- PASS: TestEndpointSecureValidation (0.00s)
🟡 ydbcp/internal/server/services/operation0000ms
🧪 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)

@ulya-sidorina ulya-sidorina requested a review from bma13 September 9, 2024 10:15
@ulya-sidorina ulya-sidorina merged commit 5dc0815 into main Sep 9, 2024
2 checks 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