[Midnightbsd-cvs] [MidnightBSD/mports] eb7260: Magus: fix ready-ports count to show build queue r...

Lucas Holt noreply at github.com
Thu Jun 4 21:04:47 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: eb72605181228e881f6eedae16b5fb4f9625bf72
      https://github.com/MidnightBSD/mports/commit/eb72605181228e881f6eedae16b5fb4f9625bf72
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-06-04 (Thu, 04 Jun 2026)

  Changed paths:
    M Tools/magus/ready_ports.sql
    M Tools/magus/www/data/magus/index.cgi

  Log Message:
  -----------
  Magus: fix ready-ports count to show build queue regardless of fetch phase

The ready_ports view correctly gates the build worker on fetch='pass' so
that builds only start after the fetch phase has warmed the distfile cache.
However the "ready" count on the run details page used search_ready_ports
which queries that same view, so the count showed zero whenever fetch had
not yet completed -- even for ports whose dependencies were fully satisfied.

Restore the INNER JOIN in ready_ports.sql (reverts b1737edd) so the build
worker continues to wait for fetch.  Replace the search_ready_ports-based
count in run_page with a direct SQL query that counts ports with all
dependencies satisfied and status='untested', independent of fetch phase
status.  This lets the UI show the full build queue (ports waiting to
build, possibly still being fetched) while the build worker itself
correctly waits for fetch to complete before picking up work.

Co-Authored-By: Claude Sonnet 4.6 <noreply at anthropic.com>



To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications


More information about the Midnightbsd-cvs mailing list