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

Improve the submission XML validation script #2335

Merged
merged 1 commit into from
Jul 8, 2024

Conversation

sbelsk
Copy link
Collaborator

@sbelsk sbelsk commented Jul 8, 2024

This PR expands on the initial implementation of the submission XML validator introduced in #2277. The validator now supports parsing bigger XML files, can process multiple files per invocation, and provides better error handling. The logic for determining the submission XML file type has been pulled out to be used by both the submission parsers and the XML validation code.

To use the validator from a CDash container, run:

php <cdash_base>/artisan submission:validate <xml_file>...

where <cdash_base> is the path to the application root directory (e.g., /cdash), and <xml_file>... are one or more file paths to to be validated.

@sbelsk sbelsk force-pushed the refactor-xml-validator branch from c15e713 to 5e47ef8 Compare July 8, 2024 17:32
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.

Looks reasonable to me. My earlier comments can be addressed in a separate dedicated refactor PR.

@williamjallen williamjallen enabled auto-merge July 8, 2024 17:51
@williamjallen williamjallen added this to the v3.6 milestone Jul 8, 2024
@williamjallen williamjallen added this pull request to the merge queue Jul 8, 2024
Merged via the queue into Kitware:master with commit 27a6ed9 Jul 8, 2024
6 checks passed
@sbelsk sbelsk deleted the refactor-xml-validator branch July 13, 2024 14:14
github-merge-queue bot pushed a commit that referenced this pull request Jul 13, 2024
…ences (#2339)

A follow up PR to #2335 to fix some
of the php errors uncovered by the changes it made.
github-merge-queue bot pushed a commit that referenced this pull request Jan 13, 2025
This is a follow up to the submission XML schemas along with the
validation artisan command (see
#2335) that were recently
introduced. The changes in this PR add the option to use this validation
process on incoming submission files, although this option is disabled
by default.
A test has been added to verify these changes, and the docs have been
updated to reflect the new configuration option.

---------

Co-authored-by: Joseph Snyder <[email protected]>
Co-authored-by: William Allen <[email protected]>
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.

2 participants