Basic manual e2e regression test suite #285
Merged
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 adds a script that lets us check the HTTP output of various endpoints against old versions of the indexer.
Alluded to in #273, but this script is NOT integrated into CI. Its major caveat is that it's most informative when you run the indexer against prod data for a good number of rounds, and then check what it outputs. I don't think the script is useful enough to do it on every CI run -- it takes time, and it increases brittleness (because the test needs an external, synced oasis-node).
Changes in the PR:
tests/e2e_regression/run.sh
- the main script- files with the output as produced currently. I'm not checking these in because of the one-off nature of the script's intended usage.tests/e2e_regression/expected/*
- a patch that lets one set up an analyzer with deterministic outputs: Use a config that runs the consensus+emerald analyzer only up to a certain height (this was already possible before this PR), and use the metadata_registry analyzer against a static intended-for-test branch of the registry.analyzer/metadata_registry.go