[uss_qualifier] Generate FeatureCheckTable at runtime when configured #1222
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.
This PR addresses #802 by adding the ability to generate a FeatureCheckTable for the geospatial feature comprehension test scenario at runtime. The test designer provides the URL of a Jsonnet file and, optionally, the URLs of one or more dict-like source files upon which the FeatureCheckTable contents will be based. The contents of the specified resources are retrieved and provided to the Jsonnet file as extVars, and then the Jsonnet file produces a FeatureCheckTable.
This approach is demonstrated by expanding the geospatial_comprehension.yaml CI test configuration to add another instance of the geospatial feature comprehension scenario, this time using a FeatureCheckTable generated at runtime. The incident_translator.jsonnet test_data is used to generate the FeatureCheckTable by reading a GeoJSON file (incidents.json) and creating a row for each Point or Polygon feature that isn't closed and isn't too stale.
The Jsonnet in this use case is basically a full, functional script, so users will likely benefit from tools that help with rapid iteration during development of this Jsonnet. So, a small generate_featurechecktable.py tool is provided to just generate the FeatureCheckTable based on a provided specification, and this tool is documented in the README file in the same folder.