Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/apps">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
1 change: 1 addition & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
Expand Down
8 changes: 8 additions & 0 deletions scripts/check_growth_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
# Prevent accidental removal of existing listings, but allow genuine new releases.
CATALOG_MIN_ITEMS = 92
FEATURED_SLUGS = ("debate-me", "tappitsu-battle", "future-me", "twotaku")
GROWTH_RELEASE_ID = "growth-20261106-wave2"
PATHS = ("/", "/apps", "/robots.txt", "/sitemap.xml") + tuple(
f"/support/{slug}/" for slug in SLUGS
)
Expand All @@ -26,6 +27,13 @@ def check(path, key, valid):

for path in PATHS:
check(path, "retrieved", path in pages)
for path in ("/", "/apps") + tuple(f"/support/{slug}/" for slug in SLUGS):
html = pages.get(path, "")
markers = re.findall(
r'<meta\s+name="sk-growth-release"\s+content="([^"]+)"', html)
check(path, "release_fingerprint",
markers == [GROWTH_RELEASE_ID])

home = pages.get("/", "")
check("/", "current_meta", "SK Apps | Mobile Apps, Games & Everyday Tools" in home)
check("/", "no_stale_store_count", "92 Apps on Google Play" not in home)
Expand Down
22 changes: 19 additions & 3 deletions scripts/test_growth_live.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import json
import unittest

from check_growth_live import FEATURED_SLUGS, PATHS, SLUGS, inspect
from check_growth_live import FEATURED_SLUGS, GROWTH_RELEASE_ID, PATHS, SLUGS, inspect


def valid_pages():
Expand Down Expand Up @@ -53,6 +53,9 @@ def valid_pages():
pages["/sitemap.xml"] = "".join(
f"<loc>https://appdevelopsk.com{p}</loc>"
for p in ("/", "/apps") + tuple(f"/support/{s}/" for s in SLUGS))
for path in ("/", "/apps") + tuple(f"/support/{slug}/" for slug in SLUGS):
pages[path] = (f'<meta name="sk-growth-release" '
f'content="{GROWTH_RELEASE_ID}">' + pages[path])
return pages


Expand Down Expand Up @@ -114,6 +117,18 @@ def test_disallowed_icons_fail(self):
data["/robots.txt"] += "Disallow: /icons/\\n"
self.assertFalse(inspect(data)["passed"])

def test_missing_release_fingerprint_fails(self):
data = valid_pages()
data["/apps"] = data["/apps"].replace('name="sk-growth-release"',
'name="some-other-tag"')
self.assertFalse(inspect(data)["passed"])

def test_stale_release_fingerprint_fails(self):
data = valid_pages()
data["/support/twotaku/"] = data["/support/twotaku/"].replace(
GROWTH_RELEASE_ID, "growth-previous")
self.assertFalse(inspect(data)["passed"])

def test_missing_live_page_fails(self):
data = valid_pages()
del data["/apps"]
Expand Down Expand Up @@ -154,15 +169,16 @@ def test_stale_catalog_claim_fails(self):
def test_new_catalog_release_with_consistent_schema_passes(self):
data = valid_pages()
head, rest = data["/apps"].split("</script>", 1)
schema = json.loads(head.split(">", 1)[1])
prefix, jsonld_source = head.split('<script type="application/ld+json">', 1)
schema = json.loads(jsonld_source)
pkg = "jp.appdevelopsk.testapp92"
schema["mainEntity"]["numberOfItems"] = 93
schema["mainEntity"]["itemListElement"].append(
{"url": f"https://play.google.com/store/apps/details?id={pkg}"}
)
card = (f'<a class="app-card" '
f'href="https://play.google.com/store/apps/details?id={pkg}&amp;utm_source=test">')
data["/apps"] = ('<script type="application/ld+json">' +
data["/apps"] = (prefix + '<script type="application/ld+json">' +
json.dumps(schema) + '</script>' + rest + card)
self.assertTrue(inspect(data)["passed"])

Expand Down
1 change: 1 addition & 0 deletions support/debate-me/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/support/debate-me/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
Expand Down
1 change: 1 addition & 0 deletions support/future-me/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/support/future-me/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
Expand Down
1 change: 1 addition & 0 deletions support/instant-judge/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/support/instant-judge/">
<script type="application/ld+json">
{
Expand Down
1 change: 1 addition & 0 deletions support/tappitsu-battle/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/support/tappitsu-battle/">
<meta property="og:type" content="website">
<meta property="og:site_name" content="SK APPS">
Expand Down
1 change: 1 addition & 0 deletions support/twotaku/index.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta name="sk-growth-release" content="growth-20261106-wave2">
<link rel="canonical" href="https://appdevelopsk.com/support/twotaku/">
<meta charset="UTF-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1.0"/>
Expand Down
Loading