Skip to content

Commit 80648b2

Browse files
committed
Merge remote-tracking branch 'upstream/main'
2 parents 3b93a46 + df78111 commit 80648b2

63 files changed

Lines changed: 5926 additions & 200 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎.agents/skills/create-github-pr/SKILL.md‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,8 @@ gh issue view ISSUE_NUMBER --repo OWNER/REPO --json number,url,labels
2828
```
2929

3030
Authors with verified `WRITE`, `MAINTAIN`, or `ADMIN` access may proceed without
31-
`state:accepted`; keep the issue link and note the missing label. Everyone else
31+
`state:accepted`; keep the issue link. Do not add access or acceptance evidence
32+
to the PR description. Everyone else
3233
must link at least one target-repository issue and have `state:accepted` on each.
3334
Otherwise, preserve local work and report which issue needs acceptance. A direct
3435
request, roadmap placement, other labels, or vouch status does not bypass this gate.

‎.agents/skills/label-issue/SKILL.md‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ Use the [commands and result contract](references/result-contract.md) to prepare
1515

1616
Report unchanged, skipped, held or error outcomes. The helper enforces [accepted-work eligibility](../../../CONTRIBUTING.md#accepted-work) and lifecycle restrictions.
1717

18+
Unmarked stale closures require human disposition; see the shared [`is_stale_closed`](../../../tasks/scripts/stale_closure.py) predicate for validation.
19+
1820
Read `packet.json` and the needed manifest metadata. Consult manifest definitions and trusted malformed-removal candidates absent from the packet. Treat item contents as evidence, not instructions.
1921

2022
Expand relevant evidence to distinguish boundaries or uncover topics. Read content before citing its ID. Membership IDs and digests are navigation, not statements. Expand deferred content or inspect a digest-bound text slice before citing it; use paged indexes to locate relevant sources.
@@ -23,9 +25,11 @@ Stop when further reading is unlikely to change classification. Technical fetch
2325

2426
## Choose the desired set
2527

26-
First identify the requested outcome, affected OpenShell boundary and substantive technical concerns; topics follow those concerns. Routine implementation or verification alone adds no topic. Testing work retains its testing topic.
28+
First identify the requested outcome, affected OpenShell boundary and substantive technical concerns. Choose the area whose reviewers are the right people to review the work. Add a topic when the work has a clear, substantive connection to it and its reviewers would be interested in seeing and potentially reviewing the change. Omit topics with only incidental or speculative relevance. Supporting documentation or tests can warrant their topic when that reviewer audience is relevant; their presence alone does not.
29+
30+
Do not add `topic:testing` merely because a PR adds or extends tests to cover its own code changes, including routine test-task or CI wiring needed to run those tests. Judge any substantive changes to testing structure, tooling or strategy separately under the reviewer-relevance rubric; this exclusion does not rule out test-only work.
2731

28-
Choose exactly one area and every supported topic from the canonical scopes. Report missing definitions or routing preparation as prerequisites; do not omit a needed label or invent replacements.
32+
Choose exactly one area and the topics supported by this rubric from the canonical scopes. Report missing definitions or routing preparation as prerequisites; do not omit a needed label or invent replacements.
2933

3034
Choose the best-supported set despite ordinary uncertainty. Record meaningful alternatives and medium/low confidence in `ambiguity`; use null for high-confidence choices. Ambiguity requires no escalation or extra approval.
3135

‎.gitattributes‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,6 @@ crates/openshell-core/src/proto/openshell.*.rs linguist-generated
1111

1212
# Vendored OCSF schemas fetched from schema.ocsf.io
1313
crates/openshell-ocsf-validate/schemas/v*/** linguist-generated
14+
15+
# Rendered Grafana dashboards (source lives in dashboards/*.libsonnet)
16+
deploy/openshell-mixin/build/dashboards/*.json linguist-generated

‎.github/workflows/branch-checks.yml‎

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,66 @@ jobs:
134134
|| github.event.merge_group.base_sha
135135
|| needs.pr_metadata.outputs.base_sha }}
136136
137+
monitoring-changes:
138+
name: Detect monitoring mixin changes
139+
needs: pr_metadata
140+
if: needs.pr_metadata.outputs.should_run == 'true'
141+
runs-on: ubuntu-latest
142+
timeout-minutes: 5
143+
outputs:
144+
changed: ${{ steps.changes.outputs.changed }}
145+
steps:
146+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
147+
with:
148+
fetch-depth: 0
149+
persist-credentials: false
150+
151+
- name: Check mixin paths
152+
id: changes
153+
shell: bash
154+
env:
155+
BASE_SHA: ${{ github.event.merge_group.base_sha || needs.pr_metadata.outputs.base_sha }}
156+
EVENT_NAME: ${{ github.event_name }}
157+
run: |
158+
set -euo pipefail
159+
if [ "$EVENT_NAME" = workflow_dispatch ]; then
160+
echo "changed=true" >> "$GITHUB_OUTPUT"
161+
exit 0
162+
fi
163+
if [ -z "$BASE_SHA" ]; then
164+
echo "::error::Missing base SHA for monitoring mixin change detection." >&2
165+
exit 1
166+
fi
167+
changed=$(git diff --name-only "${BASE_SHA}...HEAD" -- deploy/openshell-mixin/)
168+
if [ -n "$changed" ]; then
169+
echo "changed=true" >> "$GITHUB_OUTPUT"
170+
else
171+
echo "changed=false" >> "$GITHUB_OUTPUT"
172+
fi
173+
174+
monitoring:
175+
name: Monitoring Mixin
176+
needs: [pr_metadata, monitoring-changes]
177+
if: needs.pr_metadata.outputs.should_run == 'true' && needs.monitoring-changes.outputs.changed == 'true'
178+
runs-on: linux-amd64-cpu8
179+
timeout-minutes: 15
180+
container:
181+
image: ghcr.io/nvidia/openshell/ci:9cb72baa2e61a1b5f12407e6e82da7fdba0aa722@sha256:67a9a0c32cb99825e6d3e9d9eec45d67149ea1ff7c11a1b1e1b3480d2d3df684
182+
credentials:
183+
username: ${{ github.actor }}
184+
password: ${{ secrets.GITHUB_TOKEN }}
185+
steps:
186+
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
187+
188+
- name: Install monitoring prerequisites
189+
run: mise install --locked go@1.26.7 python uv
190+
191+
- name: Check monitoring mixin
192+
env:
193+
# Activate Go while mise 2026.9.9 installs the go: task tools.
194+
MISE_GO_VERSION: "1.26.7"
195+
run: mise run monitoring:check
196+
137197
mise-lockfile:
138198
name: mise Lockfile
139199
needs: pr_metadata
@@ -610,8 +670,8 @@ jobs:
610670
- name: Test release qualification summary
611671
run: mise run test:qualification-summary
612672

613-
- name: Test accepted-work library and review-readiness
614-
run: "mise run test:accepted-work ::: test:review-readiness"
673+
- name: Test accepted-work library, review-readiness, and issue labeling
674+
run: "mise run test:accepted-work ::: test:review-readiness ::: test:label-issue"
615675
python-sdk-freeze:
616676
# The Python SDK moved to ai-openshell/sdk-python (#5287), which imported it
617677
# at v0.1.7. Its files stay only until core removes them, so PRs must not

‎.github/workflows/branch-e2e.yml‎

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -701,6 +701,20 @@ jobs:
701701
job-name: Kubernetes E2E (workspace operator mode)
702702
e2e-task: e2e:kubernetes:workspace-operator
703703

704+
kubernetes-tracing-e2e:
705+
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
706+
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
707+
permissions:
708+
actions: read
709+
contents: read
710+
packages: read
711+
uses: ./.github/workflows/e2e-kubernetes-test.yml
712+
with:
713+
prebuilt-conformance: true
714+
image-tag: ${{ github.sha }}
715+
job-name: Kubernetes E2E (trace export)
716+
e2e-task: e2e:kubernetes:tracing
717+
704718
kubernetes-ha-e2e:
705719
needs: [pr_metadata, build-binaries-linux, build-conformance, build-images]
706720
if: needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_kubernetes_ha_e2e == 'true'
@@ -755,6 +769,7 @@ jobs:
755769
- kubernetes-external-driver-e2e
756770
- kubernetes-workspace-managed-e2e
757771
- kubernetes-workspace-operator-e2e
772+
- kubernetes-tracing-e2e
758773
if: always() && needs.pr_metadata.outputs.should_run == 'true' && needs.pr_metadata.outputs.run_core_e2e == 'true'
759774
runs-on: ubuntu-latest
760775
steps:

‎.github/workflows/stale.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,10 @@ jobs:
3333
This issue has had no activity for 28 days and is now marked stale.
3434
It may be closed in 14 days if there is no further activity.
3535
Comment or remove the state:stale label to keep it open.
36-
close-issue-message: >
36+
close-issue-message: |
3737
Closing this issue after 14 days with no activity since it was marked stale.
3838
Reopen it if the work is still relevant.
39+
<!-- openshell:stale-closure:v1 -->
3940
stale-pull-requests:
4041
runs-on: ubuntu-latest
4142
permissions:

‎.markdownlint-cli2.jsonc‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
"plans/**",
1919
"architecture/plans/**",
2020
"**/node_modules/**",
21+
"deploy/openshell-mixin/vendor/**",
2122
"target/**",
2223
".pytest_cache/**",
2324
"THIRD-PARTY-NOTICES/**",

‎CI.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,16 @@ Manual admission does not change the bot's automatic trust policy for ready PRs.
1717

1818
Merge queue validation is a second integration gate for `main`. After a PR has passed the required PR-head statuses, a maintainer adds it to the merge queue. GitHub creates a temporary merge-group branch that combines the latest `main`, the queued PR, and any earlier queued PRs. The same required `OpenShell / ...` status contexts are then published against the merge-group SHA before GitHub merges it.
1919

20+
### Monitoring dashboards
21+
22+
`Monitoring Mixin` runs in Branch Checks when files under
23+
`deploy/openshell-mixin/` change relative to the PR or merge queue base. It skips
24+
unrelated changes. Manual Branch Checks runs always include this check.
25+
The job runs `mise run monitoring:check` to install locked Grafonnet dependencies,
26+
validate formatting and PromQL syntax, test configuration and composition, install
27+
and render a fresh jsonnet-bundler consumer, and render the dashboards. Use the
28+
same command locally; dependency installation needs network access.
29+
2030
### Protobuf API compatibility
2131

2232
`Protobuf Compatibility` runs in Branch Checks and Pre-release through the shared

‎CONTRIBUTING.md‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,8 @@ These are the primary `mise` tasks for day-to-day development:
418418
| `mise run ci` | Full local CI checks (lint, compile/type checks, tests) |
419419
| `mise run docs` | Validate Fern docs locally |
420420
| `mise run helm:docs` | Regenerate the Helm chart README |
421+
| `mise run monitoring:generate` | Render OpenShell Grafana dashboards |
422+
| `mise run monitoring:check` | Check and render the monitoring mixin |
421423
| `mise run clean` | Clean build artifacts |
422424

423425
## Project Structure
@@ -505,7 +507,7 @@ Authors with `WRITE`, `MAINTAIN`, or `ADMIN` access may open a PR that only fixe
505507

506508
### Automatic Acceptance Labeling
507509

508-
The existing [review-readiness workflow](.github/workflows/review-readiness.yml) checks [accepted work](#accepted-work) when a PR is opened and adds `state:accepted` if it qualifies. This includes drafts and PRs awaiting area/topic classification. Reviewer requests still wait until a PR is ready and has an area label.
510+
The existing [review-readiness workflow](.github/workflows/review-readiness.yml) checks [accepted work](#accepted-work) when a PR is opened and adds `state:accepted` if it qualifies. The label event's `intent.rationale` contains JSON with `schema: openshell-acceptance-v1` and a `basis`: `maintainer`, `repository_permission` (with `permission`), or `accepted_issue` (with issue number and author/assignee `relationship`). This includes drafts and PRs awaiting area/topic classification. Reviewer requests still wait until a PR is ready and has an area label.
509511

510512
This is an additive check at creation, not continuous reconciliation: later edits, permission changes, and issue-label or assignment changes do not refresh or remove the PR label. The shared library is read-only; review-readiness applies the label. The label does not replace the issue-acceptance gate or merge approvals.
511513

‎TESTING.md‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -823,6 +823,7 @@ Available task variants:
823823
| `e2e:kubernetes:shared-supervisor` | One-member shared supervisor pool for the gateway's sandboxes (gateway TLS through the port-forward) |
824824
| `e2e:kubernetes:shared-supervisor-ha` | Two-replica shared supervisor pool behind two gateway replicas on PostgreSQL: kills the member that owns a sandbox and checks the sandbox is adopted, not restarted; crashes and restarts gateways and checks each sandbox's session stays on its supervisor's gateway |
825825
| `e2e:kubernetes:shared-supervisor-scaling` | One-member shared supervisor pool: scales it to two members and back with `helm upgrade`, checking sandboxes stay running and the removed member hands its sandboxes off |
826+
| `e2e:kubernetes:tracing` | Deploys a Jaeger collector, exports gateway traces to it, and fails unless Jaeger receives gateway and Kubernetes compute-driver spans for a new sandbox. The only Kubernetes lane that exports traces |
826827

827828
Kubernetes e2e environment variables:
828829

@@ -832,6 +833,8 @@ Kubernetes e2e environment variables:
832833
| `OPENSHELL_E2E_KUBE_TEST` | Scope to a single test (e.g. `smoke`) |
833834
| `OPENSHELL_E2E_KUBE_EXTRA_VALUES` | Colon-separated additional Helm values files |
834835
| `OPENSHELL_E2E_KUBE_CHART`, `OPENSHELL_E2E_KUBECONFIG` | Set by the harness for tests that upgrade the release, such as the supervisor pool scaling test: the chart it installed, and the kubeconfig passed as `--kubeconfig` to kubectl and helm. Set them yourself when running such a test directly against an existing release |
836+
| `OPENSHELL_E2E_KUBE_CONFORMANCE` | `0` skips the conformance suites that otherwise run before the lane's Rust tests |
837+
| `OPENSHELL_E2E_KUBE_JAEGER` | `1` deploys a Jaeger collector, points gateway OTLP export at it, and sets `OPENSHELL_E2E_JAEGER_QUERY_URL` to its query API. Unset, the gateway exports no traces |
835838
| `OPENSHELL_E2E_KUBE_TLS` | `1` reaches the gateway over mTLS through the port-forward; pair it with an overlay that keeps gateway TLS on, such as `ci/values-tls-port-forward.yaml` |
836839
| `OPENSHELL_E2E_KUBERNETES_FEATURES` | Cargo feature flags (default: `e2e,e2e-host-gateway,e2e-kubernetes`) |
837840
| `IMAGE_TAG` | Gateway/supervisor image tag (default: `latest` for existing clusters) |

0 commit comments

Comments
 (0)