Skip to content
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

Support for optional string and map types #76

Merged
merged 4 commits into from
Jun 1, 2020
Merged

Conversation

imobachgs
Copy link
Contributor

@imobachgs imobachgs commented May 7, 2020

Update BuildRequires dependencies. Please, do not merge this PR until all modules are adapted.

Trello: https://trello.com/c/HkFkUQHj/1791-3-continue-with-new-xml-parser-xml-validation
Bugzilla: https://bugzilla.suse.com/show_bug.cgi?id=1170886

To fix up things properly, all of these are needed together:

@imobachgs imobachgs changed the title Support for optional string and map types [WIP] Support for optional string and map types May 7, 2020
… (bsc#1172131)

jing depends on Java JRE but that is pulled in by trang already
Why both? The stars show their strong points:

|                            | jing      | xmllint         |
|----------------------------+-----------+-----------------|
| runtime dependencies       | big (JRE) | * small (glibc) |
| detects invalid documents  | yes       | yes             |
| explains what is wrong     |           |                 |
| ... with invalid documents | * yes     | no              |
@mvidner
Copy link
Member

mvidner commented May 26, 2020

@imobachgs I have checked with rake osc:build that the dependencies are satisfied and it builds.

I want to break it by introducing a check on the correctness of the schema, in thefollowing commits.

Also, https://ci.opensuse.org/view/Yast/job/yast-yast-schema-master/39/console is failing for lack of memory(?).

@imobachgs imobachgs changed the title [WIP] Support for optional string and map types Support for optional string and map types May 27, 2020
@mvidner
Copy link
Member

mvidner commented May 27, 2020

Josef has noted that the schema check should prehaps run at regular intervals, not just when this package changes, because it mostly breaks because of the dependencies.

Copy link
Member

@lslezak lslezak left a comment

Choose a reason for hiding this comment

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

jing?

@@ -29,6 +29,8 @@ License: GPL-2.0-or-later
Url: https://github.com/yast/yast-schema

# Dependencies needed to build the package
BuildRequires: jing
Copy link
Member

Choose a reason for hiding this comment

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

Um, this will pull in whole Java stack as a dependency. 😟
I guess the OBS guys will not be happy about this...

I think it would be better to run the check regularly at Travis or Jenkins.

Or would it be enough just to use xmllint? That's much smaller...

Copy link
Member

Choose a reason for hiding this comment

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

Yes it does pull in the JRE but we already must use Trang which also needs it, so it's not a new dependency.

@mvidner mvidner merged commit 16e84a2 into master Jun 1, 2020
@mvidner mvidner deleted the improve_schema branch June 1, 2020 10:40
@yast-bot
Copy link
Contributor

yast-bot commented Jun 1, 2020

❌ Public Jenkins job #40 failed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants