Fri, 15 Nov 2024 23:50:35 +0100 wheels: make sure we create the `dist/` directory in the make target stable tip
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 23:50:35 +0100] rev 52271
wheels: make sure we create the `dist/` directory in the make target The embarrassing details of how this was discovered will be kept under silence.
Fri, 15 Nov 2024 23:34:43 +0100 wheels: remove deprecated blacklist stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 23:34:43 +0100] rev 52270
wheels: remove deprecated blacklist We no longer run the test while building wheels as they are build the very same ways as in the CI (that run tests).
Thu, 14 Nov 2024 16:11:52 -0500 contrib: add a bat file to build all of the wheels on Windows stable
Matt Harbison <matt_harbison@yahoo.com> [Thu, 14 Nov 2024 16:11:52 -0500] rev 52269
contrib: add a bat file to build all of the wheels on Windows This is duplicated from the current CI config, to be able to build releases consistently outside of CI. I don't like the duplication, but I'm not worried about things changing too often, so I'm not bothering with PowerShell or some form that would allow execution by the CI runner. We should consider putting the config in `pyproject.toml`, where things like what python versions to support can be centrally controlled for all platforms. The output directory is different from CI here, but that's fine because it is intended to run this on a system that is *not* hosting the CI setup, and `dist/` is more standard. I dropped the `win32` part of the output because that implies the 32-bit Intel architecture. Apparently, arm64 builds are supported back to Python 3.9, but support is still experimental (with py3.13)[1]. The CI system starts arm64 support with Python 3.11, because that's the first version that an arm64 Python installer was available on Windows. This doesn't second guess that decision. The required `msgfmt.exe` was installed manually[2], as it isn't currently handled by the dependency installation script. Otherwise, this was successfully used with an activated venv based on Python 3.12.5, and only `cibuildwheel==2.21.3` installed. [1] https://cibuildwheel.pypa.io/en/stable/#what-does-it-do [2] https://github.com/mlocati/gettext-iconv-windows/releases/download/v0.22.5a-v1.17-r3/gettext0.22.5a-iconv1.17-shared-64.exe
Thu, 14 Nov 2024 15:36:41 -0500 contrib: install the arm64 compiler tools in the Windows dependency script stable
Matt Harbison <matt_harbison@yahoo.com> [Thu, 14 Nov 2024 15:36:41 -0500] rev 52268
contrib: install the arm64 compiler tools in the Windows dependency script This lets us build arm64 wheels on Windows. We should update from VS 2017 to VS 2019, but that can wait until there's a clean Windows system available. There's a little bit of handwaving here because I originally installed some packages on the CI system by checking boxes in the GUI installer to get arm64 support, since I didn't know the name(s) of the things needed. Exporting the configuration from the GUI installer showed the list of things present, and then I was able to run `vs_buildtools.exe` on another system that previously had this dependency script run a few years ago, with just this new arg. That allowed the wheels to be built (the process failed on this second system prior to this). The only difference between the CI system configuration prior to installing arm64 stuff and this second system after, is the second system has the WinXP support component. Surprisingly, the arm64 WDK and arm64 CRT or Universal CRT doesn't seem to be required.
Fri, 15 Nov 2024 17:36:38 +0100 wheels: also build the i686 wheel in the CI stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 17:36:38 +0100] rev 52267
wheels: also build the i686 wheel in the CI People of weird hardware use i686 so testing the building it useful.
Fri, 15 Nov 2024 16:22:01 +0100 wheel: reintroduce the building of i686 wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:22:01 +0100] rev 52266
wheel: reintroduce the building of i686 wheel We now have image to make that work.
Fri, 15 Nov 2024 07:20:12 +0100 wheel: also build the musl wheel in the ci stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 07:20:12 +0100] rev 52265
wheel: also build the musl wheel in the ci We add a trigger to not run that all the time.
Thu, 14 Nov 2024 22:09:36 +0100 wheel: add a target for amdx86_64-musl wheels stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 14 Nov 2024 22:09:36 +0100] rev 52264
wheel: add a target for amdx86_64-musl wheels These can be installed on alpine… which is quite useful.
Fri, 15 Nov 2024 16:27:41 +0100 packaging: factor the linux-wheels-x86_64 a bit stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:27:41 +0100] rev 52263
packaging: factor the linux-wheels-x86_64 a bit This will make introduction of more variant simpler and testing quicker
Fri, 15 Nov 2024 16:25:38 +0100 packaging: propagate the make option to packaging target stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:25:38 +0100] rev 52262
packaging: propagate the make option to packaging target This is useful when using --jobs for example
Fri, 15 Nov 2024 16:24:39 +0100 packaging: remove the i686 wheel from the linux-wheels target stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:24:39 +0100] rev 52261
packaging: remove the i686 wheel from the linux-wheels target It is currently broken.
Fri, 15 Nov 2024 16:41:30 +0100 wheels: rely on the image config to be able to access the repository stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:41:30 +0100] rev 52260
wheels: rely on the image config to be able to access the repository The image should now have the proper config set globally to access this
Fri, 15 Nov 2024 16:34:50 +0100 packaging: explain why we purge while building wheels stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 16:34:50 +0100] rev 52259
packaging: explain why we purge while building wheels We also make is a bit narrower so that it is less surprising.
Fri, 15 Nov 2024 00:01:34 +0100 ci: for branches, use a single trigger stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 00:01:34 +0100] rev 52258
ci: for branches, use a single trigger This trigger will unlock all the job necessary to build wheels and upload nightly build. This should make the nightly build process more pratical. In practice right now, only run pipeline for branch by creating them explicitly on the web. So we could just run everything without trigger, but this is a decision for later. This changeset only focus on making the nightly build process somewhat manageable.
Thu, 14 Nov 2024 22:44:25 +0100 ci: add "sink" for parallel tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 14 Nov 2024 22:44:25 +0100] rev 52257
ci: add "sink" for parallel tests This work around the maximum 50 jobs dependencies.
Fri, 15 Nov 2024 00:29:37 +0100 ci: abstract the branch matching regexp stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 15 Nov 2024 00:29:37 +0100] rev 52256
ci: abstract the branch matching regexp This is less error prone and make debugging branch-only pipeline simpler.
Thu, 14 Nov 2024 16:45:23 +0100 branching: merge stable into default default
Raphaël Gomès <rgomes@octobus.net> [Thu, 14 Nov 2024 16:45:23 +0100] rev 52255
branching: merge stable into default
Thu, 14 Nov 2024 16:44:32 +0100 relnotes: fix 6.9rc1 stable
Raphaël Gomès <rgomes@octobus.net> [Thu, 14 Nov 2024 16:44:32 +0100] rev 52254
relnotes: fix 6.9rc1 I forgot to remove a bunch of tempate stuff.
Thu, 14 Nov 2024 16:14:53 +0100 Added signature for changeset 31d45a1cbc47 stable
Raphaël Gomès <rgomes@octobus.net> [Thu, 14 Nov 2024 16:14:53 +0100] rev 52253
Added signature for changeset 31d45a1cbc47
Thu, 14 Nov 2024 16:14:51 +0100 Added tag 6.9rc1 for changeset 31d45a1cbc47 stable
Raphaël Gomès <rgomes@octobus.net> [Thu, 14 Nov 2024 16:14:51 +0100] rev 52252
Added tag 6.9rc1 for changeset 31d45a1cbc47
Thu, 14 Nov 2024 14:55:54 +0100 relnotes: add 6.9rc1 stable 6.9rc1
Raphaël Gomès <rgomes@octobus.net> [Thu, 14 Nov 2024 14:55:54 +0100] rev 52251
relnotes: add 6.9rc1
Wed, 13 Nov 2024 17:24:28 +0100 ci: let the Windows runner decide how many job they want to run stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 17:24:28 +0100] rev 52250
ci: let the Windows runner decide how many job they want to run With the extra concurrency at the runner level, this is no longer needed and might actually be counterproductive.
Sat, 09 Nov 2024 02:55:33 +0100 ci: adds a trigger for all pycompat jobs stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 02:55:33 +0100] rev 52249
ci: adds a trigger for all pycompat jobs This will help triggering a job of all pycompat job. In addition this will also make the pycompat job block landing of Merge Request when triggered. A quite useful feature.
Sun, 10 Nov 2024 02:11:13 +0100 wheel: build windows wheel for ARM64 too stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 02:11:13 +0100] rev 52248
wheel: build windows wheel for ARM64 too
Wed, 13 Nov 2024 21:17:46 +0100 setup: preserve version part after the "+" on Windows stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 21:17:46 +0100] rev 52247
setup: preserve version part after the "+" on Windows Code introduced in early 2010 (fb203201ce30) was dropping that part after "+". The rational is to preserve version on the format w.x.y.z where each part is a number. However we have not been using that format for a while (e.g. the rc suffix) and nobody reported any fire. So I am assuming that this code serve no purpose and I am dropping it. We can reintroduce a newer version of it (that would actually achieve its purpose) in the future if needed.
Wed, 13 Nov 2024 16:13:28 +0100 setup: make sure Rust build its extension for the right python stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 16:13:28 +0100] rev 52246
setup: make sure Rust build its extension for the right python Strictly speaking, only "PYTHON_SYS_EXECUTABLE" seems to be necessary, but I don't want to take a chances, as in testing "PYTHON" also had an effect.
Wed, 13 Nov 2024 13:33:36 +0100 clone: properly exclude rev-branch-cache from post clone cache warming stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 13:33:36 +0100] rev 52245
clone: properly exclude rev-branch-cache from post clone cache warming When adding "CACHE_REV_BRANCH" to "CACHES_ALL" in e51161b12c7e, I did not expected it to impact the clone steps. However the "CACHES_POST_CLONE" set is created rather creatively. (we should fix that, but not on stable) The benchmark caught a quite significant slowdown one hardlink and ssh-stream clones. Such slow down can be reduced to around ~5% by fully warming the cache before the clone. However keeping this expensive step away from the clone operation fully fix the slowdown and preserve the initial intend. Example slowdow for hardlink clone ### benchmark.name = hg.command.clone # bin-env-vars.hg.flavor = default # bin-env-vars.hg.py-re2-module = default # benchmark.variants.explicit-rev = none # benchmark.variants.issue6528 = default # benchmark.variants.protocol = local-hardlink # benchmark.variants.pulled-delta-reuse-policy = default # benchmark.variants.resource-usage = default # benchmark.variants.validate = default ## data-env-vars.name = netbeans-2018-08-01-zstd-sparse-revlog 6.8.2: 19.799752 6.9rc0: 29.017493 (+46.55%, +9.22) after: 19.929341 ## data-env-vars.name = mercurial-public-2018-08-01-zstd-sparse-revlog 6.8.2: 0.468020 6.9rc0: 1.701294 (+263.51%, +1.23) after: 0.471934 ## data-env-vars.name = pypy-2024-03-22-zstd-sparse-revlog 6.8.2: 2.397564 6.9rc0: 5.666641 (+137.41%, +3.28) after: 2.428085
Tue, 12 Nov 2024 02:22:40 +0100 wheels: update the Linux wheels make target stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Tue, 12 Nov 2024 02:22:40 +0100] rev 52244
wheels: update the Linux wheels make target This reuse the script extracted in the previous changeset and now build the wheels with the same image and code as the CI.
Wed, 13 Nov 2024 04:20:54 +0100 wheels: factor the core of Linux wheel building into a script stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 04:20:54 +0100] rev 52243
wheels: factor the core of Linux wheel building into a script This will make it easy to reuse in the release process while making sure we build the wheel the same way as in the CI.
Sat, 09 Nov 2024 01:31:14 +0100 wheel: add a job uploading nightly build stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 01:31:14 +0100] rev 52242
wheel: add a job uploading nightly build There are various questions around when to actually run it, and which jobs to run on the default branch, but having a working job we can decide to run manually (by running the manual dependencies) is a good step to get the wheel story from one end to the other. See inline comment for more details.
Sat, 09 Nov 2024 01:19:17 +0100 wheel: add a platform level to the wheel directories stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 01:19:17 +0100] rev 52241
wheel: add a platform level to the wheel directories One day, we will gather all wheel in a single directory and be able to pick the right one programmatically. This days is not today… This will help clarify things if we fetch all artifacts at the same time.
Wed, 13 Nov 2024 14:34:40 +0100 setup: use the same code to compute tag from archive stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 14:34:40 +0100] rev 52240
setup: use the same code to compute tag from archive Let us make sure we use a consistent version across the board.
Wed, 13 Nov 2024 14:28:25 +0100 setup: factor version computation in a function stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 14:28:25 +0100] rev 52239
setup: factor version computation in a function We needs it for archive too.
Wed, 13 Nov 2024 14:13:35 +0100 setup: remote a debug statement that slipped through stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 14:13:35 +0100] rev 52238
setup: remote a debug statement that slipped through While debuging version issue, I forcibly turned "6.9" in "6.9.0". And I forgot to clean it up before 9048a0d782e1 land This is unnecessary and wrong, so lets remove that line.
Sun, 10 Nov 2024 00:48:08 +0100 wheel: enforce that translation being build for windows wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 00:48:08 +0100] rev 52237
wheel: enforce that translation being build for windows wheel
Sun, 10 Nov 2024 02:40:44 +0100 ci: shard the tests on windows too stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 02:40:44 +0100] rev 52236
ci: shard the tests on windows too
Wed, 13 Nov 2024 00:52:13 +0100 wheel: test the built wheel in the windows tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 00:52:13 +0100] rev 52235
wheel: test the built wheel in the windows tests Same logic as Linux and Mac, we better test that what we build and ship works.
Sun, 10 Nov 2024 02:10:56 +0100 wheel: explicitly list built architecture stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 02:10:56 +0100] rev 52234
wheel: explicitly list built architecture This will help also build the ARM64 wheel once the dependencies are installed.
Sun, 10 Nov 2024 00:59:43 +0100 wheel: build Windows wheels too stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 00:59:43 +0100] rev 52233
wheel: build Windows wheels too Again, cibuildwheels makes it very handy.
Sun, 10 Nov 2024 03:02:15 +0100 wheel: make --hg-wheel works on Windows stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 03:02:15 +0100] rev 52232
wheel: make --hg-wheel works on Windows There was this old outdated conditional that can simply receive our new needs… Incredibly, this is all that seems to be needed.
Sun, 10 Nov 2024 00:59:21 +0100 wheel: assign CIBW_SKIP globally stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 00:59:21 +0100] rev 52231
wheel: assign CIBW_SKIP globally The other cibuildwheels (e.g. windows) will needs it too.
Sun, 10 Nov 2024 22:30:02 +0100 windows: simply rely on the PATH adjustment to find python.exe in tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 22:30:02 +0100] rev 52230
windows: simply rely on the PATH adjustment to find python.exe in tests The shell script under a `.exe` name confused Windows outside MSYS and give us the following error: […]/python.exe is not compatible with the version of Windows you're running. Check your computer's system information and then contact the software publisher. This is necessary to get the wheel variant of the test run to work properly.
Sun, 10 Nov 2024 02:39:27 +0100 ci: adjust port range on windows too stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 02:39:27 +0100] rev 52229
ci: adjust port range on windows too This will help having concurrency on the windows runner too.
Mon, 11 Nov 2024 23:44:04 +0100 windows: skip test-clonebundles-autogen.t in the CI stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 23:44:04 +0100] rev 52228
windows: skip test-clonebundles-autogen.t in the CI This test is hanging the CI, so lets ignore it for now.
Wed, 13 Nov 2024 00:53:18 +0100 ci: split the windows runtest invocation into more granular variables stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 13 Nov 2024 00:53:18 +0100] rev 52227
ci: split the windows runtest invocation into more granular variables This helps make things clearer and easier to adjust in sub jobs.
Sat, 09 Nov 2024 23:36:30 +0100 ci: again common element into a `.windows` template stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 23:36:30 +0100] rev 52226
ci: again common element into a `.windows` template This factor some code out and will help with introducing a new job about wheels.
Sat, 09 Nov 2024 23:28:36 +0100 ci: use a concurrency safe TMP dir on Windows stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 23:28:36 +0100] rev 52225
ci: use a concurrency safe TMP dir on Windows This should have been done in d6ed4da850ea.
Mon, 11 Nov 2024 16:42:20 +0100 windows: adjust PYTHONPATH update in test-status-color.t stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 16:42:20 +0100] rev 52224
windows: adjust PYTHONPATH update in test-status-color.t On Windows the PATH separator is ";", not ":". The Windows wheel wants it set with ";".
Mon, 11 Nov 2024 16:41:16 +0100 windows: work around argument size limitation in test-bookmarks-pushpull.t stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 16:41:16 +0100] rev 52223
windows: work around argument size limitation in test-bookmarks-pushpull.t Apparently, we need to got through MSYS for such a long argument to be accepted.
Mon, 11 Nov 2024 12:52:53 +0100 tests: drop PYTHONPATH manipulation in test-pushvars.t stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 12:52:53 +0100] rev 52222
tests: drop PYTHONPATH manipulation in test-pushvars.t It does not seems to serve any purpose and confuses Windows.
Mon, 11 Nov 2024 05:42:44 +0100 run-tests: cleanup the "output" directory after the related tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 05:42:44 +0100] rev 52221
run-tests: cleanup the "output" directory after the related tests The output confused the test discovery when left around. And it confuse the Linux and the Windows one a bit differently, so we better clean it up as it serve not purpose to keep it around.
Mon, 11 Nov 2024 11:13:34 +0100 run-tests: focus on listing the selected test for the shard tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 11 Nov 2024 11:13:34 +0100] rev 52220
run-tests: focus on listing the selected test for the shard tests We don't care about actually running the test, but we care about what is selected and the stability of it. So we focus on using `--list-tests` to easily compare any changes that might happens.
Sun, 10 Nov 2024 00:46:44 +0100 wheel: enforce that translation being build for macos wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sun, 10 Nov 2024 00:46:44 +0100] rev 52219
wheel: enforce that translation being build for macos wheel
Sat, 09 Nov 2024 00:59:59 +0100 dev-version: change the scheme of non tagged version stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Sat, 09 Nov 2024 00:59:59 +0100] rev 52218
dev-version: change the scheme of non tagged version We update the dev version scheme to make it more suitable for nightly build. See inline documentation for details.
Tue, 12 Nov 2024 12:52:13 +0100 rust-update: handle SIGINT from long-running update threads stable
Raphaël Gomès <rgomes@octobus.net> [Tue, 12 Nov 2024 12:52:13 +0100] rev 52217
rust-update: handle SIGINT from long-running update threads The current code does not respond to ^C until after the Rust bit is finished doing its work. This is expected, since Rust holds the GIL for the duration of the call and does not call `PyErr_CheckSignals`. Freeing the GIL to do our work does not really improve anything since the Rust threads are still going, and the only way of cancelling a thread is by making it cooperate. So we do the following: - remember the SIGINT handler in hg-cpython and reset it after the call into core (see inline comment in `update.rs` about this) - make all update threads watch for a global `AtomicBool` being `true`, and if so stop their work - reset the global bool and exit early (i.e. before writing the dirstate) - raise SIGINT from `hg-cpython` if update returns `InterruptReceived`
Fri, 08 Nov 2024 17:08:11 +0100 ci: shard the test run on mac os X stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 17:08:11 +0100] rev 52216
ci: shard the test run on mac os X This should comes with some benefit: - spread the load across more runner, - reduce the real-time CI run, - reduce the "retry" run when we need them. We start with the Mac jobs, but that would be tremendously useful for Windows too. For linux, we need to reduce the startup overhead for this to be worth it. Building smaller image and speeding up clone should help with that.
Thu, 22 Sep 2022 01:02:06 +0200 run-tests: implement crude sharding support stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 22 Sep 2022 01:02:06 +0200] rev 52215
run-tests: implement crude sharding support It will help to spread the testing load across more CI runners.
Fri, 08 Nov 2024 21:41:02 +0100 ci: have the mac test run if you trigger building the mac wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 21:41:02 +0100] rev 52214
ci: have the mac test run if you trigger building the mac wheel The mac test job now depends on the wheel building. And the wheel building is manual. So if the mac test job is set to "on_success" if will be "skipped" by default, and automatically run if the wheel are build. That is especially handy as we are about to shard that test and that the UI for manual sharded test sucks.
Fri, 08 Nov 2024 21:22:02 +0100 ci: adjust the starting port range to runner concurrency stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 21:22:02 +0100] rev 52213
ci: adjust the starting port range to runner concurrency If multiple job runs on the same runner, they should not use the port range.
Fri, 08 Nov 2024 17:28:33 +0100 ci: move the "tempory work dir" to "concurrency-safe" location stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 17:28:33 +0100] rev 52212
ci: move the "tempory work dir" to "concurrency-safe" location Lets not use a global location and move at the root of the directory dedicated to the job.
Mon, 28 Oct 2024 03:29:29 +0100 ci: abstract the of absolute /tmp/ path stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Mon, 28 Oct 2024 03:29:29 +0100] rev 52211
ci: abstract the of absolute /tmp/ path We now have a TMP_WORK_DIR directory that we can update to a more sensible value in the next changesets.
Fri, 08 Nov 2024 14:56:54 +0100 ci: rationalize variable usage stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 14:56:54 +0100] rev 52210
ci: rationalize variable usage The usage of "extends" allow to skip a lot of duplication. We also introduce more fine grained variables to help finer override.
Fri, 08 Nov 2024 14:44:56 +0100 ci: move some variables closer to their usage stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 14:44:56 +0100] rev 52209
ci: move some variables closer to their usage These were defined globaly because we had trouble making them inherited. This is now fixed, so we can get them were they belong.
Fri, 08 Nov 2024 14:35:57 +0100 ci: use extends instead of <<: *x stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 14:35:57 +0100] rev 52208
ci: use extends instead of <<: *x The old form is a yaml construct that make it hard to share variable definition. The "extends:" key is a gitlab specific that preserve the variable definition and just add the new ones. This will help us to reduce duplication. This has the effect of fixing some of variants definition we though we set while we did actually not. Most notably, the "rust" variant for 3.12 and 3.13 seems fully broken in the CI (possibly because some rust-cpython version issue?). This changeset only reveal such breackage and does not introduce them.
Thu, 07 Nov 2024 17:22:05 +0100 ci: use the macos wheel to run tests stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 07 Nov 2024 17:22:05 +0100] rev 52207
ci: use the macos wheel to run tests
Tue, 15 Oct 2024 05:17:37 +0200 wheel: build mac os wheel through the CI stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Tue, 15 Oct 2024 05:17:37 +0200] rev 52206
wheel: build mac os wheel through the CI Let's start building wheel for mac os X too.
Fri, 08 Nov 2024 12:53:40 +0100 pycompat: drop some now useless workaround for makedirs stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 12:53:40 +0100] rev 52205
pycompat: drop some now useless workaround for makedirs This `exists_ok` flag was added in Python 3.2
Thu, 07 Nov 2024 23:13:32 +0100 run-tests: install wheel using --prefix instead of --user stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 07 Nov 2024 23:13:32 +0100] rev 52204
run-tests: install wheel using --prefix instead of --user --user does not work if a venv is enabled when calling run-tests.py
Fri, 08 Nov 2024 02:02:32 +0100 ci: automatically compute the python tag we use to identify tag stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 02:02:32 +0100] rev 52203
ci: automatically compute the python tag we use to identify tag This make the determination more automatic and less error prone. In addition, this will make it possible to run on a runner without a pre-determined Python version, like what we do for the macos and windows workers.
Fri, 08 Nov 2024 02:50:34 +0100 pytype: add relative timestamp to the output if `ts` is available stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Fri, 08 Nov 2024 02:50:34 +0100] rev 52202
pytype: add relative timestamp to the output if `ts` is available This should help to identify the module that are the slower to analyze.
Wed, 06 Nov 2024 16:40:58 +0100 ci: build (and use) wheel for all supported version stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 06 Nov 2024 16:40:58 +0100] rev 52201
ci: build (and use) wheel for all supported version We test wheel building for all supported version and use them where applicable The usage is more verbose than I wish because .gitlab-ci is not that great.
Wed, 06 Nov 2024 16:39:45 +0100 ci: use a pre-setup many-linux image to build wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 06 Nov 2024 16:39:45 +0100] rev 52200
ci: use a pre-setup many-linux image to build wheel This produce wheel that are more universal and identical to the one we want to publish.
Wed, 06 Nov 2024 16:38:57 +0100 ci: use smaller VM to build wheel stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 06 Nov 2024 16:38:57 +0100] rev 52199
ci: use smaller VM to build wheel There is no need for large machine for this job, Python will be mostly singled threaded anyway.
Wed, 06 Nov 2024 16:32:15 +0100 setup: add a way to force the setup to translate (or fail) stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 06 Nov 2024 16:32:15 +0100] rev 52198
setup: add a way to force the setup to translate (or fail) we add the `MERCURIAL_SETUP_FORCE_TRANSLATIONS` variable that is intended to make sure we don't stop building the translation silently.
Wed, 06 Nov 2024 16:37:10 +0100 ci: pre-adjust some identation stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Wed, 06 Nov 2024 16:37:10 +0100] rev 52197
ci: pre-adjust some identation We adjust a couple of job to consistently use double space identation. This will make the next changesets clearer.
Thu, 07 Nov 2024 11:02:35 +0100 test-install: glob instance of "python" in warning stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 07 Nov 2024 11:02:35 +0100] rev 52196
test-install: glob instance of "python" in warning If run with something else (e.g. python3.12) the message says "python3.12" so we just glob that away.
Thu, 07 Nov 2024 01:30:08 +0100 test-install: use the global hg for the install step stable
Pierre-Yves David <pierre-yves.david@octobus.net> [Thu, 07 Nov 2024 01:30:08 +0100] rev 52195
test-install: use the global hg for the install step This prevent error in some cases.
Tue, 05 Nov 2024 12:02:38 -0500 tests: bump the wait timeouts in test-racy-mutations.t stable
Matt Harbison <matt_harbison@yahoo.com> [Tue, 05 Nov 2024 12:02:38 -0500] rev 52194
tests: bump the wait timeouts in test-racy-mutations.t This was done to try to figure out why there's output differences in the previous two commits- low timeouts have been a cause of a lot of problems on Windows. That doesn't seem to be the case here, but I'm leaving it in anyway to avoid sporadic failures.
Tue, 05 Nov 2024 11:50:29 -0500 tests: add a "missing" tests for manifest content in test-racy-mutations.t stable
Matt Harbison <matt_harbison@yahoo.com> [Tue, 05 Nov 2024 11:50:29 -0500] rev 52193
tests: add a "missing" tests for manifest content in test-racy-mutations.t Trying to figure out why the divergence in behavior on Windows. The first test shows everything is the same on all platforms; the second shows that the other #testcase also diverges. The difference might be that `00manifest.i` doesn't get updated (and copied over) after `pre-race` is created, but I've no idea why that would be either.
Tue, 05 Nov 2024 11:48:22 -0500 tests: conditionalize missing output in test-racy-mutations.t on Windows stable
Matt Harbison <matt_harbison@yahoo.com> [Tue, 05 Nov 2024 11:48:22 -0500] rev 52192
tests: conditionalize missing output in test-racy-mutations.t on Windows No idea why this is only missing on Windows. I verified that the line marked as missing directly above this for the changelog is, in fact, missing on both Windows and Linux. So there's probably work to do in this area on all platforms. It would be nice to figure out what is going on, but this appeases CI in the meantime.
Thu, 07 Nov 2024 10:36:12 -0500 tests: disable a section of `test-paths.t` that may hit a zeroconf bug stable
Matt Harbison <matt_harbison@yahoo.com> [Thu, 07 Nov 2024 10:36:12 -0500] rev 52191
tests: disable a section of `test-paths.t` that may hit a zeroconf bug This effectively re-disables the same test as cce9e7d2fb92, but unconditionally because it's not a pyoxidizer-specific problem. 74e16d8ca5f3 disabled the other related test for the same reason- this one was missed because it wasn't failing for the few runs when that was tested.
Tue, 05 Nov 2024 15:21:09 +0100 rust-update: make `update_from_null` respect `worker.numcpu` config option stable
Raphaël Gomès <rgomes@octobus.net> [Tue, 05 Nov 2024 15:21:09 +0100] rev 52190
rust-update: make `update_from_null` respect `worker.numcpu` config option This was overlooked in the original series. This is important for tests (because we run many at once), and for the occasional end user that wants to keep their CPU usage in check. A future series should clean up this `worker` parameter tunelling business by rewriting the config in Rust, but doing so on stable would be a very bad idea.
Tue, 05 Nov 2024 15:18:32 +0100 rust-cpython: add a TODO about repo reuse stable
Raphaël Gomès <rgomes@octobus.net> [Tue, 05 Nov 2024 15:18:32 +0100] rev 52189
rust-cpython: add a TODO about repo reuse This will need to be done soon-ish to prevent any surprises.
Mon, 04 Nov 2024 16:43:05 -0500 streamclone: disable the volatile file open handle optimization on Windows stable
Matt Harbison <matt_harbison@yahoo.com> [Mon, 04 Nov 2024 16:43:05 -0500] rev 52188
streamclone: disable the volatile file open handle optimization on Windows Leaving files open caused new failures like this, since a47f09da8bd1: diff --git a/tests/test-persistent-nodemap-stream-clone.t b/tests/test-persistent-nodemap-stream-clone.t --- a/tests/test-persistent-nodemap-stream-clone.t +++ b/tests/test-persistent-nodemap-stream-clone.t @@ -115,7 +115,12 @@ Do a mix of clone and commit at the same $ (hg clone -U --stream ssh://user@dummy/test-repo stream-clone-race-1 --debug 2>> clone-output | grep -E '00(changelog|manifest)' >> clone-output; touch $HG_TEST_STREAM_WALKED_FILE_3) & $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_1 $ hg -R test-repo/ commit -m foo - created new head + transaction abort! + failed to recover 00changelog.n ([WinError 32] The process cannot access the file because it is being used by another process: b'$STR_REPR_TESTTMP\\test-repo/.hg/store/00changelog.n' -> b'$STR_REPR_TESTTMP\\test-repo/.hg/store/00changelog.n-f418dcd6') + rollback failed - please run hg recover + (failure reason: [WinError 32] The process cannot access the file because it is being used by another process: b'$STR_REPR_TESTTMP\\test-repo/.hg/store/00changelog.n' -> b'$STR_REPR_TESTTMP\\test-repo/.hg/store/00changelog.n-f418dcd6') + abort: The process cannot access the file because it is being used by another process: '$TESTTMP\test-repo\.hg\store\00changelog.n' + [255] $ touch $HG_TEST_STREAM_WALKED_FILE_2 $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3 $ cat clone-output Since the `VolatileManager` falls back to the old copy method when the open file threshold is exceeded, this just drops the threshold so that only 1 file is open. The actual value used (2) is unexpected, and explained inline. I'd like to have a config option for this so that we can test both ways (in theory, it could resort to copies on non-Windows systems too), but I don't see a `uimod.ui` handy. Alternately, I tried replacing the 3 `open()` calls in the `VolatileManager` with `util.posixfile()`, but that simply hung the test on Windows for some reason, I think on the same line that's indicated as failing above. (There was a `grep` command hanging around, as well as `hg -R test-repo serve --stdio`.)
Mon, 04 Nov 2024 17:42:30 -0500 tests: treat `select` as a built-in module on Windows stable
Matt Harbison <matt_harbison@yahoo.com> [Mon, 04 Nov 2024 17:42:30 -0500] rev 52187
tests: treat `select` as a built-in module on Windows This fixes: --- C:/Users/Matt/hg/tests/test-check-module-imports.t +++ C:/Users/Matt/hg/tests/test-check-module-imports.t.err @@ -43,3 +43,15 @@ > -X tests/test-verify-repo-operations.py \ > -X tests/test-extension.t \ > | sed 's-\\-/-g' | "$PYTHON" "$import_checker" - + hgext/zeroconf/Zeroconf.py:86: stdlib import "socket" follows local import: select\r (esc) + hgext/zeroconf/Zeroconf.py:87: stdlib import "struct" follows local import: select\r (esc) + hgext/zeroconf/Zeroconf.py:88: stdlib import "threading" follows local import: select\r (esc) + hgext/zeroconf/Zeroconf.py:89: stdlib import "time" follows local import: select\r (esc) + hgext/zeroconf/Zeroconf.py:90: stdlib import "traceback" follows local import: select\r (esc) + mercurial/posix.py:18: stdlib import "stat" follows local import: select\r (esc) + mercurial/posix.py:19: stdlib import "sys" follows local import: select\r (esc) + mercurial/posix.py:20: stdlib import "tempfile" follows local import: select\r (esc) + mercurial/posix.py:21: stdlib import "typing" follows local import: select\r (esc) + tests/tinyproxy.py:19: stdlib import "socket" follows local import: select\r (esc) + tests/tinyproxy.py:20: stdlib import "sys" follows local import: select\r (esc) + [1] ERROR: test-check-module-imports.t output changed
Mon, 21 Oct 2024 12:58:40 +0200 rust-vfs: add docstrings to all VFS methods on the trait
Raphaël Gomès <rgomes@octobus.net> [Mon, 21 Oct 2024 12:58:40 +0200] rev 52186
rust-vfs: add docstrings to all VFS methods on the trait
Thu, 10 Oct 2024 15:54:45 +0200 rust-vfs: support checkambig
Raphaël Gomès <rgomes@octobus.net> [Thu, 10 Oct 2024 15:54:45 +0200] rev 52185
rust-vfs: support checkambig This was missing from the Rust code, which means worse caching. See https://wiki.mercurial-scm.org/ExactCacheValidationPlan. Explanations on what ambiguity means inline.
Tue, 08 Oct 2024 16:10:30 +0200 rust-vfs: add tests to `AtomicFile`
Raphaël Gomès <rgomes@octobus.net> [Tue, 08 Oct 2024 16:10:30 +0200] rev 52184
rust-vfs: add tests to `AtomicFile` This also makes it more usable from Rust by separating `from_file` and `new`.
Tue, 08 Oct 2024 16:09:39 +0200 rust-vfs: delete the temp file and not the target on drop
Raphaël Gomès <rgomes@octobus.net> [Tue, 08 Oct 2024 16:09:39 +0200] rev 52183
rust-vfs: delete the temp file and not the target on drop Oops. This never affected anything since `close()` is correct and no code has dropped an `AtomicFile` without a close first yet. Next patch will add tests.
Thu, 26 Sep 2024 14:26:24 +0200 rust: don't star export from the `revlog` module
Raphaël Gomès <rgomes@octobus.net> [Thu, 26 Sep 2024 14:26:24 +0200] rev 52182
rust: don't star export from the `revlog` module This made a lot of the imports confusing because they didn't make sense at the top level (so, outside of `revlog`), and they hide the more common types when autocompleting.
Thu, 01 Aug 2024 11:27:20 +0200 rust: populate mmaps in a separate thread if possible
Raphaël Gomès <rgomes@octobus.net> [Thu, 01 Aug 2024 11:27:20 +0200] rev 52181
rust: populate mmaps in a separate thread if possible Same rationale as b619ba39d10a.
Wed, 31 Jul 2024 15:41:08 +0200 rust-revlog: build an in-memory nodemap if a given revlog gets queried a lot
Raphaël Gomès <rgomes@octobus.net> [Wed, 31 Jul 2024 15:41:08 +0200] rev 52180
rust-revlog: build an in-memory nodemap if a given revlog gets queried a lot This will help with non-persistent nodemap repos that would benefit from one, and mirrors what the C implementation does.
Wed, 31 Jul 2024 15:11:27 +0200 rust-revlog: generalize an error message
Raphaël Gomès <rgomes@octobus.net> [Wed, 31 Jul 2024 15:11:27 +0200] rev 52179
rust-revlog: generalize an error message This is used for more than the nodemap data.
Wed, 31 Jul 2024 13:35:54 +0200 rust-revlog: don't create an in-memory nodemap for filelogs from Python
Raphaël Gomès <rgomes@octobus.net> [Wed, 31 Jul 2024 13:35:54 +0200] rev 52178
rust-revlog: don't create an in-memory nodemap for filelogs from Python Explanations inline. Benchmarks from this change affect positively the only repo that showed this being a problem: ``` ### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm # benchmark.name = hg.command.cat # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.files = all-root # benchmark.variants.output = plain # benchmark.variants.rev = tip default: 62.848869 ~~~~~ before-this-patch: 58.113051 (-7.54%, -4.74) this-patch: 57.407533 (-8.66%, -5.44) ### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 10 # benchmark.variants.patch = yes # benchmark.variants.rev = none default: 3.173532 ~~~~~ before-this-patch: 3.543591 (+11.66%, +0.37) this-patch: 3.297235 (+3.90%, +0.12) ```
Wed, 31 Jul 2024 15:02:55 +0200 rust-revlog: move non-persistent-nodemap rev lookup to the index
Raphaël Gomès <rgomes@octobus.net> [Wed, 31 Jul 2024 15:02:55 +0200] rev 52177
rust-revlog: move non-persistent-nodemap rev lookup to the index It only uses index features and does not need to be on the revlog. A later patch will make use of this function from a different context.
Mon, 29 Jul 2024 20:39:34 +0200 revlog: add glue to use a pure-Rust VFS
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:39:34 +0200] rev 52176
revlog: add glue to use a pure-Rust VFS This will save us a lot of calling back into Python, which is always horribly expensive. We are now faster in all benchmarked cases except for `log --patch` specifically on mozilla-try. Fixing this will happen in a later patch. ``` ### data-env-vars.name = mercurial-devel-2024-03-22-ds2-pnm # benchmark.name = hg.command.cat # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.files = all-root # benchmark.variants.output = plain # benchmark.variants.rev = tip e679697a6ca4: 1.760765 ~~~~~ 5559d7e63ec3: 1.555513 (-11.66%, -0.21) ### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm # benchmark.name = hg.command.cat # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.files = all-root # benchmark.variants.output = plain # benchmark.variants.rev = tip e679697a6ca4: 62.848869 ~~~~~ 5559d7e63ec3: 58.113051 (-7.54%, -4.74) ### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 10 # benchmark.variants.patch = yes # benchmark.variants.rev = none e679697a6ca4: 3.173532 ~~~~~ 5559d7e63ec3: 3.543591 (+11.66%, +0.37) ### data-env-vars.name = mozilla-try-2024-03-26-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 1000 # benchmark.variants.patch = no # benchmark.variants.rev = none e679697a6ca4: 1.214698 ~~~~~ 5559d7e63ec3: 1.192478 (-1.83%, -0.02) ### data-env-vars.name = mozilla-unified-2024-03-22-ds2-pnm # benchmark.name = hg.command.cat # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.files = all-root # benchmark.variants.output = plain # benchmark.variants.rev = tip e679697a6ca4: 56.205474 ~~~~~ 5559d7e63ec3: 51.520074 (-8.34%, -4.69) ### data-env-vars.name = mozilla-unified-2024-03-22-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 10 # benchmark.variants.patch = yes # benchmark.variants.rev = none e679697a6ca4: 2.105419 ~~~~~ 5559d7e63ec3: 2.051849 (-2.54%, -0.05) ### data-env-vars.name = mozilla-unified-2024-03-22-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 1000 # benchmark.variants.patch = no # benchmark.variants.rev = none e679697a6ca4: 0.309960 ~~~~~ 5559d7e63ec3: 0.299035 (-3.52%, -0.01) ### data-env-vars.name = tryton-public-2024-03-22-ds2-pnm # benchmark.name = hg.command.cat # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.files = all-root # benchmark.variants.output = plain # benchmark.variants.rev = tip e679697a6ca4: 1.849832 ~~~~~ 5559d7e63ec3: 1.805076 (-2.42%, -0.04) ### data-env-vars.name = tryton-public-2024-03-22-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 10 # benchmark.variants.patch = yes # benchmark.variants.rev = none e679697a6ca4: 0.289521 ~~~~~ 5559d7e63ec3: 0.279889 (-3.33%, -0.01) ### data-env-vars.name = tryton-public-2024-03-22-ds2-pnm # benchmark.name = hg.command.log # bin-env-vars.hg.flavor = rust # bin-env-vars.hg.py-re2-module = default # benchmark.variants.limit-rev = 1000 # benchmark.variants.patch = no # benchmark.variants.rev = none e679697a6ca4: 0.332270 ~~~~~ 5559d7e63ec3: 0.323324 (-2.69%, -0.01) ```
Mon, 29 Jul 2024 20:35:44 +0200 fncache: add attribute to check whether we're using dotencode
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:35:44 +0200] rev 52175
fncache: add attribute to check whether we're using dotencode This will make it easy to know if we can use the Rust implementation that doesn't support older forms of encoding.
Mon, 29 Jul 2024 20:34:38 +0200 fncachestore: add typing information
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:34:38 +0200] rev 52174
fncachestore: add typing information This helps with autocomplete.
Mon, 29 Jul 2024 20:34:06 +0200 fncache: refactor load check into a property
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:34:06 +0200] rev 52173
fncache: refactor load check into a property This makes the intent more obvious new callers less prone to error.
Mon, 29 Jul 2024 20:49:07 +0200 hg-core: add FnCacheVFS
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:49:07 +0200] rev 52172
hg-core: add FnCacheVFS This will allow us to only call back into Python to add items to the fncache, which should save us a lot of FFI overhead. This is also of course a stepping stone for more pure Rust work.
Mon, 29 Jul 2024 20:47:43 +0200 hg-core: add a complete VFS
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:47:43 +0200] rev 52171
hg-core: add a complete VFS This will be used from Python in a later change. More changes are needed in hg-core and rhg to properly clean up the APIs of the old VFS implementation but it can be done when the dust settles and we start adding more functionality to the pure Rust VFS.
Mon, 29 Jul 2024 20:28:42 +0200 hg-core: add fncache module
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 20:28:42 +0200] rev 52170
hg-core: add fncache module For now it's only a super simple trait. It will be used for calling back into Python soon, and later will be fleshed out into a full fncache.
Thu, 26 Sep 2024 13:55:26 +0200 rust: populate mmap by default if available
Raphaël Gomès <rgomes@octobus.net> [Thu, 26 Sep 2024 13:55:26 +0200] rev 52169
rust: populate mmap by default if available See 522b4d729e89edc76544fa549ed36de4aea0b7fb for more details. Background population to follow in a later patch.
Wed, 19 Jun 2024 18:20:22 +0200 rust-changelog: switch away from deprecated APIs for datetime use
Raphaël Gomès <rgomes@octobus.net> [Wed, 19 Jun 2024 18:20:22 +0200] rev 52168
rust-changelog: switch away from deprecated APIs for datetime use This was caught by clippy, nothing was changed aside from some light API changes.
Wed, 19 Jun 2024 19:10:49 +0200 revlog: add the glue to use the Rust `InnerRevlog` from Python
Raphaël Gomès <rgomes@octobus.net> [Wed, 19 Jun 2024 19:10:49 +0200] rev 52167
revlog: add the glue to use the Rust `InnerRevlog` from Python The performance of this has been looked at for quite some time, and some workflows are actually quite a bit faster than with the Python + C code. However, we are still (up to 20%) slower in some crucial places like cloning certain repos, log, cat, which makes this an incomplete rewrite. This is mostly due to the high amount of overhead in Python <-> Rust FFI, especially around the VFS code. A future patch series will rewrite the VFS code in pure Rust, which should hopefully get us up to par with current perfomance, if not better in all important cases. This is a "save state" of sorts, as this is a ton of code, and I don't want to pile up even more things in a single review. Continuing to try to match the current performance will take an extremely long time, if it's not impossible, without the aforementioned VFS work.
Wed, 19 Jun 2024 17:03:13 +0200 changelog: also set the general delta config flag in the data config
Raphaël Gomès <rgomes@octobus.net> [Wed, 19 Jun 2024 17:03:13 +0200] rev 52166
changelog: also set the general delta config flag in the data config This duplication is dubious, but it's a decision to be made at a later date, this is the fix.
Mon, 29 Jul 2024 15:03:52 +0200 rust-index: use `IndexEntry::offset` to compute read segments
Raphaël Gomès <rgomes@octobus.net> [Mon, 29 Jul 2024 15:03:52 +0200] rev 52165
rust-index: use `IndexEntry::offset` to compute read segments This only matters for inline revlogs where the impact is debatable, but this is what the C index does.
Thu, 10 Oct 2024 10:34:51 +0200 rust-revlog: add a Rust-only `InnerRevlog`
Raphaël Gomès <rgomes@octobus.net> [Thu, 10 Oct 2024 10:34:51 +0200] rev 52164
rust-revlog: add a Rust-only `InnerRevlog` This mirrors the Python `InnerRevlog` and will be used in a future patch to replace said Python implementation. This allows us to start doing more things in pure Rust, in particular reading and writing operations. A lot of changes have to be introduced all at once, it wouldn't be very useful to separate this patch IMO since all of them are either interlocked or only useful with the rest.
Thu, 10 Oct 2024 10:38:35 +0200 rust-index: fix the computation of data start
Raphaël Gomès <rgomes@octobus.net> [Thu, 10 Oct 2024 10:38:35 +0200] rev 52163
rust-index: fix the computation of data start This was falling into place instead of being correct, we clean up the logic by differenciating the on-disk offset and the actual start of the data more cleanly.
Thu, 10 Oct 2024 10:38:10 +0200 rust-index: return an error on a bad index header
Raphaël Gomès <rgomes@octobus.net> [Thu, 10 Oct 2024 10:38:10 +0200] rev 52162
rust-index: return an error on a bad index header This is more idiomatic and allows us to better handle the problem later.
Thu, 17 Oct 2024 15:22:38 +0200 rust-vfs: add a TODO to remember a decision taken about naming
Raphaël Gomès <rgomes@octobus.net> [Thu, 17 Oct 2024 15:22:38 +0200] rev 52161
rust-vfs: add a TODO to remember a decision taken about naming Explanations inline.
Wed, 25 Sep 2024 18:24:15 +0200 rust-revlog: introduce an `options` module
Raphaël Gomès <rgomes@octobus.net> [Wed, 25 Sep 2024 18:24:15 +0200] rev 52160
rust-revlog: introduce an `options` module This helps group all the relevant revlog options code and makes the `mod.rs` more readable.
(0) -30000 -10000 -3000 -1000 -112 tip