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

Add schema for the Upload XML submission type #2296

Merged
merged 1 commit into from
Jul 3, 2024

Conversation

sbelsk
Copy link
Collaborator

@sbelsk sbelsk commented Jun 29, 2024

This PR is part of a series meant to improve the submission validation in CDash. The changes introduce an initial schema for the "Upload" XML file type accepted by the CDash submission process. As in the other PRs, this schema has been tested against all such existing XML data files in the CDash repo.

@sbelsk sbelsk added this to the v3.5 milestone Jun 29, 2024
Copy link
Collaborator

@williamjallen williamjallen left a comment

Choose a reason for hiding this comment

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

This seems reasonable to me, but I don't have a lot of files to test it against.

@zackgalbreath
Copy link
Contributor

This tests well against production data, except for large XML files where it fails with:

DOMDocument::load(): xmlSAX2Characters: huge text nodeExtra content at the end of the document

What do we think, merge as-is (perhaps with a caveat) or wait until we figure out a streaming solution for XML validation?

@williamjallen
Copy link
Collaborator

We've seen this issue with other types of files too. It's an issue with the parser being unable to handle large files, not necessarily this particular schema file.

@williamjallen williamjallen added this pull request to the merge queue Jul 3, 2024
github-merge-queue bot pushed a commit that referenced this pull request Jul 3, 2024
This PR is part of a series meant to improve the submission validation
in CDash. The changes introduce an initial schema for the "Upload" XML
file type accepted by the CDash submission process. As in the other PRs,
this schema has been tested against all such existing XML data files in
the CDash repo.
Merged via the queue into Kitware:master with commit 51654b1 Jul 3, 2024
6 checks passed
@sbelsk sbelsk deleted the upload-xml-schema branch July 13, 2024 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants