Introduce self-hosted k8 CI harness for ci-demo (local + GHA)#129
Merged
mike-dubman merged 2 commits intoMellanox:masterfrom Feb 18, 2026
Merged
Conversation
- use static matrix config .ci/job_matrix_gha_k8.yaml and arch-driven execution (TARGET_ARCHES/TARGET_ARCH) - improve local runtime: native colima profile support, k3s node relabeling, and Jenkins startup cloud/label bootstrap - stabilize Jenkins-to-k8 connectivity with in-cluster Service/Endpoints and DNS-aware preflight checks - persist diagnostic artifacts per run (job output, Jenkins console, build JSON, container logs) - print failure tails and workflow log tails (last 200 lines) for faster CI debugging - make GHA and local share the same scripts/local_gha_ci.sh path and upload logs as artifacts - fix Jenkins checkout reliability in GHA detached worktrees (branch ref handling, non-lightweight checkout, GitHub REPO_URL) - update local cleanup and colima make targets for repeatable test cycles
dpressle
reviewed
Feb 18, 2026
Collaborator
There was a problem hiding this comment.
i would add something about overrunning default matrix yaml with CI_K8_FILE env var for testing localy of other matrix yaml file for different features.
Also is it possible to see jenkins UI with web-browser for local tests - in many cases i will want tosee how things look in the UI
Collaborator
Author
There was a problem hiding this comment.
script does overrun automatically.
at the end of GHA job - jenkins server log, job log and gha console is printed to stdout, also all logs are attached as job artifactory.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Introduce a unified CI harness to test ci-demo in a self-hosted Kubernetes environment (local k3s + Jenkins), and reuse the same harness in GitHub Actions.
At a high level, this change:
For local validation:
For local validation on MAC:
This provisions Jenkins+k3s, runs .ci/job_matrix_gha_k8.yaml, and stores logs in .tmp/local-gha-ci/logs for troubleshooting.
Summary: this PR adds a reliable, reusable CI path for validating ci-demo on self-hosted Kubernetes (Jenkins + k3s), with the same flow used locally and in GitHub Actions. It introduces architecture-aware matrix execution, stabilizes SCM/branch handling in CI environments, and improves debuggability through consistent log collection and tail output.