fixes
parent
8ac04dfbcb
commit
a3442e1f45
|
|
@ -988,6 +988,7 @@ const local_1 = __importDefault(__nccwpck_require__(66575));
|
||||||
const docker_1 = __importDefault(__nccwpck_require__(42802));
|
const docker_1 = __importDefault(__nccwpck_require__(42802));
|
||||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||||
const shared_workspace_locking_1 = __importDefault(__nccwpck_require__(87562));
|
const shared_workspace_locking_1 = __importDefault(__nccwpck_require__(87562));
|
||||||
|
const follow_log_stream_service_1 = __nccwpck_require__(64121);
|
||||||
class CloudRunner {
|
class CloudRunner {
|
||||||
static get isCloudRunnerEnvironment() {
|
static get isCloudRunnerEnvironment() {
|
||||||
return process.env[`GITHUB_ACTIONS`] !== `true`;
|
return process.env[`GITHUB_ACTIONS`] !== `true`;
|
||||||
|
|
@ -1018,6 +1019,7 @@ class CloudRunner {
|
||||||
}
|
}
|
||||||
core.setOutput(__1.Input.ToEnvVarFormat(`buildArtifact`), `build-${CloudRunner.buildParameters.buildGuid}.tar${CloudRunner.buildParameters.useCompressionStrategy ? '.lz4' : ''}`);
|
core.setOutput(__1.Input.ToEnvVarFormat(`buildArtifact`), `build-${CloudRunner.buildParameters.buildGuid}.tar${CloudRunner.buildParameters.useCompressionStrategy ? '.lz4' : ''}`);
|
||||||
}
|
}
|
||||||
|
follow_log_stream_service_1.FollowLogStreamService.Reset();
|
||||||
}
|
}
|
||||||
static setupSelectedBuildPlatform() {
|
static setupSelectedBuildPlatform() {
|
||||||
cloud_runner_logger_1.default.log(`Cloud Runner platform selected ${CloudRunner.buildParameters.providerStrategy}`);
|
cloud_runner_logger_1.default.log(`Cloud Runner platform selected ${CloudRunner.buildParameters.providerStrategy}`);
|
||||||
|
|
@ -5066,6 +5068,9 @@ const cloud_runner_1 = __importDefault(__nccwpck_require__(79144));
|
||||||
const cloud_runner_statics_1 = __nccwpck_require__(90828);
|
const cloud_runner_statics_1 = __nccwpck_require__(90828);
|
||||||
const github_1 = __importDefault(__nccwpck_require__(83654));
|
const github_1 = __importDefault(__nccwpck_require__(83654));
|
||||||
class FollowLogStreamService {
|
class FollowLogStreamService {
|
||||||
|
static Reset() {
|
||||||
|
FollowLogStreamService.DidReceiveEndOfTransmission = false;
|
||||||
|
}
|
||||||
static handleIteration(message, shouldReadLogs, shouldCleanup, output) {
|
static handleIteration(message, shouldReadLogs, shouldCleanup, output) {
|
||||||
if (message.includes(`---${cloud_runner_1.default.buildParameters.logId}`)) {
|
if (message.includes(`---${cloud_runner_1.default.buildParameters.logId}`)) {
|
||||||
cloud_runner_logger_1.default.log('End of log transmission received');
|
cloud_runner_logger_1.default.log('End of log transmission received');
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -15,6 +15,7 @@ import LocalCloudRunner from './providers/local';
|
||||||
import LocalDockerCloudRunner from './providers/docker';
|
import LocalDockerCloudRunner from './providers/docker';
|
||||||
import GitHub from '../github';
|
import GitHub from '../github';
|
||||||
import SharedWorkspaceLocking from './services/shared-workspace-locking';
|
import SharedWorkspaceLocking from './services/shared-workspace-locking';
|
||||||
|
import { FollowLogStreamService } from './services/follow-log-stream-service';
|
||||||
|
|
||||||
class CloudRunner {
|
class CloudRunner {
|
||||||
public static Provider: ProviderInterface;
|
public static Provider: ProviderInterface;
|
||||||
|
|
@ -57,6 +58,7 @@ class CloudRunner {
|
||||||
}`,
|
}`,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
FollowLogStreamService.Reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
private static setupSelectedBuildPlatform() {
|
private static setupSelectedBuildPlatform() {
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,9 @@ import { CloudRunnerStatics } from '../cloud-runner-statics';
|
||||||
import GitHub from '../../github';
|
import GitHub from '../../github';
|
||||||
|
|
||||||
export class FollowLogStreamService {
|
export class FollowLogStreamService {
|
||||||
|
static Reset() {
|
||||||
|
FollowLogStreamService.DidReceiveEndOfTransmission = false;
|
||||||
|
}
|
||||||
static errors = ``;
|
static errors = ``;
|
||||||
public static DidReceiveEndOfTransmission = false;
|
public static DidReceiveEndOfTransmission = false;
|
||||||
public static handleIteration(message: string, shouldReadLogs: boolean, shouldCleanup: boolean, output: string) {
|
public static handleIteration(message: string, shouldReadLogs: boolean, shouldCleanup: boolean, output: string) {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue