Skip to content

changes in validation script to change engine location#22

Merged
gerrycampion merged 36 commits into
mainfrom
rules_2
Jun 5, 2026
Merged

changes in validation script to change engine location#22
gerrycampion merged 36 commits into
mainfrom
rules_2

Conversation

@alexfurmenkov

@alexfurmenkov alexfurmenkov commented Apr 28, 2026

Copy link
Copy Markdown
Collaborator

I made some additional changes. Primarily:

  • Make all diff output have consistent naming of "Expected" and "Actual". No more "Committed", "Generated", or "Got".
  • Change CSV results so that it is an output format option of Engine instead of a post-JSON conversion script.
  • Still generate the actual results even if the expected results file is missing. Convey the missing file in the expected results column with an X.
  • Remove the summary report Execution column as this information can be conveyed with an X in the actual results column.

Here is the latest sample run with the summary table and downloadable detailed artifacts: https://github.com/cdisc-org/cdisc-rules-engine/actions/runs/26971664417

@alexfurmenkov alexfurmenkov marked this pull request as ready for review May 13, 2026 12:02
tr,TRSTAT,Completion Status,Char,50
tr,TRREASND,Reason Not Done,Char,50
tr,TRNAM,Laboratory/Vendor Name,Char,50
tr,TRLOC,Location of the Tumor/Lesion,Char,50

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here in the data TRLOC is added. The relevant rule in this folder checks for presence of this variable and raises error if this is present. The result.csv file is not updated which I believe would change after addition of this variable in the data.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

TRLOC should not be in the positive data-- it should only exist in the negative data as that is the failure criteria for the rule


done # cases
done # test types
done < <(find "$TYPE_DIR" -mindepth 1 -maxdepth 1 -type d -print0 | sort -z)

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is for to handle the spaces in the path safely but the for loop in the top does not use it. For this to be affective use while loop instead of for loop.

@alexfurmenkov

Copy link
Copy Markdown
Collaborator Author

@SFJohnson24 or anyone who can, can you please delete this PR and rules_2 branch fromBranches? rules_2 became protected and I can't push anymore. created new PR with the same changes and latest changes requested by @RamilCDISC

@SFJohnson24

Copy link
Copy Markdown
Collaborator

@alexfurmenkov resolved the branch protections issue--I believe you shouldnt have a problem now

@alexfurmenkov alexfurmenkov requested a review from RamilCDISC May 21, 2026 08:15

@RamilCDISC RamilCDISC left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Only this small change after which I think it would be good to merge.

Comment thread .github/scripts/run_validation.sh Outdated
@gerrycampion gerrycampion merged commit 71c601a into main Jun 5, 2026
3 checks passed
@gerrycampion gerrycampion deleted the rules_2 branch June 5, 2026 13:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants