actions / actions/actions-runner-controller

Installing other packages over summerwind/actions-runner:latest not working

Open
#2,344 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

bug needs triage
Dominant language
Go
Stars
6.5k
Forks
1.5k
Avg merge
2d 2h
Merged PRs (30d)
27

Description

Checks
Controller Version

0.26

Helm Chart Version

3

CertManager Version

No response

Deployment Method

Other

cert-manager installation

used this to install runner without cert manager
https://josh-ops.com/posts/actions-runner-controller-without-cert-manager/

Checks
  • This isn't a question or user support case (For Q&A and community support, go to Discussions. It might also be a good idea to contract with any of contributors and maintainers if your business is so critical and therefore you need priority support
  • I've read releasenotes before submitting this issue and I'm sure it's not due to any recently-introduced backward-incompatible changes
  • My actions-runner-controller version (v0.x.y) does support the feature
  • I've already upgraded ARC (including the CRDs, see charts/actions-runner-controller/docs/UPGRADING.md for details) to the latest and it didn't fix the issue
  • I've migrated to the workflow job webhook event (if you using webhook driven scaling)
Resource Definitions
apiVersion: actions.summerwind.dev/v1alpha1
kind: RunnerDeployment
metadata:
  name: mobile-android-runner
  namespace: actions-runner-system
spec:
  replicas: 1
  template:
    spec:
      repository: vaidyakhil/lucifer
      image: vaidyakhil/react-native-android:latest
      containers:
        - name: runner
          env:
            - name: RUNNER_ALLOW_RUNASROOT
              value: "1"
            - name: AGENT_ALLOW_RUNASROOT
              value: "1"
        - name: docker
          env:
            - name: HTTP_PROXY
              value: "removed"
            - name: HTTPS_PROXY
              value: "removed"
            - name: NO_PROXY
              value: "removed"
          resources:
            limits:
              cpu: "1"
              memory: "3Gi"
            requests:
              cpu: "1"
              memory: "3Gi"
      labels:
         - mobile-runner  
-----------

apiVersion: actions.summerwind.dev/v1alpha1
kind: HorizontalRunnerAutoscaler
metadata:
  name: mobile-android-runner-autoscaler
  namespace: actions-runner-system
spec:
  scaleTargetRef:
    # Your RunnerDeployment Here
    name: mobile-android-runner
    kind: RunnerSet
  scheduledOverrides:
    # https://github.com/actions/actions-runner-controller/blob/master/docs/automatically-scaling-runners.md#scheduled-overrides
    # The earlier entry is prioritized higher than later entries
    # scale down to 0 replicas in off hours in weekdays and on weekends
    - startTime: "2023-02-25T00:00:00+05:30"
      endTime: "2023-02-27T00:00:00+05:30"
      recurrenceRule:
        frequency: Weekly
      minReplicas: 0
    - startTime: "2023-02-27T19:00:00+05:30"
      endTime: "2023-02-28T07:00:00+05:30"
      recurrenceRule:
        frequency: Daily
      minReplicas: 0
  minReplicas: 1
  maxReplicas: 12
  scaleUpTriggers:
    # https://github.com/actions/actions-runner-controller/blob/master/docs/automatically-scaling-runners.md#webhook-driven-scaling
    - githubEvent:
        workflowJob: {}
      duration: "30m"
------------
To Reproduce
Below is the workflow file 
- name: Tooling info
              run: |
                  java -version
                  node -v
                  yarn -v
                  ruby --version
                  sdkmanager --version
                  yarn config current
            - name: Install Gems
              run: |
                  bundle install
            - name: Git status
              run: |
                  git status
Describe the bug

we are not able to get the sdkmanager --version or bundle version but some of the packages are available like node and yarn

though we are able to see the version if we go inside kubernetes conatiner
but its failing when we are running via workflow
attached ss for both the usecase

Screenshot 2023-03-01 at 8 42 09 PM Screenshot 2023-03-01 at 8 42 50 PM
Describe the expected behavior

It should print the sdkmanager and bundle version like other packages
while running the workflow

Whole Controller Logs
2023-03-01T15:11:24Z	INFO	runnerreplicaset-resource	validate resource to be created	{"name": "mobile-android-runner-jrrpp"}
2023-03-01T15:11:24Z	DEBUG	controller-runtime.webhook.webhooks	wrote response	{"webhook": "/validate-actions-summerwind-dev-v1alpha1-runnerreplicaset", "code": 200, "reason": "", "UID": "38dce974-d2f8-446c-8256-9b662e8b8dac", "allowed": true}
2023-03-01T15:11:24Z	INFO	actions-runner-controller.runnerdeployment	Created runnerreplicaset	{"runnerdeployment": "actions-runner-system/mobile-android-runner", "runnerreplicaset": "mobile-android-runner-jrrpp"}
2023-03-01T15:11:24Z	DEBUG	actions-runner-controller.runnerreplicaset	Created replica(s)	{"runnerreplicaset": "actions-runner-system/mobile-android-runner-jrrpp", "lastSyncTime": null, "effectiveTime": "<nil>", "templateHashDesired": "648fbf6878", "replicasDesired": 1, "replicasPending": 0, "replicasRunning": 0, "replicasMaybeRunning": 0, "templateHashObserved": [], "created": 1}
2023-03-01T15:11:24Z	DEBUG	actions-runner-controller.runnerreplicaset	Skipped reconcilation because owner is not synced yet	{"runnerreplicaset": "actions-runner-system/mobile-android-runner-jrrpp", "owner": "actions-runner-system/mobile-android-runner-jrrpp-kgdcq", "pods": null}
2023-03-01T15:11:24Z	DEBUG	actions-runner-controller.runnerreplicaset	Skipped reconcilation because owner is not synced yet	{"runnerreplicaset": "actions-runner-system/mobile-android-runner-jrrpp", "owner": "actions-runner-system/mobile-android-runner-jrrpp-kgdcq", "pods": null}
2023-03-01T15:11:25Z	DEBUG	actions-runner-controller.runnerreplicaset	Skipped reconcilation because owner is not synced yet	{"runnerreplicaset": "actions-runner-system/mobile-android-runner-jrrpp", "owner": "actions-runner-system/mobile-android-runner-jrrpp-kgdcq", "pods": null}
2023-03-01T15:11:25Z	INFO	actions-runner-controller.runner	Updated registration token	{"runner": "mobile-android-runner-jrrpp-kgdcq", "repository": "Groww/lucifer"}
2023-03-01T15:11:25Z	DEBUG	events	Normal	{"object": {"kind":"Runner","namespace":"actions-runner-system","name":"mobile-android-runner-jrrpp-kgdcq","uid":"49a7566c-8da7-4658-bea5-42c1718f4c1d","apiVersion":"actions.summerwind.dev/v1alpha1","resourceVersion":"238642924"}, "reason": "RegistrationTokenUpdated", "message": "Successfully update registration token"}
2023-03-01T15:11:25Z	INFO	actions-runner-controller.runner	Created runner pod	{"runner": "actions-runner-system/mobile-android-runner-jrrpp-kgdcq", "repository": "Groww/lucifer"}
2023-03-01T15:11:25Z	DEBUG	events	Normal	{"object": {"kind":"Runner","namespace":"actions-runner-system","name":"mobile-android-runner-jrrpp-kgdcq","uid":"49a7566c-8da7-4658-bea5-42c1718f4c1d","apiVersion":"actions.summerwind.dev/v1alpha1","resourceVersion":"238642935"}, "reason": "PodCreated", "message": "Created pod 'mobile-android-runner-jrrpp-kgdcq'"}
2023-03-01T15:11:29Z	DEBUG	actions-runner-controller.runner	Runner appears to have been registered and running.	{"runner": "actions-runner-system/mobile-android-runner-jrrpp-kgdcq", "podCreationTimestamp": "2023-03-01 15:11:25 +0000 UTC"}
2023-03-01T15:11:55Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by TotalNumberOfQueuedAndInProgressWorkflowRuns	{"workflow_runs_completed": 0, "workflow_runs_in_progress": 0, "workflow_runs_queued": 0, "workflow_runs_unknown": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "runnerdeploy-github-manager", "horizontal_runner_autoscaler": "runner-deployment-github-manager-autoscaler"}
2023-03-01T15:11:55Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/runner-deployment-github-manager-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 3}
2023-03-01T15:11:55Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by PercentageRunnersBusy	{"replicas_desired_before": 1, "replicas_desired": 0, "num_runners": 1, "num_runners_registered": 1, "num_runners_busy": 0, "num_terminating_busy": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "groww-runnerdeploy", "horizontal_runner_autoscaler": "groww-runnerdeploy-autoscaler", "enterprise": "", "organization": "Groww", "repository": ""}
2023-03-01T15:11:55Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/groww-runnerdeploy-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 15}
2023-03-01T15:12:52Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by PercentageRunnersBusy	{"replicas_desired_before": 1, "replicas_desired": 0, "num_runners": 1, "num_runners_registered": 1, "num_runners_busy": 0, "num_terminating_busy": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "groww-runnerdeploy", "horizontal_runner_autoscaler": "groww-runnerdeploy-autoscaler", "enterprise": "", "organization": "Groww", "repository": ""}
2023-03-01T15:12:52Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/groww-runnerdeploy-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 15}
2023-03-01T15:12:53Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by TotalNumberOfQueuedAndInProgressWorkflowRuns	{"workflow_runs_completed": 0, "workflow_runs_in_progress": 0, "workflow_runs_queued": 0, "workflow_runs_unknown": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "runnerdeploy-github-manager", "horizontal_runner_autoscaler": "runner-deployment-github-manager-autoscaler"}
2023-03-01T15:12:53Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/runner-deployment-github-manager-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 3}
2023-03-01T15:13:50Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by PercentageRunnersBusy	{"replicas_desired_before": 1, "replicas_desired": 0, "num_runners": 1, "num_runners_registered": 1, "num_runners_busy": 0, "num_terminating_busy": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "groww-runnerdeploy", "horizontal_runner_autoscaler": "groww-runnerdeploy-autoscaler", "enterprise": "", "organization": "Groww", "repository": ""}
2023-03-01T15:13:50Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/groww-runnerdeploy-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 15}
2023-03-01T15:13:51Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Suggested desired replicas of 0 by TotalNumberOfQueuedAndInProgressWorkflowRuns	{"workflow_runs_completed": 0, "workflow_runs_in_progress": 0, "workflow_runs_queued": 0, "workflow_runs_unknown": 0, "namespace": "actions-runner-system", "kind": "runnerdeployment", "name": "runnerdeploy-github-manager", "horizontal_runner_autoscaler": "runner-deployment-github-manager-autoscaler"}
2023-03-01T15:13:51Z	DEBUG	actions-runner-controller.horizontalrunnerautoscaler	Calculated desired replicas of 1	{"horizontalrunnerautoscaler": "actions-runner-system/runner-deployment-github-manager-autoscaler", "suggested": 1, "reserved": 0, "min": 1, "max": 3}
Whole Runner Pod Logs
2023-03-01 15:11:29.694  NOTICE --- Runner init started with pid 7
2023-03-01 15:11:29.699  DEBUG --- Github endpoint URL https://github.com/
2023-03-01 15:11:30.676  DEBUG --- Passing --ephemeral to config.sh to enable the ephemeral runner.
2023-03-01 15:11:30.681  DEBUG --- Configuring the runner.

--------------------------------------------------------------------------------
|        ____ _ _   _   _       _          _        _   _                      |
|       / ___(_) |_| | | |_   _| |__      / \   ___| |_(_) ___  _ __  ___      |
|      | |  _| | __| |_| | | | | '_ \    / _ \ / __| __| |/ _ \| '_ \/ __|     |
|      | |_| | | |_|  _  | |_| | |_) |  / ___ \ (__| |_| | (_) | | | \__ \     |
|       \____|_|\__|_| |_|\__,_|_.__/  /_/   \_\___|\__|_|\___/|_| |_|___/     |
|                                                                              |
|                       Self-hosted runner registration                        |
|                                                                              |
--------------------------------------------------------------------------------

# Authentication


√ Connected to GitHub

# Runner Registration




√ Runner successfully added
√ Runner connection is good

# Runner settings


√ Settings Saved.

2023-03-01 15:11:37.458  DEBUG --- Runner successfully configured.
{
  "agentId": 103,
  "agentName": "mobile-android-runner-jrrpp-kgdcq",
  "poolId": 1,
  "poolName": "Default",
  "ephemeral": true,
  "serverUrl": "https://pipelines.actions.githubusercontent.com/Jr241uS4zHHQorWq40zRR3F5oaUJgVtkiWu6BCzhv9Gk4b4Bic",
  "gitHubUrl": "https://github.com/Groww/lucifer",
  "workFolder": "/runner/_work"
2023-03-01 15:11:37.465  DEBUG --- Docker enabled runner detected and Docker daemon wait is enabled
2023-03-01 15:11:37.467  DEBUG --- Waiting until Docker is available or the timeout of 120 seconds is reached
unable to resolve docker endpoint: open /certs/client/ca.pem: no such file or directory
}CONTAINER ID   IMAGE     COMMAND   CREATED   STATUS    PORTS     NAMES
2023-03-01 15:11:41.587  NOTICE --- WARNING LATEST TAG HAS BEEN DEPRECATED. SEE GITHUB ISSUE FOR DETAILS:
2023-03-01 15:11:41.589  NOTICE --- https://github.com/actions/actions-runner-controller/issues/2056

√ Connected to GitHub

Current runner version: '2.301.1'
2023-03-01 15:11:44Z: Listening for Jobs
Additional Context

No response

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the RunnerDeployment YAML and workflow commands in the issue, then reproduce the runner using the custom image vaidyakhil/react-native-android:latest. Compare the environment available in the Kubernetes container with the workflow execution context. Done means sdkmanager and Bundler report versions successfully during the workflow, with the cause and required project change identified.

Written by the indexing model from the issue text.

Assessment

Tech stack
docker, helm, kubernetes
Domain
ci-cd, devops, infrastructure
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.