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

Failed to read schema document https://www.eolang.org/xsd/XMIR-0.46.0.xsd #3636

Open
volodya-lombrozo opened this issue Dec 11, 2024 · 7 comments

Comments

@volodya-lombrozo
Copy link
Member

Recently one of the pipelines in jeo-maven-plugin failed with the following error:

-1:-1: schema_reference.4: Failed to read schema document 'https://www.eolang.org/xsd/XMIR-0.46.0.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.

build.log

Moreover, it failed only on ubuntu system. On macos everything is fine.

@volodya-lombrozo
Copy link
Member Author

@yegor256 Could you take a look, please? This issue blocks any progress in jeo-maven-plugin.

@volodya-lombrozo
Copy link
Member Author

Where it happened:

    at com.jcabi.xml.StrictXML.<init> (StrictXML.java:122)
    at com.jcabi.xml.StrictXML.<init> (StrictXML.java:93)
    at com.jcabi.xml.StrictXML.<init> (StrictXML.java:84)
    at com.jcabi.xml.StrictXML.<init> (StrictXML.java:74)
    at org.eolang.jeo.representation.VerifiedEo.asXml (VerifiedEo.java:71)

@yegor256
Copy link
Member

@volodya-lombrozo the URL is valid. The problem most probably is related to some instability of network connection. The best we can do is to introduce a retrying mechanism to StrictXML, but I'm not sure how exactly...

@volodya-lombrozo
Copy link
Member Author

@yegor256 I believe we shouldn't rely on an internet connection here. It creates an enormous number of bugs and flaky tests. It's better to keep everything local. In other words, now we can't develop without the internet. Btw, it is often the case.

As you can see, I faced with this problem immediately.

@volodya-lombrozo
Copy link
Member Author

@yegor256
Copy link
Member

@volodya-lombrozo actually, not a bad idea. We can introduce new class StrictXMIR, which will use one of pre-downloaded XSD documents and avoid outbound connections.

@yegor256 yegor256 transferred this issue from objectionary/lints Dec 11, 2024
@volodya-lombrozo
Copy link
Member Author

Blocks objectionary/jeo-maven-plugin#942

yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 12, 2024
yegor256 added a commit that referenced this issue Dec 13, 2024
yegor256 added a commit that referenced this issue Dec 13, 2024
yegor256 added a commit that referenced this issue Dec 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants