Skip to content

P5 tests should correctly fail when the TEI website is down #2908

Description

@martindholmes

The TEI Test suite depends on the TEI website being available. The make target "testmeta2010" tests this by trying to curl a file from the TEIC website, but if the site is not available, this may hang for many minutes. @sydb and I believe that the curl command should be modified from:

curl -s --head http://www.tei-c.org/Vault/P5/1.5.0/xml/tei/odd/p5subset.xml

to

curl --silent --max-time 15 --show-error --head http://www.tei-c.org/Vault/P5/1.5.0/xml/tei/odd/p5subset.xml

which means the the command will timeout after 15 seconds. At the moment Jenkins will fail the tests on the Error 28 which would be thrown at the command line by this timeout, but we could make the build ignore this by modifying the tei-log-parse-rules in the TEIC/Jenkins repo.

There are other parts of the tests (detest.odd) which depend on the TEI site being up, and those will require additional work.

We should consider whether any tests depending on the TEI website being up should be able to fail gracefully, so that other tests can continue to be run even when the TEI site is down.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions