Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(162)

Issue 745153002: Make pub's binstubs resilient to changes in snapshot format. (Closed)

Created:
6 years, 1 month ago by nweiz
Modified:
6 years ago
Reviewers:
Bob Nystrom
CC:
reviews_dartlang.org
Visibility:
Public.

Description

Make pub's binstubs resilient to changes in snapshot format. This also makes "pub cache repair" repair activated packages, including updating the binstub format. R=rnystrom@google.com BUG=21463 Committed: https://code.google.com/p/dart/source/detail?r=42055

Patch Set 1 #

Total comments: 29

Patch Set 2 : Code review changes #

Patch Set 3 : Code review changes #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1489 lines, -345 lines) Patch
M sdk/lib/_internal/pub/lib/src/command/cache_repair.dart View 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/entrypoint.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/global_packages.dart View 1 2 13 chunks +169 lines, -35 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/io.dart View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/log.dart View 1 1 chunk +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/git.dart View 1 2 2 chunks +17 lines, -12 lines 0 comments Download
M sdk/lib/_internal/pub/lib/src/source/hosted.dart View 1 2 1 chunk +14 lines, -10 lines 0 comments Download
A + sdk/lib/_internal/pub/test/cache/repair/handles_corrupted_binstub_test.dart View 2 chunks +12 lines, -11 lines 0 comments Download
A sdk/lib/_internal/pub/test/cache/repair/handles_corrupted_global_lockfile_test.dart View 1 chunk +25 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/cache/repair/handles_orphaned_binstub_test.dart View 1 chunk +36 lines, -0 lines 0 comments Download
A + sdk/lib/_internal/pub/test/cache/repair/recompiles_snapshots_test.dart View 2 chunks +21 lines, -1 line 0 comments Download
A sdk/lib/_internal/pub/test/cache/repair/updates_binstubs_test.dart View 1 1 chunk +65 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub/test/global/activate/outdated_binstub_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_executable_test.dart View 1 chunk +0 lines, -13 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_global_run_if_no_snapshot_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/binstub_runs_precompiled_snapshot_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/creates_executables_in_pubspec_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/explicit_executables_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/name_collision_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/name_collision_with_overwrite_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/no_executables_flag_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
A + sdk/lib/_internal/pub/test/global/binstubs/outdated_binstub_runs_pub_global_test.dart View 2 chunks +17 lines, -17 lines 0 comments Download
A sdk/lib/_internal/pub/test/global/binstubs/outdated_snapshot_test.dart View 1 1 chunk +58 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/path_package_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/reactivate_removes_old_executables_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub/test/global/binstubs/utils.dart View 1 chunk +16 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub/test/test_pub.dart View 4 chunks +16 lines, -15 lines 0 comments Download
M sdk/lib/_internal/pub_generated/bin/async_compile.dart View 5 chunks +9 lines, -10 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/command/cache_repair.dart View 3 chunks +54 lines, -26 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/entrypoint.dart View 1 1 chunk +4 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/global_packages.dart View 1 2 13 chunks +296 lines, -35 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/io.dart View 1 2 1 chunk +11 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/log.dart View 1 1 chunk +6 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/source/git.dart View 1 2 1 chunk +93 lines, -41 lines 0 comments Download
M sdk/lib/_internal/pub_generated/lib/src/source/hosted.dart View 1 2 1 chunk +96 lines, -26 lines 0 comments Download
A + sdk/lib/_internal/pub_generated/test/cache/repair/handles_corrupted_binstub_test.dart View 2 chunks +12 lines, -5 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/cache/repair/handles_corrupted_global_lockfile_test.dart View 1 chunk +24 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/cache/repair/handles_orphaned_binstub_test.dart View 1 chunk +36 lines, -0 lines 0 comments Download
A + sdk/lib/_internal/pub_generated/test/cache/repair/recompiles_snapshots_test.dart View 2 chunks +21 lines, -1 line 0 comments Download
A sdk/lib/_internal/pub_generated/test/cache/repair/updates_binstubs_test.dart View 1 1 chunk +61 lines, -0 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/global/activate/outdated_binstub_test.dart View 1 1 chunk +55 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/binstub_runs_executable_test.dart View 1 chunk +0 lines, -13 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/binstub_runs_global_run_if_no_snapshot_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/binstub_runs_precompiled_snapshot_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/creates_executables_in_pubspec_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/explicit_executables_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/name_collision_with_overwrite_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/no_executables_flag_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
A + sdk/lib/_internal/pub_generated/test/global/binstubs/outdated_binstub_runs_pub_global_test.dart View 3 chunks +18 lines, -5 lines 0 comments Download
A sdk/lib/_internal/pub_generated/test/global/binstubs/outdated_snapshot_test.dart View 1 1 chunk +62 lines, -0 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/path_package_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/reactivate_removes_old_executables_test.dart View 1 chunk +0 lines, -1 line 0 comments Download
M sdk/lib/_internal/pub_generated/test/global/binstubs/utils.dart View 1 chunk +36 lines, -6 lines 0 comments Download
M sdk/lib/_internal/pub_generated/test/test_pub.dart View 3 chunks +39 lines, -27 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
nweiz
6 years, 1 month ago (2014-11-21 01:07:19 UTC) #1
nweiz
https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart File sdk/lib/_internal/pub/lib/src/global_packages.dart (right): https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart#newcode441 sdk/lib/_internal/pub/lib/src/global_packages.dart:441: log.error( I'm not sure whether this should delete the ...
6 years, 1 month ago (2014-11-21 01:09:56 UTC) #2
Bob Nystrom
https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode57 sdk/lib/_internal/pub/lib/src/entrypoint.dart:57: final bool _inMemory; Can we determine this from the ...
6 years, 1 month ago (2014-11-21 19:13:41 UTC) #3
nweiz
Code review changes
6 years, 1 month ago (2014-11-22 02:29:57 UTC) #4
nweiz
https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart File sdk/lib/_internal/pub/lib/src/entrypoint.dart (right): https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/entrypoint.dart#newcode57 sdk/lib/_internal/pub/lib/src/entrypoint.dart:57: final bool _inMemory; On 2014/11/21 19:13:40, Bob Nystrom wrote: ...
6 years, 1 month ago (2014-11-22 02:32:56 UTC) #5
Bob Nystrom
Couple of suggestions but LGTM! https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart File sdk/lib/_internal/pub/lib/src/global_packages.dart (right): https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart#newcode441 sdk/lib/_internal/pub/lib/src/global_packages.dart:441: log.error( On 2014/11/22 02:32:55, ...
6 years ago (2014-12-01 18:29:25 UTC) #6
nweiz
Code review changes
6 years ago (2014-12-01 23:43:28 UTC) #7
nweiz
https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart File sdk/lib/_internal/pub/lib/src/global_packages.dart (right): https://codereview.chromium.org/745153002/diff/1/sdk/lib/_internal/pub/lib/src/global_packages.dart#newcode441 sdk/lib/_internal/pub/lib/src/global_packages.dart:441: log.error( On 2014/12/01 18:29:24, Bob Nystrom wrote: > On ...
6 years ago (2014-12-01 23:44:39 UTC) #8
nweiz
6 years ago (2014-12-01 23:45:19 UTC) #9
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as 42055 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698