diff --git a/.github/scripts/prebuilt_publish_page.py b/.github/scripts/prebuilt_publish_page.py index cf5655f..0061b13 100644 --- a/.github/scripts/prebuilt_publish_page.py +++ b/.github/scripts/prebuilt_publish_page.py @@ -30,9 +30,9 @@ def main(): if subprocess.check_output(["git", "-C", str(root), "status", "--porcelain", "--untracked-files=all", "--", relative_page], text=True).strip(): p.error("page files are dirty") files = sorted(a.page.iterdir()) - expected = {"index.html", "catalog.js", "ranking.js", "pareto.js", "songs.js", "text.js", "replay-panel.js", "replay-worker.js", "replay-preset.js"} + expected = {"index.html", "catalog.js", "expectation.js", "ranking.js", "pareto.js", "songs.js", "text.js", "replay-panel.js", "replay-worker.js", "replay-preset.js"} if {v.name for v in files} != expected or any(not v.is_file() or v.is_symlink() for v in files): - p.error("pinned songs module closure is not the reviewed nine files") + p.error("pinned songs module closure is not the reviewed ten files") spec = importlib.util.spec_from_file_location("music_data", a.publisher) module = importlib.util.module_from_spec(spec) sys.modules[spec.name] = module diff --git a/.github/scripts/prebuilt_publish_smoke.mjs b/.github/scripts/prebuilt_publish_smoke.mjs index c0017e3..5a57bed 100644 --- a/.github/scripts/prebuilt_publish_smoke.mjs +++ b/.github/scripts/prebuilt_publish_smoke.mjs @@ -7,7 +7,7 @@ import { execFileSync } from "node:child_process"; const [page, out] = process.argv.slice(2); if (!page || !out) throw new Error("usage: prebuilt_publish_smoke.mjs "); -for (const filename of ["replay-panel.js", "replay-worker.js", "replay-preset.js", "text.js", "catalog.js", "ranking.js"]) { +for (const filename of ["replay-panel.js", "replay-worker.js", "replay-preset.js", "text.js", "catalog.js", "expectation.js", "ranking.js"]) { await fs.access(path.join(page, filename)); execFileSync(process.execPath, ["--check", path.join(page, filename)], { stdio: "pipe" }); } diff --git a/.github/workflows/music-data-prebuilt.yml b/.github/workflows/music-data-prebuilt.yml index 34c5af3..4847b77 100644 --- a/.github/workflows/music-data-prebuilt.yml +++ b/.github/workflows/music-data-prebuilt.yml @@ -33,7 +33,7 @@ permissions: contents: write concurrency: - # Both regions and songs-page.yml publish the same nine-file songs/ closure. + # Both regions and songs-page.yml publish the same ten-file songs/ closure. group: songs-page-publication cancel-in-progress: false diff --git a/.github/workflows/songs-page.yml b/.github/workflows/songs-page.yml index 32426c8..68856d3 100644 --- a/.github/workflows/songs-page.yml +++ b/.github/workflows/songs-page.yml @@ -8,7 +8,7 @@ on: type: string required: true dry_run: - description: Validate the new UI and list nine uploads without writing objects + description: Validate the new UI and list ten uploads without writing objects type: boolean default: true @@ -62,7 +62,7 @@ jobs: run: | node publisher/.github/scripts/prebuilt_publish_smoke.mjs \ "$GITHUB_WORKSPACE/player/examples/songs" "$WORK/data" - - name: Validate the clean nine-file closure without credentials + - name: Validate the clean ten-file closure without credentials run: | python publisher/.github/scripts/prebuilt_publish_page.py \ --publisher "$GITHUB_WORKSPACE/publisher/.github/scripts/music_data.py" \