mirror of
https://github.com/pewdiepie-archdaemon/odysseus.git
synced 2026-10-30 01:32:25 +01:00
chore(publication): close pre-integration release blockers
This commit is contained in:
@@ -8,9 +8,15 @@ like Apple Silicon (GGUF-only recommendations) while datacenter CDNA and
|
||||
unknown-family AMD are left untouched, and that CUDA is unchanged.
|
||||
"""
|
||||
|
||||
import pytest
|
||||
|
||||
from services.hwfit import hardware
|
||||
from services.hwfit.fit import rank_models
|
||||
from services.hwfit.models import get_models
|
||||
from tests.hwfit_publication_fixtures import publication_catalog # noqa: F401
|
||||
|
||||
# Rank authored inputs rather than publication catalog snapshots.
|
||||
pytestmark = pytest.mark.usefixtures("publication_catalog")
|
||||
|
||||
|
||||
def _rocm_system(family="rdna", ram_gb=32.0, vram_gb=16.0):
|
||||
@@ -170,6 +176,8 @@ def test_sort_by_newest_orders_by_release_date():
|
||||
"gpu_family": "rdna", "gpu_count": 1, "available_ram_gb": 22.0, "total_ram_gb": 31.0}
|
||||
res = rank_models(sys, sort="newest", limit=50)
|
||||
dated = [r.get("release_date") for r in res if r.get("release_date")]
|
||||
assert len(set(dated)) > 1, "authored inputs must exercise date ordering"
|
||||
assert any(not r.get("release_date") for r in res), "authored inputs must include an undated row"
|
||||
# dates present must be in descending order
|
||||
assert dated == sorted(dated, reverse=True), "release dates not descending"
|
||||
# any undated entries must come after all dated ones
|
||||
|
||||
Reference in New Issue
Block a user