From 47eae00ce8e5c1e1f23048c6608af4849bc1713e Mon Sep 17 00:00:00 2001 From: Your Name Date: Tue, 30 Jun 2026 21:06:23 +0800 Subject: [PATCH] fix(runner): surface harbor repair runner label --- ops/runner/read-public-gitea-actions-queue.py | 49 +++++++++++++-- .../test_read_public_gitea_actions_queue.py | 60 +++++++++++++++++++ 2 files changed, 103 insertions(+), 6 deletions(-) diff --git a/ops/runner/read-public-gitea-actions-queue.py b/ops/runner/read-public-gitea-actions-queue.py index 0145e9a1b..fd2780b41 100644 --- a/ops/runner/read-public-gitea-actions-queue.py +++ b/ops/runner/read-public-gitea-actions-queue.py @@ -11,6 +11,7 @@ import urllib.request from dataclasses import dataclass from pathlib import Path from typing import Any +from urllib.parse import unquote DEFAULT_ACTIONS_URL = "https://gitea.wooo.work/wooo/awoooi/actions" @@ -45,6 +46,11 @@ _RUN_STATUS_RE = re.compile(r'') _RUN_BODY_RE = re.compile(r"([^<]+):\s*([^<]+)", re.S) _RUN_COMMIT_RE = re.compile(r"/wooo/awoooi/commit/([0-9a-f]{40})") _RUN_NAME_RE = re.compile(r"^(?P.+)\s+#(?P\d+)$") +_WORKFLOW_FILTER_ITEM_RE = re.compile( + r'' + r"(?P.*?)", + re.S, +) _NO_MATCHING_LABEL_RE = re.compile( r"No matching online runner with label:\s*(?P