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

Implement pipeline support for TAZ unit tests #561

Conversation

dennis-behm
Copy link
Member

This PR is dropping the support for IDZ Zunit test setup, and introduces TAZ Unit test support in zAppBuild.

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Copy link
Collaborator

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

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

Few comments

@@ -69,8 +69,8 @@ SEQAMOD=
# Optional IDz Load Library. Example: FEL.V14R0M0.SFELLOAD
SFELLOAD=

# Optional IDZ zUnit / WAZI VTP library containing necessary copybooks. Example : FEL.V14R2.SBZUSAMP
SBZUSAMP=
# Optional IBM Debug Tool library necessary TAZ copybooks. Example : DEBUG.V16.SEQASAMP
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this value optional?

Copy link
Member Author

Choose a reason for hiding this comment

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

Generally it is optional, but obviously required when the user is leveraging TAZ

@@ -246,7 +246,7 @@ def createCompileCommand(String buildFile, LogicalFile logicalFile, String membe

// add additional zunit libraries
if (isZUnitTestCase)
compile.dd(new DDStatement().dsn(props.SBZUSAMP).options("shr"))
compile.dd(new DDStatement().dsn(props.SEQASAMP).options("shr"))
Copy link
Collaborator

Choose a reason for hiding this comment

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

In there an indentation issue here?

languages/TazUnitTest.groovy Outdated Show resolved Hide resolved
props.error = "true"
String errorMsg = "*! zUnit Test Job ${zUnitRunJCL.submittedJobId} failed with ${zUnitRunJCL.maxRC}"
String errorMsg = "*! The zunit test failed with RC=($rc) for $buildFile "
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
String errorMsg = "*! The zunit test failed with RC=($rc) for $buildFile "
String errorMsg = "*! The TAZ Unit Test failed with RC=$rc for '$buildFile'"

@@ -30,7 +30,7 @@ SCSQLOAD | MQ Load Library. Example: CSQ.V9R1M0.SCSQLOAD
SDSNLOAD | DB2 Load Library. Example: DB2.V9R1M0.SDSNLOAD
SDSNEXIT | DB2 Exit Library. Example: DBC0CFG.SDSNEXIT
SFELLOAD | Optional IDz Load Library. Example: FEL.V14R0M0.SFELLOAD
SBZUSAMP | Optional z/OS Dynamic Test Runner IDz zUnit / WAZI VTP library containing necessary copybooks. Example : FEL.V14R2.SBZUSAMP
SEQASAMP | Optional IBM Debug Tool library containing necessary TAZ copybooks. Example : DEBUG.V16.SEQASAMP
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is it optional?

Copy link
Member Author

Choose a reason for hiding this comment

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

Required for TAZ, but optional for a normal Cobol build.

build-conf/datasets.properties Outdated Show resolved Hide resolved
dennis-behm and others added 9 commits November 7, 2024 13:45
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Co-authored-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Co-authored-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
* Provide deployType for object decks
Signed-off-by: Mathieu Dalbin <mathieu.dalbin@fr.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
feature/560-support-for-taz-early-development-tests-unit-tests

# Conflicts:
#	languages/Cobol.groovy
@dennis-behm
Copy link
Member Author

@M-DLB I rebased/merged upstream/develop and resolved some merge conflicts. Your comments should be addressed as well.

Please see the attached a build run with outputs generated with TAZ 1.0.0.3.

pr561.log

Copy link
Collaborator

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

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

Just realized the property jobCard is in application.properties, and could be shared with other language scripts.
Would it make sense to move it to the TAZUnitTest.properties and use a better property name like tazunittest_jobCard, and provide a default value?

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
@dennis-behm
Copy link
Member Author

@M-DLB Introduced a dedicated job card property for the taz unit tests, and uplifted a couple of properties in the with the recent commits.

Can you please have another check? Thanks

Copy link
Collaborator

@M-DLB M-DLB left a comment

Choose a reason for hiding this comment

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

Thank you @dennis-behm

@dennis-behm dennis-behm merged commit 746fba0 into IBM:develop Nov 8, 2024
1 check failed
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.

2 participants