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

Display message on missing build script mapping #401

Merged

Conversation

dennis-behm
Copy link
Member

@dennis-behm dennis-behm commented Aug 16, 2023

This is providing a warning message to the console output independently of running in verbose logging mode, when during impact analysis an impacted file was detected, but is not mapped to a language script:

** Found impacted file retirementCalculator/testcase/TEBUD01.cbl
** retirementCalculator/testcase/TEBUD01.cbl is impacted by changed file retirementCalculator/cobol/EBUD01.cbl. Adding to build list.
** Found impacted file retirementCalculator/testcfg/EBUD01.bzucfg
*! retirementCalculator/testcfg/EBUD01.bzucfg is impacted by changed file retirementCalculator/cobol/EBUD01.cbl, but is not added to build list, because it is not mapped to a language script.

The msg is also added to the build result.

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.

Just a small correction, if possible please.

@@ -109,8 +109,12 @@ def createImpactBuildList() {
// impactedFile found, but on Exclude List
// Possible reasons: Exclude of file was defined after building the collection.
// Rescan/Rebuild Collection to synchronize it with defined build scope.
if (props.verbose) println "!! $impactFile is impacted by changed file $changedFile, but is on Exlude List. Not added to build list."
if (props.verbose) println "*!* $impactFile is impacted by changed file $changedFile, but is on Exlude List. Not added to build list."
Copy link
Collaborator

Choose a reason for hiding this comment

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

If I'm not wrong, the error messages start with *! and not *!*, can you change it to be consistent with other scripts?

}
} else {
String warningMsg = "*!* $impactFile is impacted by changed file $changedFile, but is not added to build list, because it is not mapped to a language script."
Copy link
Collaborator

Choose a reason for hiding this comment

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

If I'm not wrong, the error messages start with *! and not *!*, can you change it to be consistent with other scripts?

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

@M-DLB, good catch! The error indicator is fixed.

@dennis-behm dennis-behm merged commit 1996c04 into IBM:develop Aug 16, 2023
1 check passed
ijmitch pushed a commit to ijmitch/dbb-zappbuild that referenced this pull request Sep 12, 2023
…d impacted files (IBM#401)

* Report warning when impacted file does not have a script mapping

Signed-off-by: Dennis Behm <dennis.behm@de.ibm.com>
Signed-off-by: Ian J Mitchell <ianj_mitchell@uk.ibm.com>
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.

Display a message when there is no scriptMapping found for impacted files
2 participants