-
Notifications
You must be signed in to change notification settings - Fork 183
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
Updates to accommodate CI/CD #1985
Conversation
Imitate changes in xslt3-functions PR#7. - CI/CD puts compiled XSpec file somewhere else, so define ov:service variable more robustly so that uuid-value.txt will be found regardless of where compiled XSpec file is. - Java UUID class is not found in CI/CD, so conditionalize tests that use it. Running XSpec in Oxygen finds the class and verifies its results (same as before this change).
@galtm - The path to the "missing file" was addressed by your change. There are other tests failing. Majority, due to another relative path not well defined (details below, based on local execution):
Here is first error:
The other tests appear to fail due to the relative path I mentioned:
Everywhere where the path is define as:
It should be:
since the project tree is: OSCAL/src/specifications/profile-resolution/proile-resolution-examples/catalogs/xyz-tiny_catalog.xml |
- 2nd argument of resolve-uri makes the path relative to the original XSpec file instead of the compiled one, whose location can vary depending on how the test is run - Remove one ../ from URI to resolve (similar to usnistgov#1945) because of directory reorg
Temporary change until it's clear whether this feature is supported and what its expected result should be.
`select="id('a1-stmt')"` works in Oxygen but not xspec.bat or CI/CD. Expressing that select attribute a different way. Also, I fixed a select attribute where the namespace prefix was missing. The omission caused the test to pass for the wrong reason (empty context).
@iMichaela , thanks for running the makefile on Linux and sharing the results. I pushed a few new commits:
For all the tests that showed failures in the output you cited earlier, I ran the modified tests in Oxygen and in a Windows shell using Cc: @wendellpiez |
Indeed. All tests passed. I will review one more time today and approve it. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Beautiful work thanks @galtm
Committer Notes
{Please provide a brief description of what this PR accomplishes. Be sure to reference any issues addressed. If the PR is a work-in-progress submitted for early review, please include [WIP] at the beginning of the title or mark the PR as DRAFT.}
This PR imitates changes in xslt3-functions PR#7 to make XSpec tests compatible with CI/CD.
CI/CD puts compiled XSpec file somewhere else, so define ov:service variable more robustly so that uuid-value.txt will be found regardless of where compiled XSpec file is.
Java UUID class is not found in CI/CD, so conditionalize tests that use it. Running XSpec in Oxygen finds the class and verifies its results (same as before this change).
All Submissions:
By submitting a pull request, you are agreeing to provide this contribution under the CC0 1.0 Universal public domain dedication.
(For reviewers: The wiki has guidance on code review and overall issue review for completeness.)
Changes to Core Features:
N/A because this is not a feature change.