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

Fix RM: *found unexecuted Jira tests* error during promote2Production when functional test only runs on D and QA #832

Merged
merged 4 commits into from
Jan 24, 2022

Conversation

jafarre-bi
Copy link
Contributor

Ignore unexecuted acceptance and integration tests when deploying into prod

@@ -299,6 +299,16 @@ class JiraUseCase {
}
}

private boolean mustRun(testIssue) {
return !(project.buildParams?.targetEnvironmentToken == 'P' &&
Copy link
Member

@metmajer metmajer Jan 24, 2022

Choose a reason for hiding this comment

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

@jafarre-viewnext it may be worth to factor the environment part into a Project method

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Just committed a change. Is this what you had in mind?

[
Project.TestType.ACCEPTANCE.toLowerCase(),
Project.TestType.INTEGRATION.toLowerCase()
]
Copy link
Contributor

Choose a reason for hiding this comment

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

Does this mean TestType.UNIT must also be executed in P?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, this is what the ticket said. Should I ignore everything that is not explicitly marked as INSTALLATION?

Copy link
Contributor

Choose a reason for hiding this comment

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

Yes, the ticket only mentions those two (acceptance and integration). But I do wonder if we should consider unit here or not, just in case. @metmajer

Copy link
Member

Choose a reason for hiding this comment

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

@albertpuente @jafarre-viewnext Unit tests are not executed in P, you can add it to the list.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Ok, in this case it will be clearer to reverse the check and require only tests of type INSTALLATION

@jafarre-bi jafarre-bi marked this pull request as ready for review January 24, 2022 15:08
@clemensutschig
Copy link
Member

@albertpuente - what we could do is to reconfigure your jenkins to pick up this branch / from github - to see if it's working :)

@albertpuente
Copy link
Contributor

Yes, I will start a new version now.

@albertpuente
Copy link
Contributor

I confirm the pipeline now runs from WIP -> PROD with this fix. Tests are also updated accordingly (P shows UNEXECUTED).

@metmajer
Copy link
Member

:) Thanks @albertpuente @jafarre-viewnext @s2oBCN @clemensutschig !

@clemensutschig
Copy link
Member

this is mega cool - we need this for master / 4.x and 3.x :)

@jafarre-bi jafarre-bi merged commit 3e80750 into master Jan 24, 2022
@jafarre-bi jafarre-bi deleted the fix/EDPC-1142 branch January 24, 2022 18:13
jafarre-bi pushed a commit that referenced this pull request Jan 24, 2022
… when functional test only runs on D and QA (#832)

* Ignore unexecuted acceptance and integration tests when deploying into prod

Co-authored-by: zxBCN Farre_Basurte,Juan_Antonio (IT EDS) EXTERNAL <juan_antonio.farre_basurte.ext@boehringer-ingelheim.com>

(cherry picked from commit 3e80750)
jafarre-bi pushed a commit that referenced this pull request Jan 24, 2022
… when functional test only runs on D and QA (#832)

* Ignore unexecuted acceptance and integration tests when deploying into prod

Co-authored-by: zxBCN Farre_Basurte,Juan_Antonio (IT EDS) EXTERNAL <juan_antonio.farre_basurte.ext@boehringer-ingelheim.com>

(cherry picked from commit 3e80750)
jafarre-bi pushed a commit that referenced this pull request Jan 24, 2022
… when functional test only runs on D and QA (#832) (#833)

* Ignore unexecuted acceptance and integration tests when deploying into prod

Co-authored-by: zxBCN Farre_Basurte,Juan_Antonio (IT EDS) EXTERNAL <juan_antonio.farre_basurte.ext@boehringer-ingelheim.com>

(cherry picked from commit 3e80750)
jafarre-bi pushed a commit that referenced this pull request Jan 24, 2022
… when functional test only runs on D and QA (#832) (#834)

* Fix RM: *found unexecuted Jira tests* error during promote2Production when functional test only runs on D and QA (#832)

* Ignore unexecuted acceptance and integration tests when deploying into prod

Co-authored-by: zxBCN Farre_Basurte,Juan_Antonio (IT EDS) EXTERNAL <juan_antonio.farre_basurte.ext@boehringer-ingelheim.com>

(cherry picked from commit 3e80750)
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.

RM: *found unexecuted Jira tests* error during promote2Production when functional test only runs on D and QA
4 participants