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

xmlint schema error for config_batch.xml #72

Closed
ekluzek opened this issue Dec 1, 2022 · 3 comments
Closed

xmlint schema error for config_batch.xml #72

ekluzek opened this issue Dec 1, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@ekluzek
Copy link
Contributor

ekluzek commented Dec 1, 2022

It looks there was an error that came in with 7461ce9 in config_batch.xml. It now doesn't match the schema...

This is in ccs_config_cesm0.0.49

(npl) ccs_config/machines> /glade/u/apps/opt/conda/envs/npl/bin/xmllint --xinclude --noout --schema /glade/work/erik/ctsm_worktrees/mizuRoute/cime/CIME/data/config/xml_schemas/config_batch.xsd config_batch.xml
config_batch.xml:59: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:82: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:103: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:150: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:197: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:328: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:337: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:353: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:370: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:382: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:429: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:465: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:479: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:562: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:593: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:605: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:621: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:636: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:651: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:666: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:682: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:695: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:717: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:737: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml:752: element argument: Schemas validity error : Element 'argument': This element is not expected. Expected is ( arg ).
config_batch.xml fails to validate
@ekluzek ekluzek added the bug Something isn't working label Dec 1, 2022
@ekluzek
Copy link
Contributor Author

ekluzek commented Dec 1, 2022

Replacing for and for gets it to pass.

@ekluzek
Copy link
Contributor Author

ekluzek commented Dec 1, 2022

OK, I still trouble getting a case to work. It's now failing with errors like...

        ERROR: Command: '/glade/u/apps/opt/conda/envs/npl/bin/xmllint --xinclude --noout --schema /glade/work/erik/ctsm_worktrees/mizuRoute/cime/CIME/data/config/xml_schemas/config_batch.xsd /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml' failed with error '/glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:59: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:59: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:60: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:60: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:82: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:82: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:83: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:83: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:84: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:84: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:85: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:85: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:86: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but missing.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:86: element arg: Schemas validity error : Element 'arg': Character content is not allowed, because the content type is empty.
        /glade/work/erik/ctsm_worktrees/mizuRoute/ccs_config/machines/config_batch.xml:87: element arg: Schemas validity error : Element 'arg': The attribute 'flag' is required but 

@jedwards4b
Copy link
Collaborator

This change was brought into cime with ESMCI/cime#4307
I believe cime6.0.74 or newer will solve the issue.

ekluzek added a commit to ekluzek/ccs_config_cesm that referenced this issue Dec 16, 2022
ekluzek added a commit to ekluzek/ccs_config_cesm that referenced this issue Dec 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants