Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
425 changes: 0 additions & 425 deletions .chai-bot/ci-status-jobs.yaml

This file was deleted.

330 changes: 156 additions & 174 deletions .chai-bot/hypershift_ci_daily_health_report.md

Large diffs are not rendered by default.

59 changes: 0 additions & 59 deletions .github/workflows/update-ci-job-registry.yaml

This file was deleted.

12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,10 @@ verify-crd-schema: $(CRD_SCHEMA_CHECK) ## Verify CRD schemas for breaking change
--crd-dir=karpenter-operator/controllers/karpenter/assets/zz_generated.crd-manifests

.PHONY: verify-parallel
verify-parallel: verify-codespell verify-codecov verify-api-deps verify-crd-schema lint cpo-container-sync run-gitlint verify-docs-nav verify-tekton-pipeline-pairs
verify-parallel: verify-codespell verify-codecov verify-api-deps verify-crd-schema lint cpo-container-sync run-gitlint verify-docs-nav verify-tekton-pipeline-pairs verify-hypershift-ci-daily-health

.PHONY: verify-ci
verify-ci: generate update staticcheck fmt vet verify-api-deps verify-crd-schema verify-docs-nav verify-tekton-pipeline-pairs ## Run the same checks as the GHA verify workflow.
verify-ci: generate update staticcheck fmt vet verify-api-deps verify-crd-schema verify-docs-nav verify-tekton-pipeline-pairs verify-hypershift-ci-daily-health ## Run the same checks as the GHA verify workflow.
$(MAKE) verify-git-clean

.PHONY: verify
Expand Down Expand Up @@ -684,6 +684,14 @@ verify-tekton-pipeline-pairs: $(PYTHON_VENV_STAMP) ## Verify paired Tekton Pipel
PYTHONPATH=$(PYTHON_VENV) python3 hack/verify-tekton-pipeline-pairs.py; \
fi

.PHONY: verify-hypershift-ci-daily-health
verify-hypershift-ci-daily-health: $(PYTHON_VENV_STAMP) ## Verify the offline HyperShift CI daily health companion.
@if [ -x $(PYTHON_VENV)/bin/python3 ]; then \
$(PYTHON_VENV)/bin/python3 -m pytest -q hack/ci/test_hypershift_ci_daily_health.py; \
else \
PYTHONPATH=$(PYTHON_VENV) python3 -m pytest -q hack/ci/test_hypershift_ci_daily_health.py; \
fi

.PHONY: verify-codespell
verify-codespell: codespell ## Verify codespell.
@$(CODESPELL) --count --ignore-words=./.codespellignore --skip="./docs/site/*,./vendor/*,./api/vendor/*,./hack/tools/vendor/*,./api/hypershift/v1alpha1/*,./support/thirdparty/*,./docs/content/reference/*,./hack/tools/bin/*,./cmd/install/assets/*,./go.sum,./api/go.sum,./hack/workspace/go.work.sum,./api/hypershift/v1beta1/zz_generated.featuregated-crd-manifests,./hack/tools/go.mod,./hack/tools/go.sum,./karpenter-operator/controllers/karpenter/assets/*.yaml,./dev/*"
Expand Down
61 changes: 61 additions & 0 deletions hack/ci/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
# HyperShift CI daily health companion

`hypershift-ci-daily-health.py` supplies the deterministic collection and rendering stages for `.chai-bot/hypershift_ci_daily_health_report.md`. It uses only the Python standard library in production and never writes to Jira, triggers CI, or mutates a cluster.

## Collect

Use one UTC timestamp and one canonical checked-out commit for the entire run:

```console
python3 hack/ci/hypershift-ci-daily-health.py collect \
--as-of 2026-09-28T12:00:00Z \
--source-revision "$(git rev-parse HEAD)" \
--slack-out /tmp/hypershift-ci-stage-one.txt \
--candidates-out /tmp/hypershift-ci-candidates.json
```

The text file is a deterministic Slack parent message shorter than 2000 characters. It owns a compact periodic payload/trend summary by release. The JSON file contains only bounded presubmit candidates grouped by branch plus a separate, non-judgment `periodic_status` section with exact stream/tag links and counts for deterministic rendering. Periodics are never sent for LLM judgment. Collection has an overall deadline and request budget in addition to per-request limits. Source failures and explicit candidate count/byte overflow are rendered as `Unknown`; expected never-run Prow history and ERROR/ABORTED-only windows remain visible coverage uncertainties rather than being reported green.

## Render judgments

The judgment document must use `schema_version: 1` and contain exactly one entry for each candidate ID:

```json
{
"schema_version": 1,
"source_revision": "0123456789abcdef0123456789abcdef01234567",
"collection_id": "hci-doc-0123456789abcdef",
"judgments": [
{
"candidate_id": "hci-0123456789abcdef",
"classification": "permafail_candidate",
"summary": "Bounded evidence summary",
"signature": "Verified repeated signature",
"recurring_evidence": ["Evidence from two independent runs"],
"next_action": "Human follow-up",
"tracking": {"status": "none"}
}
]
}
```

Presubmits allow `not_permafailing`, `flaky`, `permafail_candidate`, `infrastructure_triage`, `one_off_failure`, and `no_data`. Every judgment must use `tracking.status: none`; this scheduled workflow never promotes a periodic incident or proposes a Jira action. The renderer requires the exact collection ID and source revision, and accepts `permafail_candidate` only when the bound candidate has three consecutive failures across at least two canonical PR head SHAs.

```console
python3 hack/ci/hypershift-ci-daily-health.py render \
--source-revision "$(git rev-parse HEAD)" \
--stage-one /tmp/hypershift-ci-stage-one.txt \
--candidates /tmp/hypershift-ci-candidates.json \
--judgments /tmp/hypershift-ci-judgments.json \
--slack-out /tmp/hypershift-ci-report.txt
```

The result preserves the parent text and uses `---THREAD_DETAILS---` and `---THREAD_BREAK---` for bounded same-thread replies. Deterministic periodic replies include every validated stream, payload tag, release-status link, phase, count, and uncertainty without an LLM classification. Every presubmit candidate includes its deterministic role, Dashboard context, timestamped run evidence, uncertainty, judgment, and action. Large groups split across replies without slicing away candidates or actions; zero-candidate runs still emit a consistent thread summary.

## Offline verification

The committed fixtures model active-versus-accepted payloads, future-stream exclusion, the 5.0-to-4.23 major transition, exact health joins, exact trend boundaries, and Prow-only presubmit history.

```console
make verify-hypershift-ci-daily-health
```
Loading