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

Flaky test test/get/git/check_out_test.dart #4178

Open
sigurdm opened this issue Mar 14, 2024 · 0 comments
Open

Flaky test test/get/git/check_out_test.dart #4178

sigurdm opened this issue Mar 14, 2024 · 0 comments
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)

Comments

@sigurdm
Copy link
Contributor

sigurdm commented Mar 14, 2024

I have only seen this one locally.

Could perhaps be another manifestation of localhost binding to one of [ipv6,ipv4] and the same port on the other ip version is occupied...

test/get/git/check_out_test.dart: checks out a package from Git with a name that is not a valid file name in the url

Process `pub get` exited with exitCode 69. Output:
[e] FINE: Pub 3.1.2+3
    MSG : Resolving dependencies...
[e] SLVR: fact: myapp is 0.0.0
[e] SLVR: derived: myapp
[e] SLVR: fact: myapp depends on foo from git
[e] SLVR:   selecting myapp
[e] SLVR:   derived: foo from git
[e] IO  : Created temp directory /tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY
[e] IO  : Spawning "git --version" in /tmp/dart_test_DUGVXB/myapp/.
[e] IO  : Finished git. Exit code 0.
[e]     | stdout:
[e]     | | git version 2.44.0.278.ge034bb2e1d-goog
[e]     | Nothing output on stderr.
[e] FINE: Determined git command git.
[e] IO  : Spawning "git clone --mirror http://localhost:46223/@:+*foo /tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY" in /tmp/dart_test_DUGVXB/myapp/.
[e] IO  : Finished git. Exit code 128.
[e]     | Nothing output on stdout.
[e]     | stderr:
[e]     | | Cloning into bare repository '/tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY'...
[e]     | | error: Connection died, tried 5 times before giving up (curl_result = 55, http_code = 0, sha1 = 581c287dd59801441fecc5c6ae1f733bcec3ce36)
[e]     | | error: Unable to find 581c287dd59801441fecc5c6ae1f733bcec3ce36 under http://localhost:46223/@:+*foo
[e]     | | Cannot obtain needed blob 581c287dd59801441fecc5c6ae1f733bcec3ce36
[e]     | | while processing commit b480033b5fe7a75b822cd83d422d107a086285f9.
[e]     | | error: fetch failed.
[e] IO  : Deleting directory /tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY.
[e] SLVR: Version solving took 0:00:00.864271 seconds.
[e]     | Tried 1 solutions.
[e] FINE: Resolving dependencies finished (0.890s).
[e] ERR : Git error. Command: `git clone --mirror http://localhost:46223/@:+*foo /tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY`
[e]     | stdout: 
[e]     | stderr: Cloning into bare repository '/tmp/dart_test_DUGVXB/cache/_temp/dirRTWUCY'...
[e]     | error: Connection died, tried 5 times before giving up (curl_result = 55, http_code = 0, sha1 = 581c287dd59801441fecc5c6ae1f733bcec3ce36)
[e]     | error: Unable to find 581c287dd59801441fecc5c6ae1f733bcec3ce36 under http://localhost:46223/@:+*foo
[e]     | Cannot obtain needed blob 581c287dd59801441fecc5c6ae1f733bcec3ce36
[e]     | while processing commit b480033b5fe7a75b822cd83d422d107a086285f9.
[e]     | error: fetch failed.
[e]     | exit code: 128
[e] FINE: Exception type: GitException
[e] FINE: package:pub/src/git.dart 75:7                                                        run
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 674:5                                                GitSource._clone
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 687:7                                                GitSource._cloneViaTemp
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 547:7                                                GitSource._createRepoCache
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 530:7                                                GitSource._ensureRepoCache
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 288:7                                                GitSource.doGetVersions.<fn>
[e]     | ===== asynchronous gap ===========================
[e]     | package:pool/pool.dart 127:14                                                        Pool.withResource
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/git.dart 287:12                                               GitSource.doGetVersions
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/system_cache.dart 188:20                                             SystemCache.getVersions
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/package_lister.dart 98:16                                     PackageLister._versions.<fn>
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/package_lister.dart 152:15                                    PackageLister.countVersions
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/version_solver.dart 380:14                                    VersionSolver._choosePackageVersion.<fn>
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/utils.dart 316:26                                                    minByAsync
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/version_solver.dart 379:19                                    VersionSolver._choosePackageVersion
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/version_solver.dart 128:18                                    VersionSolver.solve.<fn>
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/hosted.dart 1696:14                                           HostedSource.withPrefetching.<fn>
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/rate_limited_scheduler.dart 111:14                                   RateLimitedScheduler.withPrescheduling
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/source/hosted.dart 1695:12                                           HostedSource.withPrefetching
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/solver/version_solver.dart 124:14                                    VersionSolver.solve
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/progress.dart 61:3                                                   Progress.stop
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/entrypoint.dart 399:16                                               Entrypoint.acquireDependencies
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/command/get.dart 77:5                                                GetCommand.runProtected
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/command.dart 196:7                                                   PubCommand.run
[e]     | ===== asynchronous gap ===========================
[e]     | package:args/command_runner.dart 212:13                                              CommandRunner.runCommand
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/command_runner.dart 180:12                                           PubCommandRunner.runCommand
[e]     | ===== asynchronous gap ===========================
[e]     | package:pub/src/command_runner.dart 165:14                                           PubCommandRunner.run
[e]     | ===== asynchronous gap ===========================
[e]     | /usr/local/google/home/sigurdm/projects/pub_static_ensureUptoDate/bin/pub.dart 9:23  main

To run this test again: /usr/local/google/home/sigurdm/.dvm/darts/3.4.0-169.0.dev/bin/dart test test/get/git/check_out_test.dart -p vm --plain-name 'checks out a package from Git with a name that is not a valid file name in the url'
@sigurdm sigurdm added the type-bug Incorrect behavior (everything from a crash to more subtle misbehavior) label Mar 14, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type-bug Incorrect behavior (everything from a crash to more subtle misbehavior)
Projects
None yet
Development

No branches or pull requests

1 participant