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

Issue 355153002: Refactor infra git libs and testing. (Closed)

Created:
6 years, 5 months ago by iannucci
Modified:
6 years, 5 months ago
Reviewers:
Vadim Sh., agable
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/infra/infra@fake_testing_support
Project:
infra
Visibility:
Public.

Description

Refactor infra git libs and testing. Takes advantage of new expect_tests features like autoloading and per-Test coverage. All 88 tests now run just by invoking `./test.py` in the root, and all test names match the natural namespace of their packages. R=agable@chromium.org, vadimsh@chromium.org BUG=

Patch Set 1 #

Total comments: 37

Patch Set 2 : Address nits, refactor config_ref, improve Ref syntax #

Patch Set 3 : Rename placeholder object #

Patch Set 4 : Change config ref to have a sandard naming scheme #

Total comments: 4
Unified diffs Side-by-side diffs Delta from patch set Stats (+683 lines, -5087 lines) Patch
A .coveragerc View 1 chunk +5 lines, -0 lines 0 comments Download
M infra/ext/__init__.py View 1 1 chunk +1 line, -0 lines 2 comments Download
A infra/libs/decorators/__init__.py View 1 chunk +5 lines, -0 lines 0 comments Download
A infra/libs/decorators/decorators.py View 1 1 chunk +56 lines, -0 lines 0 comments Download
A + infra/libs/decorators/test/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/libs/decorators/test/decorators_test.py View 1 chunk +60 lines, -0 lines 0 comments Download
A infra/libs/git2/__init__.py View 1 chunk +12 lines, -0 lines 0 comments Download
A + infra/libs/git2/config_ref.py View 1 2 chunks +24 lines, -22 lines 0 comments Download
A infra/libs/git2/data/__init__.py View 1 chunk +18 lines, -0 lines 0 comments Download
A + infra/libs/git2/data/commit.py View 1 2 chunks +5 lines, -22 lines 0 comments Download
A infra/libs/git2/data/data.py View 1 chunk +24 lines, -0 lines 0 comments Download
A + infra/libs/git2/data/test/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/libs/git2/data/test/commit_test.py View 1 chunk +1 line, -1 line 0 comments Download
A + infra/libs/git2/git2.py View 1 2 chunks +9 lines, -19 lines 0 comments Download
A + infra/libs/git2/test/__init__.py View 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/libs/git2/test/config_ref_test.py View 1 3 chunks +28 lines, -10 lines 0 comments Download
A + infra/libs/git2/test/git2_test.py View 1 8 chunks +34 lines, -34 lines 0 comments Download
A infra/libs/git2/test/util_test.py View 1 chunk +63 lines, -0 lines 0 comments Download
A infra/libs/git2/util.py View 1 chunk +59 lines, -0 lines 0 comments Download
A infra/libs/types/__init__.py View 1 1 chunk +7 lines, -0 lines 2 comments Download
A + infra/libs/types/test/__init__.py View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A infra/libs/types/test/types_test.py View 1 1 chunk +73 lines, -0 lines 0 comments Download
A infra/libs/types/types.py View 1 1 chunk +81 lines, -0 lines 0 comments Download
M infra/services/gnumbd/__main__.py View 1 5 chunks +11 lines, -10 lines 0 comments Download
A + infra/services/gnumbd/gnumbd.py View 1 2 3 11 chunks +46 lines, -26 lines 0 comments Download
M infra/services/gnumbd/inner_loop.py View 1 1 chunk +0 lines, -351 lines 0 comments Download
D infra/services/gnumbd/support/config_ref.py View 1 chunk +0 lines, -63 lines 0 comments Download
D infra/services/gnumbd/support/data.py View 1 chunk +0 lines, -454 lines 0 comments Download
D infra/services/gnumbd/support/git.py View 1 chunk +0 lines, -270 lines 0 comments Download
M infra/services/gnumbd/support/util.py View 1 chunk +0 lines, -160 lines 0 comments Download
D infra/services/gnumbd/test/__main__.py View 1 chunk +0 lines, -57 lines 0 comments Download
D infra/services/gnumbd/test/config_test.py View 1 chunk +0 lines, -52 lines 0 comments Download
D infra/services/gnumbd/test/data_test.py View 1 chunk +0 lines, -442 lines 0 comments Download
D infra/services/gnumbd/test/git_test.py View 1 chunk +0 lines, -244 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.py View 1 chunk +0 lines, -507 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/bad_position_footer.yaml View 1 chunk +0 lines, -42 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/bad_svn_footer.yaml View 1 chunk +0 lines, -42 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/branch.yaml View 1 chunk +0 lines, -338 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/branch_from_branch.yaml View 1 chunk +0 lines, -302 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/enforce_commit_timestamps.yaml View 1 chunk +0 lines, -68 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/extra_user_footer.yaml View 1 chunk +0 lines, -67 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/extra_user_footer_bad.yaml View 1 chunk +0 lines, -61 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/incoming_svn_id_drops.yaml View 1 chunk +0 lines, -48 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/manual_merge_commits_ok.yaml View 1 chunk +0 lines, -106 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/master_ahead.yaml View 1 chunk +0 lines, -43 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/master_ahead_tag_ahead_pending.yaml View 1 chunk +0 lines, -46 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/master_behind.yaml View 1 chunk +0 lines, -47 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/master_mismatch_and_pend.yaml View 1 chunk +0 lines, -50 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/master_tag_ahead_pending.yaml View 1 chunk +0 lines, -50 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/merge_commits_fail.yaml View 1 chunk +0 lines, -67 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/multi_pending.yaml View 1 chunk +0 lines, -60 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/no_number_on_parent.yaml View 1 chunk +0 lines, -20 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/no_pending_tag.yaml View 1 chunk +0 lines, -32 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/no_position_footer.yaml View 1 chunk +0 lines, -42 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/no_real_ref.yaml View 1 chunk +0 lines, -12 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/normal_update.yaml View 1 chunk +0 lines, -48 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/normal_with_master_lag.yaml View 1 chunk +0 lines, -114 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/steady_state.yaml View 1 chunk +0 lines, -53 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/tag_lagging.yaml View 1 chunk +0 lines, -88 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests.expected/tag_lagging_no_actual.yaml View 1 chunk +0 lines, -78 lines 0 comments Download
D infra/services/gnumbd/test/gnumbd_smoketests_main.py View 1 chunk +0 lines, -213 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.py View 1 2 8 chunks +29 lines, -14 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/bad_position_footer.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/bad_svn_footer.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/branch.yaml View 1 2 3 11 chunks +30 lines, -30 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/branch_from_branch.yaml View 1 2 3 6 chunks +15 lines, -15 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/enforce_commit_timestamps.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/extra_user_footer.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/extra_user_footer_bad.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/incoming_svn_id_drops.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/manual_merge_commits_ok.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/master_ahead.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/master_ahead_tag_ahead_pending.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/master_behind.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/master_mismatch_and_pend.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/master_tag_ahead_pending.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/merge_commits_fail.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/multi_pending.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/no_number_on_parent.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/no_pending_tag.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/no_position_footer.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/no_real_ref.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/normal_update.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/normal_with_master_lag.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/steady_state.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/tag_lagging.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test.expected/tag_lagging_no_actual.yaml View 1 0 chunks +-1 lines, --1 lines 0 comments Download
A + infra/services/gnumbd/test/gnumbd_test_definitions.py View 1 1 chunk +1 line, -1 line 0 comments Download
D infra/services/gnumbd/test/util_test.py View 1 chunk +0 lines, -173 lines 0 comments Download
A test.py View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
iannucci
6 years, 5 months ago (2014-06-27 10:19:40 UTC) #1
Vadim Sh.
So are we using rietveld or gerrit? https://codereview.chromium.org/355153002/diff/1/infra/libs/data_structures/__init__.py File infra/libs/data_structures/__init__.py (right): https://codereview.chromium.org/355153002/diff/1/infra/libs/data_structures/__init__.py#newcode5 infra/libs/data_structures/__init__.py:5: from infra.libs.data_structures.data_structures ...
6 years, 5 months ago (2014-06-27 18:26:22 UTC) #2
agable
https://codereview.chromium.org/355153002/diff/1/infra/libs/data_structures/test/data_structures_test.py File infra/libs/data_structures/test/data_structures_test.py (right): https://codereview.chromium.org/355153002/diff/1/infra/libs/data_structures/test/data_structures_test.py#newcode73 infra/libs/data_structures/test/data_structures_test.py:73: self.assertIsInstance(t, set) Add TestFreezeThaw and assert that the start/end ...
6 years, 5 months ago (2014-06-27 18:53:13 UTC) #3
iannucci
ptal https://chromiumcodereview.appspot.com/355153002/diff/1/infra/libs/data_structures/__init__.py File infra/libs/data_structures/__init__.py (right): https://chromiumcodereview.appspot.com/355153002/diff/1/infra/libs/data_structures/__init__.py#newcode5 infra/libs/data_structures/__init__.py:5: from infra.libs.data_structures.data_structures import freeze, thaw, FrozenDict On 2014/06/27 ...
6 years, 5 months ago (2014-06-28 08:33:35 UTC) #4
Vadim Sh.
lgtm but wait for Aaron too https://codereview.chromium.org/355153002/diff/60001/infra/ext/__init__.py File infra/ext/__init__.py (right): https://codereview.chromium.org/355153002/diff/60001/infra/ext/__init__.py#newcode26 infra/ext/__init__.py:26: import argcomplete btw, ...
6 years, 5 months ago (2014-06-30 17:24:12 UTC) #5
iannucci
I think agable is OOO today, and I'd like to get this in... could his ...
6 years, 5 months ago (2014-06-30 23:03:04 UTC) #6
Vadim Sh.
On 2014/06/30 23:03:04, iannucci wrote: > I think agable is OOO today, and I'd like ...
6 years, 5 months ago (2014-06-30 23:04:58 UTC) #7
iannucci
Oh, I see agable has unresolved comments. I'll fix those then.
6 years, 5 months ago (2014-06-30 23:05:06 UTC) #8
iannucci
6 years, 5 months ago (2014-07-24 06:13:18 UTC) #9

Powered by Google App Engine
This is Rietveld 408576698