Some checks failed
rules-freshness / rules (push) Failing after 12m38s
116 lines
5.1 KiB
Markdown
116 lines
5.1 KiB
Markdown
# The oracle list of the YAML and JSON asset files
|
|
|
|
Written 2026-11-20 on `wip/parse-fast`. The list is made by one command, not by hand, and every claim about "the assets" in the parse work and in the Bonsai
|
|
rule-run work means this list and no other.
|
|
|
|
## The command
|
|
|
|
Run in the repository `SlayerMotionHQ/PureTreeAssets`, at commit `cfff6e4` (read only: `git`, `grep` and `sort`):
|
|
|
|
```
|
|
git ls-files | grep -E '\.(yaml|yml|json)$' | LC_ALL=C sort
|
|
```
|
|
|
|
MEASURED, the count it prints: **74** paths. `git ls-files | wc -l` prints 87 for the same commit. A file that is not tracked by git (`generated/`, made by
|
|
`scripts/generate.py`, 5 to 60 MB each) is not in the list, on purpose: it is not reproducible from the commit alone.
|
|
|
|
## What the three numbers count
|
|
|
|
| Number | What it counts | In it | Not in it |
|
|
|---|---|---|---|
|
|
| 58 | the entries of `assets.tsv` (59 lines, one header line that starts with `#`): the files fetched from outside, each with its source URL and licence | 55 YAML and JSON files, and the 3 `.geojson` files | the 19 YAML and JSON files below (hand-made or generated: `manifest.json`, `openapi/synthetic-large-description.yaml`, the 17 files of `tiny/`), and the 10 non-data files |
|
|
| 74 | the tracked paths that end in `.yaml`, `.yml` or `.json`: the oracle list | the 55 of `assets.tsv` and the 19 not fetched | the 3 `.geojson` files (not YAML or JSON by name) and the 10 non-data files |
|
|
| 87 | every tracked path (`git ls-files`) | the 74, the 3 `.geojson`, and 10 others: `.gitignore`, `NOTICES.md`, `README.md`, `assets.tsv`, `licences/Apache-2.0.txt`, `licences/MIT.txt`, and `scripts/` `fetch.sh`, `generate.py`, `manifest.py`, `notices.py` | nothing tracked |
|
|
|
|
Check of the arithmetic, MEASURED by the same commands: 58 = 55 + 3; 74 = 55 + 19; 87 = 74 + 3 + 10; the 19 are the paths of the list that no line of `assets.tsv` names
|
|
(`grep -F` of each path against the file). The `.geojson` files are valid JSON but are not named as such, so they are outside the list; they can be added by a
|
|
later decision, with the command changed and the count printed again. `manifest.json` is metadata of the assets and is in the list because its name matches; it is a
|
|
real JSON document and parses.
|
|
|
|
## The list (74 paths, sorted)
|
|
|
|
```
|
|
ansible/ansible-examples-lamp-site.yml
|
|
asyncapi/slack-rtm-asyncapi3.yml
|
|
ci/bitrise-stripe-ios.yml
|
|
ci/gitlab-ci-gitlab.yml
|
|
cloudformation/apigateway-lambda-integration.json
|
|
cloudformation/apigateway-lambda-integration.yaml
|
|
cloudformation/ec2-instance.yaml
|
|
cloudformation/fargate-private-vpc.yaml
|
|
config/angular-pnpm-lock.yaml
|
|
config/nudge-localizable-xcstrings.json
|
|
config/react-package.json
|
|
config/swiftlint-yml.yml
|
|
config/swiftpm-devcontainer-with-comments.json
|
|
config/vscode-launch-with-comments.json
|
|
config/vscode-swift-package.json
|
|
config/vue-package.json
|
|
config/xcodegen-project.yml
|
|
docker-compose/airflow-docker-compose.yaml
|
|
docker-compose/awesome-compose-elasticsearch-logstash-kibana.yaml
|
|
docker-compose/awesome-compose-wordpress-mysql.yaml
|
|
github-actions/ci-docker-image.yml
|
|
github-actions/ci-node.yml
|
|
github-actions/ci-swift.yml
|
|
github-actions/swift-package-test-reusable.yml
|
|
github-actions/vapor-test.yml
|
|
helm/bitnami-postgresql-values.yaml
|
|
helm/kube-prometheus-stack-values.yaml
|
|
kubernetes/cert-manager-crds.yaml
|
|
kubernetes/deployment-nginx.yaml
|
|
kubernetes/ingress-nginx-deploy.yaml
|
|
kubernetes/istio-bookinfo.yaml
|
|
kubernetes/minio-statefulset.yaml
|
|
kubernetes/online-boutique.yaml
|
|
kubernetes/pod-simple.yaml
|
|
kubernetes/prometheus-operator-crd-prometheuses.yaml
|
|
kubernetes/service-dual-stack.yaml
|
|
kubernetes/swagger.json
|
|
manifest.json
|
|
openapi/api-with-examples-3.0.yaml
|
|
openapi/box-api-3.0.json
|
|
openapi/burger-shop-3.1.yaml
|
|
openapi/burger-shop-broken-refs.yaml
|
|
openapi/discriminators-3.0.yaml
|
|
openapi/docker-engine-swagger2.yaml
|
|
openapi/github-api.github.com.json
|
|
openapi/github-api.github.com.yaml
|
|
openapi/petstore-3.0.json
|
|
openapi/petstore-3.0.yaml
|
|
openapi/stripe-spec3.json
|
|
openapi/stripe-spec3.yaml
|
|
openapi/synthetic-large-description.yaml
|
|
openapi/uspto-3.0.yaml
|
|
schema/compose-spec.json
|
|
schema/openapi-3.1-schema.json
|
|
schema/schemastore-github-workflow.json
|
|
schema/schemastore-package.json
|
|
schema/schemastore-tsconfig.json
|
|
tiny/anchors-and-merge.yaml
|
|
tiny/block-scalars.yaml
|
|
tiny/broken-tab-indent.yaml
|
|
tiny/broken-unterminated.json
|
|
tiny/broken-unterminated.yaml
|
|
tiny/comment-only.yaml
|
|
tiny/empty-array.json
|
|
tiny/empty-object.json
|
|
tiny/list.yaml
|
|
tiny/null.json
|
|
tiny/number.json
|
|
tiny/one-key.yaml
|
|
tiny/small.json
|
|
tiny/string.json
|
|
tiny/three-documents.yaml
|
|
tiny/two-keys.yaml
|
|
tiny/unicode-and-odd-keys.yaml
|
|
```
|
|
|
|
## Notes on use
|
|
|
|
1. The list holds files that must NOT parse (`tiny/broken-tab-indent.yaml`, `tiny/broken-unterminated.*`): for them the oracle compares the error (kind, line,
|
|
column, message) as it compares a tree. A file that fails on both sides with the same error is equal.
|
|
2. The 74 are the corpus the Bonsai rule-run oracle (`RuleRunParallelTests.assetLibrary`) walked: it filtered by extension in the working copy, which gave 74 on the test
|
|
machine; this note makes that a list taken from git. The two agree on the count.
|
|
3. A change to the list (a file added to the assets) changes the count; the command is run again and this note is updated in the same commit.
|