Add GitHub workflow, cron-based to update driverless (AirPrint, IPP Everywhere) printer list

Offen
#229 3 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

@hissamshar arbeitet bereits daran.

Seit 18.8.2026.

  • #234 von @hissamshar — offen

Bewertung

Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Anfängerfreundlichkeit
68/100
Issue-Typ
Feature
Klarheit
Größtenteils klar
Aktivitätsstatus
Ruhig
Tech-Stack
github-actions, python, shell
Bereich
ci-cd, devops, tooling

Rechercherichtung

Beginne mit driverless/update-printer-list.sh und der daraus generierten Datei public/assets/json/driverless.json; überprüfe, wie das Skript curl und Python verwendet, einschließlich sys und json. Sieh dir anschließend die Update- und Versionierungs-Workflows im CUPS Snap repo und die GitHub create-pull-request action an. Als erledigt gilt die Aufgabe, wenn ein cron workflow das Skript ausführt und einen Pull Request für aktualisierte Druckerdaten öffnet.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Beschreibung

See issue #223, starting with this comment to the end.

@michaelrsweet said:

The current scripts merge the AirPrint and IPP Everywhere lists. Mopria does not provide a public list of printers (unfortunately), but the number of Mopria-ready printers that are not AirPrint or IPP Everywhere is probably close to (if not) 0.

I ran my scripts manually this time. I normally have them setup to run on one of my development systems once a month since the lists don't change that often. I don't think we could do this via GitHub CI directly - maybe we could create a PR but I'm not sure. The scripts can certainly be run from CI, it is just how to generate the PR with the changes? (I know I probably don't have the time to make that work right now, maybe later...)

... and to follow up on this, apparently there is a GitHub action for this. So it is possible we can do it fairly easily, but again I don't have time to write it up today...

From a clone of the repository:

cd driverless
./update-printer-list.sh

The updated "public/assets/json/driverless.json" file is then ready to be committed and/or turned into a PR.

The script uses curl and python, with the python sys and json modules/libraries (in case they are not in the default CI running image...)

For generating PRs also have a look at the workflows for update and versioning automation in the CUPS Snap repo.

@rudra-iitm @gativarshney @rkt0209 could somebody of you have a look?

Vorherrschende Sprache
TypeScript
Sterne
20
Forks
43
Ø Merge
7 Std. 45 Min.
Gemergte PRs (30 T.)
8

Entwicklungsumgebung

In Codespaces öffnen

Startet den Dev-Container des Projekts im Browser, mit Ihrem eigenen GitHub-Konto.

Erste Schritte

  1. Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
  3. Forken Sie das Repository und arbeiten Sie in einem Branch.
  4. Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.

Mehr aus OpenPrinting/openprinting.github.io

Alle Issues in OpenPrinting/openprinting.github.io

Ähnliche Issues

Weitere Issues zu TypeScript

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.