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

Fix coverage report workflow #1086

Conversation

josecelano
Copy link
Member

@josecelano josecelano commented Nov 15, 2024

Fix coverage report workflow.

@josecelano
Copy link
Member Author

I can run tests locally but in the generate coverage report workflow, I'm getting this error:

   Doc-tests torrust_tracker
running 26 tests
test src/core/auth.rs - core::auth (line 28) - compile ... ok
test src/core/auth.rs - core::auth (line 14) - compile ... ok
test src/core/databases/driver.rs - core::databases::driver::build (line 32) - compile ... ok
test src/core/auth.rs - core::auth::ParseKeyError (line 199) - compile ... ok
test src/core/mod.rs - core (line 138) - compile ... ok
test src/core/mod.rs - core (line 228) - compile ... ok
test src/core/mod.rs - core (line 167) - compile ... ok
test src/core/mod.rs - core (line 381) - compile ... ok
test src/core/databases/driver.rs - core::databases::driver::build (line 43) - compile ... ok
test src/core/mod.rs - core (line 248) - compile ... ok
test src/core/services/statistics/mod.rs - core::services::statistics (line 32) - compile ... ok
test src/core/mod.rs - core (line 57) - compile ... ok
test src/core/mod.rs - core (line 99) - compile ... ok
test src/servers/http/percent_encoding.rs - servers::http::percent_encoding::percent_decode_info_hash (line 28) has been running for over 60 seconds
test src/servers/http/percent_encoding.rs - servers::http::percent_encoding::percent_decode_peer_id (line 59) has been running for over 60 seconds
test src/servers/http/v1/query.rs - servers::http::v1::query::Query::get_param (line 33) has been running for over 60 seconds
test src/servers/http/v1/query.rs - servers::http::v1::query::Query::get_param (line 46) has been running for over 60 seconds
##[debug]Re-evaluate condition on job cancellation for step: 'Build and test'.
##[debug]Skip Re-evaluate condition on runner shutdown.
Error: The operation was canceled.
##[debug]System.OperationCanceledException: The operation was canceled.
##[debug]   at System.Threading.CancellationToken.ThrowOperationCanceledException()
##[debug]   at GitHub.Runner.Sdk.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Common.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Worker.Handlers.DefaultStepHost.ExecuteAsync(IExecutionContext context, String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, String standardInInput, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Worker.Handlers.ScriptHandler.RunAsync(ActionRunStage stage)
##[debug]   at GitHub.Runner.Worker.ActionRunner.RunAsync()
##[debug]   at GitHub.Runner.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
##[debug]Finishing: Build and test

I don't know why. The rust message has been running for over 60 seconds is only a warning. I think the runner is cancelling the job but the execution time is shorter than the default timeout.

@josecelano josecelano force-pushed the 1075-error-unknown-unstable-option-profile-running-coverage-report-workflow branch from 1a53d7a to 749eeef Compare November 15, 2024 09:51
@josecelano josecelano marked this pull request as draft November 15, 2024 09:53
@josecelano josecelano force-pushed the 1075-error-unknown-unstable-option-profile-running-coverage-report-workflow branch from 749eeef to 7a1cbe0 Compare November 15, 2024 09:59
@josecelano josecelano marked this pull request as ready for review November 15, 2024 10:00
@josecelano
Copy link
Member Author

I can run tests locally but in the generate coverage report workflow, I'm getting this error:

   Doc-tests torrust_tracker
running 26 tests
test src/core/auth.rs - core::auth (line 28) - compile ... ok
test src/core/auth.rs - core::auth (line 14) - compile ... ok
test src/core/databases/driver.rs - core::databases::driver::build (line 32) - compile ... ok
test src/core/auth.rs - core::auth::ParseKeyError (line 199) - compile ... ok
test src/core/mod.rs - core (line 138) - compile ... ok
test src/core/mod.rs - core (line 228) - compile ... ok
test src/core/mod.rs - core (line 167) - compile ... ok
test src/core/mod.rs - core (line 381) - compile ... ok
test src/core/databases/driver.rs - core::databases::driver::build (line 43) - compile ... ok
test src/core/mod.rs - core (line 248) - compile ... ok
test src/core/services/statistics/mod.rs - core::services::statistics (line 32) - compile ... ok
test src/core/mod.rs - core (line 57) - compile ... ok
test src/core/mod.rs - core (line 99) - compile ... ok
test src/servers/http/percent_encoding.rs - servers::http::percent_encoding::percent_decode_info_hash (line 28) has been running for over 60 seconds
test src/servers/http/percent_encoding.rs - servers::http::percent_encoding::percent_decode_peer_id (line 59) has been running for over 60 seconds
test src/servers/http/v1/query.rs - servers::http::v1::query::Query::get_param (line 33) has been running for over 60 seconds
test src/servers/http/v1/query.rs - servers::http::v1::query::Query::get_param (line 46) has been running for over 60 seconds
##[debug]Re-evaluate condition on job cancellation for step: 'Build and test'.
##[debug]Skip Re-evaluate condition on runner shutdown.
Error: The operation was canceled.
##[debug]System.OperationCanceledException: The operation was canceled.
##[debug]   at System.Threading.CancellationToken.ThrowOperationCanceledException()
##[debug]   at GitHub.Runner.Sdk.ProcessInvoker.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Common.ProcessInvokerWrapper.ExecuteAsync(String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Channel`1 redirectStandardIn, Boolean inheritConsoleHandler, Boolean keepStandardInOpen, Boolean highPriorityProcess, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Worker.Handlers.DefaultStepHost.ExecuteAsync(IExecutionContext context, String workingDirectory, String fileName, String arguments, IDictionary`2 environment, Boolean requireExitCodeZero, Encoding outputEncoding, Boolean killProcessOnCancel, Boolean inheritConsoleHandler, String standardInInput, CancellationToken cancellationToken)
##[debug]   at GitHub.Runner.Worker.Handlers.ScriptHandler.RunAsync(ActionRunStage stage)
##[debug]   at GitHub.Runner.Worker.ActionRunner.RunAsync()
##[debug]   at GitHub.Runner.Worker.StepsRunner.RunStepAsync(IStep step, CancellationToken jobCancellationToken)
##[debug]Finishing: Build and test

I don't know why. The rust message has been running for over 60 seconds is only a warning. I think the runner is cancelling the job but the execution time is shorter than the default timeout.

I've removed the cargo test we don't need it in this workflow and is working in the testing.yaml workflow.

@josecelano josecelano force-pushed the 1075-error-unknown-unstable-option-profile-running-coverage-report-workflow branch from 7a1cbe0 to 9d8174d Compare November 15, 2024 10:15
@josecelano
Copy link
Member Author

ACK 9d8174d

@josecelano josecelano merged commit 2289c04 into torrust:develop Nov 15, 2024
15 of 16 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.

Error: unknown unstable option: profile running coverage report workflow
1 participant