<feed xmlns='http://www.w3.org/2005/Atom'>
<title>mgaadvisories/lib/MGA, branch 0.34</title>
<subtitle>Scripts to Help with Update Advisories</subtitle>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/'/>
<entry>
<title>Show a hint if an SRPM can't be found in non-core</title>
<updated>2025-04-03T05:01:39+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2025-04-03T04:56:38+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=6a09d339c82c627f060ed7fa11ca12a7d04bf61a'/>
<id>6a09d339c82c627f060ed7fa11ca12a7d04bf61a</id>
<content type='text'>
If the RPM name is missing a .nonfree or .tainted suffix, warn the user
that this might be the reason.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
If the RPM name is missing a .nonfree or .tainted suffix, warn the user
that this might be the reason.
</pre>
</div>
</content>
</entry>
<entry>
<title>Don't always reset a "modified" value in the status file</title>
<updated>2025-02-24T21:49:53+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2025-02-24T21:48:36+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=56d1db2a23d49a58c62c16065d3436b75fe763b3'/>
<id>56d1db2a23d49a58c62c16065d3436b75fe763b3</id>
<content type='text'>
The modified value starts off from SVN, but if a more recent value is
found in the status file, use that instead.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The modified value starts off from SVN, but if a more recent value is
found in the status file, use that instead.
</pre>
</div>
</content>
</entry>
<entry>
<title>Read advisories from disk in parallel</title>
<updated>2024-12-06T22:38:00+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-12-06T21:17:09+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=964cc477e0aa49a7e1ce55e984da1dedef60cc8b'/>
<id>964cc477e0aa49a7e1ce55e984da1dedef60cc8b</id>
<content type='text'>
The parsing overhead is now spread over multiple cores when available,
dramatically reducing the time to read them all. mgaadv list is twice as
fast now on one test machine, for example.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The parsing overhead is now spread over multiple cores when available,
dramatically reducing the time to read them all. mgaadv list is twice as
fast now on one test machine, for example.
</pre>
</div>
</content>
</entry>
<entry>
<title>Ensure the .adv file ends with newline when publishing</title>
<updated>2024-04-17T02:45:20+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-04-17T02:37:08+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=6fb12d2bfe8a7360103f07e18197ba5d280989b1'/>
<id>6fb12d2bfe8a7360103f07e18197ba5d280989b1</id>
<content type='text'>
Lacking a newline corrupts the file when the ID is appended. Return an
error if this case is detected.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Lacking a newline corrupts the file when the ID is appended. Return an
error if this case is detected.
</pre>
</div>
</content>
</entry>
<entry>
<title>Get the last modified date of advisories from SVN</title>
<updated>2024-04-16T17:58:32+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-04-16T06:26:06+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=7b864281523a0bf15ecea235f463c27bb77dec53'/>
<id>7b864281523a0bf15ecea235f463c27bb77dec53</id>
<content type='text'>
The modification date helps track if an advisory was changed after
initial publication. This is especially important for OSV users who need
the modification date in the vulns.json index to determine whether an
existing advisory was updated so they can download the update.  Also,
keep "ref" (pointing to bug number) in all advisories, not just the TODO
ones.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The modification date helps track if an advisory was changed after
initial publication. This is especially important for OSV users who need
the modification date in the vulns.json index to determine whether an
existing advisory was updated so they can download the update.  Also,
keep "ref" (pointing to bug number) in all advisories, not just the TODO
ones.
</pre>
</div>
</content>
</entry>
<entry>
<title>Try to fix publish-all</title>
<updated>2024-04-16T07:21:04+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-04-16T05:44:38+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=63160c8456f5fc561ce86a373d027d8acd630d4e'/>
<id>63160c8456f5fc561ce86a373d027d8acd630d4e</id>
<content type='text'>
An argument to output_pages() was missing. This command probably never
worked.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An argument to output_pages() was missing. This command probably never
worked.
</pre>
</div>
</content>
</entry>
<entry>
<title>Exit if any of the parallel processes return an error</title>
<updated>2024-03-22T04:00:12+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-03-22T04:00:12+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=82bfec6e44209b4e1bce115e4adca62d0fffb279'/>
<id>82bfec6e44209b4e1bce115e4adca62d0fffb279</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Cross-check that at least one SRPM is listed in the advisory</title>
<updated>2024-03-21T23:28:15+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-03-21T23:27:50+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=b9846fe26e87285ceab8ae5cd9c212325bd15f51'/>
<id>b9846fe26e87285ceab8ae5cd9c212325bd15f51</id>
<content type='text'>
An advisory must come with at least one fixed package.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
An advisory must come with at least one fixed package.
</pre>
</div>
</content>
</entry>
<entry>
<title>Use multiprocessing in mksite for improved speed</title>
<updated>2024-03-20T03:01:16+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-03-15T01:50:26+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=fe405b428456decd6fed841fd6de6b8e09e73e55'/>
<id>fe405b428456decd6fed841fd6de6b8e09e73e55</id>
<content type='text'>
This generates templated files using some parallelism, reducing the
total mksite time to less than half in my tests. Increasing parallelism
even further is possible, but would make the code harder to understand.
The obvious technique of generating each templated file in its own
process is actually far slower because the overhead of process creation
dwarfs the time spent processing the template, which is on average very
small and quick.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
This generates templated files using some parallelism, reducing the
total mksite time to less than half in my tests. Increasing parallelism
even further is possible, but would make the code harder to understand.
The obvious technique of generating each templated file in its own
process is actually far slower because the overhead of process creation
dwarfs the time spent processing the template, which is on average very
small and quick.
</pre>
</div>
</content>
</entry>
<entry>
<title>Write JSON index files for advisories</title>
<updated>2024-03-14T22:21:41+00:00</updated>
<author>
<name>Dan Fandrich</name>
<email>danf@mageia.org</email>
</author>
<published>2024-03-14T22:18:20+00:00</published>
<link rel='alternate' type='text/html' href='https://gitweb.mageia.org/software/infrastructure/mgaadvisories/commit/?id=c9c5444f4f27f0a7375088a1cc0b4594742d8fe8'/>
<id>c9c5444f4f27f0a7375088a1cc0b4594742d8fe8</id>
<content type='text'>
The JSON schema is simple and compatible with the one published in the
Go Vulnerability Database. Security advisories and bugfix advisories
each have their own index.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The JSON schema is simple and compatible with the one published in the
Go Vulnerability Database. Security advisories and bugfix advisories
each have their own index.
</pre>
</div>
</content>
</entry>
</feed>
