Commit Graph

12400 Commits

Author SHA1 Message Date
Durham Goode
e05e6e6cc5 cstore: fix python test imports 2018-01-09 15:23:52 -08:00
Durham Goode
b805623673 fastmanifest: fix import paths 2018-01-09 15:23:52 -08:00
Durham Goode
3cc56d6007 imports: fix imports to refer to hgext 2018-01-09 15:23:52 -08:00
Saurabh Singh
8beb7a0e56 test-check-module-imports: fix the path for traceprof tests.
Summary: The path was not modified in the test which results in test failure.

Test Plan: Ran test-check-module-imports.t

Reviewers: durham, #mercurial, #sourcecontrol

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6688247

Signature: 6688247:1515539001:ac926dab6d8bf9dbb8cf6738f499a6c84c85fad2
2018-01-09 15:03:49 -08:00
Saurabh Singh
aab037404d test-check-module-imports: fix the path for cstore tests.
Summary: The path was no modified in the test which results in test failure.

Test Plan: Ran test-check-module-imports.t

Reviewers: durham, #mercurial, #sourcecontrol

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6688188

Signature: 6688188:1515538788:d19857787c0b4abada9caa2710f0f64b3a70f659
2018-01-09 15:00:01 -08:00
Saurabh Singh
5a62bbf298 fastmanifest: move fastmanifest tests from fb-hgext/tests to tests/
Summary: Now that D6685044 moved fastmanifest, we can also move the tests. Note
that test-fb-hgext-fastmanifest.t was moved seprately by Durham.

Test Plan: Ran all the tests.

Reviewers: quark, #mercurial, #sourcecontrol

Reviewed By: quark

Subscribers: durham, quark

Differential Revision: https://phabricator.intern.facebook.com/D6686584

Signature: 6686584:1515531785:3a9fa022f443faed6f3110eeef22d8ea72fcee3f
2018-01-09 14:21:39 -08:00
Jun Wu
f446276fe1 test-run-tests: stabilize the test (issue5735)
Summary:
Previously there is a race condition because things happen in this order:

  1. Check shouldStop
  2. If shouldStop is false, print the diff
  3. Call fail() -> set shouldStop

The check and set should really happen in a same critical section.

This patch adds a lock to address the issue.

The patch was also sent as https://phab.mercurial-scm.org/D1830

Test Plan: Run `run-tests.py -l test-run-tests.t` many times and it no longer fails.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham

Differential Revision: https://phabricator.intern.facebook.com/D6680300

Signature: 6680300:1515524998:260c3e198330e7e6c94dcb6cf155f14a055b760a
2018-01-08 17:23:24 -08:00
Jun Wu
26485b34fb cython: move extensions to better places
Summary:
clindex is an hg extension, so moved to `hgext`.
linelog is not an hg extension, but is only used by hg extensions, not
`mercurial/`, so moved to `hgext/extlib`.

Test Plan: `make local` and `run-tests.py` without `-l` and with an empty `PYTHONPATH`.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: fried

Differential Revision: https://phabricator.intern.facebook.com/D6685080

Signature: 6685080:1515525106:88ebb275d0cac041911f243a3e82b82482b6cd34
2018-01-09 10:50:46 -08:00
Durham Goode
c67e790eb4 cstore: move some left over tests 2018-01-09 13:11:10 -08:00
Durham Goode
fd68710043 misc: delete unused files 2018-01-09 13:07:22 -08:00
Durham Goode
60349dec1e tests: fix some broken tests
The rust directory should be removed. fastmanifest should've had a module added
to setup.py. I accidentally moved a fastmanifest test in my earlier commit, so I
need to update it.
2018-01-09 12:58:51 -08:00
Durham Goode
0fbed23c0d treemanifest: move treemanifest tests to tests/
Summary:
Now that fastmanifest and treemanifest are moved, we can moved the
tests.

Test Plan: make local && ./run-tests.py

Reviewers: singhsrb, #mercurial

Reviewed By: singhsrb

Subscribers: singhsrb

Differential Revision: https://phabricator.intern.facebook.com/D6685334

Signature: 6685334:1515526455:57791d7f9d2a3f2a6119c0e79a81b31e63a11c60
2018-01-09 12:59:00 -08:00
Durham Goode
fbed515666 setup: add directory modules to setup.py
setup.py needs an explicit list of all the directory modules, otherwise it
doesn't build them. This caused test-help to fail when run without -l because
they weren't copied to the target directory. I'm not sure how the tests have
been passing actually. My guess is they were importing the extensions from the
system python.
2018-01-09 12:38:05 -08:00
Saurabh Singh
163b35ec2e fastmanifest: fix test-check-code.t related errors
Summary:
D6685044 changed the location of fastmanifest which exposed it to the
additional test that failed. This commit fixes fastmanifest to address that
test.

Test Plan: Ran all the tests.

Reviewers: #mercurial, #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6685170
2018-01-09 11:13:10 -08:00
Saurabh Singh
ad7d64e944 fastmanifest: move fastmanifest from fb-hgext to hgext
Summary:
This is part of the overall plan to move extensions from fb-hgext to
hgext. Follow up commits will address some of the test issues and move the
fastmanifest related tests out of fb-hgext to hgext.

Test Plan: Ran all the tests.

Reviewers: durham, #mercurial, #sourcecontrol

Reviewed By: durham

Subscribers: durham

Differential Revision: https://phabricator.intern.facebook.com/D6685044

Signature: 6685044:1515524660:7cb9f8f28478e7bbf816f3823406c788b79a053a
2018-01-09 11:13:10 -08:00
Durham Goode
253f51f15e treemanifest: move to hgext/
Summary: Moves the extension itself.

Test Plan:
make local && ./run-tests.py

A future patch fixes the tests once
fastmanifest is also moved.

Reviewers: phillco, #mercurial

Reviewed By: phillco

Differential Revision: https://phabricator.intern.facebook.com/D6684580

Signature: 6684580:1515521896:68a4d648d9f5433d6eeda8be01740fbe12abf44e
2018-01-09 11:06:49 -08:00
Saurabh Singh
9da30944be cfastmanifest: move to hgext/extlib/
Summary:
Moves ctreemanifest into hgext/extlib/. D6679698 was committed to scratch branch
by mistake.

Test Plan: make local && cd tests && ./run-tests.py

Reviewers: durham, #mercurial, #sourcecontrol

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6684623

Signature: 6684623:1515522634:9bec363d00990d9ff7d5f655e30ab8cae636155c
2018-01-09 10:36:54 -08:00
Kostia Balytskyi
ae3a6e0052 fb-hgext: fix fastannotate tests
Summary: Fix all the fastannotate tests.

Test Plan: - run tests, see them pass!

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6683772
2018-01-09 09:00:03 -08:00
Kostia Balytskyi
6e6cc496dd fb-hgext: move all of the fastannotate tests to core
Summary:
We moved the `fastannotate` itself, let's move the tests now.

Depends on D6683689

Test Plan: - run tests in the next commit in this stack

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6683764
2018-01-09 08:57:40 -08:00
Ryan McElroy
790efe918e duplicates: make test robust
Summary:
This test output is unstable. Let's make the test robust by ignoring
the shelve extension (which we will soon delete) and squelching the unrelated
output.

Test Plan: run-tests.py multiple times

Reviewers: ikostia, #mercurial

Reviewed By: ikostia

Differential Revision: https://phabricator.intern.facebook.com/D6683495

Signature: 6683495:1515513516:efd3964a0053b48d770b2af04b244295dba2d807
2018-01-09 08:18:14 -08:00
Kostia Balytskyi
883e143037 tests_: temporarily accept test-duplicateoptions.py.out
Summary:
Temporary accept insignificant failures until we figure stuff out.

Depends on D6683266

Test Plan: - run `test-duplicatieoptions`, see it passing

Reviewers: rmcelroy, #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6683271
2018-01-09 06:54:58 -08:00
Kostia Balytskyi
8fcdc5f35c extensions: drop the core sparse.py extension
Summary:
We have our fbsparse, which we are using. We can rename it later when configs
are in the same repo as the extension files.

Test Plan: - run tests, see only the failures related to the other commits in the stack

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6683245
2018-01-09 06:47:00 -08:00
Ryan McElroy
66bd74e558 hggit: internalize extension
Test Plan: run-tests-.py

Reviewers: mitrandir, #mercurial

Reviewed By: mitrandir

Subscribers: ps, terrelln

Differential Revision: https://phabricator.intern.facebook.com/D6675896

Tasks: T24908724

Signature: 6675896:1515448382:df8d80cd7356ae8f5fb04586dc4a0a651bc498fd
2018-01-09 06:08:01 -08:00
Ryan McElroy
86609d7d59 hggit: fix check-code issues
Summary:
Some issues are difficult to fix right now so I'm just checking a few
errors in.

Test Plan: run-tests.py

Reviewers: mitrandir, #mercurial

Reviewed By: mitrandir

Subscribers: mitrandir, terrelln

Differential Revision: https://phabricator.intern.facebook.com/D6675890

Tasks: T24908724

Signature: 6675890:1515493853:bfdd6c504be2bd0208c2e272183354c688019ac9
2018-01-09 05:53:20 -08:00
Ryan McElroy
dc858619e0 help: improve extension help messages
Test Plan: run-tests.py

Reviewers: ikostia, #mercurial

Reviewed By: ikostia

Differential Revision: https://phabricator.intern.facebook.com/D6683060

Signature: 6683060:1515505954:91bdc8841c2168bf93e7448cb0fa4d136d7a6e2f
2018-01-09 05:52:58 -08:00
Kostia Balytskyi
11636a21ce tesst_: fix test-gendoc-ja.t
Summary: Seems like some unneeded stuff.

Test Plan: - run this test, see it passing

Reviewers: rmcelroy, #sourcecontrol

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6682999

Signature: 6682999:1515505094:237d85fb2393393a5ac2936949772f4aec5f47c1
2018-01-09 05:40:37 -08:00
Kostia Balytskyi
ad3e7ccf17 tests_: fix test-fb-hgext-remotefilelog-sparse.t
Summary: Missed fix of wrong imports.

Test Plan: - run this test, it passes now

Reviewers: rmcelroy, #sourcecontrol

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6682995

Signature: 6682995:1515504928:f8a0f2bff4c6dc1ff311ecdc12db63a3cfb69b3f
2018-01-09 05:40:12 -08:00
Kostia Balytskyi
df77a0c04e fb-hgext: temporarily accept failures for test-check-py3-compat.t
Summary:
Temporary change. Meant to be fixed later.

Depends on D6675437

Test Plan: - all the tests pass!

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675475
2018-01-09 04:45:57 -08:00
Kostia Balytskyi
6a5054bc6a fb-hgext: temporarily accept failures for test-check-module-imports.t
Summary:
Temporary change. Meant to be fixed later.

Depends on D6675412

Test Plan: - test passes

Reviewers: rmcelroy, #sourcecontrol

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6675437

Signature: 6675437:1515501996:6c09db7f95740ec7e14985a730b9741a9d4ea01f
2018-01-09 04:50:43 -08:00
Kostia Balytskyi
c40bd9954a fb-hgext: temporarily accept failures for test-check-code.t
Summary: This is a temporary commit, meant to be fixed later.

Test Plan: - test passes now

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675412
2018-01-09 04:45:57 -08:00
Kostia Balytskyi
9aa3ee0721 fb-hgext: accept new help contents in test-help.t
Summary:
Some new help contents are now generated with test-help.t

Depends on D6675351

Test Plan: - test-help.t is passing now

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675363
2018-01-09 04:40:31 -08:00
Kostia Balytskyi
b27a46c987 fb-hgext: fix copied fb-hgext tests
Summary:
This is a big bulk of generally almost-obvious fixes to the moved tests. Mostly
these fixes have to do with correct importing of the actual extensions.

Depends on D6675329

Test Plan:
- ./run-tests.py fails less after this commit
- see further commits for more test fixes

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675344
2018-01-09 03:06:09 -08:00
Kostia Balytskyi
e75b9fc1b1 fb-hgext: move most of hgext3rd and related tests to core
Summary:
This commit moves most of the stuff in hgext3rd and related tests to
hg-crew/hgext and hg-crew/test respectively.

The things that are not moved are the ones which require some more complex
imports.


Depends on D6675309

Test Plan: - tests are failing at this commit, fixes are in the following commits

Reviewers: #sourcecontrol

Differential Revision: https://phabricator.intern.facebook.com/D6675329
2018-01-09 03:03:59 -08:00
Durham Goode
fe980ff373 remotefilelog: move to hgext/
Summary:
Moves the remotefilelog extension into hgext/ and it's tests into
tests/.

I did not fix up all the check-module errors, since it's a ton of work for
very little impact at this point.

Test Plan: make local && ./run-tests.py

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6680030
2018-01-08 18:58:08 -08:00
Durham Goode
228e6a901e cstore: move to hgext/extlib/
Summary: Moves cstore to hgext/extlib/ and makes it build.

Test Plan: make local && run-tests.py

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6678852
2018-01-08 17:55:53 -08:00
Durham Goode
3ae4bd8cf5 ctreemanifest: move to hgext/extlib/
Summary:
Moves ctreemanifest into hgext/extlib/. It will be built in a later
step when we add cstore to the build.

Test Plan: make local && cd tests && ./run-tests.py

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6678844
2018-01-08 17:55:53 -08:00
Durham Goode
eb099b7fe1 cdatapack: move to lib/
Summary:
This moves the cdatapack code to the new lib/ directory and adds it to the main
setup.py.

Test Plan: hg purge --all && make local && cd tests && ./run-tests.py -S -j 48

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6677491
2018-01-08 17:55:53 -08:00
Mark Thomas
c9db9d4c02 checks: fixup test-check-module-imports for rust changes
Summary:
Fix up test-check-module-imports, mostly by using absolute imports where
possible.

Also, some lfs errors have been removed, so remove their tests failures too.

Test Plan: Run test-check-module-imports test.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6679241

Tasks: T24908724

Signature: 6679241:1515457419:2f8683206c8d43af99254c9f75f08af374673c2f
2018-01-08 17:01:31 -08:00
Jun Wu
0e18bfbbfa absorb: move to hgext
Summary: Move absorb to hgext.

Test Plan: `run-tests.py -l` with empty `PYTHONPATH`.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678562

Signature: 6678562:1515455701:8778bc0ce54ec017483f6826a9792bebcb9464d7
2018-01-08 13:57:01 -08:00
Jun Wu
1802036ff3 linelog: move to lib/ and mercurial/cyext
Summary:
The `lib/linelog` directory contains pure C code that is unrelated from
either Mercurial or Python. The `mercurial/cyext` contains Cython extension
code (although for linelog's case, the Cython extension is unrelated from
Mercurial).

Cython is now a hard dependence to simplify the code.

Test Plan: `make local` and check `from mercurial.cyext import linelog` works.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham, fried

Differential Revision: https://phabricator.intern.facebook.com/D6678541

Signature: 6678541:1515455512:967266dc69c702dbff95fdea05671e11c32ebf28
2018-01-08 14:35:01 -08:00
Jun Wu
4e168639bb test-duplicateoptions: ignore lz4revlog and hgsql
Summary:
lz4revlog and hgsql have external dependencies and loading them may have the
side effect printing "*** failed to import extension *". Therefore ignore
them to stabilize the test.

Test Plan:
Run the test on a machine that do not have lz4 or mysql.connector installed and
make sure it passes.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678526

Signature: 6678526:1515454289:ad50291d22889aafcec007c15ff2974dfe05cb13
2018-01-08 14:35:01 -08:00
Jun Wu
8a4cb4f683 test-lz4revlog: skip if lz4 module is unavailable
Summary: The test shouldn't run if the dependency (lz4) cannot be imported.

Test Plan:
Run the test on a machine that does not have Python lz4 module installed and
make sure the test gets skipped.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678494

Signature: 6678494:1515454247:245401173d9e1ef16ab865c210b1f5412039c1e1
2018-01-08 15:28:27 -08:00
Jun Wu
1055b4aeae test-remotenames-basic: skip hggit test cases
Summary:
hggit is not guaranteed available in the repo. So let's skip the test
temporarily.

Test Plan:
Run the test with clean PYTHONPATH and it does not complain about failed to
import hggit.

Reviewers: durham, #mercurial

Reviewed By: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678488

Signature: 6678488:1515453639:bf9c4b53273c9b00d7c09c947af9849ebd272ad0
2018-01-08 13:55:19 -08:00
Jun Wu
fa02d22714 test-check-py3-compat: update the test
Summary: The test has an additional check if Python 3 was installed.

Test Plan: Run the test with Python 3 installed and it now passes.

Reviewers: durham, #mercurial

Reviewed By: durham

Subscribers: durham

Differential Revision: https://phabricator.intern.facebook.com/D6678482

Signature: 6678482:1515453420:bf233b1fe4c4c0f13c3cbf12af2e2967891f45a0
2018-01-08 14:00:58 -08:00
Phil Cohen
a784d38548 tests: fix test-check-module-imports.t for lfs change 2018-01-08 15:34:52 -08:00
Durham Goode
0938fe19a3 clib: move fb-hgext/clib/ to lib
Summary:
cdatapack depends on clib, so let's move it to lib/ outside of fb-hgext.

None of the consumers of these files were changed. They will be changed as they
are moved into the main part of the repo.

Test Plan: hg purge --all && make local && cd tests && ./run-tests.py -S -j 48

Reviewers: mitrandir, #mercurial

Reviewed By: mitrandir

Differential Revision: https://phabricator.intern.facebook.com/D6677197

Signature: 6677197:1515447873:399fb3e7beb5cc1ad8db18f42b359ffbfbeb21f2
2018-01-08 15:08:18 -08:00
Durham Goode
1ab0bb112d sha1: add sha1detectcoll library to setup.py
Summary:
cdatapack depends on sha1detectcoll, so let's add the library to setup.py before
we add cdatapack.

Test Plan:
hg purge --all && make local && cd tests/ && ./run-tests.py -S -j 48

Verified sha1dc was in the build output and the tests passed.

Reviewers: quark, #mercurial

Reviewed By: quark

Differential Revision: https://phabricator.intern.facebook.com/D6676405

Signature: 6676405:1515444508:2da65c6c3a18267a1d3c151c8e9acf60b674ffc2
2018-01-08 12:54:57 -08:00
Ryan McElroy
dd04f38419 fb-hgext: fix up tests after file moves
Summary: A bunch of tests started failing due to file moves. Fix them.

Test Plan: run-tests.py

Reviewers: #mercurial

Differential Revision: https://phabricator.intern.facebook.com/D6676006

Tasks: T24908724
2018-01-08 11:17:58 -08:00
Mateusz Kwapich
799a36213f help: add hgsql to help
Summary: It was missed by whoever was adding hsql to this repo

Test Plan: tests are passing now

Reviewers: rmcelroy, ikostia, #mercurial

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6674927

Signature: 6674927:1515432467:705219df9ef28e218923aafe720c8f908f16be67
2018-01-08 10:32:01 -08:00
Mark Thomas
34c6eb7ccf hgsql: update check-code test output
Summary: Update check-code test output to reflect new locations of hgsql.

Test Plan: Run tests.

Reviewers: rmcelroy, #sourcecontrol

Reviewed By: rmcelroy

Differential Revision: https://phabricator.intern.facebook.com/D6661008

Tasks: T24908724

Signature: 6661008:1515089234:3c082103ebe6ec083b02281777c1f1d159528c27
2018-01-04 10:54:02 -08:00