Compare commits

..

2 Commits

Author SHA1 Message Date
Joanna Krzek-Lubowiecka
76d01120a3 Even more logs lol 2023-06-13 07:17:20 +00:00
Joanna Krzek-Lubowiecka
4c777889ae Add logging to errors 2023-06-13 07:02:16 +00:00
8 changed files with 19 additions and 28 deletions

View File

@@ -1,5 +1,4 @@
# Source: https://github.com/dotnet/dotnet-docker
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-jammy as build
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0 as build
ARG RUNNER_VERSION
ARG RUNNER_ARCH="x64"
@@ -23,7 +22,7 @@ RUN export DOCKER_ARCH=x86_64 \
&& tar zxvf docker.tgz \
&& rm -rf docker.tgz
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0-jammy
FROM mcr.microsoft.com/dotnet/runtime-deps:6.0
ENV DEBIAN_FRONTEND=noninteractive
ENV RUNNER_MANUALLY_TRAP_SIG=1
@@ -32,7 +31,6 @@ ENV ACTIONS_RUNNER_PRINT_LOG_TO_STDOUT=1
RUN apt-get update -y \
&& apt-get install -y --no-install-recommends \
sudo \
lsb-release \
&& rm -rf /var/lib/apt/lists/*
RUN adduser --disabled-password --gecos "" --uid 1001 runner \

View File

@@ -1,25 +1,18 @@
## Features
- Resolve Actions Directly From Launch for Run Service Jobs (#2529)
- Send annotations to run-service (#2574)
- Add `--no-default-labels` config option to self-hosted runners (#2443)
- Update container-hooks to 0.3.2 in runner docker image (#2618)
- Set runner environment in context and env (#2518)
- Switch runner image from Debian to Ubuntu 22.04 (#2651)
- Runner changes for communication with Results service (#2510, #2531, #2535, #2516)
- Add `*.ghe.localhost` domains to hosted server check (#2536)
- Add `OrchestrationId` to user-agent for better telemetry correlation. (#2568)
## Bugs
- Handle conflict errors from run service (#2570)
- Fix null guard bug (#2576)
- Trace WebSocket exception into verbose level to reduce noise in diag log (#2591)
- Ensure multiple composite annotations are correctly written (#2311)
- Adding Consistency to 'Failed To Resolve Action Download Info' Infrastructure Error Flagging (#2488)
- Filter out empty arguments in container hooks (#2633)
- Fix uses: docker://image:tag steps when container hook is used (#2626)
- Fix JIT configurations on Windows (#2497)
- Guard against NullReference while creating HostContext (#2343)
- Handles broken symlink in `Which` (#2150, #2196)
- Adding curl retry for external tool downloads (#2552, #2557)
- Limit the time we wait for waiting websocket to connect. (#2554)
## Misc
- Contribute.md: Fix link to style guidelines (#2560)
- Remove Temporary Serialization Shim (#2549)
- Move Using V2 Flow log to Trace (#2635)
- Add utf8 with bom (#2641)
- Bump container hooks version to 0.3.1 in runner image (#2496)
- Runner changes to communicate with vNext services (#2487, #2500, #2505, #2541, #2547)
_Note: Actions Runner follows a progressive release policy, so the latest release might not be available to your enterprise, organization, or repository yet.
To confirm which version of the Actions Runner you should expect, please view the download instructions for your enterprise, organization, or repository.

View File

@@ -1 +1 @@
2.305.0
<Update to ./src/runnerversion when creating release>

View File

@@ -141,7 +141,7 @@ namespace GitHub.Runner.Worker
foreach (var error in templateContext.Errors)
{
Trace.Error($"Action.yml load error: {error.Message}");
executionContext.Error(error.Message);
executionContext.Error("And let's duplicate errors: " + error.Message);
}
throw new ArgumentException($"Fail to load {fileRelativePath}");

View File

@@ -1401,7 +1401,7 @@ namespace GitHub.Runner.Worker
public void Error(string format, params Object[] args)
{
_executionContext.Error(string.Format(CultureInfo.CurrentCulture, format, args));
_executionContext.Error("error from template trace writer: " + string.Format(CultureInfo.CurrentCulture, format, args));
}
public void Info(string format, params Object[] args)

View File

@@ -287,7 +287,7 @@ namespace GitHub.DistributedTask.ObjectTemplating
{
if (!keys.Contains(property.Key))
{
m_context.Error(mapping, $"Required property is missing: {property.Key}");
m_context.Error(mapping, "Template evaluator error " + $"Required property is missing: {property.Key}");
}
}
}

View File

@@ -279,7 +279,7 @@ namespace GitHub.DistributedTask.ObjectTemplating
nonDuplicates.Sort();
String listToDeDuplicate = String.Join(", ", nonDuplicates);
m_context.Error(mapping, TemplateStrings.UnableToDetermineOneOf(listToDeDuplicate));
m_context.Error(mapping, "Template reader error: " + TemplateStrings.UnableToDetermineOneOf(listToDeDuplicate));
}
else if (mappingDefinitions.Count == 1 && !hasExpressionKey)
{
@@ -289,7 +289,7 @@ namespace GitHub.DistributedTask.ObjectTemplating
{
if (!keys.Contains(property.Key))
{
m_context.Error(mapping, $"Required property is missing: {property.Key}");
m_context.Error(mapping, "Template Reader error " + $"Required property is missing: {property.Key}");
}
}
}

View File

@@ -1 +1 @@
2.305.0
2.304.0