Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
29 commits
Select commit Hold shift + click to select a range
3940b1b
build: list the vendored conformance fixtures in one file
rhuss Nov 4, 2026
476aec7
feat(hack): list new core tags and open update proposals
rhuss Nov 4, 2026
a40125f
feat(hack): tag the lockstep SDK release for a stable pin
rhuss Nov 4, 2026
109ada1
ci: watch core releases and tag SDK releases
rhuss Nov 4, 2026
9258c70
feat(hack): check core main for drift against the pin
rhuss Nov 4, 2026
a64f8d5
feat(hack): keep one drift issue and record automation failures
rhuss Nov 4, 2026
8f8da7e
ci: run the core drift check nightly
rhuss Nov 4, 2026
9ca452d
ci: shellcheck the hack scripts
rhuss Nov 4, 2026
7b874ba
test: E2E tests for Go SDK
jiripetrlik Aug 17, 2026
57c438e
test(e2e): use CreateOption for sandbox labels
rhuss Nov 4, 2026
e67b070
feat(hack): run the published gateway for E2E from core's compose files
rhuss Nov 4, 2026
cf23bd4
ci: run the E2E suite against the published gateway
rhuss Nov 4, 2026
d7b1308
fix(hack): make the E2E gateway's health port reachable
rhuss Nov 4, 2026
8dee0b4
test(e2e): import the provider profiles the suite uses
rhuss Nov 4, 2026
5dbd3dd
test(e2e): import the fixture profiles with plain endpoints
rhuss Nov 4, 2026
3d99fc4
test(e2e): import the fixture profiles without endpoints
rhuss Nov 4, 2026
2d4d352
test(e2e): import the fixture profiles globally
rhuss Nov 4, 2026
569e4b0
test(e2e): bind provider credentials in the sandbox policy
rhuss Nov 4, 2026
2c490d6
test(e2e): wait for sandbox deletion before deleting providers
rhuss Nov 4, 2026
c267f41
test(e2e): reference the profile endpoint issue in the workarounds
rhuss Nov 4, 2026
d68695f
ci: mint bot tokens from the sdk-bot environment with the client ID
rhuss Nov 4, 2026
8206895
docs(automation): drop references to the deferred adaptation workflow
rhuss Nov 5, 2026
0617220
test(e2e): close the shared client with a deferred call
rhuss Nov 5, 2026
cdb3494
test(e2e): rename requireClient to clientOrSkip
rhuss Nov 5, 2026
261776b
fix(hack): never reopen a closed proposal, and stop on API errors
rhuss Nov 5, 2026
2386235
fix(hack): finish half-done releases and see pin changes behind the tip
rhuss Nov 5, 2026
5ac6985
ci: run E2E when its workflow, tools, or dependencies change
rhuss Nov 5, 2026
7695dc3
fix(hack): check the sandbox image pin and clean up the E2E registration
rhuss Nov 5, 2026
de002ec
docs(automation): name the App ai-openshell-sdk-go
rhuss Nov 5, 2026
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
30 changes: 30 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -55,3 +55,33 @@ jobs:

- name: Lint workflows
run: mise run workflows:check

changes:
name: changes
if: github.event_name == 'pull_request'
runs-on: ubuntu-latest
timeout-minutes: 5
outputs:
e2e: ${{ steps.diff.outputs.e2e }}
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- id: diff
env:
BASE_SHA: ${{ github.event.pull_request.base.sha }}
run: |
set -euo pipefail
if git diff --name-only "${BASE_SHA}...HEAD" | grep -qE '^(buf\.gen\.yaml$|go\.(mod|sum)$|mise\.toml$|proto/|openshell/|e2e/|hack/automation/(start|stop)-gateway\.sh$|\.github/workflows/e2e\.yml$)'; then
echo "e2e=true" >>"$GITHUB_OUTPUT"
else
echo "e2e=false" >>"$GITHUB_OUTPUT"
fi

e2e:
name: e2e
needs: changes
if: needs.changes.outputs.e2e == 'true'
uses: ./.github/workflows/e2e.yml
65 changes: 65 additions & 0 deletions .github/workflows/core-drift.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Nightly comparison of core main with the pinned core tag; keeps the single
# "Core main drift" issue current (hack/automation/drift-check.sh).
name: core-drift

on:
schedule:
- cron: "41 4 * * *"
workflow_dispatch:

permissions:
contents: read

concurrency:
group: core-drift
cancel-in-progress: false

jobs:
drift:
name: drift
# The bot secrets live in the sdk-bot environment, which only main can
# deploy to, so a pushed branch can't mint a bot token.
environment: sdk-bot
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.SDK_BOT_CLIENT_ID }}
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
permission-issues: write

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: false

- name: Install tools
run: mise install --locked

# Exit 1 with a report means drift; the issue records it. No report
# means the check itself broke, which the failure step records.
- name: Check drift against core main
run: |
hack/automation/drift-check.sh --out drift-report.md || true
test -s drift-report.md
cat drift-report.md >>"$GITHUB_STEP_SUMMARY"

- name: Update the drift issue
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
run: hack/automation/update-drift-issue.sh drift-report.md

- name: Report failure
if: failure()
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: hack/automation/report-failure.sh core-drift "$RUN_URL"
89 changes: 89 additions & 0 deletions .github/workflows/core-watch.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Opens one update proposal per new core release tag (hack/automation/).
name: core-watch

on:
schedule:
- cron: "17 * * * *"
workflow_dispatch:
inputs:
tag:
description: Core tag to propose (vX.Y.Z or vX.Y.Z-pre.N); empty proposes every new tag
required: false
default: ""

permissions:
contents: read

concurrency:
group: core-watch
cancel-in-progress: false

jobs:
watch:
name: watch
# The bot secrets live in the sdk-bot environment, which only main can
# deploy to, so a pushed branch can't mint a bot token.
environment: sdk-bot
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.SDK_BOT_CLIENT_ID }}
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: write
permission-issues: write

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
token: ${{ steps.app-token.outputs.token }}
persist-credentials: true

- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: false

- name: Install tools
run: mise install --locked

- name: Set the bot identity
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
APP_SLUG: ${{ steps.app-token.outputs.app-slug }}
run: |
set -euo pipefail
id=$(gh api "users/${APP_SLUG}[bot]" --jq .id)
git config user.name "${APP_SLUG}[bot]"
git config user.email "${id}+${APP_SLUG}[bot]@users.noreply.github.com"

- name: Propose new core tags
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
INPUT_TAG: ${{ inputs.tag }}
run: |
set -euo pipefail
if [ -n "$INPUT_TAG" ]; then
tags=$INPUT_TAG
else
tags=$(hack/automation/core-tags.sh)
fi
if [ -z "$tags" ]; then
echo "No core tags newer than $(mise run --quiet core:version)."
exit 0
fi
for t in $tags; do
hack/automation/open-bump-pr.sh "$t"
done

- name: Report failure
if: failure()
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: hack/automation/report-failure.sh core-watch "$RUN_URL"
66 changes: 66 additions & 0 deletions .github/workflows/e2e.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Runs the E2E suite against the published gateway of a core version, started
# from core's deploy/docker files (hack/automation/start-gateway.sh).
name: e2e

on:
workflow_call:
inputs:
core-version:
description: Core version (default the pin in buf.gen.yaml)
type: string
default: ""
workflow_dispatch:
inputs:
core-version:
description: Core version, for example v0.1.7 (default the pin in buf.gen.yaml)
type: string
default: ""

permissions:
contents: read

jobs:
e2e:
name: e2e
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false

- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: false

- name: Install tools
run: mise install --locked go yq

- name: Start the gateway
env:
CORE_VERSION: ${{ inputs.core-version }}
run: |
set -euo pipefail
version=${CORE_VERSION:-$(yq -r '.inputs[0].tag' buf.gen.yaml)}
echo "Core version: $version" >>"$GITHUB_STEP_SUMMARY"
hack/automation/start-gateway.sh "$version"

- name: Run the E2E suite
env:
OPENSHELL_GATEWAY: e2e
run: mise run e2e

- name: Stop the gateway
if: always()
run: hack/automation/stop-gateway.sh

- name: Upload the gateway log
if: failure()
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
with:
name: gateway-log
path: ${{ runner.temp }}/openshell-e2e/gateway.log
if-no-files-found: ignore
75 changes: 75 additions & 0 deletions .github/workflows/release-tag.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,75 @@
# SPDX-FileCopyrightText: Copyright (c) 2025-2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
# SPDX-License-Identifier: Apache-2.0

# Tags the lockstep SDK release when a stable core pin lands on main.
name: release-tag

on:
push:
branches: [main]
workflow_dispatch:
inputs:
sha:
description: Commit on main to tag (default the tip); the pin there must be stable
required: false
default: ""

permissions:
contents: read

concurrency:
group: release-tag
cancel-in-progress: false

jobs:
tag:
name: tag
# The bot secrets live in the sdk-bot environment, which only main can
# deploy to, so a pushed branch can't mint a bot token.
environment: sdk-bot
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- id: app-token
uses: actions/create-github-app-token@64ab729a6294000f5aa4a4bc0b73d1f32bc45510 # v3.3.0
with:
client-id: ${{ secrets.SDK_BOT_CLIENT_ID }}
private-key: ${{ secrets.SDK_BOT_PRIVATE_KEY }}
permission-contents: write
permission-pull-requests: read
permission-issues: write

- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
fetch-depth: 0
persist-credentials: false

- uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4.2.0
with:
install: false

- name: Install tools
run: mise install --locked yq

- name: Tag the release
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
EVENT: ${{ github.event_name }}
INPUT_SHA: ${{ inputs.sha }}
BEFORE: ${{ github.event.before }}
run: |
set -euo pipefail
if [ "$EVENT" = workflow_dispatch ]; then
hack/automation/tag-release.sh --force --sha "${INPUT_SHA:-$GITHUB_SHA}"
else
# Compare against the commit before the push, so a pin change
# that isn't the pushed tip still counts.
hack/automation/tag-release.sh --since "$BEFORE"
fi

- name: Report failure
if: failure()
env:
GH_TOKEN: ${{ steps.app-token.outputs.token }}
RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}
run: hack/automation/report-failure.sh release-tag "$RUN_URL"
Loading
Loading