Unverified Commit 25454f52 authored by Daz DeBoer's avatar Daz DeBoer Committed by GitHub
Browse files

Avoid windows shutdown bug (#900)

* Avoid windows shutdown bug with shutdown delay
* Use a separate concurrency group for integ-test-full
parent 2cab5e3c
Loading
Loading
Loading
Loading
+2 −2
Changes for .github/workflows/ci-integ-test-full.yml: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -17,7 +17,7 @@ jobs:
  caching-integ-tests:
    uses: ./.github/workflows/suite-integ-test-caching.yml
    concurrency:
      group: CI-integ-test
      group: CI-integ-test-full
      cancel-in-progress: false
    with:
      runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
@@ -29,7 +29,7 @@ jobs:
      contents: write
    uses: ./.github/workflows/suite-integ-test-other.yml
    concurrency:
      group: CI-integ-test
      group: CI-integ-test-full
      cancel-in-progress: false
    with:
      runner-os: '["ubuntu-latest", "windows-latest", "macos-latest"]'
+2 −1
Changes for sources/src/actions/dependency-submission/main.ts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@ import {
} from '../../configuration'
import {saveDeprecationState} from '../../deprecation-collector'
import {handleMainActionError} from '../../errors'
import {forceExit} from '../../force-exit'

/**
 * The main entry point for the action, called by Github Actions for the step.
@@ -67,7 +68,7 @@ export async function run(): Promise<void> {
    }

    // Explicit process.exit() to prevent waiting for hanging promises.
    process.exit()
    await forceExit()
}

run()
+2 −1
Changes for sources/src/actions/dependency-submission/post.ts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@ import * as setupGradle from '../../setup-gradle'

import {CacheConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {forceExit} from '../../force-exit'

// Catch and log any unhandled exceptions.  These exceptions can leak out of the uploadChunk method in
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
@@ -19,7 +20,7 @@ export async function run(): Promise<void> {
    }

    // Explicit process.exit() to prevent waiting for promises left hanging by `@actions/cache` on save.
    process.exit()
    await forceExit()
}

run()
+2 −1
Changes for sources/src/actions/setup-gradle/main.ts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -12,6 +12,7 @@ import {
} from '../../configuration'
import {failOnUseOfRemovedFeature, saveDeprecationState} from '../../deprecation-collector'
import {handleMainActionError} from '../../errors'
import {forceExit} from '../../force-exit'

/**
 * The main entry point for the action, called by Github Actions for the step.
@@ -42,7 +43,7 @@ export async function run(): Promise<void> {
    }

    // Explicit process.exit() to prevent waiting for hanging promises.
    process.exit()
    await forceExit()
}

run()
+2 −1
Changes for sources/src/actions/setup-gradle/post.ts: 2 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -4,6 +4,7 @@ import * as dependencyGraph from '../../dependency-graph'
import {CacheConfig, DependencyGraphConfig, SummaryConfig} from '../../configuration'
import {handlePostActionError} from '../../errors'
import {emitDeprecationWarnings, restoreDeprecationState} from '../../deprecation-collector'
import {forceExit} from '../../force-exit'

// Catch and log any unhandled exceptions.  These exceptions can leak out of the uploadChunk method in
// @actions/toolkit when a failed upload closes the file descriptor causing any in-process reads to
@@ -27,7 +28,7 @@ export async function run(): Promise<void> {
    }

    // Explicit process.exit() to prevent waiting for promises left hanging by `@actions/cache` on save.
    process.exit()
    await forceExit()
}

run()
Loading