-
Notifications
You must be signed in to change notification settings - Fork 569
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 aggregation of flaky test results in Jenkins #8472
Conversation
I've added 2 Once reviewed, I'll rebase and remove the 2 commits. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 🎄
Just 1 question, but not blocking
Good point - it might be safer to run it multiple times, and also clearer why/what we're doing. |
Fixes the Jenkins junit plugin pattern used to detect test reports in our CI pipeline. The flaky test plugin will add a `-flaky` suffix, so we need to add an additional `*` to the pattern. Unfortunately as it's not a regex but simply an Ant glob pattern, there is no way to further restrict matches, so there's still the risk it could collide and double the test reports.
4e8d4c7
to
76eb54e
Compare
bors merge |
8472: Fix aggregation of flaky test results in Jenkins r=npepinpe a=npepinpe ## Description This PR fixes the aggregation of flaky test results. There was an issue where I changed the glob pattern which caused flaky tests to be ignored when collecting the reports. Essentially, the flaky test plugin adds a `-FLAKY` suffix to the test name and creates a new report for that run under `surefire-reports` or `failsafe-reports`, so we were missing a glob `*` at the end of the pattern. ## Related issues closes #8373 Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
Build failed: |
bors retry |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/1.1
git worktree add -d .worktree/backport-8472-to-stable/1.1 origin/stable/1.1
cd .worktree/backport-8472-to-stable/1.1
git checkout -b backport-8472-to-stable/1.1
ancref=$(git merge-base 5471fe471b009b4fc61d3f7b64fedf6fc731298a 76eb54eb993db5e67a78d4f3273537de060c8b88)
git cherry-pick -x $ancref..76eb54eb993db5e67a78d4f3273537de060c8b88 |
Backport failed for Please cherry-pick the changes locally. git fetch origin stable/1.2
git worktree add -d .worktree/backport-8472-to-stable/1.2 origin/stable/1.2
cd .worktree/backport-8472-to-stable/1.2
git checkout -b backport-8472-to-stable/1.2
ancref=$(git merge-base 5471fe471b009b4fc61d3f7b64fedf6fc731298a 76eb54eb993db5e67a78d4f3273537de060c8b88)
git cherry-pick -x $ancref..76eb54eb993db5e67a78d4f3273537de060c8b88 |
8483: [Snyk] Fix for 1 vulnerabilities r=npepinpe a=snyk-bot <h3>Snyk has created this PR to fix one or more vulnerable packages in the `maven` dependencies of this project.</h3> #### Changes included in this PR - Changes to the following files to upgrade the vulnerable dependencies to a fixed version: - parent/pom.xml #### Vulnerabilities that will be fixed ##### With an upgrade: Severity | Issue | Upgrade | Breaking Change | Exploit Maturity :-------------------------:|:-------------------------|:-------------------------|:-------------------------|:------------------------- ![medium severity](https://res.cloudinary.com/snyk/image/upload/w_20,h_20/v1561977819/icon/m.png "medium severity") | Denial of Service (DoS) <br/>[SNYK-JAVA-COMFASTERXMLJACKSONCORE-2326698](https://snyk.io/vuln/SNYK-JAVA-COMFASTERXMLJACKSONCORE-2326698) | `org.springframework.boot:spring-boot-actuator-autoconfigure:` <br> `2.5.2 -> 2.5.8` <br> `org.springframework.boot:spring-boot-starter-web:` <br> `2.5.2 -> 2.5.8` <br> | No | No Known Exploit #### Vulnerabilities that could not be fixed - Upgrade: - Could not upgrade `io.camunda:zeebe-atomix-cluster@1.1.10-SNAPSHOT` to `io.camunda:zeebe-atomix-cluster@1.2.0`; Reason `could not apply upgrade, dependency is managed externally` ; Location: `provenance does not contain location` - Could not upgrade `io.camunda:zeebe-broker@1.1.10-SNAPSHOT` to `io.camunda:zeebe-broker@1.2.0`; Reason `could not apply upgrade, dependency is managed externally` ; Location: `provenance does not contain location` - Could not upgrade `io.camunda:zeebe-elasticsearch-exporter@1.1.10-SNAPSHOT` to `io.camunda:zeebe-elasticsearch-exporter@1.2.0`; Reason `could not apply upgrade, dependency is managed externally` ; Location: `provenance does not contain location` - Could not upgrade `io.camunda:zeebe-gateway@1.1.10-SNAPSHOT` to `io.camunda:zeebe-gateway@1.2.0`; Reason `could not apply upgrade, dependency is managed externally` ; Location: `provenance does not contain location` - Could not upgrade `io.camunda:zeebe-util@1.1.10-SNAPSHOT` to `io.camunda:zeebe-util@1.2.0`; Reason `could not apply upgrade, dependency is managed externally` ; Location: `provenance does not contain location` Check the changes in this PR to ensure they won't cause issues with your project. ------------ **Note:** *You are seeing this because you or someone else with access to this repository has authorized Snyk to open fix PRs.* For more information: <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI1ZDk1ZDkwMS1hOTZhLTQ4M2YtOGEzZS1jYTQ2OGI0ZmNkODUiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6IjVkOTVkOTAxLWE5NmEtNDgzZi04YTNlLWNhNDY4YjRmY2Q4NSJ9fQ==" width="0" height="0"/> 🧐 [View latest project report](https://app.snyk.io/org/zeebe-io/project/c2a97f6a-4bf7-4ff0-8ca8-b64956582654?utm_source=github&utm_medium=referral&page=fix-pr) 🛠 [Adjust project settings](https://app.snyk.io/org/zeebe-io/project/c2a97f6a-4bf7-4ff0-8ca8-b64956582654?utm_source=github&utm_medium=referral&page=fix-pr/settings) 📚 [Read more about Snyk's upgrade and patch logic](https://support.snyk.io/hc/en-us/articles/360003891078-Snyk-patches-to-fix-vulnerabilities) [//]: # (snyk:metadata:{"prId":"5d95d901-a96a-483f-8a3e-ca468b4fcd85","prPublicId":"5d95d901-a96a-483f-8a3e-ca468b4fcd85","dependencies":[{"name":"io.camunda:zeebe-atomix-cluster","from":"1.1.10-SNAPSHOT","to":"1.2.0"},{"name":"io.camunda:zeebe-broker","from":"1.1.10-SNAPSHOT","to":"1.2.0"},{"name":"io.camunda:zeebe-elasticsearch-exporter","from":"1.1.10-SNAPSHOT","to":"1.2.0"},{"name":"io.camunda:zeebe-gateway","from":"1.1.10-SNAPSHOT","to":"1.2.0"},{"name":"io.camunda:zeebe-util","from":"1.1.10-SNAPSHOT","to":"1.2.0"},{"name":"org.springframework.boot:spring-boot-actuator-autoconfigure","from":"2.5.2","to":"2.5.8"},{"name":"org.springframework.boot:spring-boot-starter-web","from":"2.5.2","to":"2.5.8"}],"packageManager":"maven","projectPublicId":"c2a97f6a-4bf7-4ff0-8ca8-b64956582654","projectUrl":"https://app.snyk.io/org/zeebe-io/project/c2a97f6a-4bf7-4ff0-8ca8-b64956582654?utm_source=github&utm_medium=referral&page=fix-pr","type":"auto","patch":[],"vulns":["SNYK-JAVA-COMFASTERXMLJACKSONCORE-2326698"],"upgrade":["SNYK-JAVA-COMFASTERXMLJACKSONCORE-2326698"],"isBreakingChange":false,"env":"prod","prType":"fix","templateVariants":[],"priorityScoreList":[null]}) 8487: [Backport stable/1.1] Fix junit report pattern r=deepthidevaki a=npepinpe ## Description Fixes the Jenkins junit plugin pattern used to detect test reports in our CI pipeline. The flaky test plugin will add a `-flaky` suffix, so we need to add an additional `*` to the pattern. Unfortunately as it's not a regex but simply an Ant glob pattern, there is no way to further restrict matches, so there's still the risk it could collide and double the test reports. (cherry picked from commit 76eb54e) ## Related issues relates to #8472 Co-authored-by: snyk-bot <snyk-bot@snyk.io> Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
8488: [Backport stable/1.2] Fix junit report pattern r=deepthidevaki a=npepinpe ## Description Fixes the Jenkins junit plugin pattern used to detect test reports in our CI pipeline. The flaky test plugin will add a `-flaky` suffix, so we need to add an additional `*` to the pattern. Unfortunately as it's not a regex but simply an Ant glob pattern, there is no way to further restrict matches, so there's still the risk it could collide and double the test reports. (cherry picked from commit 76eb54e) ## Related issues relates to #8472 Co-authored-by: Nicolas Pepin-Perreault <nicolas.pepin-perreault@camunda.com>
Description
This PR fixes the aggregation of flaky test results. There was an issue where I changed the glob pattern which caused flaky tests to be ignored when collecting the reports. Essentially, the flaky test plugin adds a
-FLAKY
suffix to the test name and creates a new report for that run undersurefire-reports
orfailsafe-reports
, so we were missing a glob*
at the end of the pattern.Related issues
closes #8373
Definition of Done
Not all items need to be done depending on the issue and the pull request.
Code changes:
backport stable/0.25
) to the PR, in case that fails you need to create backports manually.Testing:
Documentation: