Skip to content

Xbox Cloud Gaming app for PS5 Homebrew

C

ci: triage and auto-close empty issues matching known problem titles

Rafael Abud Ferreira938717d234a8
diff --git a/.github/triage/rules.json b/.github/triage/rules.json
index 2f6eb29..9e1319d 100644
--- a/.github/triage/rules.json
+++ b/.github/triage/rules.json
@@ -9,7 +9,10 @@
"0x804101e1",
"dns lookup failed",
"sinkhole ip",
- "connect failed to (?:login\\.live\\.com|[^\\s]+\\.xboxlive\\.com|[^\\s]+\\.microsoft\\.com)[^\\n]*errno 61"
+ "connect failed to (?:login\\.live\\.com|[^\\s]+\\.xboxlive\\.com|[^\\s]+\\.microsoft\\.com)[^\\n]*errno 61",
+ "dns.*bloqueado",
+ "dns.*servidores da microsoft",
+ "dns.*microsoft servers"
],
"fixed_in": "1.3.2",
"reply": "**DNS blocked or sinkholed** (`0x8041013d` / `0x804101e1` / `errno 61`): the DNS configured on your PS5 or router is blocking Microsoft/Xbox domains (`login.live.com`, `*.xboxlive.com`). To keep Sony updates blocked while allowing Xbox Cloud Gaming, run the **NanoDNS** payload on your PS5 and set the PS5 network **Primary DNS** to your PS5's local IP address and **Secondary DNS** to `0.0.0.0` (or use `1.1.1.1` / `8.8.8.8` if you don't use a DNS blocker).",
@@ -23,7 +26,10 @@
"2148916233",
"8015dc09",
"xsts authorization for http://gssv\\.xboxlive\\.com/ failed: http 401",
- "no xbox profile"
+ "no xbox profile",
+ "has no xbox profile",
+ "sem perfil xbox",
+ "sin perfil de xbox"
],
"fixed_in": "1.3.1",
"reply": "**No Xbox profile (Gamertag) on this Microsoft account** (`XErr 2148916233` / `HTTP 401` on XSTS): this Microsoft account has never signed into Xbox before. Open https://www.xbox.com in a browser, sign in once with the same account to create your free Xbox Gamertag, and then sign in again on the PS5.",
@@ -39,7 +45,13 @@
"erro ao resgatar",
"purchasefd\\.mp\\.microsoft\\.com",
"useralreadyownscontent",
- "9p22thr57fv7"
+ "9p22thr57fv7",
+ "not on your account yet",
+ "ainda n[aã]o est[aá] na sua conta",
+ "a[uú]n no est[aá] en tu cuenta",
+ "escaneie o c[oó]digo",
+ "scan the code",
+ "escanea el c[oó]digo"
],
"fixed_in": "1.3.2",
"reply": "**Claiming a free-to-play game failed**: v1.3.2 fixes in-app claiming for titles like *Call of Duty®* (`9P22THR57FV7`), automatically refreshes the Microsoft Store token when needed, selects direct free offers, and treats `UserAlreadyOwnsContent` as already owned. Please update to **v1.3.2** or newer (or claim the game for free at https://www.xbox.com).",
@@ -65,7 +77,14 @@
"patterns": [
"-9984",
"certificate verification failed",
- "certificate refused"
+ "certificate refused",
+ "secure connections were refused",
+ "conex[oõ]es seguras foram recusadas",
+ "conexiones seguras fueron rechazadas",
+ "date and time look wrong",
+ "date and time look w",
+ "data e a hora.*parecem erradas",
+ "fecha y.*hora.*parecen incorrectas"
],
"fixed_in": "1.3.2",
"reply": "**Certificate verification failed** (-9984): if this happens when starting a game on a regional server (such as Central India `CIA.core.gssv-play-prod.xboxlive.com`), **v1.3.2** fixes out-of-order intermediate certificate chains automatically. Otherwise, the most common cause is the console's **date and time** being wrong (Settings > System > Date and Time: set it correctly, or set it from the internet), or a DNS/proxy intercepting Microsoft's sites.",
@@ -80,7 +99,9 @@
"not available in this region",
"xcloud login failed: http 403",
"unsupported ?market",
- "sign in as another country"
+ "sign in as another country",
+ "recusou o login",
+ "rechaz[oó] el inicio de sesi[oó]n"
],
"fixed_in": "0.9.6",
"reply": "**xCloud refused the sign-in**: cloud gaming may not be offered in your country, or the account has no Game Pass plan with cloud gaming. Since v0.9.6 that error offers *Sign in as another country* (opt-in, at your own risk).",
@@ -95,7 +116,10 @@
"consoledidnotwake",
"cloud streaming service to be ready",
"didn't wake",
- "did not wake"
+ "did not wake",
+ "did not answer",
+ "n[aã]o respondeu",
+ "no respondi[oó]"
],
"reply": "**Your Xbox didn't answer**: on the Xbox, Settings > General > Power options: choose *Sleep* (not *Shutdown*), and Settings > Devices & connections > Remote features: turn them on. If it was asleep for long, turn it on by hand once and try again.",
"reply_pt": "**Seu console Xbox não respondeu**: no Xbox, vá em Configurações > Geral > Opções de energia e escolha *Suspensão* (não *Desligar*), e ative os *Recursos remotos* em Configurações > Dispositivos e conexões. Se o console estiver desligado há muito tempo, ligue-o manualmente uma vez e tente novamente.",
@@ -106,7 +130,10 @@
"label": "area: catalog",
"patterns": [
"noentitlement",
- "not entitled"
+ "not entitled",
+ "n[aã]o est[aá] na sua assinatura",
+ "no est[aá] en tu suscripci[oó]n",
+ "not in your subscription"
],
"reply": "**Not on your account / plan**: xCloud says the account can't stream that game. It may need another Game Pass plan, or buying it.",
"reply_pt": "**Jogo não disponível na sua conta / plano**: o xCloud informou que sua conta não possui permissão para transmitir este jogo. Pode ser necessário adquirir o jogo ou um plano Game Pass compatível.",
diff --git a/.github/triage/test_triage.py b/.github/triage/test_triage.py
index dae585b..7c895cd 100644
--- a/.github/triage/test_triage.py
+++ b/.github/triage/test_triage.py
@@ -177,6 +177,51 @@ class Triage(unittest.TestCase):
self.assertTrue(close)
self.assertIn("Versão não suportada", comment)
+ def test_empty_issue_known_claim_free(self):
+ labels, comment, close = self.run_triage_full(
+ "",
+ title="Call of Duty®: Modern Warfare® II is not on your account yet. It is ",
+ latest="1.5.4"
+ )
+ self.assertIn("area: catalog", labels)
+ self.assertEqual(close, "completed")
+ self.assertIn("Automatic triage", comment)
+ self.assertIn("Claiming a free-to-play game failed", comment)
+ self.assertIn("This issue was submitted with only a title", comment)
+
+ def test_empty_issue_known_portuguese(self):
+ labels, comment, close = self.run_triage_full(
+ "",
+ title="Mecha BREAK ainda não está na sua conta. É grátis: escaneie o cód",
+ latest="1.5.4"
+ )
+ self.assertIn("area: catalog", labels)
+ self.assertEqual(close, "completed")
+ self.assertIn("Triagem automática", comment)
+ self.assertIn("Falha ao resgatar jogo gratuito", comment)
+ self.assertIn("Esta issue foi enviada apenas com o título", comment)
+
+ def test_empty_issue_known_tls_clock(self):
+ labels, comment, close = self.run_triage_full(
+ "No description provided",
+ title="Secure connections were refused because the PS5's date and time look wrong",
+ latest="1.5.4"
+ )
+ self.assertIn("area: certificates", labels)
+ self.assertEqual(close, "completed")
+ self.assertIn("Certificate verification failed", comment)
+ self.assertIn("This issue was submitted with only a title", comment)
+
+ def test_empty_issue_unknown_leaves_open(self):
+ labels, comment, close = self.run_triage_full(
+ "",
+ title="Something completely random that does not match any rule",
+ latest="1.5.4"
+ )
+ self.assertEqual(labels, [])
+ self.assertIsNone(comment)
+ self.assertFalse(close)
+
def test_rules_are_valid(self):
import re
for rule in RULES:
diff --git a/.github/triage/triage.py b/.github/triage/triage.py
index ec78e85..76bf99a 100644
--- a/.github/triage/triage.py
+++ b/.github/triage/triage.py
@@ -55,6 +55,10 @@ STRINGS = {
"*(Tip: If you are having issues claiming games or managing your account, visit https://www.xbox.com/play "
"in a PC or mobile browser to manage your account and claim titles directly).*"
),
+ "empty_title_known": (
+ "\n*(This issue was submitted with only a title. As it matches a known problem, "
+ "the solution above has been provided automatically and this issue is now closed.)*"
+ ),
"ask_release": "the **app release** (Settings > Updates shows it, e.g. v1.3.2)",
"ask_log": (
"the **xcloud.log** (`/data/psbox/xcloud.log` over FTP; before v0.9.7 in `/data/homebrew/PPSA99810/`, "
@@ -80,6 +84,10 @@ STRINGS = {
"*(Dica: Se estiver com problemas para resgatar jogos gratuitos ou gerenciar sua conta, acesse https://www.xbox.com/play "
"pelo navegador de um computador ou celular para resgatar os títulos diretamente na sua conta Xbox).*"
),
+ "empty_title_known": (
+ "\n*(Esta issue foi enviada apenas com o título. Como corresponde a um problema já conhecido, "
+ "a orientação acima foi fornecida automaticamente e a issue está sendo encerrada.)*"
+ ),
"ask_release": "a **versão do app** (mostrada em Configurações > Atualizações, ex.: v1.3.2)",
"ask_log": (
"o **xcloud.log** (`/data/psbox/xcloud.log` via FTP, ou use *Relatar um problema* "
@@ -105,6 +113,10 @@ STRINGS = {
"*(Consejo: Si tienes dificultades para reclamar juegos gratuitos o gestionar tu cuenta, accede a https://www.xbox.com/play "
"desde el navegador de un ordenador o móvil para reclamar los títulos directamente en tu cuenta de Xbox).*"
),
+ "empty_title_known": (
+ "\n*(Esta incidencia se envió únicamente con el título. Dado que coincide con un problema conocido, "
+ "la solución anterior se ha proporcionado automáticamente y se procede a cerrar la incidencia.)*"
+ ),
"ask_release": "la **versión de la app** (se muestra en Configuración > Actualizaciones, ej.: v1.3.2)",
"ask_log": (
"el **xcloud.log** (`/data/psbox/xcloud.log` por FTP, o usa *Informar de un problema* "
@@ -195,6 +207,18 @@ def looks_like_log(text):
return bool(re.search(r"\d\d:\d\d:\d\d \[[IWED]\]", text or ""))
+def is_empty_issue(body, fields):
+ """Returns True if the issue has no description/content beyond its title."""
+ if not (body or "").strip():
+ return True
+ cleaned = (body or "").strip()
+ if cleaned in ("_No response_", "No description provided"):
+ return True
+ if fields:
+ return all(not v.strip() for v in fields.values())
+ return False
+
+
def is_unsupported_147(fields, release, title, body):
"""Detects issues reporting version 1.4.7 or the unofficial PS4 port."""
if release == (1, 4, 7):
@@ -232,7 +256,9 @@ def triage(issue, rules, latest):
if is_unsupported_147(fields, release, title, body):
labels = ["unsupported-platform"]
out = [MARKER, tr["header"], "", tr["unsupported_147"]]
- return labels, "\n".join(out), True
+ return labels, "\n".join(out), "not_planned"
+
+ empty_issue = is_empty_issue(body, fields)
labels, notes = [], []
asked_update = False
@@ -250,6 +276,15 @@ def triage(issue, rules, latest):
asked_update = True
notes.append(note)
+ if empty_issue:
+ if notes:
+ out = [MARKER, tr["header"], ""]
+ for note in notes:
+ out.append(f"- {note}")
+ out.append(tr["empty_title_known"])
+ return labels, "\n".join(out), "completed"
+ return labels, None, False
+
asks = []
if not fields: # not the bug form (a question, an idea): nothing to ask for
pass
@@ -321,7 +356,8 @@ def apply(repo, number, labels, comment, token, close=False):
api("POST", f"/repos/{repo}/issues/{number}/comments", token, {"body": comment})
if close:
try:
- api("PATCH", f"/repos/{repo}/issues/{number}", token, {"state": "closed", "state_reason": "not_planned"})
+ state_reason = close if isinstance(close, str) else "not_planned"
+ api("PATCH", f"/repos/{repo}/issues/{number}", token, {"state": "closed", "state_reason": state_reason})
except urllib.error.HTTPError as e:
print(f"Warning: could not close issue #{number}: {e}")