Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Add copy buttons to all \u003cpre\u003e\u003ccode\u003e blocks\n(function() {\n function addCopyButtons() {\n document.querySelectorAll('pre code').forEach(function(codeBlock) {\n if (codeBlock.parentElement.hasAttribute('data-copy-added')) return;\n codeBlock.parentElement.setAttribute('data-copy-added', 'true');\n \n var btn = document.createElement('button');\n btn.textContent = 'Copy';\n btn.style.cssText = 'position:absolute;top:4px;right:4px;padding:2px 8px;font-size:11px;background:#4ecdc4;border:none;border-radius:4px;color:#1a1a2e;cursor:pointer;opacity:0.7;transition:opacity 0.2s;';\n btn.onmouseover = function() { this.style.opacity = '1'; };\n btn.onmouseout = function() { this.style.opacity = '0.7'; };\n btn.onclick = function() {\n navigator.clipboard.writeText(codeBlock.textContent).then(function() {\n btn.textContent = 'Copied!';\n setTimeout(function() { btn.textContent = 'Copy'; }, 1500);\n });\n };\n codeBlock.parentElement.style.position = 'relative';\n codeBlock.parentElement.appendChild(btn);\n });\n }\n \n addCopyButtons();\n \n // Re-run on dynamic content\n var observer = new MutationObserver(addCopyButtons);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Add Copy Buttons to Code Blocks"); } } catch(__e) { console.warn('[Userscript:Add Copy Buttons to Code Blocks]', __e); } })(); (function(){ try { var __m = "github.com"; var __re = new RegExp('^' + "github\\.com" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Force GitHub README to respect dark mode\n(function() {\n var style = document.createElement('style');\n style.textContent = '\n .markdown-body {\n color-scheme: dark light;\n }\n .markdown-body pre { background: #161b22 !important; }\n .markdown-body code { background: rgba(110, 118, 129, 0.4) !important; }\n .markdown-body table th, .markdown-body table td { border-color: #30363d !important; }\n .markdown-body img { background: #0d1117; }\n .markdown-body blockquote { border-left-color: #8b949e; }\n .markdown-body hr { border-color: #30363d; }\n ';\n document.head.appendChild(style);\n})();", "GitHub Dark Mode README Fix"); } } catch(__e) { console.warn('[Userscript:GitHub Dark Mode README Fix]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Highlight search terms from Google/DuckDuckGo/Bing referrer\n(function() {\n var ref = document.referrer;\n var terms = [];\n \n if (ref.includes('google.com') || ref.includes('duckduckgo.com') || ref.includes('bing.com')) {\n var url = new URL(ref);\n var q = url.searchParams.get('q') || url.searchParams.get('p');\n if (q) {\n terms = q.split(/\\s+/).filter(function(t) { return t.length \u003e 2; });\n }\n }\n \n if (terms.length === 0) return;\n \n var style = document.createElement('style');\n style.textContent = '.userscript-highlight { background: #fbbf24; color: #1a1a2e; padding: 1px 3px; border-radius: 2px; }';\n document.head.appendChild(style);\n \n function highlight(node) {\n if (node.nodeType === 3) { // text node\n var text = node.textContent;\n var found = false;\n terms.forEach(function(term) {\n var regex = new RegExp('(' + term.replace(/[.*+?^${}()|[\\]\\\\]/g, '\\\\') + ')', 'gi');\n if (regex.test(text)) {\n found = true;\n var frag = document.createDocumentFragment();\n var parts = text.split(regex);\n parts.forEach(function(part, i) {\n if (i % 2 === 0) {\n frag.appendChild(document.createTextNode(part));\n } else {\n var span = document.createElement('span');\n span.className = 'userscript-highlight';\n span.textContent = part;\n frag.appendChild(span);\n }\n });\n node.parentNode.replaceChild(frag, node);\n }\n });\n } else if (node.nodeType === 1 && node.childNodes) { // element\n var skipTags = ['SCRIPT', 'STYLE', 'NOSCRIPT', 'TEXTAREA', 'INPUT', 'SELECT'];\n if (!skipTags.includes(node.tagName)) {\n Array.from(node.childNodes).forEach(highlight);\n }\n }\n }\n \n highlight(document.body);\n \n // Re-highlight on dynamic content\n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1 || node.nodeType === 3) highlight(node);\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Highlight Search Terms"); } } catch(__e) { console.warn('[Userscript:Highlight Search Terms]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Strip utm_, fbclid, gclid, etc. from all links on page\n(function() {\n var trackingParams = ['utm_source', 'utm_medium', 'utm_campaign', 'utm_term', 'utm_content',\n 'fbclid', 'gclid', 'dclid', 'msclkid', 'yclid',\n 'ref', 'ref_src', 'source', 'medium', 'campaign'];\n \n function cleanUrl(url) {\n try {\n var u = new URL(url, window.location.origin);\n var changed = false;\n trackingParams.forEach(function(p) {\n if (u.searchParams.has(p)) {\n u.searchParams.delete(p);\n changed = true;\n }\n });\n return changed ? u.toString() : url;\n } catch (e) {\n return url;\n }\n }\n \n function cleanLinks() {\n document.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n \n cleanLinks();\n \n var observer = new MutationObserver(function(mutations) {\n mutations.forEach(function(m) {\n m.addedNodes.forEach(function(node) {\n if (node.nodeType === 1) {\n if (node.tagName === 'A') cleanLinks();\n node.querySelectorAll('a[href]').forEach(function(a) {\n var clean = cleanUrl(a.href);\n if (clean !== a.href) a.href = clean;\n });\n }\n });\n });\n });\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "Remove Tracking Parameters from Links"); } } catch(__e) { console.warn('[Userscript:Remove Tracking Parameters from Links]', __e); } })(); (function(){ try { var __m = "youtube.com"; var __re = new RegExp('^' + "youtube\\.com" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Auto-enable theater mode on YouTube\n(function() {\n function tryTheater() {\n var btn = document.querySelector('button[aria-label=\"Theater mode\"], ytd-player #player button[title=\"Theater mode\"]');\n if (btn && !btn.classList.contains('activated')) {\n btn.click();\n }\n }\n \n // Try immediately\n tryTheater();\n \n // Try after navigation (SPA)\n var lastUrl = location.href;\n setInterval(function() {\n if (location.href !== lastUrl) {\n lastUrl = location.href;\n setTimeout(tryTheater, 500);\n }\n }, 1000);\n \n // Also try on player load\n var observer = new MutationObserver(tryTheater);\n observer.observe(document.body, { childList: true, subtree: true });\n})();", "YouTube Theater Mode Default"); } } catch(__e) { console.warn('[Userscript:YouTube Theater Mode Default]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Remove or un-stick sticky/fixed headers that block content\n(function() {\n function unstick() {\n document.querySelectorAll('header, nav, [role=\"banner\"], .header, .navbar, .sticky, .fixed-top, [style*=\"position: fixed\"], [style*=\"position:sticky\"]').forEach(function(el) {\n if (el.style.position === 'fixed' || el.style.position === 'sticky' || \n getComputedStyle(el).position === 'fixed' || getComputedStyle(el).position === 'sticky') {\n el.style.position = 'static';\n el.style.top = 'auto';\n el.style.zIndex = 'auto';\n }\n });\n }\n \n unstick();\n \n var observer = new MutationObserver(unstick);\n observer.observe(document.body, { childList: true, subtree: true, attributes: true, attributeFilter: ['style', 'class'] });\n})();", "Kill Sticky Headers"); } } catch(__e) { console.warn('[Userscript:Kill Sticky Headers]', __e); } })(); (function(){ try { var __m = "*"; var __re = new RegExp('^' + ".*" + '
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu
, 'i'); if (__m === '*' || __re.test(location.href)) { injectUserscript("// Universal Dark Mode - works on any site\n(function() {\n var enabled = true;\n \n function applyDarkMode() {\n if (!enabled) return;\n \n // Create style element if it doesn't exist\n var style = document.getElementById('universal-dark-mode-style');\n if (!style) {\n style = document.createElement('style');\n style.id = 'universal-dark-mode-style';\n document.head.appendChild(style);\n }\n \n // Dark mode CSS - inverts colors but preserves images/video\n style.textContent = '\n /* Invert everything except media */\n html {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #1a1a2e !important;\n }\n \n /* Restore images, videos, iframes, canvas */\n img, video, iframe, canvas, svg, picture, [style*=\"background-image\"] {\n filter: invert(1) hue-rotate(180deg) !important;\n }\n \n /* Preserve specific elements that should not be inverted */\n .no-dark-mode, .no-dark-mode *,\n [data-theme=\"light\"], [data-theme=\"light\"],\n .ace_editor, .ace_editor *,\n .CodeMirror, .CodeMirror *,\n .monaco-editor, .monaco-editor *,\n .markdown-body pre, .markdown-body pre *,\n .highlight, .highlight *,\n pre code, pre code * {\n filter: none !important;\n }\n \n /* Fix common UI elements */\n .modal, .popup, .dropdown-menu, .tooltip, .popover {\n filter: invert(1) hue-rotate(180deg) !important;\n background: #2d2d44 !important;\n border-color: #444 !important;\n }\n \n /* Scrollbars */\n ::-webkit-scrollbar { background: #1a1a2e !important; }\n ::-webkit-scrollbar-thumb { background: #444 !important; }\n ::-webkit-scrollbar-thumb:hover { background: #555 !important; }\n \n /* Selection */\n ::selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ::-moz-selection { background: #4ecdc4 !important; color: #1a1a2e !important; }\n ';\n }\n \n function removeDarkMode() {\n var style = document.getElementById('universal-dark-mode-style');\n if (style) style.remove();\n }\n \n // Toggle with Alt+Shift+D\n document.addEventListener('keydown', function(e) {\n if (e.altKey && e.shiftKey && e.key === 'D') {\n e.preventDefault();\n enabled = !enabled;\n if (enabled) {\n applyDarkMode();\n console.log('[Universal Dark Mode] Enabled');\n } else {\n removeDarkMode();\n console.log('[Universal Dark Mode] Disabled');\n }\n }\n });\n \n // Apply on load\n applyDarkMode();\n \n // Re-apply on dynamic content\n var observer = new MutationObserver(function(mutations) {\n if (enabled && !document.getElementById('universal-dark-mode-style')) {\n applyDarkMode();\n }\n });\n observer.observe(document.head, { childList: true });\n \n console.log('[Universal Dark Mode] Loaded - Press Alt+Shift+D to toggle');\n})();", "Universal Dark Mode"); } } catch(__e) { console.warn('[Userscript:Universal Dark Mode]', __e); } })(); })();
Skip to content

Avastancu/joannaakl/service container error log - #2110

Merged
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log
Oct 3, 2022
Merged

Avastancu/joannaakl/service container error log#2110
JoannaaKL merged 41 commits into
mainfrom
avastancu/joannaakl/service-container-error-log

Conversation

@JoannaaKL

@JoannaaKLJoannaaKL commented Sep 7, 2022

Copy link
Copy Markdown
Contributor

Coauthor @AvaStancu
Fixing issue Issue 341.
Adding subsection in 'Start Containers' for each docker service failure. Services that fail to start will not be logged in 'Stop Containers' section so we don't have duplicated logs.

If the service doesn't define the healthcheck method, we will check the container's exit code. The user will be able to see the exit code in the console, which might also add some additional context:
image

Since nested subsections are not being displayed properly and we already need one subsection per service error.
Comment threadsrc/Runner.Worker/Container/DockerCommandManager.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Test/L0/TestHostContext.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKLJoannaaKL linked an issue Sep 7, 2022 that may be closed by this pull request
JoannaaKLand others added 5 commits September 7, 2022 17:19
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 2ed2d53 to 0533cbfCompareSeptember 9, 2022 14:11
@AvaStancu
AvaStancuforce-pushed the avastancu/joannaakl/service-container-error-log branch from 0533cbf to 7a992f8CompareSeptember 9, 2022 14:32
@JoannaaKL
JoannaaKLforce-pushed the avastancu/joannaakl/service-container-error-log branch 2 times, most recently from a4ba40f to 1778f8fCompareSeptember 16, 2022 09:01
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
Comment threadsrc/Runner.Worker/ContainerOperationProvider.cs Outdated
@JoannaaKL
JoannaaKL merged commit 9492691 into mainOct 3, 2022
@JoannaaKL
JoannaaKL deleted the avastancu/joannaakl/service-container-error-log branch October 3, 2022 15:50
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
fhammerl added a commit that referenced this pull request Oct 4, 2022
@AvaStancu
AvaStancu restored the avastancu/joannaakl/service-container-error-log branch October 4, 2022 21:02
fhammerl added a commit that referenced this pull request Oct 5, 2022
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 5, 2022
AvaStancu added a commit that referenced this pull request Oct 5, 2022
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
fhammerl added a commit that referenced this pull request Oct 7, 2022
commit f8b95ee
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Oct 5 12:16:30 2022 +0200
Pull upstream (#2178)
* Escaping key and quoting it to avoid key based command injection (#2062)
* escaping key and quoting it to avoid key based command injection
* extracted creation of flags to DockerUtil, with testing included
* Release notes for 2.296.0 (#2078)
* Update releaseNote.md
* Update runnerversion
* Validate lines and columns for Annotations (#2082)
* docker: escape key-value pair as -e KEY and VALUE being environment var (#2091)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* 2.296.1 Release (#2092) (#2099)
* docker: escape key-value pair as -e KEY and VALUE being environment var
* removed code duplication, removed unused method and test
* add release notes
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
* fix ACTIONS_RUNNER_CONTAINER_HOOKS name in ADR (#2098)
* Port hotfix to main branch (#2108)
* fix issue with env's overwriting environment
* add release notes
* handle value escaping
* compile regex for runtime perf improvements
* fix for issue #2009 - composite summary file (#2077)
* Bump @actions/core from 1.2.6 to 1.9.1 in /src/Misc/expressionFunc/hashFiles (#2123)
* Remove unused imports (#2124)
* Remove unused imports (#2126)
* Add Release branches to pull request spec (#2134)
* Add file commands for save-state and set-output (#2118)
* POC: Windows arm64 runner build (#2022)
Prerelease for windows-arm64 runner build
* Add link to blog post to node 12 warn (#2156)
* 2.297.0 release notes (#2155)
* 2.297.0 release notes
* Adding a new vars context for non-secret variables (#2096)
* Adding a new vars context for non-secret variables
* Fix test case
* Trigger checks
* Remove variables from env context and environment varibale
* remove extra references
* Add prefix handling to configuration variables
* Fix test cases
* Consume variables using vars in context data
* removed action_yaml changes
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add warning for users using deprecated commands (#2164)
* Prepare release notes for v2.298.0 (#2169)
* Fix incorrect template vars to show SHA for WIN-ARM64 (#2171)
* Backport 2.298.1 (#2175)
* Update releaseNote.md
* Update runnerversion
Co-authored-by: Nikola Jokic <97525037+nikola-jokic@users.noreply.github.com>
Co-authored-by: Ava Stancu <avastancu@github.com>
Co-authored-by: Konrad Pabjan <konradpabjan@github.com>
Co-authored-by: Thomas Boop <52323235+thboop@users.noreply.github.com>
Co-authored-by: Nikola Jokic <nikola-jokic@github.com>
Co-authored-by: Stefan Ruvceski <96768603+ruvceskistefan@users.noreply.github.com>
Co-authored-by: Francesco Renzi <rentziass@github.com>
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tatyana Kostromskaya <32135588+takost@users.noreply.github.com>
Co-authored-by: Tauhid Anjum <tauhidanjum@gmail.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
commit 416548c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:50:33 2022 +0000
No quotes or double lines in frn
commit 3cc465d
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:45:10 2022 +0000
Echo in init.sh
commit f675120
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:35:58 2022 +0000
Init as sudo
commit b4ebe66
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:12:12 2022 +0000
Use vscode user
commit 489071e
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 09:02:54 2022 +0000
Comment waitFor to explain it
commit 27686b5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:53:50 2022 +0000
Better first run, wait for init
commit 40d1650
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 08:41:29 2022 +0000
Better init message
commit 1875c95
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Sep 15 10:21:17 2022 +0200
Add frn
commit f33a3ce
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:07 2022 +0000
Use locally built dockerfile
commit 4f99399
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:23:07 2022 +0200
Bring first run cpy up
commit cda6c68
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:08:50 2022 +0200
Use base.dockerfile for now
commit 262ade6
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Wed Sep 14 14:05:12 2022 +0200
Update init.sh
commit bb1d080
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 16:38:56 2022 +0200
Don't open dev.sh
commit a04569f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:47:03 2022 +0000
Copy firstrun elsewhere
commit 40ab9cd
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:26:08 2022 +0000
Try first run notce
commit d773599
Merge: 15750742f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:18:06 2022 +0000
Merge branch 'fhammerl/try-ghcs' of https://github.com/actions/runner into fhammerl/try-ghcs
commit 1575074
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:17:55 2022 +0000
Forgot 'init.sh' lives in source, meaning postCreateCommand has no access to it
commit 2f9271a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 12:12:09 2022 +0000
Run init.sh from source instead of docker img
commit 410e303
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 12:05:25 2022 +0000
Better init (no restore + rerunnable)
commit 1ff0cdc
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Mon Sep 12 11:41:03 2022 +0000
Use prebuilt image
commit 1cfd869
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 12 13:29:55 2022 +0200
Add gitlens and default container makefile
commit 7b1f2f0
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:10:30 2022 +0000
Better init
commit d337798
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Tue Sep 6 16:13:00 2022 +0200
Use dind devcontainer with correct dotnet sdk
commit 24b087d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Mon Sep 5 16:16:20 2022 +0200
Try codespaces
commit 49e808a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 15:39:43 2022 +0200
Update init.sh
commit 90b99d3
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:59:20 2022 +0000
Update to 300
commit 2284a75
Merge: d28fe561cb1779
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Tue Aug 23 12:58:21 2022 +0000
giMerge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit d28fe56
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:26:23 2022 +0000
Restore symlink
commit d6a244f
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:23:19 2022 +0000
No need for service restore
commit 0668503
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 21:19:01 2022 +0000
More setup
commit 4ddedf5
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:08:27 2022 +0100
Update devcontainer.json
commit bcc667a
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 22:03:10 2022 +0100
Delete Dockerfile
commit 994ff04
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:45:24 2022 +0100
Define dockerfile
commit 58de023
Merge: fd09b8300e5825
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:43:10 2022 +0100
Merge branch 'fhammerl/devcontainers' of https://github.com/actions/runner into fhammerl/devcontainers
commit fd09b83
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 21:42:01 2022 +0100
Use slimmer image
commit 00e5825
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:30:06 2022 +0000
Symlink more .net stuff
commit c21469c
Author: Ferenc Hammerl <31069338+fhammerl@users.noreply.github.com>
Date: Thu Mar 17 10:13:18 2022 +0000
Create symlink
commit 206d50d
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:52 2022 +0000
Remove Dockerfile
commit 6a43245
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:58:29 2022 +0000
Add extension and exclude path
commit e3e3c81
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 09:56:01 2022 +0000
Add default
commit 4d76eb4
Merge: 4c5730fddc700e
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Thu Mar 17 10:12:43 2022 +0100
Merge branch 'main' of https://github.com/actions/runner into fhammerl/devcontainers
commit 4c5730f
Author: Ferenc Hammerl <fhammerl@github.com>
Date: Fri Mar 11 14:19:30 2022 +0100
Add default codespace settings
AvaStancu added a commit that referenced this pull request Oct 11, 2022
* Avastancu/joannaakl/service container error log (#2110)
* adding support for a service container docker logs
* Adding Unit test to ContainerOperationProvider
* Adding another test to ContainerOperationProvider
* placed the docker logs output in dedicated ##group section
* Removed the exception thrown if the service container was not healthy
* Removed duplicated logging to the executionContext
* Updated the container logs sub-section message
* Print service containers only if they were healthy
Unhealthy service logs are printed in ContainerHealthCheckLogs called prior to this step.
* Removed recently added method to inspect docker logs
The method was doing the same thing as the existing DockerLogs method.
* Added execution context error
This will make a failed health check more visible in the UI without disrupting the execution of the program.
* Removing the section 'Waiting for all services to be ready'
Since nested subsections are not being displayed properly and we already need one subsection per service error.
* Update src/Runner.Worker/Container/DockerCommandManager.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/TestHostContext.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Change the logic for printing Service Containers logs
Service container logs will be printed in the 'Start containers' section only if there is an error.
Healthy services will have their logs printed in the 'Stop Containers' section.
* Removed unused import
* Added back section group.
* Moved service containers error logs to separate group sections
* Removed the test testing the old logic flow.
* Remove unnecessary 'IsAnyUnhealthy' flag
* Remove printHello() function
* Add newline to TestHostContext
* Remove unnecessary field 'UnhealthyContainers'
* Rename boolean flag indicating service container failure
* Refactor healthcheck logic to separate method to enable unit testing.
* Remove the default value for bool variable
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Runner.Worker/ContainerOperationProvider.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Rename Healthcheck back to ContainerHealthcheck
* Make test sequential
* Unextract the container error logs method
* remove test asserting thrown exception
* Add configure await
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Update src/Test/L0/Worker/ContainerOperationProviderL0.cs
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Add back test asserting exception
* Check service exit code if there is no healtcheck configured
* Remove unnecessary healthcheck for healthy service container
* Revert "Check service exit code if there is no healtcheck configured"
This reverts commit fec24e8.
Co-authored-by: Ava S <avastancu@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
* Do not fail service containers without the healthcheck
Co-authored-by: JoannaaKL <joannaakl@github.com>
Co-authored-by: Tingluo Huang <tingluohuang@github.com>
eli-entelis added a commit to eli-entelis/runner that referenced this pull request Oct 11, 2022
Avastancu/joannaakl/service container error log (actions#2110) (actions#2182)
@actionsactions deleted a comment Oct 22, 2022
@actionsactions deleted a comment Oct 22, 2022
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Runner FeatureFeature scope to the runnerRunner ❤️ Container

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Show docker logs when service fails to start

4 participants

@JoannaaKL@TingluoHuang@thboop@AvaStancu