Compare commits

..

1 Commits

Author SHA1 Message Date
TingluoHuang
690d4f769b . 2023-06-06 12:16:10 -04:00
5 changed files with 29 additions and 31 deletions

View File

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

View File

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

@@ -1,16 +1,16 @@
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.IO; using System.IO;
using System.Threading; using System.Linq;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;
using System.Reflection; using System.Reflection;
using GitHub.DistributedTask.Pipelines.ObjectTemplating; using System.Threading;
using GitHub.DistributedTask.ObjectTemplating.Schema;
using GitHub.DistributedTask.ObjectTemplating; using GitHub.DistributedTask.ObjectTemplating;
using GitHub.DistributedTask.ObjectTemplating.Schema;
using GitHub.DistributedTask.ObjectTemplating.Tokens; using GitHub.DistributedTask.ObjectTemplating.Tokens;
using GitHub.DistributedTask.Pipelines.ContextData; using GitHub.DistributedTask.Pipelines.ContextData;
using System.Linq; using GitHub.DistributedTask.Pipelines.ObjectTemplating;
using GitHub.Runner.Common;
using GitHub.Runner.Sdk;
using Pipelines = GitHub.DistributedTask.Pipelines; using Pipelines = GitHub.DistributedTask.Pipelines;
namespace GitHub.Runner.Worker namespace GitHub.Runner.Worker
@@ -130,7 +130,7 @@ namespace GitHub.Runner.Worker
actionDefinition.Execution = ConvertRuns(executionContext, templateContext, actionRunValueToken, fileRelativePath, actionOutputs); actionDefinition.Execution = ConvertRuns(executionContext, templateContext, actionRunValueToken, fileRelativePath, actionOutputs);
} }
} }
catch (Exception ex) catch (Exception ex) when (!(ex is TemplateValidationException))
{ {
Trace.Error(ex); Trace.Error(ex);
templateContext.Errors.Add(ex); templateContext.Errors.Add(ex);
@@ -416,7 +416,14 @@ namespace GitHub.Runner.Worker
break; break;
case "steps": case "steps":
var stepsToken = run.Value.AssertSequence("steps"); var stepsToken = run.Value.AssertSequence("steps");
try
{
steps = PipelineTemplateConverter.ConvertToSteps(templateContext, stepsToken); steps = PipelineTemplateConverter.ConvertToSteps(templateContext, stepsToken);
}
catch (Exception ex) when (!(ex is TemplateValidationException))
{
templateContext.Errors.Add(ex);
}
templateContext.Errors.Check(); templateContext.Errors.Check();
break; break;
default: default:

View File

@@ -1 +1 @@
2.305.0 2.304.0