Skip to content

Commit 3592c98

Browse files
committed
build: rename conformance:check to vendored:check
The task compares the files listed in scripts/vendored-core-files.txt with core at the pin. "conformance" means something else in core, so name the task after what it checks. Signed-off-by: Piotr Mlocek <pmlocek@nvidia.com>
1 parent df1d541 commit 3592c98

5 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎AGENTS.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ release model.
77
## Commands
88

99
- `mise run ci` runs the full pipeline (format check, lint, type check, proto
10-
check, conformance check, unit tests, build).
10+
check, vendored-file check, unit tests, build).
1111
- `mise run proto:gen` regenerates `src/openshell/_proto` from core at the ref
1212
pinned in `OPENSHELL_CORE_REF` (`mise.toml`). Never edit generated files by
1313
hand.
@@ -22,7 +22,7 @@ release model.
2222
- Unit tests live in `tests/` and are named `*_test.py`; fixtures go in
2323
`tests/fixtures/`.
2424
- Files copied from core must stay identical to core at the pin;
25-
`mise run conformance:check` compares them.
25+
`mise run vendored:check` compares them.
2626
- New files need only the license line `SPDX-License-Identifier: Apache-2.0`
2727
in a comment. Keep the existing headers as they are.
2828

‎CONTRIBUTING.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ virtual environment. `mise tasks` lists every task. The ones you need most:
1616
| Task | What it does |
1717
|------|--------------|
1818
| `mise run ci` | Everything CI runs: checks, unit tests, build |
19-
| `mise run check` | Format check, lint, type check, proto check, conformance check |
19+
| `mise run check` | Format check, lint, type check, proto check, vendored-file check |
2020
| `mise run format` | Format the code |
2121
| `mise run test` | Unit tests; `UV_PYTHON=3.11` picks the interpreter |
2222
| `mise run build` | Build the wheel and sdist, verify them, and install them on Python 3.11 |
@@ -63,7 +63,7 @@ generated files; change the pin and run `mise run proto:gen`.
6363
Building a wheel or sdist needs neither a core checkout nor network access because the generated bindings are committed. A change to the core pin makes the generated API changes visible in the diff.
6464

6565
Shared test fixtures come from core's `sdk/conformance/` and are copied into
66-
`tests/fixtures/`. `mise run conformance:check` compares them with core at the
66+
`tests/fixtures/`. `mise run vendored:check` compares them with core at the
6767
pinned ref.
6868

6969
## Core bumps and drift

‎mise.toml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ if ! git diff --exit-code --stat -- src/openshell/_proto \
6464
fi
6565
"""
6666

67-
[tasks."conformance:check"]
67+
[tasks."vendored:check"]
6868
description = "Fail if a file copied from core (scripts/vendored-core-files.txt) differs from core at the pinned ref"
6969
run = """
7070
#!/usr/bin/env bash
@@ -117,7 +117,7 @@ run = "uv run --frozen pytest tests/e2e -n ${E2E_PARALLEL:-5}"
117117

118118
[tasks.check]
119119
description = "Run formatting, lint, type, and drift checks"
120-
depends = ["format:check", "lint", "typecheck", "proto:check", "conformance:check"]
120+
depends = ["format:check", "lint", "typecheck", "proto:check", "vendored:check"]
121121

122122
[tasks.build]
123123
description = "Build the wheel and sdist, verify the wheel, and install both on the oldest Python"

‎scripts/README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,5 +40,5 @@ Bump PRs run E2E against their own pin, because `e2e.yml` defaults to `OPENSHELL
4040
|------|-----------|---------|
4141
| `generate_python_proto.py` | `proto:gen` | Generate `src/openshell/_proto` from `proto/`. |
4242
| `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. |
43+
| `vendored-core-files.txt` | `vendored:check` | Files copied from core. `vendored:check` compares them with core at the pin; `core-sync/open-bump-pr.sh` refreshes them. |
44+
| `fetch-core.sh <ref> <dir> <path>...` | `vendored:check` | Copy files from core at a ref. |

‎scripts/vendored-core-files.txt‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# SPDX-License-Identifier: Apache-2.0
22
#
33
# Files copied from NVIDIA/OpenShell at the pinned ref, one per line:
4-
# <path in core> <path here>. `mise run conformance:check` fails when a copy
4+
# <path in core> <path here>. `mise run vendored:check` fails when a copy
55
# differs from core, and core bump PRs refresh them (core-sync/open-bump-pr.sh).
66
sdk/conformance/oauth-client-credentials.json tests/fixtures/oauth-client-credentials.json
77
sdk/conformance/oauth-client-credentials.json.license tests/fixtures/oauth-client-credentials.json.license

0 commit comments

Comments
 (0)