Skip to content
This repository has been archived by the owner on Aug 29, 2024. It is now read-only.

UNR-1644: Schema compiler failure should fail schema generation #1293

Merged
merged 5 commits into from
Aug 15, 2019

Conversation

sjtsilvester
Copy link
Contributor

@sjtsilvester sjtsilvester commented Aug 12, 2019

Contributions: We are not currently taking public contributions - see our contributions policy. However, we are accepting issues and we do want your feedback.


Description

UNR-1644: Change SpatialGDKGenerateSchema to cause the window to display "schema generation failed" if schema compilation failed.

Release note

Bugfix: When schema compiler fails, schema generation correctly shows an error.

Tests

Running schema generation normally succeeds as normal. Deleting GDK schema files and running an iterative schema gen correctly produces an output.

How can this be verified by QA?

Run an iterative schema gen that should succeed and confirm the window displays the succeed message, then force the iterative schema gen to fail (e.g. by deleting GDK schema files) and confirming the window displays an error message.

Also, delete the schema descriptor directory in a test project (spatial/build/assembly/schema) and set its parent directory to read-only (right click on directory -> properties -> select security and deny write). Running the full schema gen should fail. Deleting schema descriptor directory without changing access permissions should still result in schema gen success.

Primary reviewers

@joshuahuburn @improbable-valentyn

@improbable-prow-robot
Copy link

Corresponding JIRA ticket: https://improbableio.atlassian.net/browse/UNR-1644

@improbable-prow-robot improbable-prow-robot added jira/UNR size/XS Denotes a PR that changes 0-14 lines, ignoring generated files. labels Aug 12, 2019
@sjtsilvester sjtsilvester force-pushed the bugfix/UNR-1644-schema-compiler-wrong-output branch from 0d9f428 to 92b307c Compare August 12, 2019 15:02

return true;
bool SchemaCompileSuccess = RunSchemaCompiler();
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SchemaCompileSuccess -> SchemaCompilerSuccess?
Also what about just return RunSchemaCompiler();

@sjtsilvester sjtsilvester merged commit 7b4a962 into master Aug 15, 2019
@sjtsilvester sjtsilvester deleted the bugfix/UNR-1644-schema-compiler-wrong-output branch August 15, 2019 10:15
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
jira/UNR size/XS Denotes a PR that changes 0-14 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants