Commit Graph
7 Commits
Author SHA1 Message Date
Nikola Jokic 58f7a379a1 Filter out empty arguments in container hooks (#2633) 2023-05-31 16:58:48 +02:00
Nikola Jokic 1ceb1a67f2 Guard against NullReference while creating HostContext (#2343)
* Guard against NullReference while creating HostContext

* Throw on IOUtil loading object if content is empty or object is null

* removed unused dependency

* Changed exceptions to ArgumentNullException and ArgumentException

* fixed my mistake on LoadObject

* fixed tests

* trigger workflows

* trigger workflows

* encode files using utf8
2023-03-30 15:39:09 +02:00
2dfa28e6e0 Add update certificates to ./run.sh if RUNNER_UPDATE_CA_CERTS env is set (#2471)
* Included entrypoint that will update certs and run ./run.sh

* update ca if RUNNER_UPDATE_CA env is set

* changed env variable to RUNNER_UPDATE_TRUST_STORE

* moved entrypoint to be run.sh, removed Dockerfile entrypoint, added envvar that will update certs

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <[email protected]>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <[email protected]>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Bassem Dghaidi <[email protected]>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Tingluo Huang <[email protected]>

* Update src/Misc/layoutroot/run.sh

Co-authored-by: Tingluo Huang <[email protected]>

* removed doc comment on func

---------

Co-authored-by: Bassem Dghaidi <[email protected]>
Co-authored-by: Tingluo Huang <[email protected]>
2023-03-08 12:29:55 -05:00
Nikola Jokic fd96246580 Exit on deprication error (#2299)
* terminate the runner on deprication message

* added TaskAgentVersion exception to catch deprication

* AccessDenied exception with inner exception InvalidTaskAgent

* Access denied exception in program and in message listener

* Fixed copy

* remove trace message from message listener
2023-03-07 14:09:10 +01:00
Nikola Jokic 542e8a3c98 Runner service exit after consecutive re-try exits (#2426)
* Runner service exit after consecutive re-try exits

* Rename failure counts and include reset count on runner listening for jobs

* Changed from graceful shutdown to stopping=true
2023-02-28 16:00:36 +01:00
Nikola JokicandTingluoHuang 332b97f838 Treat jitconfig as secret. (#2335)
Co-authored-by: TingluoHuang <[email protected]>
2022-12-21 13:30:22 -05:00
Nikola Jokic 04761e5353 Initialize container manager based on whether the ContainerHooksPath is set (#2317)
* Added tests around checking if correct manager's Initialize method has been called

* repaired missing initialization on container action handler
2022-12-16 15:40:49 +01:00