Skip to content

ci: add GitHub Actions workflows and repo CI configuration - #2

Merged
SiorMeir merged 5 commits into
mainfrom
siormeir/export-actions
Jul 20, 2026
Merged

SiorMeir merged 5 commits into
mainfrom
siormeir/export-actions

Conversation

@SiorMeir

Copy link
Copy Markdown
Contributor

Description

Ports the relevant CI subset from kai-scheduler/KAI-Scheduler to this standalone API module repo. The scheduler's CI is heavy (Docker builds, Helm, e2e on Kind clusters); this PR brings only what makes sense for a pure Go module.

Workflows added (verbatim from KAI-Scheduler):

  • on-pr — trimmed to validate-and-test + code-coverage-report only; no Docker/e2e/Helm jobs
  • release-prepare + release-publish — changie fragment → CHANGELOG fold → tag + GitHub Release
  • validate-pr-title, validate-changelog, dco, approval-gatekeeper
  • coverage-gate, update-coverage-badge, post-coverage-comment
  • backport, changelog-comment

Config files added:

  • dependabot.yml — GitHub Actions + Go modules weekly (main only, k8s grouping; backport branches stripped until they exist)
  • .golangci.yaml, .changie.yaml, .coderabbit.yaml
  • .github/pull_request_template.md, .github/ISSUE_TEMPLATE/
  • .changes/header.tpl.md

Dropped from scheduler (not applicable here):

  • benchmark*, on-release, push-artifacts, deploy-scale-tests-page, stale, .fossa.yml

Related Issues

N/A

Checklist

  • Self-reviewed
  • Added/updated tests (if needed)
  • Updated documentation (if needed)
  • Applied the skip-changelog label (CI-only change, no behavior change)

Breaking Changes

None — first CI setup for this repo.

Additional Notes

After this merges, the dev needs to:

  1. Add KAIBOT_TOKEN secret to the repo (used by release-prepare and release-publish)
  2. Configure branch rulesets + required status checks via GitHub Settings

Port the relevant CI subset from kai-scheduler/KAI-Scheduler:
- on-pr: validate+test jobs only (no Docker/e2e/Helm)
- release-prepare + release-publish: changie-based release flow
- validate-pr-title, validate-changelog, dco, approval-gatekeeper
- coverage tracking (gate, badge, PR comment), backport, changelog-comment
- dependabot for GitHub Actions + Go modules (main only, k8s grouping)
- .golangci.yaml, .changie.yaml, .coderabbit.yaml, PR/issue templates

Signed-off-by: SiorMeir <msior@nvidia.com>
@SiorMeir
SiorMeir force-pushed the siormeir/export-actions branch from 23eac53 to 73da9e3 Compare July 16, 2026 10:44
@SiorMeir SiorMeir added the skip-changelog No changelog entry required label Jul 16, 2026
SiorMeir and others added 4 commits July 16, 2026 14:04
- Import .github/scripts/dco_check.py (required by dco.yaml)
- Add -coverprofile to make test so coverage artifact is produced

Signed-off-by: SiorMeir <msior@nvidia.com>
…association

author_association returns CONTRIBUTOR instead of MEMBER on new repos,
causing org members to be treated as external contributors. Check repo
permission level directly via the API instead.

Signed-off-by: SiorMeir <msior@nvidia.com>
update-coverage-badge.yaml doesn't exist on main yet, so the baseline
lookup fails with 404. continue-on-error lets the PR pass; self-heals
after the first merge to main runs the badge workflow.

Signed-off-by: SiorMeir <msior@nvidia.com>
@SiorMeir SiorMeir closed this Jul 16, 2026
@SiorMeir SiorMeir reopened this Jul 16, 2026
@SiorMeir
SiorMeir marked this pull request as ready for review July 16, 2026 12:35
@SiorMeir
SiorMeir merged commit 1702de7 into main Jul 20, 2026
15 of 17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

skip-changelog No changelog entry required

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants