Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Post Setup JDK 17 takes very long time on local runner #683

Open
3 tasks
MartynasObdeleven opened this issue Sep 11, 2024 · 4 comments
Open
3 tasks

Post Setup JDK 17 takes very long time on local runner #683

MartynasObdeleven opened this issue Sep 11, 2024 · 4 comments
Assignees
Labels
bug Something isn't working

Comments

@MartynasObdeleven
Copy link

Description:
I have a build script that is run on each PR. It launches appium test suite, which takes approximately 4 minutes to complete,
but after that Post Setup JDK 17 takes more than 10 minutes which is strange, since we're using m1 mac studio.
Job looks like:

name: Appium Tests

on:
  push:
    branches:
      - "develop"
  pull_request:
    branches:
      - "main"
      - "develop"

jobs:
  appium-tests:
    runs-on: [self-hosted, macOS, ARM64]

    steps:
      - uses: actions/[email protected]

      - name: Set up JDK 17
        uses: actions/[email protected]
        with:
          java-version: '17'
          distribution: 'zulu'
          cache: gradle

      - name: Grant execute permission for gradlew
        run: chmod +x gradlew

      - name: Appium Tests (E2E)
        run: |
          chmod +x run_offline_appium_tests.sh
          ./run_offline_appium_tests.sh
        working-directory: scripts

Here's timeline:
image

Task version:
4.3.0

Platform:

  • Ubuntu
  • [x ] macOS
  • Windows

Runner type:

  • Hosted
  • [ x] Self-hosted

Expected behavior:
Post Setup takes no more than minute.

Actual behavior:
Post Setup takes 10+ minutes.

@MartynasObdeleven MartynasObdeleven added bug Something isn't working needs triage labels Sep 11, 2024
@aparnajyothi-y
Copy link
Contributor

Hello @MartynasObdeleven, Thank you for creating this issue and we will look into it :)

@choppeh
Copy link

choppeh commented Sep 16, 2024

v3 is also very slow with JDK 17. Is the cache size Ok?

@choppeh
Copy link

choppeh commented Sep 16, 2024

I removed cache: gradle and the step was quickly completed

@MartynasObdeleven
Copy link
Author

I had setup java on local machine so it runs fine with:

name: Appium Tests

on:
  push:
    branches:
      - "develop"
  pull_request:
    branches:
      - "main"
      - "develop"

jobs:
  appium-tests:
    runs-on: [self-hosted, macOS, ARM64]

    steps:
      - uses: actions/[email protected]

      - name: Grant execute permission for gradlew
        run: chmod +x gradlew

      - name: Appium Tests (E2E)
        run: |
          chmod +x run_offline_appium_tests.sh
          ./run_offline_appium_tests.sh
        working-directory: scripts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants