Skip to content

Conversation

@Swiftaxe
Copy link
Contributor

@Swiftaxe Swiftaxe commented Feb 5, 2024

…and removed the no-shuffle tag.

This PR fixes #142376 by fixing the flaky test in language_version_test.dart and removes the no-shuffle tag.
 

The Problem

The test expected the language version that is set at the top of the test file ('2.13' set in language_version_test.dart – line 14) but defaulted to the language version set in the file it is testing ('2.12' is set in language_version.dart).

This problem was hidden when some other test ran before this test and set up the language version correctly.
 

The Fix

Make the test itself load the default language version we are testing against.

Pre-launch Checklist

  • I read the [Contributor Guide] and followed the process outlined there for submitting PRs.
  • I read the [Tree Hygiene] wiki page, which explains my responsibilities.
  • I read and followed the [Flutter Style Guide], including [Features we expect every widget to implement].
  • I signed the [CLA].
  • I listed at least one issue that this PR fixes in the description above.
  • I updated/added relevant documentation (doc comments with ///).
  • I added new tests to check the change I am making, or this PR is [test-exempt].
  • All existing and new tests are passing.

@github-actions github-actions bot added the tool Affects the "flutter" command-line tool. See also t: labels. label Feb 5, 2024
@Swiftaxe Swiftaxe requested a review from zanderso February 5, 2024 07:47
@Swiftaxe Swiftaxe added the autosubmit Merge PR when tree becomes green via auto submit App label Feb 5, 2024
@auto-submit auto-submit bot merged commit f3ee371 into flutter:master Feb 5, 2024
@Swiftaxe Swiftaxe deleted the 85160_language_version_test branch February 5, 2024 20:26
@XilaiZhang XilaiZhang added the cp: beta cherry pick this pull request to beta release candidate branch label Feb 5, 2024
@flutteractionsbot
Copy link

Failed to create CP due to merge conflicts.
You will need to create the PR manually. See the cherrypick wiki for more info.

@XilaiZhang XilaiZhang removed the cp: beta cherry pick this pull request to beta release candidate branch label Feb 5, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 6, 2024
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 6, 2024
auto-submit bot pushed a commit to flutter/packages that referenced this pull request Feb 6, 2024
Manual roll requested by [email protected]

flutter/flutter@0b5cd50...e6ba809

2024-02-06 [email protected] Roll Packages from ae3494d to 1a5a7ce (2 revisions) (flutter/flutter#142985)
2024-02-06 [email protected] TextField context menu should fade on scroll on mobile devices (flutter/flutter#138313)
2024-02-06 [email protected] Roll Flutter Engine from 9c1b6c98f7f0 to 808886312e2b (1 revision) (flutter/flutter#142959)
2024-02-06 [email protected] Roll Flutter Engine from 9bd98bc2fcdf to 9c1b6c98f7f0 (4 revisions) (flutter/flutter#142954)
2024-02-06 [email protected] Roll Flutter Engine from f34c658b9600 to 9bd98bc2fcdf (1 revision) (flutter/flutter#142950)
2024-02-05 [email protected] Grey out non-selectable days in CupertinoDatePicker (flutter/flutter#136181)
2024-02-05 49699333+dependabot[bot]@users.noreply.github.com Bump actions/upload-artifact from 4.3.0 to 4.3.1 (flutter/flutter#142944)
2024-02-05 [email protected] Run examples_smoke_test on Linux (flutter/flutter#142736)
2024-02-05 [email protected] Update AGP version validation code to support KGP and kotlin build files. (flutter/flutter#142357)
2024-02-05 [email protected] Fixed test in language_version_test.dart that failed when shuffling, â�¦ (flutter/flutter#142904)
2024-02-05 [email protected] Move Mac_build_test flutter_gallery__transition_perf_e2e_ios to staging (flutter/flutter#142918)
2024-02-05 [email protected] Roll Packages from d37fb0a to ae3494d (3 revisions) (flutter/flutter#142915)

If this roll has caused a breakage, revert this CL and stop the roller
using the controls here:
https://autoroll.skia.org/r/flutter-packages
Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human
is aware of the problem.

To file a bug in Packages: https://github.com/flutter/flutter/issues/new/choose

To report a problem with the AutoRoller itself, please file a bug:
https://issues.skia.org/issues/new?component=1389291&template=1850622

Documentation for the AutoRoller is here:
https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

autosubmit Merge PR when tree becomes green via auto submit App tool Affects the "flutter" command-line tool. See also t: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Test order flake in flutter_tool test/general.shard/dart/language_version_test.dart

4 participants