Commit Graph

83180 Commits

Author SHA1 Message Date
Chad Austin
f317c5ac30 add a getpid benchmark and have ProcessId::current use get_cached_pid on unix
Summary:
getpid() is an unconditional syscall on Linux/glibc. Therefore, it
costs about 250 nanoseconds. There are a couple places in EdenFS where
getpid() is an inner-ish loop so use folly::get_cached_pid() instead.

Reviewed By: kmancini

Differential Revision: D42044221

fbshipit-source-id: e9c8f8a00febeaf6c9a0a3481879040d739038f5
2023-07-14 12:14:40 -07:00
Jun Wu
0e058a36e4 Back out "phases: recalculate when the associated dag becomes incompatible"
Summary:
While the `public()` revset is updated, there could be other "stale" revsets
that are using incompatible versions that triggers slow paths.

Original commit changeset: c8a5c9e0d5dd

Original Phabricator Diff: D47384752

Reviewed By: fanzeyi

Differential Revision: D47478975

fbshipit-source-id: f4eca716bf4268e5ac1e750430f31de2c9751cb1
2023-07-14 12:02:13 -07:00
Jun Wu
018277adc2 changelog: skip commit hash verification for readfiles
Summary:
liubov-dmitrieva reported in P788939965 that commands like:

  hg log -r " reverse(master~1000::master) & not(file(r're:.*'))"

causes lots of 1-by-1 location -> hash lookups. This diff resolves it by
skipping the problematic code path:

  File "edenscm/revset.py", line 1456, in matches
    files = getfiles(x)
  File "edenscm/changelog2.py", line 382, in readfiles
    text = self.revision(node)
  File "edenscm/changelog2.py", line 495, in revision
    p1, p2 = self.parents(node)[:2]
  File "edenscm/changelog2.py", line 648, in parents
    parents = list(self.dag.parentnames(node))
  error.UncategorizedNativeError: Resolving id exceeds threshold 10 set by EDENSCM_REMOTE_ID_THRESHOLD

The troublesome code path was found by setting
`EDENSCM_REMOTE_ID_THRESHOLD=10`.

Reviewed By: zzl0

Differential Revision: D47417522

fbshipit-source-id: 2830e825a362c6a1ea26f2627fef65dd5b7dcf4b
2023-07-14 09:59:47 -07:00
Jun Wu
ec426ff2fe sshpeer: update bash script detection
Summary:
Now `#!/usr/bin/env bash` is used for bash scripts (by D47269779) we need to
update the bash detection for test compatibility.

Reviewed By: evangrayk

Differential Revision: D47457479

fbshipit-source-id: c6a449f53fb265f8a01d6368fe807e0b8bae03aa
2023-07-14 09:56:10 -07:00
Saul Gutierrez
200ff484a7 symlinks: make symlinks appear on Windows on checkout
Summary:
Partially enables symlink support on Windows by making symlinks appear on Windows as actual symlinks as opposed as regular files containing only the place where the symlink would point in other systems.

Creating new commits with symlinks also works (after editing `fscap.py` on hg's side as well as the requirements file for the current directory for enabling symlinks on Windows EdenFS) when the symlinks are in the same directory.

Reviewed By: xavierd

Differential Revision: D44218035

fbshipit-source-id: 0e3094dc5a13cabef1cd24f8fe18cc73ca40d4a8
2023-07-14 08:42:03 -07:00
Saul Gutierrez
26b1e9eb41 symlinks: add gating for TreeEntry:: getType and TreeEntry:: getDtype
Summary:
The methods mentioned in the title changed a bit on Windows, now allowing them to respond that a TreeEntry can be a symlink.

In order to gate this change, on Windows now there is a helper method that is used for reverting the changes for `TreeEntry:: getType` to its previous behavior, in order to be able to tell whether symlinks are enabled for the current Eden checkout or not. Where possible, (which is in most places) the config for whether symlinks are enabled or not on the Eden checkout is passed down.

The non-gated changes are kept since in those cases we actually want to register that a TreeEntry is actually a symlink, even when symlinks are "not enabled".

Originally this was intended to be part of D44218035, but was split for clarity.

Reviewed By: xavierd

Differential Revision: D47326228

fbshipit-source-id: be6cfae6626bf3a32aa119d25bf8b5fe6a549898
2023-07-14 08:42:03 -07:00
Daniel Mueller
9e296d8e9d Update num_cpus to 1.16.0
Summary:
Update num_cpus to version 1.16.0. We need this version as it is a requirement
of libbpf-sys v1.2.1+v1.2.0, which is to be imported subsequently.

Reviewed By: zertosh

Differential Revision: D47380958

fbshipit-source-id: d1fa12a1c8a974686d70d47876e990da4a73b839
2023-07-13 19:19:42 -07:00
Chad Austin
6c8c2ed747 clang-tidy advice
Summary:
clang-tidy had some automated suggestions for our code. Apply the ones
that make sense.

Some of them didn't, like removal of all uses of `volatile`. I
manually reverted those changes.

Reviewed By: genevievehelsel

Differential Revision: D41051052

fbshipit-source-id: 3fe22a91e929d3bb8e6346126c2c7bf9f027eb32
2023-07-13 16:30:55 -07:00
Evan Krause
47f180cb2f Allow making some commit message field types read-only
Summary:
Some fields in internal commit messages are not intended to be set by the user, like Reviewed By. Before this change, these would not get parsed correctly, and often ended up inside another fields like `Reviewers: "person1 Reviewed By: person2"`

Instead, we can mark these fields in our schema as read-only, so they only get rendered if they have content, and otherwise don't show.

Reviewed By: quark-zju

Differential Revision: D47420928

fbshipit-source-id: d77ac293d599f88870f96ec16284c24850c2ab23
2023-07-13 15:47:10 -07:00
Evan Krause
3d07e08050 Show tokens for tokenized fields even when not editing them
Summary:
Tokenized fields, like reviewers etc would show as little typeahead rectangles when editing, but just crammed together when viewing.

Let's be more consistent and extract the token rendering for both.

Reviewed By: quark-zju

Differential Revision: D47420927

fbshipit-source-id: fe76e583da26a1a19e670593220934156c789b24
2023-07-13 15:47:10 -07:00
Chad Austin
cff6d95f19 break XAttr's dependency on folly/Range
Summary: We should prefer string_view over folly::StringPiece..

Reviewed By: xavierd

Differential Revision: D47406695

fbshipit-source-id: 0c557c1d933a8196f4c5b7fbe97c3ca8bda06bda
2023-07-13 11:52:33 -07:00
Chad Austin
1f36519be9 remove some unnecessary FOLLY_MAYBE_UNUSED
Reviewed By: genevievehelsel

Differential Revision: D47387429

fbshipit-source-id: 7d514560a40384384595a2849875f24ee3d16529
2023-07-13 11:47:00 -07:00
Chad Austin
4b3e01c644 gracefully handle getPeerEffectiveCreds returning nullopt
Summary:
I'm not sure when or how this is possible, but EdenFS should handle
the possibility that getPeerEffectiveCreds returns nullopt.

Reviewed By: genevievehelsel

Differential Revision: D47421072

fbshipit-source-id: c77746b5d9476e131fcb0173e13d63e36e4a61d9
2023-07-13 11:39:35 -07:00
James Gill
da30da5ee8 Add cookies and native-tls feature to reqwest
Summary: As title.

Reviewed By: Imxset21

Differential Revision: D47439588

fbshipit-source-id: 8c624c28e2e9987ed8050c1f7a3260b17a52b243
2023-07-13 10:31:30 -07:00
Chad Austin
4478dc3d1b print process ID and name in eden trace hg
Summary:
We have seen reports of people seeing unexpected fetch activity. This
diff plumbs process ID through HgImportRequest so it can be streamed
to `eden trace hg` output.

Reviewed By: kmancini

Differential Revision: D42040798

fbshipit-source-id: 0a18fba6a55e584a4334088efde761a7c1d8fe6e
2023-07-13 09:43:19 -07:00
Chad Austin
a71c8f532b replace some getpid calls with ProcessId::current()
Summary: Add an infallible ProcessId::current() to replace uses of gitpid() and GetCurrentProcessId().

Reviewed By: kmancini

Differential Revision: D42037244

fbshipit-source-id: b5b7dced241d0a70e9d43b40827d741d7049345d
2023-07-13 09:43:19 -07:00
Chad Austin
1ad34b0d2a migrate ObjectFetchContext to ProcessId
Summary:
Now that ProcessId exists, we should use it instead of pid_t in
ObjectFetchContext.

Reviewed By: genevievehelsel

Differential Revision: D42037216

fbshipit-source-id: 34cd89f78be35a15d73b26edc840e917fd642723
2023-07-13 09:43:19 -07:00
Rajiv Sharma
ea18dfc343 Fix clippy lints
Summary: As in title

Reviewed By: markbt

Differential Revision: D47365557

fbshipit-source-id: 103e5245a4f5fe486113c18fa7f54babe0cfea68
2023-07-13 01:14:52 -07:00
Zhaolong Zhu
cb2f6e0520 copytrace: add commit info to the rebase prompt message
Summary: Add additional context (commit and new file name) to the rebase prompt message, this will help avoid conflict resolution errors.

Reviewed By: quark-zju

Differential Revision: D47312287

fbshipit-source-id: 2ed162ae44eb518a33d23aa17f6720ad137d4a04
2023-07-12 19:17:32 -07:00
Zhaolong Zhu
e34b9eea27 pycopytrace: expose the commit info to Python world
Summary: expose the commit info to Python world, it will be used in the following diff to add more context to the rebase prompt messages

Reviewed By: quark-zju

Differential Revision: D47312286

fbshipit-source-id: c896d913660cabffc4c654ba83b8fa9a1e2b24ef
2023-07-12 19:17:32 -07:00
Zhaolong Zhu
a709d050dc copytrace: add the new path to the TraceResult::Deleted/Added
Summary: this will be useful to users as well

Reviewed By: quark-zju

Differential Revision: D47389984

fbshipit-source-id: 05a13e1085820a6dd779e230f9ae98df38243354
2023-07-12 19:17:32 -07:00
Chad Austin
fb91276d18 return SemiFuture from EdenServer::unmount and friends
Summary:
In preparation for unifying unmount() in FsChannel, return SemiFuture
from EdenMount::unmount.

Reviewed By: kmancini

Differential Revision: D45300725

fbshipit-source-id: 4eeb7a19d4140f9985c8a46dd357f7631ff9d490
2023-07-12 15:46:52 -07:00
Astrid Yu
8ba7f03849 third-party/rust: bump tokio v1.25.0 -> v1.29.1
Summary: Needed for reqwest QUIC support (requirement of ^1.28)

Reviewed By: zertosh

Differential Revision: D47304356

fbshipit-source-id: d39999373ae51f79123927a073f3073e21a10078
2023-07-12 15:32:56 -07:00
Jun Wu
8a3e58c6db test-debugstack: add assertions about status output
Summary:
This makes the test intention more explicit. Auto fix won't break the test
intention.

Reviewed By: sggutier

Differential Revision: D47412807

fbshipit-source-id: 1a8a12c7604753b4eb30a158460c17a237234799
2023-07-12 14:02:41 -07:00
Jun Wu
8ef5b1394d testing: use _ in Python >>> block as reference to last output
Summary: Similar to IPython, use `_` to refer to the previous output.

Reviewed By: sggutier

Differential Revision: D47412808

fbshipit-source-id: d3a72293fc2ae90f0326c1152a352fdf35a438ff
2023-07-12 14:02:41 -07:00
Jun Wu
fac766c79e tests: re-enable test-debugruntest
Summary:
The conch_parser is now part of bindings and no longer have import issues.
So let's enable the test.

Reviewed By: sggutier

Differential Revision: D47412806

fbshipit-source-id: 7392ec7fa0664dfe7d9d0c9d3878b59addcc9703
2023-07-12 14:02:41 -07:00
Chad Austin
1aaa69c3c2 remove some _WIN32 ifdefs
Summary: Now that Windows has an actual PrivHelper, we can remove some ifdefs.

Reviewed By: mshroyer

Differential Revision: D45300700

fbshipit-source-id: e5e59fafd95c1a44a51f5caa04331fb8d887d426
2023-07-12 13:55:55 -07:00
Chad Austin
765c5ec257 let Nfsd3 unmount itself
Summary:
Aiming towards moving unmount() into FsChannel, move the knowledge of
how to unmount an NFS mount into Nfsd3.

To support unmounting on Windows, we can eventually add an invocation
of unmount.exe to the Windows PrivHelper implementation.

Reviewed By: kmancini

Differential Revision: D45296963

fbshipit-source-id: 55fa7fe0f6190d3708caa21a0cd4b3868f464f8b
2023-07-12 13:55:55 -07:00
Chad Austin
599f9ce71f let FuseChannel unmount itself
Summary:
Aiming towards moving unmount() into FsChannel, move the knowledge of
how to unmount a FUSE mount into FuseChannel.

Reviewed By: kmancini

Differential Revision: D45296899

fbshipit-source-id: 3f270bcc21386224cf7472eb88c851ca1f718e8a
2023-07-12 13:55:55 -07:00
dependabot[bot]
d59303f4e6 build(deps): bump tough-cookie from 4.0.0 to 4.1.3 in /addons (#671)
Summary:
Bumps [tough-cookie](https://github.com/salesforce/tough-cookie) from 4.0.0 to 4.1.3.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/salesforce/tough-cookie/releases">tough-cookie's releases</a>.</em></p>
<blockquote>
<h2>4.1.3</h2>
<p>Security fix for Prototype Pollution discovery in <a href="https://redirect.github.com/salesforce/tough-cookie/issues/282">https://github.com/facebook/sapling/issues/282</a>. This is a minor release, although output from the <code>inspect</code> utility is affected by this change, we felt this change was important enough to be pushed into the next patch.</p>
<h2>4.1.2 -- Patch and Bugfix Release</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: allow set cookies with localhost by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/253">salesforce/tough-cookie#253</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/salesforce/tough-cookie/compare/v4.1.1...v4.1.2">https://github.com/salesforce/tough-cookie/compare/v4.1.1...v4.1.2</a></p>
<h2>4.1.1</h2>
<h2>Patch Release</h2>
<h2>What's Changed</h2>
<ul>
<li>fix: allow special use domains by default by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/249">salesforce/tough-cookie#249</a></li>
<li>4.1.1 Patch -- allow special use domains by default by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/250">salesforce/tough-cookie#250</a></li>
</ul>
<p><strong>Full Changelog</strong>: <a href="https://github.com/salesforce/tough-cookie/compare/v4.1.0...v4.1.1">https://github.com/salesforce/tough-cookie/compare/v4.1.0...v4.1.1</a></p>
<h2>4.1.0</h2>
<p>v4.1.0</p>
<p>Minor release, focused mainly on resolving reported issues and some minor feature work.</p>
<h2>What's Changed</h2>
<ul>
<li>Create CHANGELOG.md by <a href="https://github.com/ShivanKaul"><code>@​ShivanKaul</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/189">salesforce/tough-cookie#189</a></li>
<li>Missing param validation issue145 by <a href="https://github.com/medelibero-sfdc"><code>@​medelibero-sfdc</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/193">salesforce/tough-cookie#193</a></li>
<li>Create SECURITY.md by <a href="https://github.com/ShivanKaul"><code>@​ShivanKaul</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/201">salesforce/tough-cookie#201</a></li>
<li>Create CODE_OF_CONDUCT.md by <a href="https://github.com/ShivanKaul"><code>@​ShivanKaul</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/200">salesforce/tough-cookie#200</a></li>
<li>Fix for issue <a href="https://redirect.github.com/salesforce/tough-cookie/issues/195">https://github.com/facebook/sapling/issues/195</a> by <a href="https://github.com/medelibero-sfdc"><code>@​medelibero-sfdc</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/202">salesforce/tough-cookie#202</a></li>
<li>Add explanation and more special-use domains by <a href="https://github.com/ShivanKaul"><code>@​ShivanKaul</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/203">salesforce/tough-cookie#203</a></li>
<li>Sync of constructor options for serialization by <a href="https://github.com/medelibero-sfdc"><code>@​medelibero-sfdc</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/204">salesforce/tough-cookie#204</a></li>
<li>Returned null in case of empty cookie value by <a href="https://github.com/vsin12"><code>@​vsin12</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/196">salesforce/tough-cookie#196</a></li>
<li>132 str trim not a function by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/209">salesforce/tough-cookie#209</a></li>
<li>Fix for issue <a href="https://redirect.github.com/salesforce/tough-cookie/issues/153">https://github.com/facebook/sapling/issues/153</a> by <a href="https://github.com/medelibero-sfdc"><code>@​medelibero-sfdc</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/210">salesforce/tough-cookie#210</a></li>
<li>Fix permuteDomain with trailing dot by <a href="https://github.com/ruoho-sfdc"><code>@​ruoho-sfdc</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/216">salesforce/tough-cookie#216</a></li>
<li>Issue <a href="https://redirect.github.com/salesforce/tough-cookie/issues/213">https://github.com/facebook/sapling/issues/213</a> -- added gh-actions flow for building and testing tough-co… by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/218">salesforce/tough-cookie#218</a></li>
<li>Issue <a href="https://redirect.github.com/salesforce/tough-cookie/issues/210">https://github.com/facebook/sapling/issues/210</a> -- Updated workflow to use npm install. by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/220">salesforce/tough-cookie#220</a></li>
<li>@<a href="https://redirect.github.com/salesforce/tough-cookie/issues/215">GH-215</a> -- Tests that document localhost behavior when set as domain. by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/221">salesforce/tough-cookie#221</a></li>
<li>fix: MemoryCookieStore methods should exist on the prototype, not on the class. by <a href="https://github.com/wjhsf"><code>@​wjhsf</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/226">salesforce/tough-cookie#226</a></li>
<li>Unit test cases for <code>allowSpecialUseDomain</code> option by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/225">salesforce/tough-cookie#225</a></li>
<li>[Snyk] Upgrade universalify from 0.1.2 to 0.2.0 by <a href="https://github.com/snyk-bot"><code>@​snyk-bot</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/228">salesforce/tough-cookie#228</a></li>
<li>React Native Support by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/227">salesforce/tough-cookie#227</a></li>
<li>Adding Updating CODEOWNERS with ECCN as per Export Control Compliance by <a href="https://github.com/svc-scm"><code>@​svc-scm</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/223">salesforce/tough-cookie#223</a></li>
<li>fix: domain match routine by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/236">salesforce/tough-cookie#236</a></li>
<li>Stop using the internal NodeJS punycode module by <a href="https://github.com/gboer"><code>@​gboer</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/238">salesforce/tough-cookie#238</a></li>
<li>Initial documentation review by <a href="https://github.com/mcarey86"><code>@​mcarey86</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/234">salesforce/tough-cookie#234</a></li>
<li>fix: distinguish between no samesite and samesite=none by <a href="https://github.com/colincasey"><code>@​colincasey</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/240">salesforce/tough-cookie#240</a></li>
<li>Prepare tough-cookie 4.1 for publishing (updated GitHub actions, move… by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/242">salesforce/tough-cookie#242</a></li>
<li>4.1.0 release to NPM by <a href="https://github.com/awaterma"><code>@​awaterma</code></a> in <a href="https://redirect.github.com/salesforce/tough-cookie/pull/245">salesforce/tough-cookie#245</a></li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="4ff4d29f6c"><code>4ff4d29</code></a> 4.1.3 release preparation, update the package and lib/version to 4.1.3. (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/284">https://github.com/facebook/sapling/issues/284</a>)</li>
<li><a href="12d474791b"><code>12d4747</code></a> Prevent prototype pollution in cookie memstore (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/283">https://github.com/facebook/sapling/issues/283</a>)</li>
<li><a href="f06b72d1d4"><code>f06b72d</code></a> Fix documentation for store.findCookies, missing allowSpecialUseDomain proper...</li>
<li><a href="b1a8898ee3"><code>b1a8898</code></a> fix: allow set cookies with localhost (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/253">https://github.com/facebook/sapling/issues/253</a>)</li>
<li><a href="ec707966e6"><code>ec70796</code></a> 4.1.1 Patch -- allow special use domains by default (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/250">https://github.com/facebook/sapling/issues/250</a>)</li>
<li><a href="d4ac5801dd"><code>d4ac580</code></a> fix: allow special use domains by default (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/249">https://github.com/facebook/sapling/issues/249</a>)</li>
<li><a href="79c2f7d373"><code>79c2f7d</code></a> 4.1.0 release to NPM (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/245">https://github.com/facebook/sapling/issues/245</a>)</li>
<li><a href="4fafc179a7"><code>4fafc17</code></a> Prepare tough-cookie 4.1 for publishing (updated GitHub actions, move Dockerf...</li>
<li><a href="aa4396da7a"><code>aa4396d</code></a> fix: distinguish between no samesite and samesite=none (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/240">https://github.com/facebook/sapling/issues/240</a>)</li>
<li><a href="b8d751188d"><code>b8d7511</code></a> Modernize README (<a href="https://redirect.github.com/salesforce/tough-cookie/issues/234">https://github.com/facebook/sapling/issues/234</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/salesforce/tough-cookie/compare/v4.0.0...v4.1.3">compare view</a></li>
</ul>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=tough-cookie&package-manager=npm_and_yarn&previous-version=4.0.0&new-version=4.1.3)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/sapling/network/alerts).

</details>

Pull Request resolved: https://github.com/facebook/sapling/pull/671

Reviewed By: quark-zju

Differential Revision: D47404962

Pulled By: sggutier

fbshipit-source-id: 842ae325cacfd9e190d1e450890bb987f4c74a9b
2023-07-12 13:50:20 -07:00
dependabot[bot]
e091f77f4d build(deps-dev): bump stylelint from 14.9.1 to 15.10.1 in /website (#670)
Summary:
Bumps [stylelint](https://github.com/stylelint/stylelint) from 14.9.1 to 15.10.1.
<details>
<summary>Release notes</summary>
<p><em>Sourced from <a href="https://github.com/stylelint/stylelint/releases">stylelint's releases</a>.</em></p>
<blockquote>
<h2>15.10.1</h2>
<ul>
<li>Security: fix for <code>semver</code> vulnerability (<a href="https://redirect.github.com/stylelint/stylelint/issues/7043">#7043</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: invalid option regression on Windows 10 (<a href="https://redirect.github.com/stylelint/stylelint/issues/7043">#7043</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
</ul>
<h2>15.10.0</h2>
<ul>
<li>Added: <code>media-query-no-invalid</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6963">#6963</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Added: support for JS objects with <code>extends</code> config option (<a href="https://redirect.github.com/stylelint/stylelint/issues/6998">#6998</a>) (<a href="https://github.com/fpetrakov"><code>@​fpetrakov</code></a>).</li>
<li>Fixed: inconsistent <code>errored</code> properties in <code>stylelint.lint()</code> return value (<a href="https://redirect.github.com/stylelint/stylelint/issues/6983">#6983</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>{selector,value}-no-vendor-prefix</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7016">#7016</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>custom-property-pattern</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7009">#7009</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-linear-gradient-no-nonstandard-direction</code> false positives for <code>&lt;color-interpolation-method&gt;</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6987">#6987</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-name-case</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7010">#7010</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7004">#7004</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-url-quotes</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7011">#7011</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>hue-degree-notation</code> false negatives for <code>oklch</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/7015">#7015</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>hue-degree-notation</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7012">#7012</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>media-feature-name-no-unknown</code> false positives for <code>environment-blending</code>, <code>nav-controls</code>, <code>prefers-reduced-data</code>, and <code>video-color-gamut</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6978">#6978</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>media-feature-name-no-vendor-prefix</code> positions for <code>*-device-pixel-ratio</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6977">#6977</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>no-descending-specificity</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7026">#7026</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>no-duplicate-at-import-rules</code> false negatives for imports with <code>supports</code> and <code>layer</code> conditions (<a href="https://redirect.github.com/stylelint/stylelint/issues/7001">#7001</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-anb-no-unmatchable</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7042">#7042</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-id-pattern</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7013">#7013</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>selector-pseudo-class-no-unknown</code> false negatives for pseudo-elements with matching names (<a href="https://redirect.github.com/stylelint/stylelint/issues/6964">#6964</a>) (<a href="https://github.com/Mouvedia"><code>@​Mouvedia</code></a>).</li>
<li>Fixed: <code>selector-pseudo-element-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7007">#7007</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>selector-type-case</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7041">#7041</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-type-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7027">#7027</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>unit-disallowed-list</code> false negatives with percentages (<a href="https://redirect.github.com/stylelint/stylelint/issues/7018">#7018</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
</ul>
<h2>15.9.0</h2>
<ul>
<li>Added: <code>insideFunctions: {&quot;function&quot;: int}</code> to <code>number-max-precision</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6932">#6932</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>border-radius</code> shorthand (<a href="https://redirect.github.com/stylelint/stylelint/issues/6958">#6958</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>border-width</code> shorthand (<a href="https://redirect.github.com/stylelint/stylelint/issues/6956">#6956</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>grid-column</code> and <code>grid-row</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6957">#6957</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
</ul>
<h2>15.8.0</h2>
<ul>
<li>Added: <code>media-feature-name-value-no-unknown</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6906">#6906</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Added: support for <code>.mjs</code> configuration files (<a href="https://redirect.github.com/stylelint/stylelint/issues/6910">#6910</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>--print-config</code> description in CLI help (<a href="https://redirect.github.com/stylelint/stylelint/issues/6914">#6914</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>allowEmptyInput</code> option in configuration files (<a href="https://redirect.github.com/stylelint/stylelint/issues/6929">#6929</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>custom-property-no-missing-var-function</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/6922">#6922</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-calc-no-unspaced-operator</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/6923">#6923</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-linear-gradient-no-nonstandard-direction</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/6924">#6924</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-no-unknown</code> false positives for SCSS functions with namespace (<a href="https://redirect.github.com/stylelint/stylelint/issues/6921">#6921</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>max-nesting-depth</code> error for at-rules in Sass syntax (<a href="https://redirect.github.com/stylelint/stylelint/issues/6909">#6909</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>selector-anb-no-unmatchable</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/6925">#6925</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: remove <code>v8-compile-cache</code> dependency (<a href="https://redirect.github.com/stylelint/stylelint/issues/6907">#6907</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
</ul>
<h2>15.7.0</h2>
<ul>
<li>Added: <code>splitList: boolean</code> to <code>selector-nested-pattern</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/6896">#6896</a>) (<a href="https://github.com/is2ei"><code>@​is2ei</code></a>).</li>
<li>Fixed: <code>unit-no-unknown</code> false positives for <code>unicode-range</code> descriptors (<a href="https://redirect.github.com/stylelint/stylelint/issues/6892">#6892</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Changelog</summary>
<p><em>Sourced from <a href="https://github.com/stylelint/stylelint/blob/main/CHANGELOG.md">stylelint's changelog</a>.</em></p>
<blockquote>
<h2>15.10.1</h2>
<ul>
<li>Security: fix for <code>semver</code> vulnerability (<a href="https://redirect.github.com/stylelint/stylelint/pull/7043">#7043</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: invalid option regression on Windows 10 (<a href="https://redirect.github.com/stylelint/stylelint/pull/7043">#7043</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
</ul>
<h2>15.10.0</h2>
<ul>
<li>Added: <code>media-query-no-invalid</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6963">#6963</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Added: support for JS objects with <code>extends</code> config option (<a href="https://redirect.github.com/stylelint/stylelint/pull/6998">#6998</a>) (<a href="https://github.com/fpetrakov"><code>@​fpetrakov</code></a>).</li>
<li>Fixed: inconsistent <code>errored</code> properties in <code>stylelint.lint()</code> return value (<a href="https://redirect.github.com/stylelint/stylelint/pull/6983">#6983</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>{selector,value}-no-vendor-prefix</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7016">#7016</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>custom-property-pattern</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7009">#7009</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-linear-gradient-no-nonstandard-direction</code> false positives for <code>&lt;color-interpolation-method&gt;</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6987">#6987</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-name-case</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7010">#7010</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7004">#7004</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>function-url-quotes</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7011">#7011</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>hue-degree-notation</code> false negatives for <code>oklch</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/7015">#7015</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>hue-degree-notation</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7012">#7012</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>media-feature-name-no-unknown</code> false positives for <code>environment-blending</code>, <code>nav-controls</code>, <code>prefers-reduced-data</code>, and <code>video-color-gamut</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6978">#6978</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>media-feature-name-no-vendor-prefix</code> positions for <code>*-device-pixel-ratio</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6977">#6977</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>no-descending-specificity</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7026">#7026</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>no-duplicate-at-import-rules</code> false negatives for imports with <code>supports</code> and <code>layer</code> conditions (<a href="https://redirect.github.com/stylelint/stylelint/pull/7001">#7001</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-anb-no-unmatchable</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7042">#7042</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-id-pattern</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7013">#7013</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>selector-pseudo-class-no-unknown</code> false negatives for pseudo-elements with matching names (<a href="https://redirect.github.com/stylelint/stylelint/pull/6964">#6964</a>) (<a href="https://github.com/Mouvedia"><code>@​Mouvedia</code></a>).</li>
<li>Fixed: <code>selector-pseudo-element-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7007">#7007</a>) (<a href="https://github.com/jeddy3"><code>@​jeddy3</code></a>).</li>
<li>Fixed: <code>selector-type-case</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7041">#7041</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>selector-type-no-unknown</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/7027">#7027</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>unit-disallowed-list</code> false negatives with percentages (<a href="https://redirect.github.com/stylelint/stylelint/pull/7018">#7018</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
</ul>
<h2>15.9.0</h2>
<ul>
<li>Added: <code>insideFunctions: {&quot;function&quot;: int}</code> to <code>number-max-precision</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6932">#6932</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>border-radius</code> shorthand (<a href="https://redirect.github.com/stylelint/stylelint/pull/6958">#6958</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>border-width</code> shorthand (<a href="https://redirect.github.com/stylelint/stylelint/pull/6956">#6956</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
<li>Fixed: <code>declaration-block-no-redundant-longhand-properties</code> autofix for <code>grid-column</code> and <code>grid-row</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6957">#6957</a>) (<a href="https://github.com/mattxwang"><code>@​mattxwang</code></a>).</li>
</ul>
<h2>15.8.0</h2>
<ul>
<li>Added: <code>media-feature-name-value-no-unknown</code> (<a href="https://redirect.github.com/stylelint/stylelint/pull/6906">#6906</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Added: support for <code>.mjs</code> configuration files (<a href="https://redirect.github.com/stylelint/stylelint/pull/6910">#6910</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>--print-config</code> description in CLI help (<a href="https://redirect.github.com/stylelint/stylelint/pull/6914">#6914</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>allowEmptyInput</code> option in configuration files (<a href="https://redirect.github.com/stylelint/stylelint/pull/6929">#6929</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>custom-property-no-missing-var-function</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/6922">#6922</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-calc-no-unspaced-operator</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/6923">#6923</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-linear-gradient-no-nonstandard-direction</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/6924">#6924</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>function-no-unknown</code> false positives for SCSS functions with namespace (<a href="https://redirect.github.com/stylelint/stylelint/pull/6921">#6921</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: <code>max-nesting-depth</code> error for at-rules in Sass syntax (<a href="https://redirect.github.com/stylelint/stylelint/pull/6909">#6909</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
<li>Fixed: <code>selector-anb-no-unmatchable</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/pull/6925">#6925</a>) (<a href="https://github.com/romainmenke"><code>@​romainmenke</code></a>).</li>
<li>Fixed: remove <code>v8-compile-cache</code> dependency (<a href="https://redirect.github.com/stylelint/stylelint/pull/6907">#6907</a>) (<a href="https://github.com/ybiquitous"><code>@​ybiquitous</code></a>).</li>
</ul>

</blockquote>
<p>... (truncated)</p>
</details>
<details>
<summary>Commits</summary>
<ul>
<li><a href="fb8cf35dae"><code>fb8cf35</code></a> 15.10.1</li>
<li><a href="eeed72bdde"><code>eeed72b</code></a> Prepare release (<a href="https://redirect.github.com/stylelint/stylelint/issues/7048">#7048</a>)</li>
<li><a href="8090553850"><code>8090553</code></a> Document check of configs in release process (<a href="https://redirect.github.com/stylelint/stylelint/issues/7047">#7047</a>)</li>
<li><a href="56a545e116"><code>56a545e</code></a> Security fix for <code>semver</code> vulnerability (<a href="https://redirect.github.com/stylelint/stylelint/issues/7043">#7043</a>)</li>
<li><a href="a42f95582c"><code>a42f955</code></a> Fix rules documentation for <code>media-query-no-invalid</code> (<a href="https://redirect.github.com/stylelint/stylelint/issues/7044">#7044</a>)</li>
<li><a href="e56aa3001c"><code>e56aa30</code></a> 15.10.0</li>
<li><a href="c9e89ebcf6"><code>c9e89eb</code></a> Prepare release (<a href="https://redirect.github.com/stylelint/stylelint/issues/6974">#6974</a>)</li>
<li><a href="b8e53176d4"><code>b8e5317</code></a> Fix <code>selector-type-case</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7041">#7041</a>)</li>
<li><a href="f82a24a650"><code>f82a24a</code></a> Fix <code>selector-anb-no-unmatchable</code> performance (<a href="https://redirect.github.com/stylelint/stylelint/issues/7042">#7042</a>)</li>
<li><a href="16110fdde5"><code>16110fd</code></a> Revert removed changelog entry (<a href="https://redirect.github.com/stylelint/stylelint/issues/7039">#7039</a>)</li>
<li>Additional commits viewable in <a href="https://github.com/stylelint/stylelint/compare/14.9.1...15.10.1">compare view</a></li>
</ul>
</details>
<details>
<summary>Maintainer changes</summary>
<p>This version was pushed to npm by <a href="https://www.npmjs.com/~mattxwang">mattxwang</a>, a new releaser for stylelint since your current version.</p>
</details>
<br />

[![Dependabot compatibility score](https://dependabot-badges.githubapp.com/badges/compatibility_score?dependency-name=stylelint&package-manager=npm_and_yarn&previous-version=14.9.1&new-version=15.10.1)](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores)

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `dependabot rebase`.

[//]: # (dependabot-automerge-start)
[//]: # (dependabot-automerge-end)

 ---

<details>
<summary>Dependabot commands and options</summary>
<br />

You can trigger Dependabot actions by commenting on this PR:
- `dependabot rebase` will rebase this PR
- `dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `dependabot merge` will merge this PR after your CI passes on it
- `dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `dependabot cancel merge` will cancel a previously requested merge and block automerging
- `dependabot reopen` will reopen this PR if it is closed
- `dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
You can disable automated security fix PRs for this repo from the [Security Alerts page](https://github.com/facebook/sapling/network/alerts).

</details>

Pull Request resolved: https://github.com/facebook/sapling/pull/670

Reviewed By: quark-zju

Differential Revision: D47404947

Pulled By: sggutier

fbshipit-source-id: bc60e965b3f393a353198ee21da67c5ffb4a7a9f
2023-07-12 13:48:35 -07:00
Mark Juggurnauth-Thomas
1d97be025b derived_data_manager: log remote derivation requests to request context scuba
Summary: Additionally log remote derivation requests to the main request context scuba table, so that they are visible in that table as well as the derived data table.

Reviewed By: mitrandir77

Differential Revision: D47340735

fbshipit-source-id: 6a538c9a69bc832561cd2dbb3870a2654934119c
2023-07-12 11:59:11 -07:00
Mark Juggurnauth-Thomas
84d4a2ebf1 derived_data_manager: add methods for logging remote derivation
Summary: Extract the logging of remote derivation requests to new methods on `DerivedDataScuba`.  Their behaviour should be the same.

Reviewed By: RajivTS

Differential Revision: D47340734

fbshipit-source-id: 106785cde002a763d3988366aefa8c51742fb49c
2023-07-12 11:59:11 -07:00
Mark Juggurnauth-Thomas
591bc103c1 derived_data_manager: extract scuba logging methods to a custom type
Summary: The scuba logging methods on derived data manager require the caller to carry around the scuba sample builder.  Simplify this by extracting it to a custom type that holds the sample builder, along with type information about the derived data type.

Reviewed By: RajivTS

Differential Revision: D47340736

fbshipit-source-id: 6372335acd5375a67ca9814add2721e2d96ffda1
2023-07-12 11:59:11 -07:00
Jun Wu
8d33cfc187 debugstack: support write files to working parent version
Summary: This is useful for "Discard" (revert -i).

Reviewed By: evangrayk

Differential Revision: D47284286

fbshipit-source-id: 13a79d73e8ef3c298fdc9b0fbde666ca587c61cf
2023-07-12 10:51:11 -07:00
Jun Wu
dff2f975dc debugstack: support amend
Summary:
While technically one can use debugexportstack to export a commit, then
debugimportstack repeating the commit's content to achieve amend. The ISL
"Operation" is abstracted around one instead of two commands. We need
one-command amend. This diff updates debugimportstack to support one-command
amend.

Reviewed By: zzl0

Differential Revision: D47282370

fbshipit-source-id: 54026766d91cc0e073b9e76b27ea98b9809bcedb
2023-07-12 10:51:11 -07:00
Evan Krause
737705df1b Make list of VSCodeRepos into a class
Summary: In the next diff, we need to be able to lookup the repository for a given path in the vscode extension. Let's make this function that was managing VSCodeRepo creation into a class that keeps a list that we can query from.

Reviewed By: quark-zju

Differential Revision: D47385149

fbshipit-source-id: c90934162d552b14f716782da62168f7c258dcc8
2023-07-12 10:27:26 -07:00
alex@statsig.com
124062ab92 Fix SCM missing data until first poll/update (#638)
Summary:
Fix SCM missing data until first poll/update
Currently the Source Control tab shows no data until the first polling interval is reached, or a change is made (i.e. it will show no changes right when you open VSCode, even if you have some). This seems to be because the Repository tracking logic doesn't fetch anything right away.
Since all repositories get fetched 5 minutes after Repository is constructed for them, it doesn't seem like this will change how much is fetched generally, just does a bit more at startup to ensure the UI can populate correctly.
This PR just adds a trigger of changeCallback('everything') at startup. Could also call this.poll('force') (perhaps instead of setupPolling()), but this seems most direct.
Pull Request resolved: https://github.com/facebook/sapling/pull/638

Test Plan: Build and run in vscode and see that it polls right away

Reviewed By: quark-zju

Differential Revision: D47342362

Pulled By: evangrayk

fbshipit-source-id: 99681b333a21a484b5db55699d622f0058c2792d
2023-07-12 10:20:49 -07:00
Liubov Dmitrieva
0caae481fb fix routing keys
Summary:
fix routing keys

the original keys contain both hg id and path making them long

we don't need to take into account the path part of the key for routing purposes

Reviewed By: clara-9

Differential Revision: D47395901

fbshipit-source-id: c5b18e437490c14b810c555cd10a68000e52d088
2023-07-12 10:03:24 -07:00
Jun Wu
778f83b9aa phases: recalculate when the associated dag becomes incompatible
Summary:
An alternative to D47376881. Instead of invalidating `public()` manually, let's
detect potential slow paths and invalidate them on access automatically.

The `draft()` set is considered small and skips this check for now.

Reviewed By: zzl0

Differential Revision: D47384752

fbshipit-source-id: c8a5c9e0d5ddd131a86890550a67141a1ddb6d65
2023-07-12 08:49:15 -07:00
Jun Wu
0258b44d7c pydag: expose VerLink of dag
Summary: This makes it possible to compare `VerLink` between the current changelog and a cached set.

Reviewed By: zzl0

Differential Revision: D47384780

fbshipit-source-id: f753512ead4f1b01cb65be7da568813631c66b1e
2023-07-12 08:49:15 -07:00
Jun Wu
17552b4d3e pydag: expose VerLink of sets
Summary:
This makes it easier to look into the "versions" associated by the `nameset`s
from Python.

For example, to understand more about D47376881, with the temporary change like:

  --- a/fbcode/eden/scm/edenscm/localrepo.py
  +++ b/fbcode/eden/scm/edenscm/localrepo.py
  @@ -1230,7 +1230,12 @@

           # Invalidate revsets like "public()".
           if heads or remotenamechanges:
  +            r1 = self.revs("public()")
               self.invalidatevolatilesets()
  +            r2 = self.revs("public()")
  +            import IPython
  +
  +            IPython.embed()

Then we can check that the versions of `r1` and `r2` are different:

  In [3]: r1._set.hints()
  Out[3]:
  {'map_version': <VerLink 0x55655c855fb0->0x55655c875f50->12>,
   'dag_version': <VerLink 0x55655c844000->0x55655c86c7e0->13>,
   ...}

  In [4]: r2._set.hints()
  Out[4]:
  {'map_version': <VerLink 0x55655c4aa1f0->0x55655c86e740->18>,
   'dag_version': <VerLink 0x7f26200cf3e0->0x55655c3fc260->19>,
   ...}

  # None: considered as "incompatible"
  In [7]: r1._set.hints()['map_version'].cmp(r2._set.hints()['map_version']) is None
  Out[7]: True

For more context of `dag::VerLink`. Check its docstrings.

Reviewed By: zzl0

Differential Revision: D47383634

fbshipit-source-id: 84d95a5442f3901ad331e7724eeebea3419788d2
2023-07-12 08:49:15 -07:00
Jun Wu
a64ab830c1 repo: invalidate phases cache after pull
Summary:
Invalidate revsets like `public()` after pull. This resolves inefficient
lookups for commands like:

  hg log -r 'only(HASH,public())'

that triggers autopull of HASH.

Reviewed By: zzl0

Differential Revision: D47376881

fbshipit-source-id: 0be17c38d5bfb3b25c5d86a0cf990226c9bd3a0f
2023-07-12 08:49:15 -07:00
Jun Wu
f0f0592c62 tests: add a test that demonstrates sub-optimal remote lookups
Summary:
Reported by liubov-dmitrieva in P785997251. The autopull does not invalidate certain
revsets like `public()` causing suboptimal massive remote hash<->location
lookups.

Reviewed By: zzl0

Differential Revision: D47376880

fbshipit-source-id: 0383574feece99962232de36c17b686686f7b3ee
2023-07-12 08:49:15 -07:00
Rajiv Sharma
165283ce4e Refactor git object storage and error reporting code
Summary: The method responsible for storing raw git objects and all the errors associated with git methods are currently present in the `mononoke_api` crate. This diff moves it out to `git_types` crate so it can be used for git data derivation along with API endpoints in SCS.

Reviewed By: markbt

Differential Revision: D47315212

fbshipit-source-id: 79ffad807474efedc3aacd33e5438267a6d41ac2
2023-07-12 07:22:53 -07:00
Shayne Fletcher
f2f02bf804 create a -types crate for Thrift-generated types
Summary:
picking up from D37112756.

given thrift library `foo`, where before we'd generate target `foo-rust`  (containing a `types.rs` module) we now generate two targets, `foo-rust` & `foo-rust-types` where the `types.rs` module is in the latter crate which is depended upon by the former. the motivation is to enable greater build parallelism (see D37112756 for more).

## buck

### files and symlinks in buck-out/.

single-file-thrift-library-foo multi-crate {F1041073024}
multi-file-thrift-library-foo multi-crate
{F1041073062}

## autocargo

### files in target/.

single-file-thrift-library-foo multi-crate {F1041073095}
multi-file-thrift-library-foo multi-crate {F1041073125}

## deployment plan

-  diff (1) land autocargo changes (D47342888)
      - will break autocargo workflows not using `arc`
-  diff (2) initiate an autocargo bump
      - https://www.internalfb.com/intern/msdk/bump/autocargo
-  diff (3) (D46573767 - this diff) rebase all remaining changes on (2) and land it
      - thrift compiler, compiler wrapper, rust thrift build defs
      - regenerated 'Cargo.toml', 'thrift_build.rs' and 'thrift_lib.rs' files
      - will break autocargo thrift builds (bad "thrift1"; invoking incompatible thrift compiler)
-  diff (4) initiate a thrift1 bump (now (3) has landed) and land it
      - https://www.internalfb.com/intern/msdk/bump/thrift1

Reviewed By: zertosh

Differential Revision: D46573767

fbshipit-source-id: b2db8e3bf307a6498f92cdb8a64c26b8871a0a1d
2023-07-12 07:12:07 -07:00
Rajiv Sharma
cc99daddf1 Preparatory work for deriving RawGitTree
Summary:
This diff includes two changes as a preparation step for deriving `RawGitTree`s:
- Make the `upload_git_object` take a `Blobstore` argument instead of using a `impl RepoBlobstore`. This will allow the git tree derivation module to reuse this functionality
- Change the `blobstore_key` for the current Git Tree type

Note that this by itself will not make the storing git tree object reusable since currently it lives in `mononoke_api` crate and referencing it in `git` crate leads to a cycle. In the next diff I will move this logic in the `git` crate so that it can be used without cyclic dependencies.

Reviewed By: markbt

Differential Revision: D47315214

fbshipit-source-id: fbc8787633aaa38089e17f005750f8dbe4b03a15
2023-07-12 03:58:48 -07:00
Open Source Bot
2b4d5b82e4 Updating submodules
Summary:
GitHub commits:

a183a5debd
d634a946ad
cdfe0b8026
2587d1576f
d1a6f6baf3

Reviewed By: bigfootjon

fbshipit-source-id: e39457f8c1d127d10c2054c1b46038b733251c08
2023-07-11 19:26:50 -07:00
Chad Austin
b7f2e6f0d0 remove a use of toAppend in ChronoParse.h
Summary: We are migrating away from `folly::to`.

Reviewed By: xavierd

Differential Revision: D45935360

fbshipit-source-id: c33f0ecb0e7b2482dd7d49a8a00f3309c17caded
2023-07-11 18:41:45 -07:00
Open Source Bot
f584155c67 Updating submodules
Summary:
GitHub commits:

0d361f7492
9999481e79
9134514672
eea19e82c4

Reviewed By: bigfootjon

fbshipit-source-id: 3cbfd4256e4784c8a106596aa931327c774f2a1f
2023-07-11 18:22:39 -07:00