-
Notifications
You must be signed in to change notification settings - Fork 51
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix: Standardise schema migration
CLI errors
#1682
fix: Standardise schema migration
CLI errors
#1682
Conversation
schema migration set
errors schema migration set
errors
3033df6
to
8cc57f0
Compare
Codecov ReportPatch coverage:
@@ Coverage Diff @@
## develop #1682 +/- ##
===========================================
+ Coverage 74.89% 75.43% +0.53%
===========================================
Files 203 203
Lines 21091 21092 +1
===========================================
+ Hits 15796 15909 +113
+ Misses 4214 4086 -128
- Partials 1081 1097 +16
Flags with carried forward coverage won't be shown. Click here to find out more.
... and 11 files with indirect coverage changes Continue to review full report in Codecov by Sentry.
|
8cc57f0
to
d95f630
Compare
Original location did not seem to write them to stderr (within the test framework at least)
d95f630
to
8ce5a42
Compare
schema migration set
errorsschema migration
CLI errors
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good Andy. I'm not sure if this should be part of this PR but would it be possible to add integration tests with invalid arguments to a lens module?
{"lenses": [{"path": "/path/to/remove.wasm", "arguments": {"invalid":"verified"}}]}
There is one such test - Within the CLI tests for Lens I just care that it does report wasm generated errors to the user, I see the specifics regarding which errors and how/when they are generated as out of scope here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -29,7 +29,7 @@ ifdef BUILD_TAGS | |||
BUILD_FLAGS+=-tags $(BUILD_TAGS) | |||
endif | |||
|
|||
TEST_FLAGS=-race -shuffle=on -timeout 70s | |||
TEST_FLAGS=-race -shuffle=on -timeout 120s |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: what caused this bump?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More tests == even slower :(
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess a bunch of CLI tests
## Relevant issue(s) Resolves sourcenetwork#1652 ## Description Standardises `schema migration` CLI errors. And errors if given unknown lens cfg properties. Adds integration tests for the commands.
Relevant issue(s)
Resolves #1652
Description
Standardises
schema migration set
errors. And errors if given unknown lens cfg properties.Adds integration tests for the command.