Skip to content

[tests-only][full-ci]fix flaky test apiSpacesShares/shareSpaces.feature:42 - #5545

Merged
v-scharf merged 1 commit into
masterfrom
fix-flaky-test-ci
Feb 10, 2023
Merged

v-scharf merged 1 commit into
masterfrom
fix-flaky-test-ci

Conversation

@SwikritiT

@SwikritiT SwikritiT commented Feb 10, 2023 •

Copy link
Copy Markdown
Contributor

Description

This PR fixes the flaky test

Related Issue

Motivation and Context

The test was failing because it searched for the index group in the array it was looping through and the index doesn't exist in every loop so the check fails with Undefined index: group in /drone/src/tests/acceptance/features/bootstrap/SpacesContext.php line 3285 this PR checks if the index is set .

How Has This Been Tested?

  • locally
  • CI

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)
  • Technical debt
  • Tests only (no source changes)

Checklist:

  • Code changes
  • Unit tests added
  • Acceptance tests added
  • Documentation ticket raised:

@SwikritiT SwikritiT self-assigned this Feb 10, 2023
@SwikritiT
SwikritiT force-pushed the fix-flaky-test-ci branch 2 times, most recently from 55fffdd to 00aaa90 Compare February 10, 2023 06:16
@SwikritiT
SwikritiT marked this pull request as ready for review February 10, 2023 06:22
saw-jan
saw-jan previously approved these changes Feb 10, 2023

@saw-jan saw-jan left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@saw-jan
saw-jan self-requested a review February 10, 2023 07:08
@individual-it

Copy link
Copy Markdown
Member

does this only happen in master or also in stable?

@v-scharf v-scharf left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Looks good. Please wait to merge because f2f64fd may be conflicting.

@SwikritiT

Copy link
Copy Markdown
Contributor Author

does this only happen in master or also in stable?

only on master because I don't think this test is in a stable branch. @ScharfViktor should we port the tests to stable as well?

@v-scharf

Copy link
Copy Markdown
Contributor

does this only happen in master or also in stable?

only on master because I don't think this test is in a stable branch. @ScharfViktor should we port the tests to stable as well?

sharing to group doesn't work in stable-2.0 so I didn't move tests

@sonarqubecloud

Copy link
Copy Markdown

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@v-scharf
v-scharf merged commit 0f31ed1 into master Feb 10, 2023
@delete-merged-branch
delete-merged-branch Bot deleted the fix-flaky-test-ci branch February 10, 2023 10:45
ownclouders pushed a commit that referenced this pull request Feb 10, 2023
Author: Swikriti Tripathi <[email protected]>
Date:   Fri Feb 10 16:30:07 2023 +0545

    fix flaky test apiSpacesShares/shareSpaces.feature:42 (#5545)
@saw-jan saw-jan mentioned this pull request Feb 28, 2023
2 of 9 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

apiSpacesShares/shareSpaces.feature:42 is flaky

4 participants