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

gha-runner-scale-set-controller #2508

Merged

Conversation

developer-guy
Copy link
Contributor

@developer-guy developer-guy commented Apr 15, 2024

New Image Pull Request Template

Image Size

  • The Image is smaller in size than its common public counterpart.
  • The Image is larger in size than its common public counterpart (please explain in the notes).

Notes: From 194MB to 153MB

Image Vulnerabilities

  • The Grype vulnerability scan returned 0 CVE(s).
  • The Grype vulnerability scan returned > 0 CVE(s) (please explain in the notes).

Notes:

Image Tagging

  • The image is not tagged with version tags.
  • The image is tagged with :latest
  • The image is not tagged with :latest (please explain in the notes).

Notes:

Basic Testing - K8s cluster

  • The container image was successfully loaded into a kind cluster.
  • The container image could not be loaded into a kind cluster (please explain in the notes).

Notes:

Basic Testing - Package/Application

  • The application is accessible to the user/cluster/etc. after start-up.
  • The application is not accessible to the user/cluster/etc. after start-up. (please explain in the notes).

Notes:

Helm

  • A Helm chart has been provided and the container image can be used with the chart. If needed, please add a -compat package to close any gaps with the public helm chart.
  • A Helm chart has been provided and the container image is not working with the chart (please explain in the notes).
  • A Helm chart was not provided.

Notes:

Processor Architectures

  • The image was built and tested for x86_64.
  • The image could not be built for x86_64 (please explain in the notes).
  • The image was built and tested for aarch64.
  • The image could not be built for aarch64. (please explain in the notes).

Notes:

Functional Testing + Documentation

  • Functional tests have been included and the tests are passing. All tests have been documnted in the notes section.

Notes: To be able to do the functional tests we need GITHUB_PAT, since this is not a thing that we can automate on CI atm

Environment Testing + Documentation

  • There has not been a request and/or there is no indication that this image needs tested on a public cloud provider.
  • The container image has been tested successfully on a public cloud provider (AWS, GCP, Azure).
  • The container image has not been tested successfully on a public cloud provider (AWS, GCP, Azure) (please explain in the notes).

Notes:

Version

  • The package version is the latest version of the package. The latest tag points to this version.
  • The package version is the not the latest version of the package (please explain in the notes).

Notes:

Dev Tag Availability

  • There is a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base')
  • There is not a dev tag available that includes a shell and apk tools (by depending on 'wolfi-base') (please explain in the notes).

Notes:

Access Control + Authentication

  • The image runs as nonroot and GID/UID are set to 65532 or upstream default
  • Alternatively the username and GID/UID may be a commonly used one from the ecosystem e.g: postgres
  • The image requires a non-standard username or non-standard GID/UID (please explain in the notes).

ENTRYPOINT

  • applications/servers/utilities set to call main program with no arguments e.g. [redis-server]
  • applications/servers/utilities not set to call main program with no arguments e.g. [redis-server] (please explain in the notes)
  • base images leave empty.
  • base image and not empty (please explain in the notes).
  • dev variants is set to entrypoint script that falls back to system.
  • dev variants is not set to entrypoint script that falls back to system (please explain in the notes).

CMD

  • For server applications give arguments to start in daemon mode (may be empty)
  • For utilities/tooling bring up help e.g. –help
  • For base images with a shell, call it e.g. [/bin/sh]

Environment Variables

  • Environment variables added.
  • Environment variables not added and not required.

SIGTERM

  • The image responds to SIGTERM (e.g., docker kill $(docker run -d --rm cgr.dev/chainguard/nginx))

Logs

  • Error logs write to stderr and normal logs to stdout. Logs DO NOT write to file.

Documentation - README

  • A README file has been provided and it follows the README template.

@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch 2 times, most recently from ddc86b3 to d8f71f6 Compare April 15, 2024 21:52
@some-natalie
Copy link

https://github.com/actions/actions-runner-controller/tree/master/docs/gha-runner-scale-set-controller may help us - it's the architecture diagram for actions-runner-controller

@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch 2 times, most recently from 912d186 to 839cb59 Compare April 17, 2024 14:52
@developer-guy
Copy link
Contributor Author

thanks to @Dentrax, we created a TESTING.md file to outline the process of testing the controller.

@developer-guy
Copy link
Contributor Author

but we should merge this PR: wolfi-dev/os#17025

@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch from 839cb59 to 22e8515 Compare April 17, 2024 15:05
@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch 5 times, most recently from dcdef0e to e4c687d Compare April 18, 2024 07:15
@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch from e4c687d to ec0853c Compare April 18, 2024 07:20
@developer-guy developer-guy marked this pull request as draft April 18, 2024 12:47
@developer-guy
Copy link
Contributor Author

The error showed up again so strange 🤔

arc-gha-rs-controller-799744b4c7-c4s2t manager 2024-04-18T12:46:18Z INFO AutoscalingRunnerSet Autoscaling runner set version doesn't match the build version. Deleting the resource. {"autoscalingrunnerset": {"name":"arc-runner-set","namespace":"arc-runners"}, "targetVersion": "NA", "actualVersion": "0.9.1"}

@developer-guy
Copy link
Contributor Author

this shouldn't be happening because we already fixed the issue by correcting the build time inject variables, howwwww

@developer-guy developer-guy marked this pull request as ready for review April 18, 2024 16:42
@developer-guy
Copy link
Contributor Author

bump the epoch for the package and everything worked again:

@developer-guy
Copy link
Contributor Author

Screenshot 2024-04-18 at 19 43 12

@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch from ec0853c to 49adfc6 Compare April 18, 2024 18:21
@developer-guy developer-guy requested a review from mamccorm April 18, 2024 18:21
@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch from 49adfc6 to 006dad5 Compare April 18, 2024 18:50
@jamonation jamonation force-pushed the gha-runner-scale-set-controller branch from 006dad5 to 68de2f2 Compare April 18, 2024 18:55
Signed-off-by: Batuhan Apaydin <[email protected]>
Co-authored-by: Furkan Turkal <[email protected]>
Signed-off-by: Batuhan Apaydin <[email protected]>
@developer-guy developer-guy force-pushed the gha-runner-scale-set-controller branch from 68de2f2 to 611ace0 Compare April 18, 2024 18:56
@mamccorm mamccorm enabled auto-merge (squash) April 18, 2024 19:24
Copy link

@some-natalie some-natalie left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:shipit:

@mamccorm mamccorm merged commit 1f5a8de into chainguard-images:main Apr 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants