Skip to content

Commit c41135d

Browse files
gustavoavenafacebook-github-bot
authored andcommitted
Simplify integration test output
Summary: Just cleaning up the output to avoid having a lot of changed lines in the next diffs that are not actually relevant for review. Differential Revision: D53938522 fbshipit-source-id: 06585cb408da91365f50e3a6c2fd1273b18e7cf7
1 parent e4542a1 commit c41135d

File tree

1 file changed

+20
-53
lines changed

1 file changed

+20
-53
lines changed

eden/mononoke/tests/integration/test-cross-repo-initial-import-gitsubmodules-expand-recursive.t

Lines changed: 20 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -134,37 +134,23 @@ Setup git repo A
134134

135135
Import repos in reverse dependency order, C, B then A.
136136

137-
$ REPOID="$REPO_C_ID" with_stripped_logs gitimport "$GIT_REPO_C" full-repo
138-
using repo "repo_c" repoid RepositoryId(2)
139-
GitRepo:$TESTTMP/git-repo-c commit 1 of 2 - Oid:7f760d81 => Bid:801df9a4
140-
GitRepo:$TESTTMP/git-repo-c commit 2 of 2 - Oid:114b61ca => Bid:6705887d
141-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(6705887de3a8cc55e6f13cc68a2a3536981cfd7ae86b1493e9ce1e00f8cbad61)))
142-
143-
$ REPOID="$REPO_B_ID" with_stripped_logs gitimport "$GIT_REPO_B" full-repo
144-
using repo "repo_b" repoid RepositoryId(3)
145-
GitRepo:$TESTTMP/git-repo-b commit 1 of 3 - Oid:1c7ecd42 => Bid:28470d51
146-
GitRepo:$TESTTMP/git-repo-b commit 2 of 3 - Oid:b7dc5d8f => Bid:80a511a4
147-
GitRepo:$TESTTMP/git-repo-b commit 3 of 3 - Oid:776166f1 => Bid:7d91c579
148-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(7d91c579c7001a246e1b4fe30fa6c1cac45e73b5b3c191cd063a36b25acb8fd4)))
149-
150-
$ REPOID="$SMALL_REPO_ID" with_stripped_logs gitimport "$GIT_REPO_A" full-repo 2>&1 | tee $TESTTMP/gitimport_output
151-
using repo "small_repo" repoid RepositoryId(1)
152-
GitRepo:$TESTTMP/git-repo-a commit 1 of 3 - Oid:37661687 => Bid:117dc237
153-
GitRepo:$TESTTMP/git-repo-a commit 2 of 3 - Oid:7d814e13 => Bid:cf1a5d22
154-
GitRepo:$TESTTMP/git-repo-a commit 3 of 3 - Oid:9d737ebe => Bid:d94c6c31
155-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea)))
137+
$ REPOID="$REPO_C_ID" quiet gitimport "$GIT_REPO_C" full-repo
138+
139+
$ REPOID="$REPO_B_ID" quiet gitimport "$GIT_REPO_B" full-repo
140+
141+
$ REPOID="$SMALL_REPO_ID" with_stripped_logs gitimport "$GIT_REPO_A" full-repo > $TESTTMP/gitimport_output
156142

157143
$ GIT_REPO_A_HEAD=$(rg ".*Ref: \"refs/heads/master\": Some\(ChangesetId\(Blake2\((\w+).+" -or '$1' $TESTTMP/gitimport_output)
158144

159145
$ with_stripped_logs mononoke_x_repo_sync "$SMALL_REPO_ID" "$LARGE_REPO_ID" initial-import \
160146
> --no-progress-bar -i "$GIT_REPO_A_HEAD" \
161147
> --version-name "$LATEST_CONFIG_VERSION_NAME" 2>&1 | tee $TESTTMP/initial_import_output
162148
Starting session with id * (glob)
163-
Checking if d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea is already synced 1->0
164-
syncing d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea
165-
Found 3 unsynced ancestors
166-
changeset d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea synced as dadbe354a32b6e23625871377f1594f67e8b9debffa8a5e8290b23f39ce37de3 in * (glob)
167-
successful sync of head d94c6c31bb05a49fdf2cccf5a3220bd054463d6c7877fc9cacf83534170688ea
149+
Checking if * (glob)
150+
syncing * (glob)
151+
Found * unsynced ancestors (glob)
152+
changeset * synced as * in * (glob)
153+
successful sync of head * (glob)
168154

169155
$ SYNCED_HEAD=$(rg ".+synced as (\w+) in.+" -or '$1' $TESTTMP/initial_import_output)
170156
$ echo $SYNCED_HEAD
@@ -263,30 +249,11 @@ Update those changes in repo A
263249
3766168 Add root_file
264250

265251

266-
$ REPOID="$REPO_C_ID" with_stripped_logs gitimport "$GIT_REPO_C" full-repo
267-
using repo "repo_c" repoid RepositoryId(2)
268-
GitRepo:$TESTTMP/git-repo-c commit 1 of 4 - Oid:7f760d81 => Bid:801df9a4 (already exists)
269-
GitRepo:$TESTTMP/git-repo-c commit 2 of 4 - Oid:114b61ca => Bid:6705887d (already exists)
270-
GitRepo:$TESTTMP/git-repo-c commit 3 of 4 - Oid:55e83088 => Bid:016a8e67
271-
GitRepo:$TESTTMP/git-repo-c commit 4 of 4 - Oid:810d4f53 => Bid:faec21d1
272-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(faec21d11740ef4c783254dbe148581c849d895beeb3fb31fba802dc2f117670)))
273-
274-
$ REPOID="$REPO_B_ID" with_stripped_logs gitimport "$GIT_REPO_B" full-repo
275-
using repo "repo_b" repoid RepositoryId(3)
276-
GitRepo:$TESTTMP/git-repo-b commit 1 of 4 - Oid:1c7ecd42 => Bid:28470d51 (already exists)
277-
GitRepo:$TESTTMP/git-repo-b commit 2 of 4 - Oid:b7dc5d8f => Bid:80a511a4 (already exists)
278-
GitRepo:$TESTTMP/git-repo-b commit 3 of 4 - Oid:776166f1 => Bid:7d91c579 (already exists)
279-
GitRepo:$TESTTMP/git-repo-b commit 4 of 4 - Oid:c9e21855 => Bid:a24bd25f
280-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(a24bd25f90f09c07e07f71897e05ae2bba16c94a5e351b2b9291f89bb782cf36)))
281-
282-
$ REPOID="$SMALL_REPO_ID" with_stripped_logs gitimport "$GIT_REPO_A" full-repo | tee $TESTTMP/gitimport_output
283-
using repo "small_repo" repoid RepositoryId(1)
284-
GitRepo:$TESTTMP/git-repo-a commit 1 of 5 - Oid:37661687 => Bid:117dc237 (already exists)
285-
GitRepo:$TESTTMP/git-repo-a commit 2 of 5 - Oid:7d814e13 => Bid:cf1a5d22 (already exists)
286-
GitRepo:$TESTTMP/git-repo-a commit 3 of 5 - Oid:9d737ebe => Bid:d94c6c31 (already exists)
287-
GitRepo:$TESTTMP/git-repo-a commit 4 of 5 - Oid:ef545462 => Bid:9de5e77a
288-
GitRepo:$TESTTMP/git-repo-a commit 5 of 5 - Oid:6d5b3867 => Bid:990ba786
289-
Ref: "refs/heads/master": Some(ChangesetId(Blake2(990ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f)))
252+
$ REPOID="$REPO_C_ID" quiet gitimport "$GIT_REPO_C" full-repo
253+
254+
$ REPOID="$REPO_B_ID" quiet gitimport "$GIT_REPO_B" full-repo
255+
256+
$ REPOID="$SMALL_REPO_ID" with_stripped_logs gitimport "$GIT_REPO_A" full-repo > $TESTTMP/gitimport_output
290257

291258
$ GIT_REPO_A_HEAD=$(rg ".*Ref: \"refs/heads/master\": Some\(ChangesetId\(Blake2\((\w+).+" -or '$1' $TESTTMP/gitimport_output)
292259

@@ -295,11 +262,11 @@ Update those changes in repo A
295262
> --no-progress-bar -i "$GIT_REPO_A_HEAD" \
296263
> --version-name "$LATEST_CONFIG_VERSION_NAME" 2>&1 | tee $TESTTMP/initial_import_output
297264
Starting session with id * (glob)
298-
Checking if 990ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f is already synced 1->0
299-
syncing 990ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f
300-
Found 2 unsynced ancestors
301-
changeset 990ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f synced as 647a2898995b70a69809ba0e83d52aeb153af0217158622429b784d83ed72bc6 in * (glob)
302-
successful sync of head 990ba7861bdc27d76feb43085f6e248189789e86bc6dde83fed715c3689f3e4f
265+
Checking if * (glob)
266+
syncing * (glob)
267+
Found * unsynced ancestors (glob)
268+
changeset * synced as * in * (glob)
269+
successful sync of head * (glob)
303270

304271
$ SYNCED_HEAD=$(rg ".+synced as (\w+) in.+" -or '$1' $TESTTMP/initial_import_output)
305272
$ echo "$SYNCED_HEAD"

0 commit comments

Comments
 (0)