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

Github actions: macOS not running on Github hosted runner #10099

Closed
6 of 14 tasks
m-chirodea opened this issue Jun 20, 2024 · 10 comments
Closed
6 of 14 tasks

Github actions: macOS not running on Github hosted runner #10099

m-chirodea opened this issue Jun 20, 2024 · 10 comments

Comments

@m-chirodea
Copy link

Description

Hello!

Since 11:00 AM (GMT+3) We are experiencing issues with any macOS image when running on github hosted runners. The action hangs on Waiting for a runner to pick up this job...

Switching to ubuntu works instantly so it seems that only macOS runners are affected.

i'll leave an example workflow that we use for macOS.

`name: Deploy
on:
push:
branches:
- staging
workflow_dispatch:

jobs:
upload_to_appcenter:
runs-on: macos-latest

steps:
  - name: Checkout repository
    uses: actions/checkout@v4
    
  - name: Install the Apple certificate and provisioning profile
    env:
      BUILD_CERTIFICATE_BASE64: ${{ secrets.APPSTORE_BUILD_CERTIFICATE_BASE64 }}
      P12_PASSWORD: ${{ secrets.APPSTORE_BUILD_CERTIFICATE_P12_PASSWORD }}
      BUILD_PROVISION_PROFILE_BASE64: ${{ secrets.APPSTORE_BUILD_PROVISION_PROFILE_BASE64 }}
      KEYCHAIN_PASSWORD: ${{ secrets.APPSTORE_KEYCHAIN_PASSWORD }}
    run: |
      # create variables
      CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12
      PP_PATH=$RUNNER_TEMP/build_pp.mobileprovision
      KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db
      # import certificate and provisioning profile from secrets
      echo -n "$BUILD_CERTIFICATE_BASE64" | base64 --decode -o $CERTIFICATE_PATH
      echo -n "$BUILD_PROVISION_PROFILE_BASE64" | base64 --decode -o $PP_PATH
      # create temporary keychain
      security create-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
      security set-keychain-settings -lut 21600 $KEYCHAIN_PATH
      security unlock-keychain -p "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
      # import certificate to keychain
      security import $CERTIFICATE_PATH -P "$P12_PASSWORD" -A -t cert -f pkcs12 -k $KEYCHAIN_PATH
      security set-key-partition-list -S apple-tool:,apple: -k "$KEYCHAIN_PASSWORD" $KEYCHAIN_PATH
      security list-keychain -d user -s $KEYCHAIN_PATH
      # apply provisioning profile
      mkdir -p ~/Library/MobileDevice/Provisioning\ Profiles
      cp $PP_PATH ~/Library/MobileDevice/Provisioning\ Profiles
      
  - name: Set up Node.js
    uses: actions/setup-node@v3
    with:
      node-version: 18

  - name: Install dependencies
    run: npm install

Platforms affected

  • Azure DevOps
  • GitHub Actions - Standard Runners
  • GitHub Actions - Larger Runners

Runner images affected

  • Ubuntu 20.04
  • Ubuntu 22.04
  • Ubuntu 24.04
  • macOS 11
  • macOS 12
  • macOS 13
  • macOS 13 Arm64
  • macOS 14
  • macOS 14 Arm64
  • Windows Server 2019
  • Windows Server 2022

Image version and build link

macos-latest

Is it regression?

no

Expected behavior

The workflow run to start

Actual behavior

The workflow run hangs on Waiting for a runner to pick up this job...

Repro steps

  1. Take the example provided
  2. Create a workflow with it
  3. Run the workflow
  4. The workflow is stuck on Waiting for a runner to pick up this job...
@erik-bershel
Copy link
Contributor

Hey @m-chirodea!

Tried this:

name: Casual test
on:
  workflow_dispatch:

jobs:
  test:
    strategy:
      matrix:
        os: [ macos-12, macos-13, macos-14 ]
    runs-on: ${{ matrix.os }}
    steps:
    - name: Print
      run: |
        echo "!"

All green:
Screenshot 2024-06-20 at 11 36 33

Are you sure it is service related?

@erik-bershel
Copy link
Contributor

@m-chirodea please, provide links for the runs in hanging state.

@m-chirodea
Copy link
Author

Hi! Thank you for answering. Unfortunately I don't think I can share the links for the hanging run state, I can however provide an image.

image

And to answer the first question. I'll try with the example that you provided and see if I get any success

@m-chirodea
Copy link
Author

As a small update.

Seems to be doing the same.

image

@erik-bershel
Copy link
Contributor

@m-chirodea please contact GitHub Support. It's not related to the images itself. I'll keep this issue for some time in case it's a massive outage.

@m-chirodea
Copy link
Author

Update. last night the pipeline magically worked again. Not sure what the cause was, but no changes to the pipeline were done.

@Andrey1994
Copy link

We see the same, no jobs started. It was macos 11 which is removed now, I am switching to 12 in this PR brainflow-dev/brainflow#732 and none of the macos jobs are picked by runners

@robertsLando
Copy link

@erik-bershel
Copy link
Contributor

Hey @robertsLando!

There is no YAML label like macos-13.0, please update your workflow.

@robertsLando
Copy link

@erik-bershel Oh you are right! I was using macos-11.0 before and I saw this behaviour so I found out it was removed and I bumped to 13 without checking the correct tag, thanks! 🙏🏼

muzimuzhi added a commit to muzimuzhi/actionlint that referenced this issue Sep 26, 2024
muzimuzhi added a commit to muzimuzhi/actionlint that referenced this issue Sep 27, 2024
Although it's said `macos-11.0` is not deprecated until Dec 3, 2024 [1],
users already experienced its deprecation in Aug, 2024, see actions/runner-images#10099 (comment).

[1] https://github.blog/changelog/2024-08-19-notice-of-upcoming-deprecations-and-breaking-changes-in-github-actions-runners/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants