Skip to content

Fix service test validation to check for actual startup message#4

Draft
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-github-actions-error
Draft

Fix service test validation to check for actual startup message#4
Copilot wants to merge 2 commits intomasterfrom
copilot/fix-github-actions-error

Conversation

Copy link
Contributor

Copilot AI commented Jan 2, 2026

Service build tests were failing because they checked for "No messages for us right now!" which the services never output. The services start successfully and log "Service Start completed" before being stopped by the test.

Changes

Updated validation in 4 service build jobs to grep for the correct success indicator:

# Before
result=`cat docker_run_log | grep "No messages for us right now!" -m 1 | wc -l`

# After  
result=`cat docker_run_log | grep "Service Start completed" -m 1 | wc -l`

Modified jobs:

  • timeplanning-service-build
  • items-planning-service-build
  • workflow-service-build
  • backend-configuration-service-build
Original prompt

This section details on the original issue you should resolve

<issue_title>Fix "Error: Process completed with exit code 1."</issue_title>
<issue_description>The github actions step for service tests found at https://github.com/microting/work-items-planning-container/blob/master/.github/workflows/dotnet-core-docker.yml#L1257C3-L1352C45 is throwing this error:

Run cat docker_run_log
Using connection string from config
Connection string: host=mariadbtest;Database=420_SDK;user=root;***;port=3306;Convert Zero Datetime = true;SslMode=none;
CLIENT_EMAIL: 
PRIVATE_KEY_ID: 
PRIVATE_KEY: 
CLIENT_ID: 
PROJECT_ID: 
dbug: Service called
dbug: Start loading plugins...
dbug: serviceLocation:'/app/'
dbug: Path for plugins is : /app/Plugins
dbug: Loading Plugin : /app/Plugins/ServiceTimePlanningPlugin
dbug: Service completed
dbug: Trying to start plugin : ServiceTimePlanningPlugin.Core
ServiceTimePlanningPlugin start called
customerNo: 420
osVersion: Unix 6.11.0.1018
osArchitecture: X64
osName: Ubuntu 24.04.3 LTS
Connection string: host=mariadbtest;Database=420_SDK;user=root;***;port=3306;Convert Zero Datetime = true;SslMode=none;
rabbitmqHost: my-rabbit
rabbitMqUser: admin
rabbitMqPassword: password
rabbitMqUser: admin
rabbitMqPassword: password
rabbitMqHost: my-rabbit
[INF] Rebus.Internals.ConnectionManager (Thread microting/work-items-planning-container#1): Initializing RabbitMQ connection manager for transport with input queue "420-eform-service-time-planning-plugin"
[INF] Rebus.Threading.TaskParallelLibrary.TplAsyncTask (Thread microting/work-items-planning-container#1): Starting periodic task "CleanupTrackedErrors" with interval 00:00:10
[INF] Rebus.Bus.RebusBus (Thread microting/work-items-planning-container#1): Bus "Rebus 1" setting number of workers to 1
[INF] Rebus.Bus.RebusBus (Thread microting/work-items-planning-container#1): Bus "Rebus 1" started
ServiceTimePlanningPlugin started
[INF] Rebus.RabbitMq.RabbitMqTransport (.NET TP Worker): Successfully initialized consumer for "420-eform-service-time-planning-plugin"
dbug: ServiceTimePlanningPlugin.Core started successfully!
dbug: Service Start called
dbug: Core exception events connected
dbug: sdkSqlCoreStr, host=mariadbtest;Database=420_SDK;user=root;***;port=3306;Convert Zero Datetime = true;SslMode=none;
[INF] Rebus.Internals.ConnectionManager (.NET TP Worker): Initializing RabbitMQ connection manager for transport with input queue "420-eformsdk-input"
[INF] Rebus.Threading.TaskParallelLibrary.TplAsyncTask (.NET TP Worker): Starting periodic task "CleanupTrackedErrors" with interval 00:00:10
[INF] Rebus.Bus.RebusBus (.NET TP Worker): Bus "Rebus 2" setting number of workers to 1
[INF] Rebus.Bus.RebusBus (.NET TP Worker): Bus "Rebus 2" started
[INF] Rebus.RabbitMq.RabbitMqTransport (.NET TP Worker): Successfully initialized consumer for "420-eformsdk-input"
dbug: SDK Core started
dbug: Service Start completed
dbug: Service Close called
dbug: Trying to stop plugin : ServiceTimePlanningPlugin.Core
dbug: ServiceTimePlanningPlugin.Core stopped successfully!
[INF] Rebus.Bus.RebusBus (.NET TP Worker): Bus "Rebus 2" setting number of workers to 0
[INF] Rebus.Threading.TaskParallelLibrary.TplAsyncTask (.NET TP Worker): Stopping periodic task "CleanupTrackedErrors"
[INF] Rebus.RabbitMq.RabbitMqTransport (.NET TP Worker): Disposing consumer
[INF] Rebus.Internals.ConnectionManager (.NET TP Worker): Disposing RabbitMQ connection
[INF] Rebus.Bus.RebusBus (.NET TP Worker): Bus "Rebus 2" stopped
dbug: SDK Core closed
dbug: Service Close completed
Error: Process completed with exit code 1.

</issue_description>

Comments on the Issue (you are @copilot in this section)


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI self-assigned this Jan 2, 2026
Co-authored-by: renemadsen <76994+renemadsen@users.noreply.github.com>
Copilot AI changed the title [WIP] Fix error in GitHub Actions service tests Fix service test validation to check for actual startup message Jan 2, 2026
Copilot AI requested a review from renemadsen January 2, 2026 07:10
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.

Fix "Error: Process completed with exit code 1."

2 participants