|
2 | 2 |
|
3 | 3 | The workflows under `.github/workflows/` run these scripts, most through a mise task, so each job can be run locally first. Scripts that write to GitHub take `--dry-run` and print what they would do instead. |
4 | 4 |
|
5 | | -The core sync workflows use a GitHub App token from the `sdk-bot` environment (secrets `SDK_BOT_CLIENT_ID` and `SDK_BOT_PRIVATE_KEY`), which only `main` can deploy to. They never use `GITHUB_TOKEN`, because pushes and PRs made with it don't trigger CI. |
| 5 | +## `core-sync/`: keeping up with core |
| 6 | + |
| 7 | +Move the core pin (`OPENSHELL_CORE_REF` in `mise.toml`) to new core releases, and watch core `main` for changes that will break the SDK. |
| 8 | + |
| 9 | +The workflows use a GitHub App token from the `sdk-bot` environment (secrets `SDK_BOT_CLIENT_ID` and `SDK_BOT_PRIVATE_KEY`), which only `main` can deploy to. They never use `GITHUB_TOKEN`, because pushes and PRs made with it don't trigger CI. |
6 | 10 |
|
7 | 11 | | File | mise task | Purpose | |
8 | 12 | |------|-----------|---------| |
9 | | -| `core-tags.sh [--all]` | `core:tags` | List NVIDIA/OpenShell release tags newer than the pin (`OPENSHELL_CORE_REF` in `mise.toml`): every stable tag, plus the newest pre-release when it is newer than all of them. | |
| 13 | +| `core-tags.sh [--all]` | `core:tags` | List NVIDIA/OpenShell release tags newer than the pin: every stable tag, plus the newest pre-release when it is newer than all of them. | |
10 | 14 | | `open-bump-pr.sh <tag> [--dry-run]` | `core:bump` | Open the update proposal for one core tag: branch `core/<tag>`, pin change, regenerated bindings, refreshed copies of core files, proto diff in the body, labels `core-bump` plus `stable` or `prerelease`. Closes older pre-release proposals. | |
11 | 15 | | `bump-pr-body.md` | | PR body template for `open-bump-pr.sh`. | |
12 | 16 | | `drift-check.sh --out <file>` | `core:drift` | Compare core `main` with the pin: `buf breaking`, regenerate and run the unit tests, list the RPCs the SDK doesn't call. Writes the markdown report. | |
13 | 17 | | `update-drift-issue.sh <report.md> [--dry-run]` | | Create, update, or close the single `Core main drift` issue from a report. | |
14 | 18 | | `report-failure.sh <job> <run-url> [--dry-run]` | | Append a dated failure line to the drift issue. Called from `if: failure()` steps. | |
15 | 19 | | `drift-issue.sh` | | Shared helpers for the two drift issue scripts (sourced, not run). | |
16 | | -| `vendored-core-files.txt` | `conformance:check` | Files copied from core. `conformance:check` compares them with core at the pin; `open-bump-pr.sh` refreshes them. | |
17 | | -| `fetch-core.sh <ref> <dir> <path>...` | | Copy files from core at a ref, for `conformance:check`. | |
18 | | -| `start-gateway.sh <core-version>`, `stop-gateway.sh` | | Run the published gateway of a core version with the Docker driver for the E2E lane, then stop it and collect its log. | |
19 | | -| `generate_python_proto.py` | `proto:gen` | Generate `src/openshell/_proto` from `proto/`. | |
20 | | -| `verify-python-wheel.py` | `build` | Check the wheel's contents and version. | |
21 | 20 |
|
22 | 21 | | Workflow | Runs | |
23 | 22 | |----------|------| |
24 | 23 | | `core-watch.yml` (hourly) | `core-tags.sh`, then `open-bump-pr.sh` per tag | |
25 | 24 | | `core-drift.yml` (nightly) | `drift-check.sh`, then `update-drift-issue.sh` | |
26 | | -| `e2e.yml` (reusable) | `start-gateway.sh`, `mise run e2e`, `stop-gateway.sh` | |
27 | | -| `ci.yml` | `mise run check`, `test`, `build`, and `e2e.yml` | |
28 | 25 |
|
29 | 26 | Bump PRs run E2E against their own pin, because `e2e.yml` defaults to `OPENSHELL_CORE_REF` on the PR branch. |
| 27 | + |
| 28 | +## `e2e/`: the E2E gateway |
| 29 | + |
| 30 | +| File | Purpose | |
| 31 | +|------|---------| |
| 32 | +| `start-gateway.sh <core-version>` | Run the published gateway of a core version with the Docker driver for the E2E lane, and register it as `e2e`. | |
| 33 | +| `stop-gateway.sh` | Stop it, collect its log, and remove its sandboxes. | |
| 34 | + |
| 35 | +`e2e.yml` (reusable, called from `ci.yml`) runs `start-gateway.sh`, `mise run e2e`, then `stop-gateway.sh`. |
| 36 | + |
| 37 | +## Build and checks |
| 38 | + |
| 39 | +| File | mise task | Purpose | |
| 40 | +|------|-----------|---------| |
| 41 | +| `generate_python_proto.py` | `proto:gen` | Generate `src/openshell/_proto` from `proto/`. | |
| 42 | +| `verify-python-wheel.py` | `build` | Check the wheel's contents and version. | |
| 43 | +| `vendored-core-files.txt` | `conformance:check` | Files copied from core. `conformance:check` compares them with core at the pin; `core-sync/open-bump-pr.sh` refreshes them. | |
| 44 | +| `fetch-core.sh <ref> <dir> <path>...` | `conformance:check` | Copy files from core at a ref. | |
0 commit comments