Skip to content

Fixing flaky IT tests#12466

Merged
pdurbin merged 1 commit into
developfrom
12463-fix-flaky-tests
Jun 15, 2026
Merged

Fixing flaky IT tests#12466
pdurbin merged 1 commit into
developfrom
12463-fix-flaky-tests

Conversation

@stevenwinship

Copy link
Copy Markdown
Contributor

What this PR does / why we need it: Some tests fail due to the state left over by other tests. This will take those into account when testing.

Which issue(s) this PR closes:#12463

Special notes for your reviewer: The main issue was with multiple dataverses being created that threw off the counts.

Suggestions on how to test this: no need as these are tests

Does this PR introduce a user interface change? If mockups are available, please link/include them here:

Is there a release notes update needed for this change?:

Additional documentation:

@stevenwinship stevenwinship self-assigned this Jun 15, 2026
@github-actions github-actions Bot added the Type: Bug a defect label Jun 15, 2026
@stevenwinship stevenwinship moved this to In Progress 💻 in IQSS Dataverse Project Jun 15, 2026
@stevenwinship stevenwinship added Size: 3 A percentage of a sprint. 2.1 hours. FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) labels Jun 15, 2026
@stevenwinship stevenwinship force-pushed the 12463-fix-flaky-tests branch from f241795 to 8e705b4 Compare June 15, 2026 18:28
@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage is 25.025%12463-fix-flaky-tests into develop. No base build found for develop.

@github-actions

This comment has been minimized.

1 similar comment
@github-actions

Copy link
Copy Markdown

📦 Pushed preview images as

ghcr.io/gdcc/dataverse:12463-fix-flaky-tests
ghcr.io/gdcc/configbaker:12463-fix-flaky-tests

🚢 See on GHCR. Use by referencing with full name as printed above, mind the registry name.

@github-actions

Copy link
Copy Markdown

Test Results

403 tests   388 ✅  33m 49s ⏱️
 55 suites   15 💤
 55 files      0 ❌

Results for commit 8e705b4.

@stevenwinship stevenwinship removed their assignment Jun 15, 2026
@stevenwinship stevenwinship moved this from In Progress 💻 to Ready for Review ⏩ in IQSS Dataverse Project Jun 15, 2026
@pdurbin pdurbin self-assigned this Jun 15, 2026
@pdurbin pdurbin moved this from Ready for Review ⏩ to In Review 🔎 in IQSS Dataverse Project Jun 15, 2026

@pdurbin pdurbin 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.

I see tests are passing. Great. I have a question, though.

found = true;
}
}
assertTrue(found, "Root dataverse not found in my collection list");

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.

assertTrue expects "found" to be true. And "found" is set to true when the root dataverse is found right? So shouldn't the message say "Root dataverse WAS found" rather than "NOT found"?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

assert only displays the string when the test fails. I.e. if found = false

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.

Oh, ok, thanks! Merging!

@stevenwinship stevenwinship removed their assignment Jun 15, 2026
@github-project-automation github-project-automation Bot moved this from In Review 🔎 to Ready for QA ⏩ in IQSS Dataverse Project Jun 15, 2026
@pdurbin pdurbin merged commit 670f82f into develop Jun 15, 2026
24 of 25 checks passed
@github-project-automation github-project-automation Bot moved this from Ready for QA ⏩ to Merged 🚀 in IQSS Dataverse Project Jun 15, 2026
@pdurbin pdurbin added this to the 6.11 milestone Jun 15, 2026
@stevenwinship stevenwinship deleted the 12463-fix-flaky-tests branch June 15, 2026 21:15
@pdurbin pdurbin moved this from Merged 🚀 to Done 🧹 in IQSS Dataverse Project Jun 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

FY26 Sprint 25 FY26 Sprint 25 (2026-06-03 - 2026-06-17) Size: 3 A percentage of a sprint. 2.1 hours. Type: Bug a defect

Projects

Status: Done 🧹

Development

Successfully merging this pull request may close these issues.

"[ERROR] DataRetrieverApiIT.testRetrieveMyDataCollections:192 expected: <Root> but was: <dvc9c63c9f>",

3 participants