Skip to content

add unit test to unitTest.groovy#500

Open
osalyk wants to merge 13 commits intomasterfrom
osalyk/pipline-lib_tests
Open

add unit test to unitTest.groovy#500
osalyk wants to merge 13 commits intomasterfrom
osalyk/pipline-lib_tests

Conversation

@osalyk
Copy link
Contributor

@osalyk osalyk commented Mar 17, 2026

No description provided.

osalyk added 4 commits March 17, 2026 15:37
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

update after review

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

test: add another batch of fixes

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

improve the next tests

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

add gradlew configuration

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

add corrections after review

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

fix stage name

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

fix stage name

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>

Skip-daos-build-and-test: true
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
@osalyk osalyk force-pushed the osalyk/pipline-lib_tests branch from 8fcad29 to 7b03f25 Compare March 18, 2026 09:36
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
@osalyk osalyk force-pushed the osalyk/pipline-lib_tests branch from 7b03f25 to 3846224 Compare March 18, 2026 09:38
osalyk added 2 commits March 18, 2026 10:45
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
@osalyk osalyk marked this pull request as ready for review March 18, 2026 11:04
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
@osalyk osalyk force-pushed the osalyk/pipline-lib_tests branch from cad8cc5 to 7dd9560 Compare March 18, 2026 14:11
Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
osalyk added 2 commits March 19, 2026 12:08
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
Skip-daos-build-and-test: true

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.com>
janekmi
janekmi previously approved these changes Mar 19, 2026
Copy link
Collaborator

@JohnMalmberg JohnMalmberg left a comment

Choose a reason for hiding this comment

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

This code does not appear to be able to pass groovylint checks.

Every "def" declaration is going to cause Jenkins log noise. There are a few cases where it must be used for some function return values, and in those cases it should be suppressed, in all others it should be the proper type.

The groovylint for visual studio code can not detect if the first use of a variable is missing a type declaration, which is serious for Jenkins as can cause intermittent data corruption.

The current system-pipeline-lib PR I have open has code to doing the groovylint, that also checks for undeclared variables both runnable as a github action and as a pre-commit hook.

Jenkinsfile Outdated
parallel {
stage('JUnit Tests') {
agent {
label 'brd-108_light_1'
Copy link
Collaborator

Choose a reason for hiding this comment

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

We never want a named build agent host as a target label for a PR intended for landing.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Done.

@janekmi
Copy link

janekmi commented Mar 19, 2026

@JohnMalmberg wrote:

The current system-pipeline-lib PR I have open has code to doing the groovylint, that also checks for undeclared variables both runnable as a github action and as a pre-commit hook.

That's great! When it got landed in the system-pipeline-lib we can adopt it here and forget about this kind of issues in the future. 🙂

Ref: https://github.com/daos-stack/system-pipeline-lib/pull/18

Signed-off-by: Oksana Salyk <oksana.salyk@hpe.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.

3 participants