astropy: TST: decoupling stable CI and incompatibilities discovery (let's use lock files)

Disclaimer

As the length of this issue may suggest, I’ve put a lot of thoughts into this proposal, which comes as a culmination of one year serving as our first line of defense against environment incompatibilities (also known as dependency hell). Maybe this should be an APE ?

TL;DR

The one-liner version of this proposal is: let’s start using lock files.

Now for a slightly longer summary: We already have a distinction between regular, required CI and jobs that are allowed to fail (allowed-failure). I propose to consolidate this distinction into a stable/unstable paradigm, using a lock file in stable jobs to get exact reproducibility of the testing environment and improve our trust that failures are always related to the patch under test.

Since lock files are currently foreign to our shared maintenance culture, and I was myself completely new to them a couple months back, I’ll take a long detour to explain the motivation as well as the solution: if you don’t know what a lock file is, hang in there ! I’ll get to it.

Here are some external resources describing the core concepts and stakes for cargo, the rust package manager, and uv, the Python package manager inspired by cargo:

Problem: required CI isn’t stable

Our regular CI comprises jobs that are required for merging, and some that are explicitly allowed to fail. The former are meant to reveal failures caused by the patch under test, while the latter are aimed to continuously reveal incoming incompatibilities with a selection of important dependencies (first and foremost, numpy). Incoming incompatibilities indeed shouldn’t block most patches, as they are usually caused by the outside world, so I think this distinction between required and allowed-failures is a great thing to have. However, I see a problem with how it is currently implemented:

Even in required jobs, the Python environment that is installed isn’t stable or easily reproducible; whatever is the latest version of one of our dependencies, is what gets installed and tested against. This regularly leads to situations where required CI is failing on every single PR at once because of some upstream change we didn’t happen to test early against (again, we only run such early tests against a selection of our direct dependencies, leaving lots of room for failure). Such a situation, because it is so inconvenient to the team as a whole, is often treated as an emergency, and rightfully so. Regardless how much dopamine I get by serving as our first line (and I am grateful to be of help as often as I can), I need to point that solutions found while in crisis mode may not always be the best or most robust ones.

It’s also not always obvious what (if anything) changed in the environment between two runs, and a defensive reflex when ones encounter a cryptic, seemingly unrelated error, is to diff the outputs of pip freeze found in CI logs. This is bad for two reasons:

  • it shows that we do not really trust required CI to reveal only issues with the patch under test
  • it is a somewhat tedious and error-prone task

Proposed solution (spoilers: it’s lock files)

What are lock files

Simply put, a lock file is a record of a resolved environment with metadata including exact versions of all dependencies (direct, indirect, mandatory, and optional ones). A requirements.txt file obtained via pip freeze is conceptually similar (albeit generally less portable[^1], or secure[^2]), in that it allows to recreate an environment exactly.

Practically, lock files allow pinning all dependencies in a way that’s not visible to end users.

[^1]: Actual lock files are more portable: they can lock on different versions of a package depending, e.g., on the target platform (Linux VS Windows), or the version of Python, depending on what’s available. See https://github.com/astral-sh/uv/pull/9827, for instance. [^2]: lock files typically contain a lot more metadata than package names and versions, and will also record sources (usually pypi.org) and sha256 hashes of artifacts (wheels and source distributions) to be downloaded.

Expected gains

Locking CI means that we never get surprise updates on weekends or in indirect dependencies we don’t pay attention to. Updates happen on our schedule rather than being imposed by the outside world. This proposed strategy is actually not that foreign to us: we already use exact pins (paired with automated updates) for GitHub Action workflows and for pre-commit hooks.

Having a version-controlled lock files also means that we can revisit previous states of the repo and run tests within the exact same environment

The current state of standards

I want to point out that lock files are currently not standardized in the Python packaging ecosystem, which means all workflow tools that support a version of this implement their own flavor (poetry.lock, pdm.lock, uv.lock …) but there is a PEP under discussion.

Namely PEP 751 is being discussed on discourse., note that stake holders (poetry, pdm, uv …) are all included in the discussion, which is a good sign that this one might succeed[^3].

[^3]: as opposed to the previous PEP 665 it replaced

Having a standard file format for lock files would greatly improve interoperability between tools that consume them, and would allow us to migrate from one tool to another as we see fit without converting the lock file.

Proposed plan

I propose we start using a uv lock file (uv.lock) in stable CI as well as documentation (https://github.com/astropy/astropy/issues/17052) and wheel builds. I choose uv over other options because:

  • it integrates nicely with our existing toolbox
  • astral-sh/uv as a very good record on supporting newly accepted PEPs (e.g. PEP 723 or PEP 735, supported within 2 weeks after acceptance), so I’m confident that they would support converting to a standardized lock file format if there is one in the future.
  • I think I have a good understanding of how this tool work: I’ve been using uv more and more over the past year that it’s been available.
  • I don’t have experience with the other options (pdm, poetry and pixi are the ones I know about), but I hear some of them have non-ideal records in terms of standard adoption:
    • pdm support at least one PEP that was ultimately rejected
    • poetry has been very slow/reluctant to support standards, effectively locking its users in)
  • maybe it’s worth mentioning pixi is already bound to uv in a sense (it uses uv internally for dependency resolution)

Deployment

There are 3 easy steps needed to adopt to this testing strategy, which I believe can be performed in a single PR:

  • generate and commit the file itself (trivial)
  • use uv in CI (this can easily be achieved as a follow up to #16963)
  • add uv-lock to pre-commit (ensure uv.lock stays in sync when dependencies are added, updated or removed in pyproject.toml)

For the record, I have been doing exactly this on smaller packages that I control.

Long term maintenance

The core idea is to decouple environment updates, and the ensuing risk of surprise incompatibility, from regular testing. However, running regular CI in an up-to-date environment remains very much needed, so keeping the lock file up to date is crucial to this strategy. There are two questions to discuss here:

  • how frequently should it be updated ? Given how large astropy’s testing stack is, I would recommend at least weekly updates, maybe even daily (5 days a week) ?
  • what service (if any) can we use ?

My personal recommendation for now would be to use renovate exclusively for this task (as opposed to replacing dependabot completely) until dependabot gains support for uv.lock or an equivalent, standardized format (which might take a while).

Expected drawbacks, side effects

In short: none that I’m aware of.

How does this affect end users and downstream packages ?

It doesn’t. Lock files are not meant to be distributed and using them does not change how we specify our dependencies in pyproject.toml .

How does this affect individual maintainers ?

This does not force anyone to use uv locally[^4] If you manage your own local dev environment(s) with pip, conda, pyenv (you name it) and you don’t care for uv, nothing changes for you.

Maintainers who do want to use uv will benefit from having a centralized and version-controlled lock file.

In general, lock file upgrades should not invalidate CI jobs that already ran on pending PRs, with the possible exception of someone working specifically around dependency issues.

[^4]: except in the context of running tox, but one doesn’t need to know about uv to use uv-in-tox, just like one doesn’t need to know about pip to run pip-in-tox (current status quo).

How does this affect release managers ?

This removes the (admittedly small) risk of discovering incompatibilities with our dependency stack between the moment a release is tagged and when it’s actually published (wheels are tested in a guaranteed-stable environment). Lock file updates should probably be backported as much as possible.

Does this lock us into current major versions of our dependencies ?

It’s been pointed out by @eerovaher that cargo, the inspiration for uv, assumes that every package in the rust ecosystem strictly follows semantic versioning, so cargo update (the command to upgrade Cargo.lock) will not perform major upgrades by default (one needs to specify --breaking to get major upgrades). uv lock --upgrade doesn’t do this and treats all upgrades (major, minor, patch) the same, to the best of my knowledge, and as of uv 0.5.14.

How does this affect oldestdeps and devdeps jobs ?

It doesn’t. uv simply ignore existing lock files if a different resolution strategy is requested, which is exactly what’s done for oldestdeps (via --resolution=lowest-direct, see #16963), and devdeps (via --prerelease=allow, equivalent to pip’s --pre flag).

Cultural impact

This proposal is a cultural shift in the testing strategy. While it is by not means required that packages downstream of astropy follow the same path, I believe that it would still be helpful to encourage it: the problem I want to resolve isn’t specific to astropy. I would be happy to help coordinated and affiliated packages migrate to this new paradigm if it is adopted by astropy itself.

About this issue

  • Original URL
  • State: open
  • Created 2 years ago
  • Reactions: 4
  • Comments: 41 (38 by maintainers)

Most upvoted comments

update: PEP 751 was accepted, which means that there is now a standard lock file format (pylock.toml).

Hmm, I do share @pllim’s worry about “yet more magic that too few people understand”. The more painful issues we have had are in fact with updates to our infrastructure packages (like tox…), mostly because we do not really have expertise in those.

That said, if all the cron jobs run without the lockfiles, we do gain the separation of concerns that drives this idea, that PRs are always tested in a known-good environment.

@neutrinoceros - I think a more minimal verifier for any auto-merge feature would simply check that the PR only actually touches the lockfiles.

That’s good news about pip lock supporting pylock.toml so quickly! 🎉🎂🎆🪩🌌🥦

One thing to note is that the pip lock documentation says:

The generated lock file is only guaranteed to be valid for the current python version and platform.

I think that’s a limitation of pylock.toml. In contrast, uv.lock defines environments for multiple Python versions, multiple platforms, and all dependency groups in a single file. 🌈

For PlasmaPy, I’ve had a great experience using uv lock to pin requirements for CI and doc builds, since doing so greatly reduces the likelihood of other PRs having spontaneous unrelated failures. Having weekly automated PRs to update uv.lock lets us run tests with new versions of dependencies (and fix any new failures) before we start using them in CI.

[!NOTE] A downside of pinning requirements with uv.lock is that the diffs end up including a lot of hashes, so it was hard to tell what was changed solely from the diffs. For PlasmaPy, I made it so that the weekly automated PRs to update uv.lock include a table of the changes, like in https://github.com/PlasmaPy/PlasmaPy/pull/2996. (This was before dependabot started supporting uv, so I probably should have waited a month or two before setting up my own thing. 😅)

[!IMPORTANT] “Pylock” would be a great name for a cartoonish supervillain from the 1980s.

Not yet. It’s unclear at the moment what role this standard format will play in the ecosystem: it should be at least a Lingua Franca between lockers, but it seems unlikely to replace the existing proprietary formats for the time being, for lack of feature parity. I’ll keep updating this thread as needed !

But somehow I feel that proposing, e.g., dropping tox would be a lot more controversial still.

Indeed it was! 😅 #16142

I think you meant to link to a different PR maybe ?

Oops! I meant #16412, in which I suggested switching from tox to Nox. Correcting it above…

Thanks a lot for your feedback ! I’m very keen to observe how it’s going over at plasmapy !

I haven’t yet figured out a good way to test the consistency of pyproject.toml with uv.lock because of https://github.com/astral-sh/uv/issues/7533, which may be a reason to wait until that issues is resolved.

Incredibly, Charlie Marsh opened a PR to fix this issue within two hours after your post, so I’m hoping uv-pre-commit will soon be usable for projects with dynamic versions !

Thank you for raising this issue! This may be a case where the Astropy community could think of PlasmaPy as a testbed for new tools and techniques, and potentially come back to this after the blocking issues mentioned above are resolved.

We’ve been pinning requirements for CI in PlasmaPy for a while, and I’ve personally found it to be very helpful. I’m currently working on a PR to switch PlasmaPy to uv.lock rather than requirements.txt style files (https://github.com/PlasmaPy/PlasmaPy/pull/2937).

Here’s PlasmaPy’s current setup.

  1. We have two Nox sessions:
  2. We have a GitHub workflow that is run weekly (or by workflow dispatch) that creates a pull request to update the pinned requirements (like https://github.com/PlasmaPy/PlasmaPy/pull/2931).
    • If our CI suite passes, then we manually merge it.
    • If our CI suite fails, then we use that pull request to either fix the problems that arise or add a temporary upper limit to a requirements. The diff between the requirements files shows which dependencies were updated.

The main advantage is that the CI checks on all other pull requests are much less likely to spontaneously break due to changes in upstream dependencies, which improves contributor experience. I find it really helpful to have these weekly PRs to quarantine the pinned requirements so that other contributors do not have to deal with unrelated test failures. Pinning requirements for CI does add an additional step to the process of updating requirements beyond pyproject.toml, but this is mitigated somewhat by having a GitHub workflow that validates requirements consistency with an error message that states how to regenerate requirements.

I haven’t yet figured out a good way to test the consistency of pyproject.toml with uv.lock because of https://github.com/astral-sh/uv/issues/7533, which may be a reason to wait until that issues is resolved.

I’m happy to talk further about my experiences doing this sort of thing with PlasmaPy, so please feel free to reach out!

But somehow I feel that proposing, e.g., dropping tox would be a lot more controversial still.

Indeed it was! 😅 #16412

A little more detail on why the “upstream fix required” label is appropriate here: It appears that there are at least two upstream issues blocking this. One is that uv.lock works poorly with dynamic version metadata (see this long standing issue), and the other is that trying to set tox + tox-uv to only use lock files for some jobs (which is an absolute requirement for this proposal) immediately breaks tox in multiple obscure ways. I haven’t find upstream reports for tox issues, and I don’t really fancy reporting them myself as they are not trivial to reproduce and this proposal seems to be pretty unpopular among respondents so far, so I figure my efforts are best spent on more consensual issues.

I don’t think it’ll take me more than 20 minutes, so it seems worth the risk. I’ll do it tomorrow !

EDIT:

I still don’t use tox locally… 😝

Expected drawbacks, side effects

This idea is great if we are maintaining a pipeline, but this is a fundamental library. Since as you pointed out, most users don’t go to great lengths to use uv (some barely uses Python because we are a diverse community), the CI will stop testing a realistic env.

Which as you also pointed out, moves the risk of incompatibility from PR time to release time or lock file update time. Fires are unpleasant but they do not happen very often. But if we lock everything down, then they pile up and add to the stress for core maintainers. One fire at a time, we can pinpoint more easily what happened and when, but if you pile them up, then more time need to be spent to do code archeology. Which could be minimized with higher frequency update but the risk will never be zero. Also moves the work load from a subpackage maintainer that might know exactly what is going on during unlucky PR review, to only a few (2-3) of us who actually checks infrastructure stuff.

We also inherit any potential bugs from whatever lockfile system we choose to go with. If their bot stops working for a while, small fire turns into a very big fire.

And what about non-traditional env like pyinstaller?

Lock file does not fix the problem, it delays the problem and move it to another plate. So I am not super enthusiastic about it, but I am open to what other core maintainers think.

I’ll propose this as a breakout session

The current astropy meeting seems like a perfect opportunity to make a decision here – my 2¢ is to give it a shot. I like the separation of concerns of testing PRs with a known-good environment and using cron to identify problems with new packages (and update the lock file if there are none). The real worry is added complication – so a PR introducing it should have good descriptions (maybe simply in the workflow file – or at least a reference there).

anocdoctally, we presently have a situation with CI that I believe illustrates why all dependencies are important, and potentially blocking, with our current (non locked) CI strategy: scipy (major, recommended-but-optional dep) and jplephem (very niche, completely optional and barely tested dep) both released versions that are breaking a required test job at the same time

This means we cannot merge anything until both problem are resolved, but they are also mutually blocking, so we need to either force-merge one fix, or resolve both (unrelated) issues in the same PR. Either way, it’s pretty inconvenient, especially because I only have a solution to one problem at the moment.

We were lucky enough that breaking updates happened in direct dependencies, which made them much easier to guess, but it could have been much worse with indirect dependencies.

A downside of pinning requirements with uv.lock is that the diffs end up including a lot of hashes, so it was hard to tell what was changed solely from the diffs.

That’s why I said that I elsewhere pin requirements via weekly rolling docker containers, no need to review hashes then. 😃

In fact though, why do you care what changed? If the only thing that changes is a lockfile, and the purpose of the lockfile is to define the CI environment, all you really need to do is assume that it upgrades “stuff” and gets “stuff” from PyPI. You can treat it as an opaque binary file. The lockfile is a means to an end, and the end is not about security (which is what hashes do), just about recreating the same additional installed software on top of runs-on: ubuntu-latest, in a way that avoids “some dependency released a new version and we automatically started using it in CI, but weren’t ready yet”. Even committing a lockfile to git is just the simplest place to store that environment seed.

tooling update: pip 25.1 ships a new (and experimental) pip lock command

Good to know. Thanks for the update!

For a slightly different perspective, meson uses a (weekly) rolling CI container built ahead of time for testing. This is helpful both because some of our test dependencies have to be built from source (which can mean up to 20 minutes spent installing dependencies) and for CI stability. All jobs run CI against the most recent successfully deployed image build (== passing tests) which means test failures only vary in terms of the applied PR changes. But we don’t manually maintain a lockfile.

(I don’t like lockfiles at all, for any reason whatsoever, though admittedly a large part of this is my weariness from seeing entirely too many projects which are dead upstream but it is difficult to detect this since the github commits view for that repo has many recent commits – pages and pages full of them – all of which are weekly automated dependabot commits. I guess astropy doesn’t have this problem regardless.)

Are cron jobs still needed if we lock things down?

Good question. There’s argument to be made that they would still be useful for two reasons

  • build time dependencies are never locked (we could pin them, which I think is what numpy/scipy recommend anyway, but that’s a different issue)
  • covering exotic archs that are not regularly tested otherwise

If the immediate problem to be solve here is unrelated failures blocking PRs, are we only talking about locking down required jobs for merge, leaving all the others as-is?

almost. All required jobs would used a lock file, but other jobs might too; what’s crucial is that devdeps and oldestdeps always ignore the lock file. Other jobs should probably be discussed case-by-case.

I think I need more implementation details.

I could create a proof of concept PR if you’d like ? There would be an overlap with #16963 but I don’t need to wait for that PR.

So they might start to discover problems before we do at some point in the future.

Yes, but the interval during which this possibility exists would typically be shorter than the time between two lock file updates, which should be typically much shorter than the interval between 2 astropy releases anyway, and that’s also mitigated by having unlock devdeps jobs running continuously.

Probably a larger concern here: How does this affect downstream? (…) We cannot possibly force this on everyone.

This is what I meant to address in my “Cultural Impact” paragraph: using a lock file never requires that downstream does too. My personal hope would be that more projects start adopting the workflow, because I believe in promoting stability, but it’ll never become mandatory.

What if they pick up incompatibility first before we do because they do not use lock file?

anecdotally, the reason I started contributing to astropy a couple years ago was that I was maintaining another package downstream of it, that regularly picked up incompatibilities with numpy before they were addressed in astropy, so I know from experience that our current workflows do not prevent this situation either. We should still be able to catch most issues as they happen through devdeps, so I wouldn’t expect this situation to arise significantly more frequently than in our current practices.

daily lock file update defeats the purpose of lock file.

I don’t think that it does (the purpose being, in my view, guaranteed stability of required CI), but I understand that too much PRs would be very irritating to watchers.

Still does not mitigate the risk of uv itself being buggy or breaky though.

that’s fair. FWIW, and thusfar, I haven’t had any reason to complain in this area since uv 0.5.9, which is the version where locking numpy became practical. If it helps, uv.lock’s format is versioned: the version first line in this file is dedicated to a format version number, which supposedly is intended to help with forward and backwards compatibility, and I’ve never seen a breaking change regarding lock file maintenance for a couple month that I’ve been paying attention (uv itself is still very young).

I am not an expert either but it seems to be its own world. Whatever lockfile we come up with probably does not cover that case. But then again, it is not a required job for PR to get merged, so maybe we just have to admit that it does not get locked down with this new scheme.

Oh, right, I missed that this was part of our CI matrix. Well, you’re right: if it’s not required, it doesn’t need to be locked, and in this case it probably cannot be anyway.

First of, thanks a lot for your inputs ! I think this discussion has derailed a bit, but I recognize that it is my fault. Let me try to close this parenthesis about tox and get back to the main topic.

And I’m sure you remember why we started using it, and it still provides the same safety net for a quick switch between providers without diving into the specific configs.

I’m sure this wasn’t addressed to me personally, as I wasn’t around when tox was introduced in astropy’s workflows, but this made me see the value that I failed to recognize, precisely because I lack the historical context. Thank you for that. Maybe Marten and I are actually talking about two different (but not necessarily mutually exclusive) things when we say we’d like to reduce the complexity in our infrastructure; I picked tox as an example because I tend to see it as an unnecessary wrapping layer, but maybe Marten had something else in mind, like maybe the size of our test matrix ? Anyway, this is probably best discussed in a separate issue, provided there’s something addressable in that area (dropping tox is absolutely unjustified at this point).

Now back to the main discussion. I’ll try to answer your feedback in greater detail than I did last night.

On the developer side, an advantage of using tox is that it gives an environment as similar as possible as what is run in CI.

@mhvk In hindsight, I think this is actually a pretty strong argument in favor of lock files; without them, what you said is only true for a short amount of time (couple days to weeks). Eventually something on the stack gets updated and CI will not run against the exact env you installed earlier. Lock files enable exact reproducibility regardless how old a commit/branch is.

This idea is great if we are maintaining a pipeline, but this is a fundamental library.

@pllim Initially, I had the same vision and thought that lock files weren’t suited for libraries. What made it click for me was the concept of a clear separation between stable (required) and unstable (allowed failures) CI. This is why the Cargo Guide has a section on ## Verifying Latest Dependencies that explicitly address this fundamental issue with lock files. To tentatively rephrase, what I’m proposing is not to lock ourselves into a state where problems with unlocked envs would be invisible in between updates. As pointed out by @mhvk earlier, this is about improving separation of concerns; I would like external updates to only affect jobs that are allowed to fail, so that other developers’ work isn’t interrupted or put on hold while a solution is worked out by a small fraction of us (in recent history, this has been mostly @pllim, @mhvk and I).

Since as you pointed out, most users don’t go to great lengths to use uv (some barely uses Python because we are a diverse community)

@pllim I’m probably missing your point here; I stress again that my proposal isn’t to force anyone (users or devs) to use uv.

CI will stop testing a realistic env.

@pllim required CI will, for short periods at a time, yes, but not CI as a whole.

Which as you also pointed out, moves the risk of incompatibility from PR time to release time or lock file update time.

@pllim release time (by which I mean, when a release is being compiled) is currently exposed to incompatibility discovery. I’m actually proposing that it shouldn’t be; in my proposal, release artifacts should be tested in locked env. Again, CI jobs that are allowed to fail, but run continuously, are expected to be the primary place where incompatibilities get discovered. Combined with frequent enough updates, users shouldn’t be more likely to get struck by surprise incompatibilities than they are with our current practice.

Fires are unpleasant but they do not happen very often. But if we lock everything down, then they pile up and add to the stress for core maintainers. One fire at a time, we can pinpoint more easily what happened and when, but if you pile them up, then more time need to be spent to do code archeology

@pllim Absolutely. This is precisely why I’m proposing a rather high update frequency: the more often we update the lock file, the less likely we are to have to deal with more than one fire at a time. And in the event this happens, I think we’re still better off by having a lock file: multiple blocking fires are more likely to be handled poorly.

We also inherit any potential bugs from whatever lockfile system we choose to go with. If their bot stops working for a while, small fire turns into a very big fire.

@pllim this is a fair point. Given how simple the operation is (uv lock --upgrade --no-config), we could probably craft a very simple, custom github workflow, like the one we use to update astropy-iers-data, instead of using an external service like renovate. Would that help ?

And what about non-traditional env like pyinstaller?

@pllim I don’t know pyinstaller, and a quick look up didn’t help much. Are you asking what happens to users who install astropy through pyinstaller ? I don’t think having a lock file, which will not be distributed, or visible by any application other than uv, would affect them, but I’m not sure I understand what you’re getting at.

The lock file just delays and enlarges pain, similar to when projects used to or still do exact versions in their CI files and keep receiving user complaints from actual real-life scenarios. So this adds an extra layer of complexity to @pllim infrastructure chart without much added benefit.

And besides, this would add a lot of noise of PRs for the automated lockfile updates.

@bsipocz both your concerns are valid separately, but I don’t really see how they can be true at the same time:

  • if we choose frequent updates, then delays are minimal
  • if we choose large delays, then noise caused by updates is minimal I would like there to be a balance we can agree on between these two sources of friction.

if all can be done automatically, then there is no need for the lockfile to begin with as there is nothing breaking and changing

@bsipocz ideally, most update could indeed go through automatically, but the whole issue I’m trying to address is with update that do not succeed CI, and for these auto merging should absolutely not happen.

And likelihood that a PR has to be rebased and CI restarted if an update is done to the pinned numpy, or some dependency that actually matters, or would you trust a passing status and then rather fix up broken main? That scenario is even more a no on a lock file in my book.

@bsipocz As far as I understand, our current practices do not protect us any better in this scenario. We frequently merge PRs whose CI was last run a couple days ago, and we already have a practice of re-running CI when it’s old enough that we don’t trust its status anymore. I do not see how an environment that was updated -at worst- a week ago would make this scenario especially likely. Can you explain why you think it does ?

I feel that maybe I didn’t stress this enough but problems from realistic (i.e. not locked) environments would not be made invisible in between updates: they would continue to pop up in jobs that are allowed to fail (which I pay a lot of attention to).

I also do not support this. The lock file just delays and enlarges pain, similar to when projects used to or still do exact versions in their CI files and keep receiving user complaints from actual real-life scenarios. So this adds an extra layer of complexity to @pllim infrastructure chart without much added benefit.

And besides, this would add a lot of noise of PRs for the automated lockfile updates. When a project already has a lot of non-content related PRs (it has been complained about here a lot already, then this just adds more into that same pile.