Commit Graph

73525 Commits

Author SHA1 Message Date
svcscm svcscm
ef8e6b2c22 Updating submodules
Summary:
GitHub commits:

299863beea
5aabab306c
916ac92fc5
7f0182fd9b
1d4322fae1

Reviewed By: jurajh-fb

fbshipit-source-id: c88928240ad9f9f15f53f41eea7dc57415d16870
2022-04-25 20:54:55 -07:00
svcscm svcscm
f65b101d9a Updating submodules
Summary:
GitHub commits:

9c73203bcb
f4ee5c8eed
c756fa306c
d2542e474f
52db74ec7a
bf359520c7
c5828aeee4

Reviewed By: jurajh-fb

fbshipit-source-id: 0bb255f3b5114a6d030a227e67e579c49809f448
2022-04-25 20:24:24 -07:00
svcscm svcscm
643fdf25ba Updating submodules
Summary:
GitHub commits:

ca9dcfde28
91ec376230
fe06b5e4c6
368a3a7b15
8474a70fd8
f5823482c4
92c1016c0d
95d6d45f16
2e08659d32
c14be59532

Reviewed By: jurajh-fb

fbshipit-source-id: bd6b086fb774fe7f67752edc563909a28a1f4482
2022-04-25 19:54:54 -07:00
svcscm svcscm
ab01504a2a Updating submodules
Summary:
GitHub commits:

e3ab1ed8c9
a29d77211f
46aa9958fe
a58f8bd80a
89978f9bcd
6d2577e567
4032138d38
6033981a66
ad40e589d2
50ba23d24d
cfdc94d212
716b787737
16dd721861

Reviewed By: jurajh-fb

fbshipit-source-id: a808ecd381799c5050c3cec8705c61dafa7e7fbd
2022-04-25 19:24:03 -07:00
svcscm svcscm
3532ab40a4 Updating submodules
Summary:
GitHub commits:

56fa4b798a
a6700b07f7
19e2cd9d24
3e9ff020a0
e8f305e0da
0407123896
ce2624b181
a8142ea4b0

Reviewed By: jurajh-fb

fbshipit-source-id: 3b0683c20c00aeccd2187a9d98c1e2c21ac233e6
2022-04-25 18:55:42 -07:00
svcscm svcscm
358f72c969 Updating submodules
Summary:
GitHub commits:

0846c9484f
dec1734219

Reviewed By: jurajh-fb

fbshipit-source-id: 6f83e11bba44a779c7d3813b06854119eb143914
2022-04-25 18:08:14 -07:00
svcscm svcscm
26f0d41224 Updating submodules
Summary:
GitHub commits:

d467d224f9
a936b8ee13
dee713e2b9
fe82c1a567
c1185da4a1

Reviewed By: jurajh-fb

fbshipit-source-id: cf1ac80c69246c233b44b8e87dd872eaa5f9d152
2022-04-25 17:34:58 -07:00
svcscm svcscm
85c753a184 Updating submodules
Summary:
GitHub commits:

473fac0777
ff9c656538
e8bcf76038
e66fb01602
1ecb4838b0
ac92247cba
496f82e30d

Reviewed By: jurajh-fb

fbshipit-source-id: d04e0628945dcadf0f7d83038f1514cbf312e5e4
2022-04-25 17:08:52 -07:00
Michael Cuevas
e71bd8cb4e add report button to E-Menu
Summary: This menu item will cause a shell to be launched and `eden rage --report` to be run.

Reviewed By: chadaustin

Differential Revision: D35327029

fbshipit-source-id: b17c90386e8beb028848fa3d99927dae3c971add
2022-04-25 16:44:06 -07:00
Michael Cuevas
6e6321099b add report option to eden rage
Summary: This will be used in a later diff to give users a "one click" report option.

Reviewed By: chadaustin

Differential Revision: D35330514

fbshipit-source-id: 0d9f3987d788d21cebc71afc796c252eb71028a3
2022-04-25 16:44:06 -07:00
svcscm svcscm
56c2100cb7 Updating submodules
Summary:
GitHub commits:

650cea3c1a
dbda719ad8
80f2094491
ac862cc95d
6b83a86176
dccd5622e2
7b29feed35
e5dca7446b
6eee58b20a
7e9f1aaf8f

Reviewed By: jurajh-fb

fbshipit-source-id: 387ee22478924cd32467a945269d3e70efefc9b0
2022-04-25 16:32:49 -07:00
svcscm svcscm
0ac97c7896 Updating submodules
Summary:
GitHub commits:

7266cfdcb3
6db633eb41
57fd1c8acc
554a847372
f13f3357c7
0250a9fe1c
a03a33104f
785568d698
b9c314db47
44339a421e
9821e2e4e1
030bd8a14d

Reviewed By: jurajh-fb

fbshipit-source-id: f13ddd491fda461357a76fdfea309d2d0ffa3375
2022-04-25 16:04:10 -07:00
svcscm svcscm
4fa0dbd0ac Updating submodules
Summary:
GitHub commits:

6dd6626482
7d77d8358c
fb9a167a55
cb064a2ea4

Reviewed By: jurajh-fb

fbshipit-source-id: 676b84dba31306ee436e5fb95cc2f41e121fc534
2022-04-25 15:30:41 -07:00
svcscm svcscm
f7f7867c54 Updating submodules
Summary:
GitHub commits:

d8b5a8e1f0
7d2c6d7b22
15f67bc63d
5bd374b392
c8de36bb36
d9b5dccac6

Reviewed By: jurajh-fb

fbshipit-source-id: 021b12e847a71858e4e43165e44ecceec5ed1c3e
2022-04-25 14:48:08 -07:00
svcscm svcscm
42ecba13e3 Updating submodules
Summary:
GitHub commits:

2fd4ea76c7
01cca70004
777a908108
73eb823cc5
42831dd35f
7c07b9fb46
f8146cd296

Reviewed By: jurajh-fb

fbshipit-source-id: 83a2d92ca8970de4da84844e4fe29e19417a7f7d
2022-04-25 14:15:47 -07:00
Jun Wu
6657b4b1e7 blackbox: avoid passing JSON string in APIs
Summary:
The JSON string interface was used when there is no clear way to convert
between a PyObject and a Rust serde-serializable object (blackbox::Event).

Now we can convert between them easily let's avoid the extra JSON round-trip.

Differential Revision: D35236903

fbshipit-source-id: 51cd8028e459f551918777cb572e286cc1d848fe
2022-04-25 13:49:17 -07:00
svcscm svcscm
2233e04bea Updating submodules
Summary:
GitHub commits:

3e37b45d8d
fa337940de
634d550bea
366cfef324
a9711de7c0
592fde30f0
08cec8756f
e4ad3cbdda
bf775a8de9
d221c7936f
8ccd9f787f

Reviewed By: jurajh-fb

fbshipit-source-id: c09f0e82503ac945b101292f00fd931a648dccda
2022-04-25 13:44:51 -07:00
svcscm svcscm
750bc8a88e Updating submodules
Summary:
GitHub commits:

b4fce55765
c3fc6feb36
e0854695de
c8ccacf439
ad86e664ee
a9b425ed2d
92f492bc79
6c77c024d3
005f7f6e06
7b1be1dc7f
641d69c91c
5144ededd4

Reviewed By: jurajh-fb

fbshipit-source-id: 4c0489b50d9f95782e744dbd4c27942de8bde6d0
2022-04-25 13:14:17 -07:00
svcscm svcscm
a90f23b935 Updating submodules
Summary:
GitHub commits:

54cd07f56a
67b959c7d5
4ffff60bd4
5bf95563aa
53637452d0
c3d4a77434
b1d9f05573
34eaf5d2f0
ac29645743
b89d51f23c
049f529612
4a69c51b12
8b43721e15
2d6cc8d7dc
2c5892822a
22a1e9fcc6
599ced2508
e15421f995
856d1f91f7
b1245def31
cb581e36ff
7be1fcb9e3
7295cdace7

Reviewed By: jurajh-fb

fbshipit-source-id: dcf14591abdc166a9d2f86ff6886690e680789b4
2022-04-25 12:45:48 -07:00
Jun Wu
93a347394e testing: fix test failures
Summary: Fix test failures detected by testbot.

Reviewed By: sggutier

Differential Revision: D35898780

fbshipit-source-id: 47d323fc84363f3812a7ac85deb97e211f7d174f
2022-04-25 09:14:28 -07:00
Adam Ernst
22c0b32eed Daily arc lint --take BLACK
Reviewed By: zertosh

Differential Revision: D35897556

fbshipit-source-id: 9ae99a4cf8ccc3c6657f4071bde4e224cbab493f
2022-04-25 08:47:01 -07:00
Harvey Hunt
9b18b0d3be mononoke: lfs: Return filestore upload result from internal_upload
Summary:
When uploading content to the LFS server it attempts to store the
content in an upstream server, as well as internal data stores. If either of
those fail, then the upload should be considered a failure and the client
should retry. However, D22192005 (ce7f53422f) refactored the code and accidentally updated
`internal_upload` to always return `Ok(())`.

This meant that a failure to write to the filestore wasn't propagated and so an
upload that actually failed would send an HTTP 200 to the client.
Unfortunately, when the client asks for the blob later the server doesn't know
about it.

Update the code to return `res`, so that errors are propagated.

Reviewed By: krallin

Differential Revision: D35892336

fbshipit-source-id: 5302a34fdd338975e0f0db369ed66692db0ade9f
2022-04-25 05:34:31 -07:00
Pyre Bot Jr
06973c2937 suppress errors in eden
Differential Revision: D35863280

fbshipit-source-id: 0c9b160cccfbcb77e9ec3ffb8df8bdbe804d1e3b
2022-04-22 23:52:26 -07:00
Jun Wu
523fd16864 revert: fix revert a dir to a file
Summary: As the title suggests.

Differential Revision: D35848458

fbshipit-source-id: a83d0843fcc9e26194e9b5a9a184d25a5ea94c66
2022-04-22 20:28:20 -07:00
Jun Wu
d2dea32e60 testing: add high-level documentation
Summary:
`testing` is non-trivial. Add some documentation to make it easier to
understand.

Differential Revision: D35118756

fbshipit-source-id: dad59472d849eb80e230a83403e8c6af48137e6c
2022-04-22 19:35:57 -07:00
Jun Wu
ec96f1fa19 test-ctrl-c: fix debugruntest compat
Summary: `disown` is not implemented. Use `wait` instead.

Reviewed By: LynBusch

Differential Revision: D34915626

fbshipit-source-id: cbf9819b7df9a57995129bb88df04b830cd6b6f6
2022-04-22 19:35:57 -07:00
Jun Wu
523acf1c13 test-commitcloud-sync-race: fix debugruntest compat
Summary:
It seems certain bundle part is occured twice, triggering double output for
something. I didn't trace down as we plan to migrate away from unmaintainable
bundle2 stdio exchange.

For now just make the test compatible with both runners and we can revisit
later when we remove the bundle2/sshpeer techdebt.

Reviewed By: LynBusch

Differential Revision: D34915624

fbshipit-source-id: c2d53050a14ceb56d89bd0c1831f9ab32caf2e4d
2022-04-22 19:35:57 -07:00
Jun Wu
a80dad4ebe test-commit-interactive-curses: fix debugruntest compat
Summary:
Avoid `ui.load()` in debugpython. That's known problematic. Use `ui` and `repo`
provided by `debugshell` instead.

Reviewed By: LynBusch

Differential Revision: D34915618

fbshipit-source-id: 2ca393996318b2479c3996e98d4a5695b648356c
2022-04-22 19:35:57 -07:00
Jun Wu
cacbbaece3 test-contrib-check-code: fix debugruntest compat
Reviewed By: DurhamG

Differential Revision: D34915622

fbshipit-source-id: c200baca968dc3e8b4b1c0dcb912abb544fd0753
2022-04-22 19:35:57 -07:00
Jun Wu
18f343bc94 test-config: fix debugruntest compat
Summary:
TestTmp uses a slightly different hgrc name: `hgrc` instead of `.hgrc`.
Just do not check the filename.

Reviewed By: DurhamG

Differential Revision: D34915625

fbshipit-source-id: 66f3f734bd47e5abaf6490b8a0bfefb6e3afc394
2022-04-22 19:35:57 -07:00
Jun Wu
28b6c8c0d3 test-config-configfile: fix debugruntest compat
Reviewed By: DurhamG

Differential Revision: D34915621

fbshipit-source-id: 617f786eb63ddcc1bb14804309f35cb40ba31c5a
2022-04-22 19:35:57 -07:00
Jun Wu
1fedde044c tests: require mkfifo binary explicitly
Summary: This makes affected tests work with debugruntest.

Reviewed By: DurhamG

Differential Revision: D34915627

fbshipit-source-id: dfa2d19c0291854f9bd3de123edd38e5c3d06bef
2022-04-22 19:35:57 -07:00
Jun Wu
9f78b2b3ec tests: avoid 'ls -l' and 'cut -c'
Summary:
Tests use `ls -l` for 2 purposes:
- Check file mode - also need `cut -c`
- Check symlink target
Use `f` and `f -m` instead for compatibility with debugruntest.

Reviewed By: DurhamG

Differential Revision: D34872629

fbshipit-source-id: 17277b9f495b8f62e28e53af9efae8084f572ec8
2022-04-22 19:35:57 -07:00
Jun Wu
985c9d0a8c test-fb-hgext-pushrebase: remove test case pushing to bundle repo
Summary: Pushing to bundle repo is no longer used in production.

Reviewed By: DurhamG

Differential Revision: D34872631

fbshipit-source-id: e7eb91fd818f67c0085b2971d3fe5aae04371547
2022-04-22 19:35:57 -07:00
Jun Wu
2c071b74e7 test-commit-multiple: fix debugruntest compat
Summary: `\` in heredoc for multi-line escaping is unsupported in debugruntest.

Reviewed By: DurhamG

Differential Revision: D34871318

fbshipit-source-id: 18e93a0fe8a367993c8170031c9bbc41211f3ca4
2022-04-22 19:35:57 -07:00
Jun Wu
dd996ca7d5 test-commit: fix debugruntest compat
Summary: `<(echo foo)` is not supported. Use a temp file instead.

Reviewed By: DurhamG

Differential Revision: D34870111

fbshipit-source-id: dc21a4e14ed96dcb202a566ddff4b03ee3b938bc
2022-04-22 19:35:57 -07:00
Jun Wu
75e8f40df3 test-annotate: support debugruntest
Summary:
`sed 's/3+/3-/'` treats `+` as a literal while the shinterp stdlib treats
it as part of regex.

Avoid the issue by using `s/3[+]/3-/` that work in both `sed` impelemntations.

Reviewed By: DurhamG

Differential Revision: D34840516

fbshipit-source-id: f20648afa76f7233cee40781bb1af2fd976bdbb0
2022-04-22 19:35:57 -07:00
Jun Wu
5b26e0fb35 test-basic: fix debugruntest compatibility
Summary:
The `hg debugpython -- ./update_to_rev0.py` uses the `util.mainio` which
escapes the `sys.stdout` capturing. Silent it so it's compatible.

Skip the `hg log -r tip 0<&-` test. In the shinterp world adding a `None` stdin
concept would be too much work.

Reviewed By: DurhamG

Differential Revision: D34840379

fbshipit-source-id: bb8ae7bd4f7761af93face27dc94c2d2ba1f63ff
2022-04-22 19:35:57 -07:00
Jun Wu
5313b563ee test-archive: fix debugruntest compatibility
Summary: Require executables explicitly.

Reviewed By: DurhamG

Differential Revision: D34840374

fbshipit-source-id: af7efde124fbd49a07a6898a5ecb369105f61bb8
2022-04-22 19:35:57 -07:00
Jun Wu
ba76194484 test-archive-symlinks: fix debugruntest compatibility
Summary: Require executables explicitly.

Reviewed By: DurhamG

Differential Revision: D34840373

fbshipit-source-id: 78265b498af5352c390c0f9bcd41f306db35cba5
2022-04-22 19:35:57 -07:00
Jun Wu
8cbeaedce2 test-commitcloud-backup-status: fix debugruntest compatibility
Summary: Use `$((...))` instead of `expr`.

Reviewed By: DurhamG

Differential Revision: D34840380

fbshipit-source-id: a29cae62c290d6b386c67c93505cc0fffef9b41f
2022-04-22 19:35:57 -07:00
Jun Wu
e05bfbd7af hghave: define features for common executables
Summary:
Define hghave for cmp dd diff gunzip gzip mkfifo tar umask unzip.
So they can be checked before using.

Reviewed By: DurhamG

Differential Revision: D34840382

fbshipit-source-id: c180a8cdc3d6c039606e60ff133e34ff5f8f4c11
2022-04-22 19:35:57 -07:00
Jun Wu
e5abe880da testing: require executables from hghave features
Summary:
This makes `#require git` or `#if git` require `git` executable, if the test
result is True.

Reviewed By: DurhamG

Differential Revision: D34835692

fbshipit-source-id: 028dc90ffb9b73a3193897bdd127873c7049bec5
2022-04-22 19:21:32 -07:00
Jun Wu
527b78bc7c hghave: label features that are also executables
Summary:
debugruntest requires explicit external executables.

Some hghave features (ex. git, jq) are external executables.
Track them explicitly to declare dependencies.

Reviewed By: DurhamG

Differential Revision: D34835694

fbshipit-source-id: def0c19fe82babc8391f33d60c4abace33561671
2022-04-22 19:21:32 -07:00
Jun Wu
a43a16c471 test-cat: fix debugruntest compatibility
Summary:
The `find` implemenation in shinterp does not show dot files.
Matching coreutils `find` would mean abandoning the convenient
`glob.glob` for this special case. So I went ahead just changing
the file name.

Reviewed By: DurhamG

Differential Revision: D34835688

fbshipit-source-id: 64abeefe99f7befd671280f87609e37ecc00f091
2022-04-22 19:21:32 -07:00
Jun Wu
07914c4bb1 test-walk: glob:\* -> 'glob:*'
Summary:
This makes it compatible with debugruntest.

Fixing it in shinterp properly seems too complex (ex. InterpResult might need
"hold" information per character, to handle things like `foo\**`) so I just
give up for now.

Reviewed By: DurhamG

Differential Revision: D34835696

fbshipit-source-id: e8f114ebae7bba1afbd0c14e9fcdf1b0a97f3a9e
2022-04-22 19:21:32 -07:00
Jun Wu
f9d48d2680 testing: add sleep to shell builtin
Summary:
`sleep` is commonly used. Implement it.

While `foo &; sleep n` is fragile. `sleep 1` is useful without `foo &`
to get stable output for some `status` checks (see comments in
invalidatemtime in pytreestate for details).

Reviewed By: DurhamG

Differential Revision: D34835697

fbshipit-source-id: 6c766bae8ecc9a9419415207eb9f55036464c8e2
2022-04-22 19:21:32 -07:00
Jun Wu
3a4a949986 test-diffstat: avoid using expr
Summary:
The loop could be written as `for i in $(seq 213)` or use `i=$((i+1))`
instead of expr. But let's just use Python to calculate `"a\n" * 213`
so the file isn't opened 213 times.

This makes the test compatible with debugruntest.

Reviewed By: DurhamG

Differential Revision: D34835689

fbshipit-source-id: 3811c23054c6bcddff9888bb7f61cbf9216a0783
2022-04-22 19:21:32 -07:00
Jun Wu
1baa7d7d25 tests: replace md5sum.py with f --md5
Summary: This simplifies the tests and make them more compatible with debugruntest.

Reviewed By: DurhamG

Differential Revision: D34835698

fbshipit-source-id: 3c3a49984bad78c536f1fc683f25360e26b75730
2022-04-22 19:21:32 -07:00
Jun Wu
5dfafd3aa0 tests: replace readlink.py with f
Summary: This simplifies the tests and make them more compatible with debugruntest.

Reviewed By: DurhamG

Differential Revision: D34835687

fbshipit-source-id: 2d42b620ad69372b6482ac64bff2f626da7e7842
2022-04-22 19:21:32 -07:00