check for startup message in workflows
parent
0b9a28f405
commit
7d49733417
|
@ -4312,7 +4312,6 @@ const github_1 = __importDefault(__nccwpck_require__(83654));
|
|||
const build_parameters_1 = __importDefault(__nccwpck_require__(80787));
|
||||
class RemoteClient {
|
||||
static async runRemoteClientJob() {
|
||||
node_console_1.assert((await cloud_runner_system_1.CloudRunnerSystem.Run(`cat /var/log/syslog`, false, true)).includes(`cloud runner build workflow starting`), 'System logs must include startup message');
|
||||
cloud_runner_logger_1.default.log(`bootstrap game ci cloud runner...`);
|
||||
if (!(await RemoteClient.handleRetainedWorkspace())) {
|
||||
await RemoteClient.bootstrapRepository();
|
||||
|
@ -5658,7 +5657,7 @@ class BuildAutomationWorkflow {
|
|||
const builderPath = cloud_runner_folders_1.CloudRunnerFolders.ToLinuxFolder(node_path_1.default.join(cloud_runner_folders_1.CloudRunnerFolders.builderPathAbsolute, 'dist', `index.js`));
|
||||
return `echo "cloud runner build workflow starting"
|
||||
apt-get update > /dev/null
|
||||
apt-get install -y curl tar tree npm git-lfs jq git rsyslog > /dev/null
|
||||
apt-get install -y curl tar tree npm git-lfs jq git > /dev/null
|
||||
npm i -g n > /dev/null
|
||||
n 16.15.1 > /dev/null
|
||||
npm --version
|
||||
|
|
File diff suppressed because one or more lines are too long
|
@ -16,13 +16,6 @@ import BuildParameters from '../../build-parameters';
|
|||
export class RemoteClient {
|
||||
@CliFunction(`remote-cli-pre-build`, `sets up a repository, usually before a game-ci build`)
|
||||
static async runRemoteClientJob() {
|
||||
assert(
|
||||
(await CloudRunnerSystem.Run(`cat /var/log/syslog`, false, true)).includes(
|
||||
`cloud runner build workflow starting`,
|
||||
),
|
||||
'System logs must include startup message',
|
||||
);
|
||||
|
||||
CloudRunnerLogger.log(`bootstrap game ci cloud runner...`);
|
||||
if (!(await RemoteClient.handleRetainedWorkspace())) {
|
||||
await RemoteClient.bootstrapRepository();
|
||||
|
|
|
@ -60,7 +60,7 @@ export class BuildAutomationWorkflow implements WorkflowInterface {
|
|||
|
||||
return `echo "cloud runner build workflow starting"
|
||||
apt-get update > /dev/null
|
||||
apt-get install -y curl tar tree npm git-lfs jq git rsyslog > /dev/null
|
||||
apt-get install -y curl tar tree npm git-lfs jq git > /dev/null
|
||||
npm i -g n > /dev/null
|
||||
n 16.15.1 > /dev/null
|
||||
npm --version
|
||||
|
|
Loading…
Reference in New Issue