<feed xmlns='http://www.w3.org/2005/Atom'>
<title>apt, branch 2.9.29</title>
<subtitle>Debians commandline package manager</subtitle>
<id>https://git.kalnischkies.de/apt/atom?h=2.9.29</id>
<link rel='self' href='https://git.kalnischkies.de/apt/atom?h=2.9.29'/>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/'/>
<updated>2025-02-14T18:42:49Z</updated>
<entry>
<title>Release 2.9.29</title>
<updated>2025-02-14T18:42:49Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-14T18:38:52Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=2666b0eb1cea31d92f89f1832f6efc5cc8a3f97f'/>
<id>urn:sha1:2666b0eb1cea31d92f89f1832f6efc5cc8a3f97f</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Merge branch 'solver3' into 'main'</title>
<updated>2025-02-14T18:30:53Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>jak@debian.org</email>
</author>
<published>2025-02-14T18:30:53Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=e67988237374fb6181b163a0d2470f367b514c80'/>
<id>urn:sha1:e67988237374fb6181b163a0d2470f367b514c80</id>
<content type='text'>
Get 3.0 solver mostly in shape

See merge request apt-team/apt!451</content>
</entry>
<entry>
<title>solver3: Store clauses as the reasons for decisions</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-10T22:01:36Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=9b36a29ffebde3088cec2048505b8d644f46c2c3'/>
<id>urn:sha1:9b36a29ffebde3088cec2048505b8d644f46c2c3</id>
<content type='text'>
So far we only stored the last reason why something was decided,
for example, if "A depends B | C" and we assigned B=false, C=false,
we'd store "(not) C" as the reason for "(not) A".

This gives us only a partial implication graph; after all "C" was
not the *sole* reason for not installing A. This has two implications:

1. We cannot do conflict-driven clause learning
2. We cannot print excellent information about why packages cannot be
   installed (or removed)

This commit is incomplete in addressing both; in particular, we always
store a clause as a reason for something that is not a root object;
whereas MiniSAT would only store a clause on propagation. That is,
if A depends B | C, and we install A, then we have to make a choice
between B|C. Let's say we pick B, we store 'A depends B|C' as the
reason whereas MiniSAT would not store a reason (because it picked
the "next best" unassigned literal).

Hopefully this is not going to be an issue. The reason is used to
calculate the assignments that caused the decision in MiniSAT, but
the idea is that we can just treat reason clauses with unassigned
values as "no reason".

The conflict explanation (WhyStr) has been changed to print the
strongest reason; which produces the same result as the previous
solution for the test suite. What does this mean?

If we look at A depends B|C, let's analyse:

    Why not A?
        We return the first assigned value for B|C, likely B.
        We might have returned C here before as it was the
        last assignment, but we might also return C here,
        if B is not assigned.

    Why B? We return A.

If we look at A conflicts B:

    Why not A? Well B
    Why not B? Well A

Thanks to the structure of the implication graph this is quite
simple, but also generalizing this to the CNF format should not
be hard.

A future version will extend clauses with backlinks to
pkgCache::Dependency*, allowing us to print useful information
to uses such as "A Depends B | C | D (&gt;= 2)" in the real form, rather
than the expanded form which may be "A -&gt; B | C | D=3 | D=2".
</content>
</entry>
<entry>
<title>solver3: Only enqueue shared dependencies at the package level</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-05T19:37:12Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=943562a4ed2ddc80b84466d85e821037937f8b5c'/>
<id>urn:sha1:943562a4ed2ddc80b84466d85e821037937f8b5c</id>
<content type='text'>
Dependencies shared by all versions are enqueued at the package
level, so avoid enqueuing duplicates at the version level. This
presumably has no meaningful impact on performance, potentially
a negative performance impact on some workloads as we now need
to find the duplicates again; it can become useful when there
is a lot of backtracking.

More importantly though this improves error messages, because
now we can say that "all versions of foo depend on X", rather
than saying "foo=1 depends on X" and you are left wondering
why we did not select "foo=2".

In this commit though, improved error messages are not implemented,
they depend on redesigning the reason tracking to use clauses.

Also the rationale tracking includes a lot more dependencies of
the form "pkg:arch=version -&gt; pkg:arch" which are annoying. Improved
error messages should fold them into one node.
</content>
</entry>
<entry>
<title>solver3: Remove work rescoring in favor of unit propagation</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-12T19:39:33Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=2050ecb34a9e18cf1d8edbff8c52d456a7229162'/>
<id>urn:sha1:2050ecb34a9e18cf1d8edbff8c52d456a7229162</id>
<content type='text'>
Instead of expensive rescoring of all outstanding items, use
unit propagation to find new units after conflicts.

We still count the items when adding them; but unless they are
0 or 1, which they should not be, they don't have any effect:
The size field is now effectively static.

If the size of an optional clause changed to 1, it is inserted
a second time, and then moves up to the top of the optional
items per the Work::operator&lt; rules.
</content>
</entry>
<entry>
<title>solver3: Refactor a debug message</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-12T15:24:30Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=3c778d92e91d0e0ca5b4196e6900dee92a7b66bb'/>
<id>urn:sha1:3c778d92e91d0e0ca5b4196e6900dee92a7b66bb</id>
<content type='text'>
Use Var::toString() to print the variable, instead of duplicating
the code :D
</content>
</entry>
<entry>
<title>test: Remove long obsolete FIXME for solver3</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-11T23:19:01Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=87f55c2bf50bbe4ba66e50e3b8bacd6d841fd1ab'/>
<id>urn:sha1:87f55c2bf50bbe4ba66e50e3b8bacd6d841fd1ab</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test: Annotate the broken test cases</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-11T23:07:30Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=cfb8a9e8610d9595a6c1f8368835e7cfbcf67cc5'/>
<id>urn:sha1:cfb8a9e8610d9595a6c1f8368835e7cfbcf67cc5</id>
<content type='text'>
</content>
</entry>
<entry>
<title>test-ubuntu-bug-614993: Avoid implicit upgrade-by-source requirement</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-11T21:13:27Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=9028df1955a914230ba772776bac7fa0fb530ecf'/>
<id>urn:sha1:9028df1955a914230ba772776bac7fa0fb530ecf</id>
<content type='text'>
This allows it to work with solver3 before that feature is implemented.

This essentially reverts the change to that test made in
119a8d0ed19a4e946591b9aef7d662e14ca7ece5
</content>
</entry>
<entry>
<title>ResolveByKeep: Do not pass UPGRADE_ALL to EDSP solver</title>
<updated>2025-02-14T18:08:45Z</updated>
<author>
<name>Julian Andres Klode</name>
<email>julian.klode@canonical.com</email>
</author>
<published>2025-02-11T21:04:17Z</published>
<link rel='alternate' type='text/html' href='https://git.kalnischkies.de/apt/commit/?id=47b227a6dd609528a9f9f5c46d74f95919e21826'/>
<id>urn:sha1:47b227a6dd609528a9f9f5c46d74f95919e21826</id>
<content type='text'>
When we call an EDSP solver from ResolveByKeep(), we are not
in an upgrade context: In an upgrade context, we call the solver
directly from upgrade.cc instead of doing any Resolve() or
ResolveByKeep() calls.

This fixes the test-bug-602412-dequote-redirect test case,
where ResolveByKeep() was called as part of --fix-missing
</content>
</entry>
</feed>
