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: Flaky tests when run in GitHub Actions Workflow #733

Merged
merged 1 commit into from
Jun 26, 2024

Conversation

jessicatarra
Copy link
Contributor

@jessicatarra jessicatarra commented Jun 25, 2024

Description

Hey everyone! I initially attempted to resolve this issue by following the approach mentioned in this issue by setting the environment variable PUB_SUMMARY_ONLY=1 in the workflow. However, this did not work as expected.

Then, I decided to solve it by updating the ignoringDependencyMessages method in the matcher file, and this approach seems to be working fine.

Changes:

  • Remove unnecessary TODO comment in the workflow file
  • Update test command in workflow to remove unnecessary || true
  • Update dependency messages matcher in matchers.dart test file

Issue: #724

Type of Change

  • feat -- New feature (non-breaking change which adds functionality)
  • 🛠️ fix -- Bug fix (non-breaking change which fixes an issue)
  • ! -- Breaking change (fix or feature that would cause existing functionality to change)
  • 🧹 refactor -- Code refactor
  • ci -- Build configuration change
  • 📝 docs -- Documentation
  • 🗑️ chore -- Chore

@jessicatarra jessicatarra changed the title [WIP] fix: Flaky tests when run in GitHub Actions Workflow fix: Flaky tests when run in GitHub Actions Workflow Jun 25, 2024
@jessicatarra jessicatarra force-pushed the test/fix-flaky-tests branch 2 times, most recently from f1e7d69 to ca1604c Compare June 25, 2024 23:40
- Remove unnecessary TODO comment in the workflow file
- Update test command in workflow to remove unnecessary `|| true`
- Update dependency messages matcher in `matchers.dart` test file
@jessicatarra jessicatarra force-pushed the test/fix-flaky-tests branch from ca1604c to b3745c4 Compare June 25, 2024 23:45
@jessicatarra jessicatarra marked this pull request as ready for review June 25, 2024 23:56
@spydon
Copy link
Collaborator

spydon commented Jun 26, 2024

Super, thanks! Windows still seems to fail, but that might be unrelated?

@spydon spydon merged commit 4a67d09 into invertase:main Jun 26, 2024
14 checks passed
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.

2 participants