#2532 kojira can cache wrong external repo timestamps
Closed: Fixed by tkopecek. Opened by mikem.

In checkExternalRepo kojira attempts to cache the overall timestamp of external repos. For a key, it uses the non-expanded repo url (e.g. with "$arch" still present). However, the actual times we read are from the actual repomd.xml file(s).

If a tag has the external repo added to it and has a limited or empty arch list, then checkExternalRepo will only check those arches. The cached value will not factor in any missing arches (which could be newer and used in other tags). If the arch list is empty, the cached value will be 0.

A later tag may have the same external repo with a larger (or any) arch list that would give a different timestamp, but the code will simply see the cached value and not check further.

I suggest we cache on the fully expanded repomd url instead.


Metadata Update from @mikem:
- Custom field Size adjusted to None
- Issue priority set to: High (was: Normal)
- Issue tagged with: bug

PR #2533 has a possible fix

Metadata Update from @tkopecek:
- Issue set to the milestone: 1.23.1

Metadata Update from @jcupova:
- Issue tagged with: testing-ready

Metadata Update from @mfilip:
- Issue tagged with: testing-done

Commit 5eaf3ce6 fixes this issue

Commit efd5e3f4 fixes this issue

This issue has been migrated to Fedora Forge:
https://forge.fedoraproject.org/koji/koji/issues/2532

Please continue any further discussion there.

Metadata
Related Pull Requests