Merge pull request #113 from useblacksmith/newlogs

src: more debug logs
This commit is contained in:
Aditya Maru 2025-05-14 14:06:06 -04:00 committed by GitHub
commit f0d8aee790
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 5 additions and 12 deletions

2
dist/index.js generated vendored

File diff suppressed because one or more lines are too long

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View File

@ -114,15 +114,7 @@ export async function startBuildkitd(parallelism: number, addr: string, setupOnl
const logStream = fs.createWriteStream('/tmp/buildkitd.log', {flags: 'a'});
let buildkitd: ChildProcess;
if (!setupOnly) {
buildkitd = spawn('sudo', [
'buildkitd',
'--debug',
'--config=buildkitd.toml',
'--allow-insecure-entitlement',
'security.insecure',
'--allow-insecure-entitlement',
'network.host'
], {
buildkitd = spawn('sudo', ['buildkitd', '--debug', '--config=buildkitd.toml', '--allow-insecure-entitlement', 'security.insecure', '--allow-insecure-entitlement', 'network.host'], {
stdio: ['ignore', 'pipe', 'pipe']
});
} else {
@ -174,12 +166,13 @@ export async function startBuildkitd(parallelism: number, addr: string, setupOnl
export async function getStickyDisk(options?: {signal?: AbortSignal}): Promise<{expose_id: string; device: string}> {
const client = await reporter.createBlacksmithAgentClient();
core.info(`Created Blacksmith agent client`);
const stickyDiskKey = process.env.GITHUB_REPO_NAME || '';
if (stickyDiskKey === '') {
throw new Error('GITHUB_REPO_NAME is not set');
}
core.debug(`Getting sticky disk for ${stickyDiskKey}`);
core.info(`Getting sticky disk for ${stickyDiskKey}`);
const response = await client.getStickyDisk(
{