mirror of
https://github.com/docker/build-push-action.git
synced 2025-05-06 21:49:33 +02:00
src: stop spurious warnings on buildkit shutdown
This commit is contained in:
parent
31dd0ccbdd
commit
4723a2a346
4 changed files with 13 additions and 13 deletions
14
dist/index.js
generated
vendored
14
dist/index.js
generated
vendored
File diff suppressed because one or more lines are too long
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
|
@ -315,7 +315,7 @@ actionsToolkit.run(
|
|||
});
|
||||
}
|
||||
try {
|
||||
const {stdout} = await execAsync('pgrep -f buildkitd');
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
if (stdout.trim()) {
|
||||
await shutdownBuildkitd();
|
||||
core.info('Shutdown buildkitd');
|
||||
|
@ -490,8 +490,8 @@ export async function shutdownBuildkitd(): Promise<void> {
|
|||
// Wait for buildkitd to shutdown with backoff retry
|
||||
while (Date.now() - startTime < timeout) {
|
||||
try {
|
||||
await execAsync('pgrep -f buildkitd');
|
||||
// Process still exists, wait and retry
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
core.debug(`buildkitd process still running with PID: ${stdout.trim()}`);
|
||||
await new Promise(resolve => setTimeout(resolve, backoff));
|
||||
} catch (error) {
|
||||
if (error.code === 1) {
|
||||
|
|
|
@ -138,9 +138,9 @@ async function startBuildkitd(parallelism: number, device: string): Promise<stri
|
|||
|
||||
while (Date.now() - startTime < timeout) {
|
||||
try {
|
||||
const {stdout} = await execAsync('pgrep -f buildkitd');
|
||||
const {stdout} = await execAsync('pgrep buildkitd');
|
||||
if (stdout.trim()) {
|
||||
core.debug('buildkitd daemon started successfully');
|
||||
core.info(`buildkitd daemon started successfully with PID ${stdout.trim()}`);
|
||||
return addr;
|
||||
}
|
||||
} catch (error) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue