diff --git a/.github/workflows/__cleanup-db-cluster-dir.yml b/.github/workflows/__cleanup-db-cluster-dir.yml index 3383f4d43..063e38d6b 100644 --- a/.github/workflows/__cleanup-db-cluster-dir.yml +++ b/.github/workflows/__cleanup-db-cluster-dir.yml @@ -54,7 +54,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' - setup-kotlin: 'true' + setup-kotlin: 'false' - name: Add a file to the database cluster directory run: | mkdir -p "${{ runner.temp }}/customDbLocation/javascript" diff --git a/.github/workflows/__config-input.yml b/.github/workflows/__config-input.yml index a6f2d2bcb..f42672352 100644 --- a/.github/workflows/__config-input.yml +++ b/.github/workflows/__config-input.yml @@ -61,7 +61,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' - setup-kotlin: 'true' + setup-kotlin: 'false' - name: Copy queries into workspace run: | cp -a ../action/queries . diff --git a/.github/workflows/__language-aliases.yml b/.github/workflows/__language-aliases.yml index 92c130dfa..7f8b2adf7 100644 --- a/.github/workflows/__language-aliases.yml +++ b/.github/workflows/__language-aliases.yml @@ -54,7 +54,7 @@ jobs: with: version: ${{ matrix.version }} use-all-platform-bundle: 'false' - setup-kotlin: 'true' + setup-kotlin: 'false' - uses: ./../action/init with: languages: C#,java-kotlin,swift,typescript diff --git a/pr-checks/sync.py b/pr-checks/sync.py index a8ccf817a..a0e25aef3 100755 --- a/pr-checks/sync.py +++ b/pr-checks/sync.py @@ -98,6 +98,12 @@ for file in sorted((this_dir / 'checks').glob('*.yml')): if checkSpecification.get('useAllPlatformBundle'): useAllPlatformBundle = checkSpecification['useAllPlatformBundle'] + # Store the runner size for use in prepare-test step + # This is determined once per check specification + finalRunnerSize = checkSpecification.get('runnerSize', 'default') + if finalRunnerSize == 'default': + finalRunnerSize = 'latest' + if 'analysisKinds' in checkSpecification: newMatrix = [] @@ -142,9 +148,10 @@ for file in sorted((this_dir / 'checks').glob('*.yml')): 'with': { 'version': '${{ matrix.version }}', 'use-all-platform-bundle': useAllPlatformBundle, - # If the action is being run from a container, then do not setup kotlin. - # This is because the kotlin binaries cannot be downloaded from the container. - 'setup-kotlin': str(not 'container' in checkSpecification).lower(), + # If the action is being run from a container or on a slim runner, then do not setup kotlin. + # Containers: kotlin binaries cannot be downloaded from the container. + # Slim runners: limited resources may cause issues with Kotlin setup. + 'setup-kotlin': str(not 'container' in checkSpecification and finalRunnerSize != 'slim').lower(), } })