Repository navigation
Conversation
The script-tests and example-schemas jobs install jsonschema with a plain pip install from .github/scripts/validate_dialect/requirements.txt, which resolves its dependencies at install time and checks no hash. check_ci_policy.py rejects such an install, so on main the CI policy check reports two errors and workflow_lint's test_this_repository_meets_the_policy fails (run 40616796300). .github/requirements/validate_dialect.txt locks jsonschema 4.26.0 and its five dependencies with the hash of every file PyPI holds for each version, generated with the uv command its header gives, a week back (--exclude-newer 2026-10-21). Both jobs install it the way every other lock installs: --require-hashes --only-binary :all: --no-deps. The lock is resolved for Python 3.12, so the example-schemas job sets up 3.12.15, the version the rest of CI runs. Dependabot already watches .github/requirements. check_example_schemas.py names the lock as its source of jsonschema. Validation: check_ci_policy.py reports 0 errors (2 warnings, the ubuntu-latest runners of the two example jobs) and the 46 workflow_lint tests pass. The lock installs into a fresh Python 3.12.15 venv beside the generator lock, as the script-tests job installs it, and the 91 validate_dialect script tests and check_example_schemas.py pass with it. actionlint 1.7.12 with shellcheck 0.11.0 and zizmor 1.31.1, online and offline, report no findings. Assisted-by: Claude-Code:claude-opus-5-5
test_the_c_facts_are_measured takes the expected MAVLINK_VERSION from military.xml's <version> element. 1971502 removes that element, as its message says, so the test calls int(None) and the release tests error on main (run 40616796300). That fails workflow_lint's release-tests job and, at a tag, the release's test job, which every release job after it waits for. pymavlink's parser gives a dialect without <version> the version 2 (mavparse.py at the pinned PYMAVLINK_REF sets it to 2, and only a <version> element overrides it), and mavgen writes that value as MAVLINK_VERSION. The test expects the declared <version> when there is one and 2 otherwise. The default is spelled out rather than read from the parser, so a generator pin that moves it fails the test, as the other C facts the test states do. Validation: the 251 release tests pass under the 100% line and branch coverage gate with the pinned mavlink and pymavlink (the C headers generated from main's military.xml define MAVLINK_VERSION 2), and the test also passes with <version>7</version> added to military.xml. Assisted-by: Claude-Code:claude-opus-5-5
definition-manifest.example.json declares the SHA-256 of military.xml as the file reads at the head of Dronecode#18 on its own base (3fa29a21...). Rebased onto main, which carries the work merged after that base, military.xml hashes to 96d66fdb..., so check_example_digests.py fails the Metadata example digests job on main (run 40616796281). The manifest example declares military.xml's digest as main holds it, and the catalogue example declares the digest of that manifest example, which its definitionManifest names. The check ties both examples to military.xml's exact bytes, so a pull request that changes military.xml refreshes these two digests too. Validation: check_example_digests.py reports every digest as matching, the upstream files it fetches at the pinned MAVLINK_REF included, and check_example_schemas.py validates every example. Assisted-by: Claude-Code:claude-opus-5-5
Member
Author
|
Superseded by #31, which fixes the same three checks on main and also allows typing-extensions' license. Closing. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Main fails two of its checks on 1407e5f, Validate Dialect and Lint CI Workflows. The generic payload work in #18 predates #24 and #25, and it reached main through a rebase onto them with no CI run on the result, so three of its changes collide with rules those two PRs add. This fixes the three collisions and nothing else.
The example-schema checks install jsonschema from a hash lock, as #24's CI policy requires of every pip install. The release test that reads military.xml's
<version>expects pymavlink's default of 2 when the file declares none, which is what #18 intends. And the example manifest declares military.xml's digest as main holds it. The commits have the detail.Wire impact: none. The dialect and the generated code do not change.
Every job of Validate Dialect and Lint CI Workflows passes locally at this head with the pinned tools, the release tests at 100% coverage; the CI run here on GitHub's runners is the check still to come. The digest check ties the examples to military.xml's exact bytes, so any PR that changes military.xml also has to refresh those two digests.
Assisted-by: Claude-Code:claude-opus-5-5